Linearly discounted economic MPC without terminal conditions for periodic optimal operation

Lukas Schwenkel, Alexander Hadorn, Matthias A. Müller, Frank Allgöwer

This paper, recently submitted to Automatica, presents a clever and surprisingly simple modification to Economic Model Predictive Control (EMPC) that solves a long-standing headache: how to handle systems where the most efficient way to operate is in a cycle (a periodic orbit) rather than a steady state.

TL;DR

Standard economic MPC often fails to achieve optimal performance for periodic systems unless the exact period is known in advance. The authors show that simply multiplying the stage cost by a linear discount factor ($\frac{N-k}{N}$) guarantees both optimal average performance and stability without needing any prior knowledge of the system's optimal period.

What Problem Does This Paper Address?

In many engineering applications, the most "economic" way to run a process—minimizing energy or maximizing production—isn't to stay at a fixed point, but to follow a repeating cycle. Think of a walking robot or a chemical reactor with oscillating temperatures.

Economic MPC is designed to find these efficient paths on the fly. However, if the optimal behavior is periodic, standard MPC without "terminal conditions" (extra constraints or costs at the end of the prediction horizon) can fail spectacularly. It might choose a "lazy" first step just to reach a high-reward state at the very end of its horizon, leading to a closed-loop behavior that never actually reaches the optimal cycle.

Existing solutions usually require knowing the optimal period length ($p^*$) or the orbit itself beforehand to design complex terminal constraints. This makes them brittle: if the cost of electricity changes or a component wears down, the optimal period might change, and the controller needs a manual redesign.

Methods

The authors propose Linearly Discounted Economic MPC (LDE-MPC). The core idea is to modify the cost function by applying a weight that decreases linearly over the prediction horizon:

$$ \beta_N(k) = \frac{N-k}{N} $$

where $N$ is the horizon length and $k$ is the step within that horizon.

Why Linear?

While exponential discounting is common in reinforcement learning, the authors argue it can decay too quickly, causing the controller to ignore long-term average performance. Linear discounting strikes a "Goldilocks" balance: it's strong enough to prioritize the immediate next step (preventing the "waiting" problem) but gentle enough that the long-term goal of reaching the optimal orbit remains the dominant driver.

The "Weak Turnpike" Property

To prove this works, the authors introduce a "weak turnpike property." In standard MPC theory, the turnpike property says that optimal trajectories stay near the optimal orbit for almost the entire horizon. With discounting, this property is "weakened"—more points might stray near the end of the horizon—but the authors prove that as the horizon $N$ grows, the proportion of time spent near the optimal orbit still approaches 100%.

Datasets

The authors evaluate their method using three numerical simulation benchmarks:

  1. A Motivating Discrete Example: A simple 3-state system (Figure 1) where standard MPC fails by "waiting" forever, while LDE-MPC correctly identifies the optimal cycle.
  2. Harmonic Oscillator: A 2D continuous-time system discretized into a periodic control problem. This demonstrates LDE-MPC's ability to handle connected state spaces and box constraints.
  3. Economic Growth Model: A standard benchmark where the optimal behavior is a steady state, used to highlight the trade-offs of the discounting approach.

Key Insights and Ideas

  • End-of-Horizon Sensitivity: Periodic systems are sensitive to the "phase" at which the prediction horizon ends. By discounting the end of the horizon, LDE-MPC makes the controller less obsessed with ending at a specific point in the cycle and more focused on moving toward the cycle itself.
  • Zero Offline Design: Unlike $p^*$-step MPC or terminal-cost methods, LDE-MPC requires zero knowledge of the optimal orbit or period. The discount factor is purely a function of the horizon length $N$.
  • Robustness by Simplicity: Because the discount factor doesn't depend on system parameters, the scheme is inherently robust to online changes in costs or system dynamics.

Key Results

  • Performance Guarantees: The authors mathematically prove that the asymptotic average performance of LDE-MPC converges to the true optimum as the horizon $N$ increases.
  • Stability: They prove "practical asymptotic stability," meaning the system will converge to a small neighborhood of the optimal periodic orbit.
  • Superior Transient Behavior: In the harmonic oscillator test, LDE-MPC reached the optimal orbit faster than the state-of-the-art $p^*$-step MPC. As seen in Figure 5 and Figure 6, LDE-MPC (blue) achieves optimal asymptotic performance and exhibits better transient behavior than the undiscounted alternatives.
Performance comparison in Example 18
Figure 5: LDE-MPC (blue) matches the optimal performance of $p^*$-step MPC (green) while standard MPC (orange) fails for many horizons.

Limitations and Future Work

The main drawback discovered is the convergence rate. In systems where the optimal behavior is a steady state (Example 19), LDE-MPC converges much slower than standard MPC. While standard MPC converges exponentially, LDE-MPC's error vanishes at a rate of roughly $1/N^2$. This means for steady-state systems, you might need a much longer horizon to get the same precision.

Future Research Directions: * Hybrid Discounting: Developing discount functions that are constant for the first half of the horizon and linear for the second half to recover fast steady-state convergence. * Generalizing Behaviors: Testing if LDE-MPC works for even more complex behaviors, like quasi-periodic orbits. * Robustness to Noise: Extending the proofs to systems with stochastic disturbances.

Summary updated

BibTeX
@article{schwenkel2024linearly,
  author = {Lukas Schwenkel and Alexander Hadorn and Matthias A. Müller and Frank Allgöwer},
  title = {{Linearly discounted economic MPC without terminal conditions for periodic optimal operation}},
  journal = {Automatica},
  year = {2024},
  url = {https://openreview.net/forum?id=5QfEL1SJ9w},
}
Figure