Skip to content

Moonlander ​

  • 6 state
  • 2 control
  • 1 variable
  • Mayer cost
  • free final time
  • 2 control box
  • 1 variable box
  • 10 boundary
  • OptimalControl valid
  • JuMP valid

The Moonlander optimal control problem is a benchmark in constrained optimal control. It models the powered descent of a spacecraft aiming to land on a specified target on the Moon's surface in minimum time. The system comprises six state variables: the horizontal position , vertical position , horizontal velocity , vertical velocity , orientation angle , and angular velocity . The control variables and represent the thrust forces applied by the lander's engines. The objective is to minimise the final time while ensuring a soft landing at the target, subject to control and physical constraints.

Mathematical formulation ​

The problem can be stated as

Here,  , and the total thrust in the lander frame is obtained by rotating the engine thrusts according to the lander's orientation.

Qualitative behaviour ​

The optimal solution typically exhibits a bang–bang structure, where thrusts switch between minimum and maximum values, ensuring minimal landing time while satisfying position and velocity constraints. Orientation dynamics and play a critical role in directing the thrust to achieve the target.

Characteristics ​

  • Nonlinear coupled dynamics with orientation-dependent thrust.

  • Terminal position and velocity constraints for a soft landing.

  • Benchmark problem for testing direct transcription and NLP solvers.

References ​

  • Gazzola, F., & Marchini, E. M. (2021). The moon lander optimal control problem revisited. Mathematics in Engineering, 3(5), 1–14. doi:10.3934/mine.2021040 Provides a detailed analysis of the Moonlander problem, including minimum-time trajectories and safe landing curves.

  • GPOPS-II Examples: Moon Lander Problem. GPOPS-II Moon Lander Example Illustrates practical implementation of the Moonlander OCP in a direct transcription framework, useful for benchmarking.

  • Vanroye, L., Sathya, A., De Schutter, J., & Decré, W. (2023). FATROP: A Fast Constrained Optimal Control Problem Solver. arXiv preprint arXiv:2303.16746. Discusses solver strategies applied to constrained trajectory optimization problems, including applications relevant to the Moonlander.

Parameters ​

ParameterDefault valueUnitMeaning
t00sinitial time
m1kgmass of the lander
g9.81m/s²gravitational acceleration
I0.1kg·m²moment of inertia of the lander
D1mdistance between the two thrusters
max_thrust19.62Nupper bound of each thrust F₁, F₂
tf_l0.1slower bound of the final time
tf_u1.0supper bound of the final time
F₁_l0Nlower bound of the thrust F₁
F₂_l0Nlower bound of the thrust F₂
p₁_t00minitial horizontal position
p₂_t00minitial vertical position
dp₁_t00m/sinitial horizontal velocity
dp₂_t00m/sinitial vertical velocity
θ_t00radinitial orientation
dθ_t00rad/sinitial angular velocity
p₁_tf5mfinal horizontal position, the target
p₂_tf5mfinal vertical position, the target
dp₁_tf0m/sfinal horizontal velocity
dp₂_tf0m/sfinal vertical velocity

Every modeling takes other values with the keyword parameters, merged with these: moonlander(backend; parameters=(t0=…,)).

Reference objective ​

The best objective among the solves that converged, in each modeling, on the default grid of the modeling: the modelings are independent, each has its own reference. See how the references are computed.

ModelingSchemeGridReference objectiveSolvesDistinct solutionsConfigurations agree
JuMP:trapeze5000.961810933451yes, within 9.2e-07
OptimalControl:trapeze5000.9618109334172no

In OptimalControl with :trapeze, the solves reached 2 distinct solutions: besides the best one, 0.9618437656 (gap 3.4e-05, 1 solves). See the results of the modeling for which configurations reached which.