OptimalPayloadRatio:

--------------------------------------------------------------------------
   Compute the optimal payload ratios for a multi-stage rocket.

   The objective is to maximize the overall payload ratio. In other words,
   maximize the payload mass given a total takeoff mass.

   The payload ratio is defined as the ratio of initial masses:  
      pR(k) = m0(k+1)/m0(k)
   where the "payload" is the mass of everything above that stage.

   The overall payload ratio is the fraction of the actual payload m* to
   the total initial mass:
      pR* = m*/m0(1)

   Since version 1.0
--------------------------------------------------------------------------
   Form:
   pR = OptimalPayloadRatio( VBO, Ve, sR )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   VBO           (1,1)    Burnout velocity (km/s)
   Ve            (1,N)    Exhaust velocity at each stage (km/s)
   sR            (1,N)    Structural ratio for each stage
                             sR(k) = mSk / (mSk + mPk)
                                where mSk = structure mass of stage k
                                      mPk = propellant mass of stage k

   -------
   Outputs
   -------
   pR            (1,N)    Optimal set of payload ratios.
   pRTot         (1,1)    Total (overall) payload ratio. Product of all
                          elements of pR.

--------------------------------------------------------------------------
   See also: BurnoutVelocity, M2EP
--------------------------------------------------------------------------
   References: Weisel, "Spaceflight Dynamics", 2nd Edition, 1995. 
               pp. 212-214.
--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D