The application of nonlinear programming and collocation to optimal aeroassisted orbital transfers