Papers
Topics
Authors
Recent
Search
2000 character limit reached

Integrated MPC-RL Framework

Updated 27 March 2026
  • The paper presents an integrated control framework that fuses MPC's constraint handling with RL's adaptive policy search for event-triggered decision making.
  • It employs a hierarchical policy to jointly tune meta-parameters such as prediction horizon, cost weights, and event triggers, balancing performance and computation.
  • Empirical results report a 36% reduction in MPC computation time and an 18.4% improvement in control performance, underscoring its practical efficacy.

An integrated Model Predictive ControlReinforcement Learning (MPC–RL) framework is an advanced closed-loop control architecture that combines classic MPC—known for constraint handling and model-based prediction—with reinforcement learning, which enables adaptive policy search, end-to-end performance optimization, and tuning of parameters that influence control structure, operation, and computational efficiency. Such hybrid approaches aim to simultaneously optimize control performance, resource utilization, and computational cost by leveraging both model-based and data-driven learning principles in a unified framework (Bøhn et al., 2021).

1. Architecture and Control Workflow

The integrated MPC–RL framework exposes meta-parameters of the MPC controller (such as prediction horizon, cost-function weights, and event-triggering thresholds) as decision variables for the RL agent. At each plant step tt, the RL-based control loop operates as a hierarchical, event-triggered decision process:

  1. The agent observes an augmented state st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top, encoding the last OCP solve, current state and input, and the “age” since the last solve.
  2. It samples a binary decision ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t) (“recompute MPC?”), where wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr) and σ\sigma is the logistic sigmoid.
  3. If ct=1c_t=1, it samples a prediction horizon Nt{Nmin,,Nmax}N_t\in\{N_{\min},\ldots,N_{\max}\} (from policy πθN\pi^{N}_\theta), solves the MPC open-loop optimal control problem (OCP), and applies the first MPC input ut=u0MPCu_t = u_0^\textrm{MPC}, updating all predicted trajectories and LQR gains.
  4. If ct=0c_t=0, it applies st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top0, using previously planned MPC actions with corrective LQR gains computed by linearizing around the last MPC trajectory.
  5. All four policy components st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top1 share parameters st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top2 and are jointly optimized via PPO.

This structure enables the RL policy to govern both discrete (event-trigger and horizon) and continuous (input selection) meta-parameters, with the event-trigger logic adaptively trading off re-optimization frequency and control performance (Bøhn et al., 2021).

2. Meta-Parameter Optimization and Policy Representation

Key meta-parameters treated as RL actions include:

  • Prediction Horizon st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top3, controlling the look-ahead window and impacting both MPC performance and computational load.
  • MPC Cost-function Weights st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top4, shaping stage cost and control priorities—these also define the LQR feedback law between solves.
  • Event-trigger Threshold st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top5, mapped to the Bernoulli parameter of st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top6.

A hierarchical mixture-distribution policy factorizes as

st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top7

where st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top8 and st=[xˉi,p^i,Ni,xˉt,p^t,ti]s_t = [\bar x_i, \hat p_i, N_i, \bar x_t, \hat p_t, t-i]^\top9 select the structure of the OCP, and the continuous control ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)0 is sampled from a Gaussian whose mean is determined by either the new MPC solution (if ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)1) or the composite MPC-LQR feedback (if ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)2). This policy parametrization ensures efficient exploration in both discrete and continuous spaces (Bøhn et al., 2021).

3. Optimal Control Problem and Dual-Mode Operation

At each event-triggered recomputation (ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)3), the MPC OCP has the generic form:

ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)4

For linear-quadratic cases, stage and terminal costs reduce to ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)5, ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)6.

In between OCP solutions, the control law switches to a dual-mode architecture, applying ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)7 where ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)8 is computed by linearizing the MPC dynamics along the predicted trajectory (Bøhn et al., 2021).

4. Reinforcement Learning Formulation

The RL Markov Decision Process is defined as:

  • State: ctBernoulli(wt)c_t \sim \textrm{Bernoulli}(w_t)9 includes all plant states and OCP “history” variables.
  • Action: wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)0 draws both discrete recomputation/horizon and continuous MPC or LQR perturbations.
  • Reward:

wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)1

with wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)2 imposing episode-ending penalties for constraints and wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)3 penalizing time and effort spent in MPC computation.

End-to-end training is performed with Proximal Policy Optimization (PPO), updating all policy parameters through advantage-weighted policy gradients (Bøhn et al., 2021).

5. Event-Triggered Computation and Computational Efficiency

The event-triggered mechanism, governed by the Bernoulli policy’s logit, determines when to recompute the MPC solution. When wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)4, the OCP is re-solved at a chosen horizon; when wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)5, the controller relies on the shifted MPC plan and associated LQR gain. The RL agent thus learns to:

  • Invoke long horizons when necessary (e.g., instability, risky regions).
  • Avoid unnecessary computation when the system is close to nominal or can be stabilized cheaply by LQR.

Empirical evidence on the inverted pendulum task showed a wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)6 reduction in total MPC computation time (fewer OCP solves, longer intervals between solves) and an wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)7 improvement in control performance compared to the best fixed-horizon, always-recompute MPC baseline, validating the computational and performance synergy of the approach (Bøhn et al., 2021).

6. Training Procedure and Practical Implementation

The control framework is implemented with multiple parallel actors operating under PPO, with episodes terminated on constraint violation or after wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)8 steps. Training involves the following loop:

  • Form state wt=σ(πθc(st))w_t=\sigma\bigl(\pi^{c}_\theta(s_t)\bigr)9, sample decision σ\sigma0.
  • If σ\sigma1, sample σ\sigma2, solve MPC, apply σ\sigma3.
  • If σ\sigma4, apply the next input from the last MPC plan plus LQR correction.
  • Store transitions σ\sigma5.
  • After σ\sigma6 steps, batch PPO updates are performed on the collected trajectories.

Key hyperparameters: σ\sigma7, learning rate σ\sigma8, minibatch size σ\sigma9, PPO clip ct=1c_t=10, value-loss coefficient ct=1c_t=11, no entropy bonus.

Efficient real-time application is ensured by embedding the RL policy evaluation (for the event trigger and horizon) immediately before each control/optimization step, leveraging fast warm-started quadratic/convex solvers whose computational cost scales linearly in ct=1c_t=12 (Bøhn et al., 2021).

7. Significance, Generality, and Empirical Results

The integrated MPC–RL scheme establishes a flexible and computationally scalable paradigm for algorithmic tuning of predictive controllers. It:

  • Automatically selects the sequence of OCP solves (frequency, horizon, and associated cost weights) for each plant state, trading off performance and computation.
  • Recovers significant gains over both naive trial-and-error MPC tuning and fixed-parameter deployments, as shown by substantial cost reduction and compute savings.
  • Is readily extensible: the mixture-policy and meta-parameter RL setup apply to any prediction-based controller with tunable horizon, weights, and event logic.

The approach has been demonstrated to reduce total closed-loop cost by ct=1c_t=13 and MPC computation time by ct=1c_t=14 on well-established control benchmarks, offering a blueprint for future adaptive and resource-aware controllers in embedded and fast real-time environments (Bøhn et al., 2021).


References:

  • “Optimization of the Model Predictive Control Meta-Parameters Through Reinforcement Learning” (Bøhn et al., 2021)
Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Integrated Model Predictive Control–Reinforcement Learning (MPC-RL) Framework.