Introduction
Model Predictive Control (MPC) is a cornerstone of modern control engineering, enabling systems to navigate complex environments while adhering to safety and operational constraints. However, when the underlying system dynamics are modeled using Deep Neural Networks (DNNs), the resulting optimization problem becomes computationally intensive. This paper addresses the trade-off between accuracy and speed in DNN-based MPC, introducing an "Enhanced Linear Relaxation" (eLR) method that bridges the gap between slow exact solvers and inaccurate fast approximations.
The ReLU Bottleneck
The primary challenge in optimizing over a DNN model lies in the Rectified Linear Unit (ReLU) activation function. ReLU is piecewise linear and non-differentiable, which transforms the MPC optimization into a non-convex problem.
As shown in Figure 1, engineers typically face two suboptimal choices:
- Mixed Integer Programming (MIP): This approach (Fig 1b) treats each ReLU as a binary switch. While it provides an exact solution, its computational complexity grows exponentially with the network's size, making it unsuitable for real-time applications.
- Linear Relaxation (LR): This method (Fig 1c) bounds the ReLU function within a linear envelope. While computationally efficient, the "relaxation gap" often leads to significant tracking errors and system drift.
Enhanced Linear Relaxation (eLR)
The proposed eLR method improves upon standard linear relaxation by introducing a specific penalty term into the MPC cost function. This term minimizes the deviation between the approximated neural network output and the desired steady-state target. By penalizing the "relaxation gap," the controller is incentivized to find solutions where the approximation is most accurate, effectively "pulling" the system toward the performance of an exact solver without the associated computational burden.
Performance and Scalability
The effectiveness of eLR was evaluated using an inverted pendulum benchmark, testing various network architectures and prediction horizons.
As illustrated in Figure 4, the eLR method achieves tracking accuracy comparable to the exact MIP solver, even as the number of hidden layers increases. While the standard LR method's tracking error surges beyond 50% for deeper networks, eLR maintains near-zero error. Crucially, eLR's runtime remains consistently low (approximately 0.01 seconds), whereas the MIP solver's runtime scales exponentially, exceeding real-time limits (0.1s) once the network depth surpasses two layers.
Conclusion
The Enhanced Linear Relaxation framework provides a scalable solution for real-time MPC using deep neural network models. By combining the speed of linear approximations with the accuracy of exact solvers through a clever penalty formulation, eLR enables the deployment of complex, high-fidelity models in time-sensitive robotics and autonomous systems. Future research will explore extending these techniques to other activation functions and robust control under model uncertainty.
Summary updated