Control Applications of Nonlinear Programming and Optimization