Data-driven MPC with terminal conditions in the Koopman framework

Karl Worthmann, Robin Strässer, Manuel Schaller, Julian Berberich, Frank Allgöwer · DOI

TL;DR

This paper introduces a rigorous framework for data-driven Nonlinear Model Predictive Control (MPC) using Koopman operator theory. By leveraging a specific variant of Dynamic Mode Decomposition (SafEDMD) that provides proportional error bounds, the authors design terminal conditions that guarantee the system remains feasible and reaches a stable state near the target, even when the underlying model is learned entirely from data.

What Problem Does This Paper Address?

Model Predictive Control (MPC) is a gold standard for controlling complex systems because it can handle constraints (like speed limits or voltage caps) while optimizing performance. However, MPC requires a mathematical model to predict the future. While we can use data-driven methods like the Koopman operator—which "lifts" nonlinear dynamics into a higher-dimensional linear space—to create these models, there is a catch: approximation errors.

In traditional MPC, we use "terminal conditions" (a target region and a cost function at the end of the prediction horizon) to prove the controller will always find a solution (recursive feasibility) and eventually reach the goal (stability). When the model is just an approximation learned from data, these proofs often fall apart. This paper bridges that gap, providing the mathematical "safety net" needed to use Koopman-based models in closed-loop control with formal guarantees.

Methods

The authors utilize the SafEDMD (Certified Extended Dynamic Mode Decomposition) framework. Key components include:

  • Bilinear Surrogate Model: Instead of a purely linear model, they use a bilinear structure that accounts for how control inputs interact with the system states.
  • Proportional Error Bounds: This is the "secret sauce." Unlike standard error bounds that might be constant, SafEDMD provides bounds that shrink as the system approaches the origin. This allows the authors to prove that the controller's "desire" to reach the goal is stronger than the "noise" introduced by the model's approximation error.
  • Constraint Tightening: To ensure the real system never violates physical constraints despite model inaccuracies, the MPC algorithm "tightens" the constraints in its internal optimization, leaving a buffer for error.
  • LMI-based Terminal Design: They use Linear Matrix Inequalities (LMIs) to construct a terminal control law and a terminal region in the "lifted" Koopman space.

Datasets

As a theoretical control paper, the authors evaluate their method using a simulated benchmark:

  • Undamped Inverted Pendulum: A classic nonlinear control problem.
  • Data Generation: They collected 6,000 data samples by applying constant control inputs to the pendulum and observing the state transitions over a sampling rate of $\Delta t = 0.01$.
  • Observables: The state was "lifted" using a dictionary of functions including $[1, x_1, x_2, \sin(x_1)]$.

Key Insights and Ideas

  • The Power of Proportionality: By ensuring the model error vanishes at the equilibrium point (the origin), the authors can prove Practical Asymptotic Stability. This means the system won't just wander aimlessly; it will converge to a small neighborhood around the target, with the size of that neighborhood determined by the quality of the data.
  • Lifting the Terminal Ingredients: Designing stability constraints for nonlinear systems is notoriously hard. By doing this in the "lifted" Koopman space, the authors can use tools from linear control theory (like Lyapunov functions and LMIs) on a system that is actually nonlinear.
  • Dual-Mode MPC: The paper suggests a "dual-mode" strategy. Use the data-driven MPC to get the system close to the target, then switch to a local stabilizing controller (derived from the terminal ingredients) to eliminate the remaining steady-state offset.

Key Results

  • Formal Proofs: The paper provides rigorous mathematical proofs for recursive feasibility and practical asymptotic stability under the SafEDMD framework.
  • Superior Performance: In simulations of an inverted pendulum, the proposed method successfully stabilized the system to the origin.
  • Comparison: When compared to standard Linear Koopman MPC (L-MPC), which often suffers from steady-state offsets or oscillations because it lacks these rigorous terminal conditions, the proposed method showed significantly smoother and more accurate convergence.

Limitations and Future Work

  • The Invariance Assumption: The proofs rely on the assumption that the chosen "dictionary" of functions is "invariant"—meaning the system's evolution stays within the span of those functions. In reality, finding such a dictionary for an unknown system is very difficult.
  • Computational Complexity: Lifting states into high-dimensional spaces can make the optimization problem larger and slower to solve.
  • Future Direction: The authors plan to move away from the "invariance" requirement by using Kernel EDMD, which uses Reproducing Kernel Hilbert Spaces to provide uniform error bounds without needing a predefined finite dictionary.

Summary updated

BibTeX
@misc{worthmann2024data,
  author = {Karl Worthmann and Robin Strässer and Manuel Schaller and Julian Berberich and Frank Allgöwer},
  title = {{Data-driven MPC with terminal conditions in the Koopman framework}},
  year = {2024},
  eprint = {2408.12457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.12457},
}
Figure