An inventory model with limited production capacity and uncertain demands I: The average-cost criterion