We study the least cost-size problem and the least cost-deviation
problem for a nonlinear population model with age-dependence, which takes
fertility rate as the control variable. The existence of a unique optimal control and the optimality conditions of first order are investigated by means of
Ekeland's variational principle and normal cone technique. Our conclusion
extends a known result in the literature.