A Prediction-Correction Algorithm for Real-Time Model Predictive Control

Santiago Paternain, Manfred Morari, Alejandro RibeiroarXiv 2019

Introduction

Model Predictive Control (MPC) is a premier control strategy that optimizes future plant behavior by solving a constrained optimization problem at every control interval. Despite its power, the high computational cost of solving these "receding horizon" problems online has traditionally restricted MPC to systems with slow dynamics, such as chemical processing plants. Standard solvers often require multiple Newton iterations and costly Hessian matrix inversions per time step. This paper introduces a prediction-correction algorithm designed to break this computational bottleneck, enabling real-time MPC for high-speed systems like robotics and drones.

The Prediction-Correction MPC Algorithm

The proposed Prediction-Correction MPC (PC-MPC) algorithm shifts away from solving each optimization problem from scratch. Instead, it actively predicts the shift in the optimal solution as the system state evolves.

  1. Prediction Step: Utilizing the implicit function theorem and a first-order Taylor expansion, the algorithm adjusts the previous solution based on the change in system state. This step, costing roughly one Hessian inversion, aims to place the optimization seed directly within the quadratic convergence region of the new problem.
  2. Correction Step: Standard Newton iterations refine this predicted seed. Because the seed starts in the quadratic convergence region, the number of iterations required to reach a target accuracy $\eta$ is drastically reduced to $O(\log_2 \log_2 1/\eta)$.

A key theoretical insight is the trade-off between system speed and accuracy: slower state variations allow for less accurate previous solutions while still guaranteeing that the next prediction lands in the fast-convergence zone. Furthermore, the authors prove that the closed-loop system maintains Input-to-State Stability (ISS) despite these approximation errors.

Experimental Setup

The algorithm was evaluated on two primary benchmarks: a continuous stirred-tank reactor (Hicks Reactor) and a nonlinear friction model. The latter involves a point mass subject to complex, dynamic friction forces, which provides a challenging test case for real-time optimization.

The nonlinear friction model $F_a(\dot{x})$ used in the simulation experiments.

Performance and Results

In the nonlinear friction experiment, PC-MPC demonstrated performance virtually identical to standard Newton-based MPC (N-MPC) but with significantly lower computational overhead. While N-MPC averaged 9 iterations per step, PC-MPC required only a single iteration for 97.5% of the time steps.

Comparison of control input, position, and velocity for N-MPC and PC-MPC in the nonlinear friction experiment.

For the Hicks Reactor benchmark, PC-MPC reduced the total computational load by approximately 57%, requiring only 43% of the total Hessian inversions compared to standard MPC while maintaining indistinguishable control trajectories. The authors proved that if the state variation in a control interval is bounded below a specific threshold, the algorithm requires at most one correction step to maintain optimal tracking.

Conclusion and Future Work

PC-MPC offers a mathematically rigorous way to accelerate MPC by ensuring optimization starts in the quadratic convergence region. While highly effective, the algorithm's guarantees currently rely on assumptions of strong convexity and smoothness. Future work aims to extend these stability proofs to handle active set changes and inequality constraints more robustly, further broadening the applicability of real-time MPC in complex, high-speed environments.

Summary updated

BibTeX
@misc{paternain2019prediction,
  author = {Santiago Paternain and Manfred Morari and Alejandro Ribeiro},
  title = {{A Prediction-Correction Algorithm for Real-Time Model Predictive Control}},
  year = {2019},
  eprint = {1911.10051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.10051},
}
Figure