Constrained Optimization In The Calculus Of Variations And Optimal Control Theory by