Closed-loop performance optimization of model predictive control with robustness guarantees

Riccardo Zuliani, Efe C. Balta, John Lygeros

This paper, recently published by researchers at ETH Zurich, presents a sophisticated framework for tuning Model Predictive Control (MPC) to achieve a "sweet spot" between aggressive performance and guaranteed safety.

TL;DR

The authors propose a data-driven method to automatically tune the cost functions and constraint tightenings of MPC schemes for uncertain nonlinear systems. By combining backpropagation through the MPC solver with the "scenario approach," they achieve significantly better performance than traditional robust methods while providing formal probabilistic guarantees on safety.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is the industry standard for controlling systems with complex constraints (like a robot arm that shouldn't hit a wall). However, MPC relies on a mathematical model of the system. In the real world, models are never perfect—there is always "model mismatch" and random "process noise."

To handle this, engineers use Robust MPC, often employing "Tube MPC" strategies. These strategies "tighten" the constraints (e.g., telling the robot the wall is 10cm closer than it actually is) to create a safety buffer. The problem is that these buffers are usually designed for the absolute worst-case scenario, making the controller overly "cautious" and sluggish. Furthermore, designing these buffers for nonlinear systems is mathematically grueling and often results in optimization problems that are too slow to run in real-time.

Methods

The authors break the tuning process into two main stages:

  1. Nominal Performance Tuning: They use a technique called BP-MPC (BackPropagation-MPC). This allows them to treat the entire MPC controller as a differentiable layer. By "differentiating through the solver," they can use gradient descent to find the optimal cost function parameters that make the system perform best under ideal conditions. Because MPC solution maps are non-smooth (due to constraints clicking in and out of being "active"), they utilize the framework of conservative Jacobians to ensure the math remains valid.
  2. Robust Constraint Satisfaction: To ensure safety under uncertainty, they use the Scenario Approach. Instead of assuming a worst-case noise bound, they collect data samples (scenarios) of noise and model errors. They then use the Pick2Learn (P2L) algorithm to identify the "support scenarios"—the specific realizations of noise that are most likely to cause a constraint violation.
  3. The Resulting Controller: The final tuned controller is a simple, fast Convex Quadratic Program (QP). Even though the underlying system is nonlinear, the "tuned" linear MPC captures enough of the system's behavior to remain safe and high-performing.

Datasets

The paper evaluates the method using three simulated benchmarks rather than static datasets:

  • Cart-Pendulum: A classic nonlinear control problem where the goal is to move a cart while keeping a pole balanced upright, subject to strict limits on the cart's position and the pole's angle.
  • Quadrotor: A 3D drone model used to compare against state-of-the-art nonlinear tube MPC methods.
  • Linear System: A standard benchmark used to compare against traditional linear Tube MPC.

Key Insights and Ideas

  • Closing the Loop in Tuning: Most robust MPC buffers are designed "offline" based on open-loop error bounds. This paper tunes them based on closed-loop trajectories, which accounts for how the controller actually reacts to errors in real-time. This drastically reduces conservatism.
  • Differentiable Optimization: The use of BP-MPC highlights a growing trend in control theory: treating optimization solvers as layers in a learning pipeline. This allows for "end-to-end" tuning of control logic.
  • Sample Efficiency: Through the P2L algorithm, the authors show that you only need a few "critical" scenarios to define a robust buffer. In their quadrotor example, only 2 scenarios out of 1,000 were needed to guarantee safety.

Key Results

  • Safety: In the cart-pendulum test, the tuned MPC had a 0% constraint violation rate on unseen test data, whereas a standard nominal MPC and even a more complex nonlinear MPC failed 100% of the time.
  • Performance: On a linear system benchmark, the proposed method achieved a 50% improvement in closed-loop performance compared to traditional Tube MPC, without sacrificing any safety.
  • Numerical Reliability: For the quadrotor, the authors noted that traditional nonlinear tube methods required solving complex Linear Matrix Inequalities (LMIs) that were actually infeasible, whereas their scenario-based approach remained computationally tractable and easy to implement.

Limitations and Future Work

  • The "Big Noise" Problem: The authors acknowledge that if the noise or uncertainty is extremely large, the performance benefits of their method might diminish, as the "safety buffer" would eventually have to become as large as traditional methods.
  • Two-Step Process: Currently, they tune for performance first and then robustness. A "one-shot" optimization that handles both simultaneously could potentially find even better parameters.
  • User-Defined Risk: Future work could focus on allowing the user to specify a precise "risk budget" (e.g., "I am okay with a 0.1% chance of violation") and having the algorithm automatically find the most aggressive possible tuning for that specific risk level.

Summary updated

BibTeX
@article{zuliani2025closed,
  author = {Riccardo Zuliani and Efe C. Balta and John Lygeros},
  title = {{Closed-loop performance optimization of model predictive control with robustness guarantees}},
  journal = {Eur. J. Control},
  year = {2025},
  doi = {10.1016/j.ejcon.2025.101319},
}
Figure