A Constrained Landing Trajectory

A reusable rocket descending on its engine toward a landing pad

Open the 2-D Rocket Landing app

Advanced Control Exercise 15 of 30 in Optimal Control · All exercises · Time: 15 minutes

A landing rocket steers by tilting, and tilts by gimbaling its engine, so position, attitude and gimbal form a cascade of loops. When the gimbal saturates the inner loop opens. A predictive controller instead plans thrust and gimbal together over the next six seconds within their limits. This exercise measures both on the same descent.

Learning Outcomes

  • Formulate a finite-horizon landing problem with input limits and a terminal condition.
  • Explain how a saturated actuator opens the inner loop of a cascade, and why integral action makes it worse.
  • Compare a cascade with a joint thrust and gimbal plan by pad offset, touchdown speed, tilt and arrival time.

Book Chapter

Feedforward, Cascade, and Ratio Control (Volume 3), Chapter 10, Commanding an Attitude Instead of a Force in a Rocket Landing Simulator. Read the chapter, open the PDF, or watch the lecture slides.

Theory in Brief

In the plane, with thrust `T`, gimbal angle `\delta`, pitch `\theta`, mass `m`, inertia `J` and engine lever arm:

$$m\ddot x = T\sin(\theta + \delta), \qquad m\ddot z = T\cos(\theta + \delta) - m g, \qquad J\ddot\theta = -\ell\, T \sin\delta$$

A landing plan minimizes error and effort over a horizon within the actuator limits, and asks for the pad at rest. The actuator limits are hard; the tilt limit is soft, with a priced slack `\epsilon \ge 0`:

$$\begin{gathered} \min_{T,\delta} \int_t^{t+H} \left( \|s - s_{pad}\|^2_{Q} + \|u\|^2_{R} \right) d\tau \\ \mathrm{s.t.}\quad T_{min} \le T \le T_{max}, \\ |\delta| \le \delta_{max}, |\theta| \le \theta_{max} + \epsilon \end{gathered}$$

where `s = (x, z, \dot x, \dot z, \theta, \dot\theta)` and `u = (T, \delta)`. Discretized by collocation, each step of the horizon becomes algebraic equations. The app relinearizes the dynamics about the current state every step and solves a quadratic program. A cascade does the same job with three nested loops; when the gimbal is pinned at `\delta_{max}` the attitude loop can no longer vary the moment through the gimbal. Its magnitude at the limit is

$$\ell T \left|\sin\delta_{max}\right|.$$

Model: Physics-based planar rigid-body dynamics, relinearized every control step for the plan.
Decision: Thrust and gimbal together over the next six seconds (MPC), or each from its own loop (cascade).
Learning: None. Learned landing policies are trained on this kind of model and judged by the same touchdown tiles.

Exercise

Read 2 min · Predict 1 min · Run 7 min · Explain 3 min · Check your AI 2 min.

Predict. The gimbal can travel only ±3° and the vehicle starts 25 m off the pad moving away. Will the cascade still land? On a second descent with a gust at 4 s, will a joint plan land closer to the pad than the cascade, and faster or slower?

Run the 2-D Rocket Landing app. Use the fastest speed, 4×, and press Run again to pause at the times in each step.

  1. Open 9 · Gimbal saturation (±3°). Press Run to touchdown and watch the gimbal strip: dashed command, solid achieved angle. Read Peak tilt and Pad offset.
  2. Open 11 · Thrust and gimbal over the next six seconds. The MPC is in charge. Run to touchdown and read Pad offset, Touchdown speed, Peak tilt and Peak throttle, and the time of contact.
  3. Set Flight controller to Cascade, press Reset, and run to touchdown. Read the same tiles.

Explain.

  1. While the gimbal is pinned, why does the cascade not wind up and lose the vehicle?
  2. The plan lands closer and sooner. What does it spend that the cascade does not, and which of its limits allows that?

Generative AI Learning

"Write the optimal control problem for landing a rocket in 2-D with bounded thrust and gimbal, then explain how model predictive control solves it in real time."

Check the answer against your run: A good answer has the dynamics, the bounds as constraints, a terminal or tracking objective, and a receding horizon with relinearization or a nonlinear program. Check its constraint list against the theory above. The assistant is your tutor and reviewer; you answer for every claim you turn in.

What to Turn In

A three-row table (cascade with ±3° gimbal, MPC, cascade) with pad offset, touchdown speed, peak tilt, peak throttle and contact time, your written prediction, and three sentences that answer the two questions.

With the gimbal limited to ±3°, the cascade still lands: Peak tilt reads 12.0° and Pad offset 0.02 m. The attitude loop is a spectator while the gimbal is pinned, but neither PD loop has an integrator to wind up, and the 12° tilt limit bounds the demand, so the saturation passes.

On the gust case the MPC touches down at 15.5 s with a pad offset of 0.08 m, a touchdown speed of 0.52 m/s, a peak tilt of 17.2° and a peak throttle of 72%. The cascade touches down at 17.5 s with 0.73 m, 0.40 m/s, 6.9° and 64%. The plan lands closer and sooner by tilting and throttling harder, because it sees the pad and the gimbal limit inside its six-second horizon and uses all of the authority it has. The cascade's loops are tuned for a gentle approach and stay well inside their 12° tilt limit, so it is slower and lands farther off. The plan's tilt limit is soft, priced rather than hard, so it may lean past 12° when the price is worth paying. Either could be the right choice; the plan's is only as good as its nominal model of the gust it cannot see.

Measured with the app build of December 3, 2026 by a scripted replay of the steps above. Numbers that no tile shows come from the replay's record; your readings from the trends will be close. A later app release may move the last digit.

Rocket Launch optimizes a trajectory in GEKKO. Pose this landing as a minimum-fuel problem with a free final time: start 100 m up and 15 m left, require `x = 0`, `z = 0` and zero velocity at the end, and bound `T` and `\delta`. Compare the optimal thrust profile with the app's peak throttle.

Related

References

  1. Hedengren, J. D. (ed.), Feedforward, Cascade, and Ratio Control, Volume 3 of Interactive Control Engineering, Chapter 10, "Commanding an Attitude Instead of a Force in a Rocket Landing Simulator", pp. 225–254, Advanced Process Solutions, 2026. PDF (CC BY 4.0).
  2. Açıkmeşe, B., Ploen, S. R., Convex programming approach to powered descent guidance for Mars landing, Journal of Guidance, Control, and Dynamics 30(5), 1353–1366, 2007.

Course Information

TCLab

Project

Applications

Advanced Control Exercises

Exams

Modeling

Machine Learning

Estimation

Control

Reinforcement Learning

Related Courses

Admin