Scenario-based Stochastic MPC for systems with uncertain dynamics

Francesco Micheli, John Lygeros

Abstract

Model Predictive Control is an extremely effective control method for systems with input and state constraints. Model Predictive Control performance heavily depends on the accuracy of the open-loop prediction. For systems with uncertainty this in turn depends on the information that is available about the properties of the model and disturbance uncertainties. Here we are interested in situations where such information is only available through realizations of the system trajectories. We propose a general scenario-based optimization framework for stochastic control of a linear system affected by additive disturbance, when the dynamics are only approximately known. The main contribution is in the derivation of an upper bound on the number of scenarios required to provide probabilistic guarantees on the quality of the solution to the deterministic scenario-based finite horizon optimal control problem. We provide a theoretical analysis of the sample complexity of the proposed method and demonstrate its performance on a simple simulation example. Since the proposed approach leverages sampling, it does not rely on the explicit knowledge of the model or disturbance distributions, making it applicable in a wide variety of contexts.

Introduction

Model Predictive Control (MPC) is a cornerstone of modern control engineering, enabling complex systems like autonomous vehicles and chemical plants to optimize performance while respecting critical safety constraints. However, the efficacy of MPC is fundamentally tied to the accuracy of its internal mathematical model. In real-world applications, controllers face two distinct types of uncertainty: stochastic uncertainty (random environmental noise) and epistemic uncertainty (imperfect knowledge of the system's physical parameters).

Traditional approaches often struggle with this duality. Robust MPC can be overly conservative, while standard Stochastic MPC typically assumes perfect knowledge of noise distributions—a luxury rarely available in practice. This paper introduces a data-driven framework that bridges this gap using the "scenario approach," providing rigorous safety guarantees even when system dynamics are only partially known.

The UD-SMPC Framework

The authors propose Uncertain Dynamics Scenario-based MPC (UD-SMPC). This method circumvents the need for explicit probability distributions by solving a deterministic optimization problem based on $N$ discrete "scenarios" sampled from historical data.

Key Innovations

  • Joint Sampling via Empirical Bootstrap: The framework uses bootstrapping on historical trajectory data to generate model scenarios. This allows the controller to account for model uncertainty directly from observed data.
  • Disturbance-Affine Policy: To maintain computational tractability while allowing for feedback, the control law is structured as a linear function of past disturbances.
  • Theoretical Safety Bounds: The core contribution is a derived upper bound for the number of scenarios ($N$) required to ensure that the probability of constraint violation remains below a user-defined threshold $\epsilon$, with a specific level of confidence $\beta$.

Experimental Evaluation

The UD-SMPC approach was validated against a standard Least Squares (LS-SMPC) method, which uses a single best-fit model, and a "Ground Truth" (GT-SMPC) model.

Figure 1: Cumulative Distribution Function (CDF) of the probability of violation for different MPC schemes. The dashed line represents the target violation threshold of 0.1.

As shown in the CDF plot above, UD-SMPC (blue) significantly outperforms LS-SMPC (red) in terms of reliability. While LS-SMPC is "overconfident" and fails to meet the safety requirement in approximately 12% of trials (where the probability of violation exceeds 0.1), UD-SMPC successfully robustifies the controller against model errors, keeping violation probabilities well within the desired limits.

Figure 4: Empirical closed-loop violation percentages across different scenario counts N.

The relationship between sample complexity and safety is further illustrated in the bar chart above. As the number of scenarios $N$ increases, the percentage of closed-loop violations decreases for all methods. Notably, UD-SMPC maintains a lower violation rate at smaller sample sizes compared to the non-robustified LS-SMPC, demonstrating its data efficiency in safety-critical contexts.

Conclusion and Future Work

The proposed UD-SMPC framework provides a rigorous, data-driven path to safe control under uncertainty. While the current theoretical bounds are conservative—often requiring more scenarios in theory than are needed in practice—the method offers a robust alternative to traditional MPC. Future research will focus on extending these results to output feedback systems, implementing online learning to reduce conservatism, and proving recursive feasibility for long-term stability.

Summary updated

BibTeX
@inproceedings{micheli2022scenario,
  author = {Francesco Micheli and John Lygeros},
  title = {{Scenario-based Stochastic MPC for systems with uncertain dynamics}},
  booktitle = {ECC},
  year = {2022},
  doi = {10.23919/ecc55457.2022.9838080},
}
Figure