A general-purpose MATLAB software program called GPOPS is described for solving multiple-phase optimal control problems using variable-order Gaussian quadrature collocation methods. The software em- ploys a Legendre-Gauss-Radau quadrature orthogonal collocation method where the continuous-time opti- mal control problem is transcribed to a large sparse nonlinear programming problem (NLP).