Introduction
Tuning Model Predictive Control (MPC) parameters is a notoriously difficult task, often requiring engineers to manually adjust cost function weights to balance performance objectives like speed and safety. While automated methods like Bayesian Optimization (BO) exist, they frequently explore parameter sets that lead to system instability or failure. Researchers from ETH Zurich have introduced COAT-MPC (Constrained Optimal Auto-Tuner for MPC), a framework that automates this tuning process while providing mathematical guarantees that system performance remains above a critical threshold during exploration.
Problem Statement
In MPC, the cost function dictates the controller's behavior. For instance, in autonomous racing, weights must be balanced between lap time and steering smoothness. The relationship between these weights ($\theta$) and the resulting performance ($q(\theta)$) is typically unknown and non-linear. Standard "safe" optimization methods, such as SAFE-OPT, are often inefficient as they attempt to map the entire safe parameter space. Conversely, unconstrained methods like GP-UCB may test parameters that cause catastrophic failures. COAT-MPC aims to be both safe and goal-directed, focusing exploration only on regions likely to contain the optimum.
Methodology
COAT-MPC treats auto-tuning as a Constrained Bayesian Optimization problem. The framework operates in a closed loop between the tuner and the MPC-controlled system.
The core components of the approach include:
- Gaussian Process (GP) Modeling: A probabilistic model is built to estimate the performance function $q(\theta)$ and its uncertainty.
- Pessimistic and Optimistic Sets: The algorithm maintains a "Pessimistic Set" ($S^p$) of parameters statistically guaranteed to meet performance constraints, and an "Optimistic Set" ($S^o$) containing potential global optima.
- Goal-Directed Expansion: Rather than exhaustive exploration, COAT-MPC identifies a goal within the optimistic set and selects points in the pessimistic set that best expand the safe region toward that goal.
- Theoretical Guarantees: The authors provide a sample complexity bound, proving the algorithm will converge to the optimum in finite time while decoupling complexity from discretization step size.
Experimental Results
The framework was validated using autonomous racing benchmarks in both high-fidelity simulations and on a 1:28 scale physical RC car platform (the "Chronos" system).
Key findings include:
- Safety: In simulations, COAT-MPC recorded zero constraint violations, whereas unconstrained GP-UCB averaged over five. Even SAFE-OPT had minor violations due to less efficient exploration.
- Efficiency: On the physical hardware, the algorithm converged to optimal lap times within approximately 22 iterations.
- Performance: COAT-MPC achieved lap times comparable to the best unconstrained methods but without the associated risks of system failure during the learning phase.
Conclusion
COAT-MPC represents a significant step forward in automated controller tuning. By combining the safety of constrained optimization with the efficiency of goal-directed exploration, it allows for the rapid deployment of high-performance MPC systems. Future work will focus on addressing the "curse of dimensionality" in parameter spaces and improving robustness to external sensor noise.
Summary updated