Stochastic MPC with offline uncertainty sampling

Matthias Lorenzen, Fabrizio Dabbene, Roberto Tempo, Frank Allgöwer

TL;DR

This paper introduces a novel Stochastic Model Predictive Control (SMPC) scheme that moves the heavy lifting of uncertainty sampling from the online execution phase to an offline design phase. By doing so, the authors provide a controller that is not only significantly faster to run but also comes with rigorous mathematical guarantees for recursive feasibility and asymptotic stability—two properties that are notoriously difficult to prove for standard sampling-based SMPC.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a powerful tool for controlling systems with constraints, but real-world systems are often plagued by uncertainty (e.g., wind gusts, sensor noise, or varying payloads). Stochastic MPC (SMPC) handles this by allowing constraints to be violated with a very small probability (chance constraints).

The state-of-the-art method for SMPC is the "scenario approach," where the controller generates many random "scenarios" of the future and ensures the control plan works for all of them. However, this approach has two major headaches:

  1. Computational Burden: Generating and solving hundreds or thousands of constraints every few milliseconds (online) is computationally expensive.
  2. Recursive Feasibility: Just because you found a safe path now doesn't mean you'll be able to find one at the next time step when new random scenarios are drawn. This "lack of a guarantee" is a dealbreaker for safety-critical systems.

Methods

The authors propose Offline Uncertainty Sampling. Instead of drawing new scenarios at every time step, they draw a large set of scenarios once during the design phase.

Key technical components include:

  • Inner Approximation via Statistical Learning: The authors use results from statistical learning theory (specifically VC-dimension) to determine exactly how many offline samples are needed. They prove that if you collect enough samples, the resulting "sampled" feasible region is a subset of the true "probabilistic" feasible region with a user-defined level of confidence.
  • Constraint Tightening: Because the sampling is done offline, the authors can pre-calculate a "robust control invariant set." They add a "first-step constraint" to the optimization problem, which ensures that if the controller finds a solution once, it is mathematically guaranteed to find one forever (robust recursive feasibility).
  • Quadratic Programming (QP): By moving the sampling offline, the online problem reduces to a standard, highly efficient Quadratic Program with fixed linear constraints.

Datasets

As a theoretical control paper, it does not use large-scale external datasets. Instead, it utilizes:

  • Numerical Examples: A 2D linear system with a single chance constraint and a rotating uncertainty parameter ($\alpha \sim \mathcal{U}[0, 2\pi]$) is used to illustrate the structural differences between online and offline sampling.
  • Synthetic Scenarios: Scenarios are generated based on i.i.d. (independent and identically distributed) random variables representing parametric uncertainty in the system matrices $A(q)$ and $B(q)$.

Key Insights and Ideas

  • The "Optimal" vs. the "Feasible": Standard online scenario MPC only guarantees that the optimal solution is safe. This paper shifts the focus: by sampling offline, they ensure the entire feasible set is safe. This is what allows them to prove stability and feasibility.
  • Breaking the Real-Time Bottleneck: Most SMPC papers struggle with the trade-off between safety (more samples) and speed (fewer samples). By moving the sampling to the "design" phase, you can use a massive number of samples to ensure high safety without slowing down the actual controller.
  • Bridging Robust and Stochastic Control: The paper cleverly combines the "probabilistic" nature of SMPC with the "guaranteed" nature of Robust MPC. It uses stochastic theory to define the constraints and robust theory to ensure the controller never gets "stuck" in an infeasible state.

Key Results

  • Sample Complexity Bounds: The paper provides explicit formulas (Propositions 7 and 15) for the number of samples ($N_s$) required to guarantee that the offline-designed constraints satisfy the original chance constraints with high confidence.
  • Guaranteed Stability: The authors prove that under mild assumptions, the system is asymptotically stable with probability one. This means the system is guaranteed to converge to the target state despite the random disturbances.
  • Recursive Feasibility: Unlike previous scenario-based methods, this algorithm is proven to always have a valid solution at the next time step if it had one at the start.

Limitations and Future Work

  • i.i.d. Assumption: The current theory relies on the uncertainty being "independent and identically distributed." It does not yet account for "colored noise" or disturbances that have their own internal dynamics (e.g., a weather system that evolves over time).
  • Design Complexity: While the online part is fast, the offline part (the design phase) becomes more complex as the number of samples and system dimensions increase. Removing redundant constraints offline is necessary but can be computationally intensive.
  • Unbounded Disturbances: The proof for recursive feasibility currently assumes the uncertain variables are bounded. Extending this to unbounded distributions (like Gaussian noise) remains an open challenge for future research.

Summary updated

BibTeX
@article{lorenzen2017stochastic,
  author = {Matthias Lorenzen and Fabrizio Dabbene and Roberto Tempo and Frank Allgöwer},
  title = {{Stochastic MPC with offline uncertainty sampling}},
  journal = {Automatica},
  year = {2017},
  url = {https://openreview.net/forum?id=uEhFtXGDRR},
}
Figure