[Paper Review] A Neural Network Architecture to Learn Explicit MPC Controllers from Data
This paper proposes a neural network architecture with two linear layers and a parametric quadratic program (pQP) layer to learn explicit Model Predictive Control (eMPC) laws from data. By training the network to approximate the optimal MPC controller, the method reduces storage and computation costs by up to 96.7% and 88.4%, respectively, while maintaining near-optimal performance with minimal steady-state error.
We present a methodology to learn explicit Model Predictive Control (eMPC) laws from sample data points with tunable complexity. The learning process is cast in a special Neural Network setting where the coefficients of two linear layers and a parametric quadratic program (pQP) implicit layer are optimized to fit the training data. Thanks to this formulation, powerful tools from the machine learning community can be exploited to speed up the off-line computations through high parallelization. The final controller can be deployed via low-complexity eMPC and the resulting closed-loop system can be certified for stability using existing tools available in the literature. A numerical example on the voltage-current regulation of a multicell DC-DC converter is provided, where the storage and on-line computational demands of the initial controller are drastically reduced with negligible performance impact.
Motivation & Objective
- To develop a data-driven method for learning explicit MPC controllers with tunable complexity.
- To reduce the memory and computational burden of explicit MPC without sacrificing control performance.
- To enable deployment of simplified eMPC controllers via neural network approximation with certified stability.
- To provide a framework that allows post-training certification of closed-loop stability using existing tools.
- To demonstrate the approach on a real-world power electronics application with significant complexity reduction.
Proposed method
- The method uses a neural network with two linear layers and an implicit parametric quadratic program (pQP) layer to represent the dual problem of a linear quadratic MPC.
- The network is trained using supervised learning with mean squared error loss and Adam optimization on sampled data from the optimal MPC controller.
- The pQP layer encodes the Karush-Kuhn-Tucker conditions of the MPC optimization problem, enabling exact representation of linear MPC with quadratic cost.
- After training, the network is converted into a piecewise-affine (PWA) controller, which can be deployed as a simplified eMPC with reduced complexity.
- The architecture allows incremental complexity control by adjusting the size of the pQP layer, enabling trade-offs between accuracy and efficiency.
- Feasibility is ensured by replacing projection layers with a saturation function and using the Lunze transform to decouple control components.
Experimental results
Research questions
- RQ1Can a neural network architecture with a pQP layer accurately approximate explicit MPC controllers from data?
- RQ2To what extent can the complexity of eMPC controllers be reduced using this neural network approach while preserving performance?
- RQ3Can the resulting approximated controller be certified for closed-loop stability using existing tools?
- RQ4How does the size of the pQP layer affect the approximation accuracy and computational efficiency?
- RQ5Can the method be effectively applied to real-world systems such as power electronic converters?
Key findings
- The proposed method reduced storage requirements by 93.4% and 96.7% for the two best-performing models compared to the optimal eMPC controller.
- Worst-case computation time was reduced by 83.7% and 88.4% for the models with pQP layer sizes of 7 and 6, respectively.
- The two best models (n_z = 7 and n_z = 6) met the target specifications in the power electronics case study, with steady-state errors of 0.59% and 1.25% respectively.
- Closed-loop trajectories of the learned controllers remained close to the optimal controller’s trajectories, converging to nearby equilibrium points.
- The method enables post-training stability certification using established tools, ensuring safety and reliability in deployment.
- Training required 23 minutes on a GPU and 42 minutes on a CPU, demonstrating feasibility for practical deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.