Skip to main content
QUICK REVIEW

[Paper Review] (Stochastic) Model Predictive Control -- a Simulation Example

Tim Brüdigam|arXiv (Cornell University)|Jan 28, 2021
Advanced Control Systems OptimizationEngineering2 citations
TL;DR

This paper presents a simulation-based introduction to Stochastic Model Predictive Control (SMPC) for linear systems with Gaussian uncertainty, reformulating hard state constraints into chance constraints using probabilistic tightening via error covariance and the inverse error function. The method ensures constraint satisfaction with a predefined probability level β, demonstrated through a MATLAB-based example with explicit derivation and code availability.

ABSTRACT

This brief introduction to Model Predictive Control specifically addresses stochastic Model Predictive Control, where probabilistic constraints are considered. A simple linear system subject to uncertainty serves as an example. The Matlab code for this stochastic Model Predictive Control example is available online.

Motivation & Objective

  • Address the challenge of controlling linear systems with stochastic disturbances while respecting state constraints with a specified probability.
  • Introduce a practical framework for implementing Stochastic Model Predictive Control (SMPC) with chance constraints in a simulation environment.
  • Provide a derivation and implementation of constraint tightening based on error covariance and probabilistic bounds for normal and general distributions.
  • Demonstrate the trade-off between constraint violation risk and control performance through a concrete example with MATLAB code.
  • Clarify the distinction between uncertainty covariance (Σw) and error covariance (Σe_k) in prediction-based SMPC.

Proposed method

  • Formulate a deterministic MPC problem with state and input constraints using a linear system model xk+1 = Axk + Buk.
  • Introduce zero-mean Gaussian process noise wk ∼ N(0, Σw) into the system dynamics, leading to xk+1 = Axk + Buk + Dwk.
  • Reformulate the hard state constraint x1,k ≤ 2.8 into a chance constraint Pr(x1,k ≤ 2.8) ≥ β using the inverse error function: γk = √(2[1,0]ᵀΣe_k[1,0]) ⋅ erf⁻¹(2β − 1).
  • Decompose the state into deterministic and stochastic components: xk = zk + ek, and reparameterize the input as uk = −Kxk + vk to decouple feedback control from uncertainty handling.
  • Propagate the error covariance matrix recursively via Σe_k+1 = (A − BK)Σe_k(A − BK)ᵀ + DΣwDᵀ, starting from Σe_0 = diag(0,0).
  • Apply constraint tightening by replacing the original constraint x1,k ≤ 2.8 with x1,k ≤ 2.8 − γk, where γk depends on β and the predicted error variance.

Experimental results

Research questions

  • RQ1How can hard state constraints be reformulated to allow probabilistic violation in the presence of stochastic disturbances?
  • RQ2What is the analytical relationship between the risk parameter β and the required constraint tightening γk under Gaussian uncertainty?
  • RQ3How does the error covariance Σe_k evolve over prediction steps in SMPC, and how does it affect constraint tightening?
  • RQ4What is the performance difference between SMPC with normal and general probability distributions in terms of conservatism?
  • RQ5How does the choice of risk parameter β influence the trade-off between constraint violation probability and control effort?

Key findings

  • The chance constraint Pr(x1,k ≤ 2.8) ≥ β is reformulated as x1,k ≤ 2.8 − γk, where γk = √(2[1,0]ᵀΣe_k[1,0]) ⋅ erf⁻¹(2β − 1), enabling tractable SMPC implementation.
  • For normally distributed uncertainty, the constraint tightening γk is derived using the inverse error function, providing an exact reformulation under Gaussian assumptions.
  • For general probability distributions, constraint tightening is approximated using Cantelli’s inequality, yielding γk = σ ⋅ √(β / (1 − β)), which is more conservative than the Gaussian case.
  • The tightening parameter γk increases with prediction horizon, reflecting higher uncertainty accumulation over time, and must be computed at each prediction step.
  • The error covariance matrix Σe_k is propagated recursively and depends on the closed-loop dynamics (A − BK) and process noise covariance Σw, not on the initial state.
  • The simulation example confirms that SMPC with chance constraints maintains constraint satisfaction with probability β, even under stochastic disturbances, while avoiding overly conservative control actions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.