Optimal control of partial differential equations arises in population ecology, economics, and demography. The consistency of mathematical treatment is demonstrated for the Lotka-McKendrick model and its nonlinear modifications of increasing complexity. The obtained qualitative optimal dynamics show that the models have either the bang-bang structure of optimal controls or follow balanced growth dynamics.age-structured populations, harvesting, medical capital investment, partial differential equations, size-structured populations, vintage capital models,