OptimalTrajectory:

--------------------------------------------------------------------------
   Computes the control for an optimal trajectory using simplex for a fixed
   end time and state.

   Type OptimalTrajectory for a demo.
--------------------------------------------------------------------------
   Form:
   [err, u, x] = OptimalTrajectory( x0, xF, tF, uMax, f, maxIter )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x0             (:)    Initial state
   xF             (:)    Final state
   t              (1,:)  Times
   uMax           (:,1)  Maximum control
   f              (:)    Continuous time system
                         .a   (n,n)   State transition matrix
                         .b   (n,m)   Control input matrix
   maxIter        (1,1)  Maximum number of iterations for simplex

   -------
   Outputs
   -------
   err            (1,1)  Error
   u              (:)    Control
   x              (:,:)  State

--------------------------------------------------------------------------

Children:

Common: Control/C2DZOH
Common: Graphics/Plot2D
Math: Analysis/Simplex