Equivalence of Optimality Criteria for Markov Decision Process and Model Predictive Control

Arash Bahari Kordabad, Mario Zanon, Sebastien Gros

TL;DR

This paper establishes a theoretical bridge between Markov Decision Processes (MDPs) and Model Predictive Control (MPC), demonstrating that an MPC scheme with a modified cost function can perfectly replicate the optimal policies and value functions of an MDP, even when using an imperfect model. This opens the door for using Reinforcement Learning (RL) to tune MPC controllers for optimal MDP performance.

What Problem Does This Paper Address?

Markov Decision Processes (MDPs) are a powerful framework for modeling sequential decision-making problems, but solving them can be computationally intractable due to the "curse of dimensionality" and the need for an exact model of the system's dynamics. Reinforcement Learning (RL) offers a way to learn optimal policies without an exact model, but formally analyzing the stability and safety of RL-derived policies, especially those from deep neural networks, is challenging.

Model Predictive Control (MPC) is a widely used control strategy that uses a (potentially inexact) model to optimize control actions over a finite horizon. While MPC offers advantages in handling constraints and stability analysis, its direct application to MDPs often requires specific cost function modifications to align with MDP optimality criteria. This paper addresses the gap of formally connecting MDP optimality to MPC, particularly for undiscounted MDPs and when the MPC uses an imperfect model, making it a more practical tool for RL.

Methods

The core of this paper lies in establishing an equivalence between MDP optimality criteria and a finite-horizon, undiscounted Optimal Control Problem (OCP). The key insight is that by carefully selecting a modified stage cost and terminal cost for the OCP, the optimal policy and value function of the original MDP (whether discounted or undiscounted) can be recovered.

Specifically, the authors propose:

  • Modified Cost Functions: They derive specific forms for the terminal cost $T(s)$ and stage cost $L(s, a)$ for the OCP. These costs are designed to "correct" for the model mismatch and the finite horizon of the OCP, effectively making it behave like an infinite-horizon, exact-model MDP.
  • MPC as a Parameterized OCP: A deterministic MPC scheme is presented as a special case of this OCP. The MPC's model is allowed to be imperfect, and its cost functions are parameterized.
  • Reinforcement Learning for Tuning: The parameterized MPC scheme, with its tunable parameters (model parameters, cost function parameters), can then be optimized using RL algorithms (like Q-learning or policy gradient). This allows the MPC to learn the optimal MDP policy and value function by adjusting its internal parameters.

The paper provides theoretical proofs (Theorems 1 and 2) for the equivalence under specific assumptions about the boundedness of the value function.

Datasets

Not discussed in the paper. The paper focuses on theoretical development and uses analytical examples and simulations of well-known control problems.

Key Insights and Ideas

  • MPC as a Universal MDP Solver: The paper demonstrates that MPC, when equipped with the right cost modifications, can act as a powerful and structured function approximator for any MDP, not just those with linear dynamics or quadratic costs.
  • Bridging the Gap between RL and Control Theory: By showing the equivalence, the paper provides a formal link between the learning-centric approach of RL and the stability-focused, model-based approach of MPC. This allows leveraging the strengths of both fields.
  • Model Mismatch is Manageable: The theoretical results hold even when the MPC's internal model is inaccurate, which is a crucial practical consideration. The modified cost functions compensate for this mismatch.
  • Undiscounted OCP for Stability: The paper favors using undiscounted OCPs for the MPC formulation, as stability analysis for undiscounted problems is generally more straightforward and well-developed in control theory.

Key Results

  • Theoretical Equivalence: The paper formally proves that a finite-horizon, undiscounted OCP with appropriately chosen stage and terminal costs can perfectly recover the optimal policy and value function of a discounted or undiscounted MDP, even with an inexact model.
  • Analytical Verification: The theoretical findings are validated analytically in the context of a Linear Quadratic Regulator (LQR) problem.
  • Simulation Results: Numerical simulations on examples like a non-quadratic stage cost problem, an inverted pendulum, and a CSTR demonstrate that RL can effectively tune the parameterized MPC to approximate the optimal MDP policies and value functions, leading to improved closed-loop performance and reduced constraint violations. For instance, in the inverted pendulum example, the difference between the MPC-based value/policy and the true optimal values decreases significantly after RL training.

Limitations and Future Work

  • Assumptions: The theoretical results rely on assumptions about the boundedness of the value function under the optimal policy and the existence of a non-empty set $S$ with this property. While these assumptions are discussed and illustrated with examples, their practical verification for complex systems can still be challenging.
  • Cost Function Derivation: While the paper provides the form of the modified costs, their exact derivation can be computationally intensive, especially for nonlinear systems.
  • Parameterization Choice: The paper suggests parameterizing the MPC's model and costs. The choice of parameterization (e.g., linear model, quadratic costs) can impact the approximation quality.
  • Future Work: The authors suggest exploring more complex parameterizations for the MPC scheme, investigating robust MPC formulations to handle constraint violations more explicitly, and further analyzing the theoretical guarantees for different types of MDPs and MPC models. The potential for using this framework for real-world applications where exact models are unavailable is also highlighted.

Summary updated

BibTeX
@article{kordabad2024equivalence,
  author = {Arash Bahari Kordabad and Mario Zanon and Sebastien Gros},
  title = {{Equivalence of Optimality Criteria for Markov Decision Process and Model Predictive Control}},
  journal = {IEEE Trans. Automatic Control},
  year = {2024},
  doi = {10.1109/tac.2023.3277309},
}
Figure