Calculus of Variations and Optimal Control; Optimization.