# Safe and Near-Optimal Policy Learning for Model Predictive Control using Primal-Dual Neural Networks

arXiv: https://arxiv.org/abs/1906.08257 · HTML: https://mlsanity.com/paper/1906.08257/

## Key facts

- Cited by 13 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 19 Jun 2019.

## Built on by (most cited first, 13 of 13)

- [Tutorial on amortized optimization](https://mlsanity.com/paper/2202.00665/) (2022)
- [Imitation Learning with Stability and Safety Guarantees](https://mlsanity.com/paper/2012.09293/) (2020)
- [Learning to Warm-Start Fixed-Point Optimization Algorithms](https://mlsanity.com/paper/2309.07835/) (2023)
- [DiffuSolve: Diffusion-based Solver for Non-convex Trajectory Optimization](https://mlsanity.com/paper/2403.05571/) (2024)
- [Deep Learning Explicit Differentiable Predictive Control Laws for Buildings](https://mlsanity.com/paper/2107.11843/) (2021)
- [Aligning Diffusion Model with Problem Constraints for Trajectory Optimization](https://mlsanity.com/paper/2504.00342/) (2025)
- [An Improved Data Augmentation Scheme for Model Predictive Control Policy Approximation](https://mlsanity.com/paper/2303.05607/) (2023)
- [Imitation Learning of MPC with Neural Networks: Error Guarantees and Sparsification](https://mlsanity.com/paper/2501.03671/) (2025)
- [Robust Stability of Neural Network-controlled Nonlinear Systems with Parametric Variability](https://mlsanity.com/paper/2109.05710/) (2021)
- [On Building Myopic MPC Policies using Supervised Learning](https://mlsanity.com/paper/2401.12546/) (2024)
- [Reinforcement Learning Compensated Model Predictive Control for Off-road Driving on Unknown Deformable Terrain](https://mlsanity.com/paper/2408.09253/) (2024)
- [GLENS: Global Search via Learning from Solver Iterates with Diffusion Models](https://mlsanity.com/paper/2606.00366/) (2026)
- [Memory-Computation Tradeoffs in Semi Amortized Parametric Optimization](https://mlsanity.com/paper/2607.20769/) (2026)

## Abstract (arXiv)

In this paper, we propose a novel framework for approximating the explicit MPC law for linear parameter-varying systems using supervised learning. In contrast to most existing approaches, we not only learn the control policy, but also a "certificate policy", that allows us to estimate the sub-optimality of the learned control policy online, during execution-time. We learn both these policies from data using supervised learning techniques, and also provide a randomized method that allows us to guarantee the quality of each learned policy, measured in terms of feasibility and optimality. This in turn allows us to bound the probability of the learned control policy of being infeasible or suboptimal, where the check is performed by the certificate policy. Since our algorithm does not require the solution of an optimization problem during run-time, it can be deployed even on resource-constrained systems. We illustrate the efficacy of the proposed framework on a vehicle dynamics control problem where we demonstrate a speedup of up to two orders of magnitude compared to online optimization with minimal performance degradation.
