The determination of an optimal feeding and selling strategy for broiler production given a space constraint is formulated as a dynamic programming problem. Production equations derived from trial data are used to obtain an optimal sequence of rations in which energy density changes through time. The stability of the plan is explored and the implications of the results for production research and commercial practice are considered