GuidedLaunch2DCost:

--------------------------------------------------------------------------
   Cost function for the 2D launch via GuidedLaunchOpt2D.
   Performs a simulation followed by a circularization burn by the specified 
   upper stage.

   Since version 1.0
--------------------------------------------------------------------------
   Form:
   [cost,data] = GuidedLaunch2DCost( params, d, verbose )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   params       (3,1)  Initial guess at parameters.
   d             (.)   Data structure including launch vehicle model data
                          and all launch options.
                        .rocket
                        .upperStage
   verbose       (1)   Flag to specify whether to print output. Optional.

   -------
   Outputs
   -------
   cost          (1)   Computed cost.
   data          (.)   Data structure with launch results.

--------------------------------------------------------------------------
   See also GuidedLaunch2DSim, LaunchSummary
--------------------------------------------------------------------------

Children:

LaunchVehicle: LaunchOpt/LaunchSummary
LaunchVehicle: LaunchSim/GuidedLaunch2DSim
Orbit: OrbitCoord/RV2AE
Orbit: OrbitManeuver/OrbMnvrCircularize