A Direct Optimal Tracking Methodology for Nonlinear Dynamic Systems