Constraints-Informed Neural-Laguerre Approximation of Nonlinear MPC with Application in Power Electronics

Duo Xu, Rody Aerts, Πέτρος Καραμανάκος, Mircea LazararXiv 2024 · DOI · arXiv

Abstract

This paper considers learning online (implicit) nonlinear model predictive control (MPC) laws using neural networks and Laguerre functions. Firstly, we parameterize the control sequence of nonlinear MPC using Laguerre functions, which typically yields a smoother control law compared to the original nonlinear MPC law. Secondly, we employ neural networks to learn the coefficients of the Laguerre nonlinear MPC solution, which comes with several benefits, namely the dimension of the learning space is dictated by the number of Laguerre functions and the complete predicted input sequence can be used to learn the coefficients. To mitigate constraints violation for neural approximations of nonlinear MPC, we develop a constraints-informed loss function that penalizes the violation of polytopic state constraints during learning. Box input constraints are handled by using a clamp function in the output layer of the neural network. We demonstrate the effectiveness of the developed framework on a nonlinear buck-boost converter model with sampling rates in the sub-millisecond range, where online nonlinear MPC would not be able to run in real time. The developed constraints-informed neural-Laguerre approximation yields similar performance with long-horizon online nonlinear MPC, but with execution times of a few microseconds, as validated on a field-programmable gate array (FPGA) platform.

Introduction

Model Predictive Control (MPC) is a powerful tool for controlling complex systems because it can anticipate future behavior and explicitly handle physical constraints. However, Nonlinear MPC (NMPC) requires solving a complex optimization problem at every time step. In power electronics, where components switch at high frequencies, control decisions must be made in sub-millisecond intervals. Standard NMPC is often too computationally intensive to run online in these environments. While Neural Networks (NNs) can be trained to mimic NMPC at much higher speeds, they often suffer from constraint violations and high complexity when predicting long horizons. This paper addresses these challenges by combining Neural Networks with Laguerre functions and a constraints-informed training approach.

Methodology

The proposed framework utilizes a three-pronged approach to enable high-speed, safe nonlinear control:

Laguerre Parameterization

Instead of requiring the NN to predict every individual step in a future control horizon, the authors use Laguerre functions. The network predicts a small set of coefficients that describe a smooth control curve. This reduces the number of output variables and naturally results in a more robust, "smoother" control law that is less sensitive to high-frequency noise.

Architecture of the proposed Neural-Laguerre controller, showing the integration of hidden layers with a Laguerre coefficient layer and a feedback loop for state prediction.

Constraints-Informed (ConInf) Loss

To ensure safety, the authors developed a "Constraints-Informed" loss function. While hard input constraints (like maximum duty cycle) are handled by a clamp function in the output layer, state constraints (like over-current protection) are managed during training. The loss function penalizes the network for predictions that would lead to a constraint violation in the next time step, effectively teaching the network the physical limits of the system.

Experimental Results

The framework was tested on a simulated nonlinear buck-boost DC-DC converter. Data was generated using a quasi-random Halton sequence to sample 20,000 feasible states, with ground truth labels provided by an offline NMPC solver.

Constraint Satisfaction

Standard neural network approximations often fail to respect state constraints near the boundaries of the operating region. As illustrated in the state-space analysis, standard approximations can lead to numerous violations (indicated by red dots) where the system state exits the feasible set. The proposed ConInf training successfully mitigates these issues, ensuring the controller remains within safe operating bounds.

Visualization of state-space violations (red dots) in standard neural network approximations, highlighting the challenge that the Constraints-Informed loss aims to solve.

High-Speed Implementation

When deployed on a Xilinx ZYNQ 7020 FPGA, the parallelized controller achieved an execution time of just 2.8 microseconds. This is significantly faster than the 100-microsecond sampling interval required by the power converter, demonstrating that the Neural-Laguerre approach can bring the benefits of NMPC to ultra-high-speed hardware applications.

Conclusion

By parameterizing control sequences with Laguerre functions and employing a constraints-informed loss function, this work enables the use of Nonlinear MPC in environments with microsecond-level timing requirements. The resulting controller maintains the performance of long-horizon NMPC while ensuring strict adherence to physical system constraints, as validated on FPGA hardware.

Summary updated

Abstract

This paper considers learning online (implicit) nonlinear model predictive control (MPC) laws using neural networks and Laguerre functions. Firstly, we parameterize the control sequence of nonlinear MPC using Laguerre functions, which typically yields a smoother control law compared to the original nonlinear MPC law. Secondly, we employ neural networks to learn the coefficients of the Laguerre nonlinear MPC solution, which comes with several benefits, namely the dimension of the learning space is dictated by the number of Laguerre functions and the complete predicted input sequence can be used to learn the coefficients. To mitigate constraints violation for neural approximations of nonlinear MPC, we develop a constraints-informed loss function that penalizes the violation of polytopic state constraints during learning. Box input constraints are handled by using a clamp function in the output layer of the neural network. We demonstrate the effectiveness of the developed framework on a nonlinear buck-boost converter model with sampling rates in the sub-millisecond range, where online nonlinear MPC would not be able to run in real time. The developed constraints-informed neural-Laguerre approximation yields similar performance with long-horizon online nonlinear MPC, but with execution times of a few microseconds, as validated on a field-programmable gate array (FPGA) platform.
BibTeX
@misc{xu2024constraints,
  author = {Duo Xu and Rody Aerts and Πέτρος Καραμανάκος and Mircea Lazar},
  title = {{Constraints-Informed Neural-Laguerre Approximation of Nonlinear MPC with Application in Power Electronics}},
  year = {2024},
  eprint = {2409.09436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.09436},
}
Figure