Nonlinear and Optimal Control Systems