Abstract
Model Predictive Control (MPC) is a computationally demanding control technique that allows dealing with multiple-input and multiple-output systems while handling constraints in a systematic way. The necessity of solving an optimization problem at every sampling instant often limits the application scope to slow dynamical systems or results in expensive computational hardware implementations. Traditional MPC design is based on manual tuning of software and computational hardware design parameters, which leads to suboptimal implementations. This paper proposes a framework for automating the MPC software and computational hardware co-design, achieving the optimal trade-off between computational resource usage and controller performance. The proposed approach is based on a multi-objective optimization algorithm, BiMADS. Numerical experiments on CPU and FPGA implementations show that optimization-based design outperforms traditional statistical sampling-based design exploration techniques.
Introduction
Model Predictive Control (MPC) is a powerful technique for handling complex system constraints by solving an optimization problem at every sampling instant. However, this "optimization-on-the-fly" requirement makes MPC computationally expensive, historically limiting its use to slow systems like chemical plants or requiring high-end hardware.
Traditionally, the design process is siloed: control engineers tune software parameters (e.g., prediction horizon), and hardware engineers later attempt to fit the algorithm onto a chip. This decoupled approach is suboptimal because software and hardware parameters are deeply coupled—changing the prediction horizon directly impacts hardware logic requirements and CPU execution time. Manual tuning is often a "trial and error" process that fails to explore the massive parameter space effectively.
Methodology
The authors propose an automated multi-objective co-design framework using BiMADS (Bi-objective Mesh Adaptive Direct Search). BiMADS is a derivative-free optimization algorithm ideal for this application because the objective functions—such as FPGA synthesis results or closed-loop simulations—are "black boxes" without analytical derivatives.
Target Platforms and Controller
The framework was tested on a Xilinx Zynq-7000 SoC, evaluating both the ARM Cortex-A9 CPU and the Artix-7 FPGA fabric. The controller utilizes the Fast Gradient Method (FGM), chosen for its simplicity and predictable execution in embedded environments.
Benchmark System
The framework was evaluated using a standard control theory benchmark: a Mass-Spring-Damper System consisting of a chain of ten masses. Performance was measured via closed-loop simulations across 20 different initial conditions to ensure robustness.
Key Insights: Software-Hardware Coupling
A critical finding of this research is that software parameters like sampling time ($T_s$) and horizon length ($N$) significantly affect the "condition number" of the underlying mathematical problem. This coupling means that software choices directly dictate the computational effort required by the hardware to find a solution.
Key Results
The researchers compared BiMADS against Latin Hypercube Sampling (LHS), a sophisticated statistical sampling method. In all tests, the optimization-based approach identified superior designs on the Pareto frontier:
- CPU Implementation: With a 100ms computational budget, the automated design achieved a settling time of 9.75 seconds, outperforming the best LHS design (10.31 seconds).
- FPGA Implementation: The framework successfully traded silicon area (logic usage) for control precision. For a resource limit of $R_{FPGA} = 0.1$, the automated design achieved a settling time of 8.71 seconds, significantly better than the 10.87 seconds from LHS.
Conclusion and Future Work
This framework demonstrates that automatic co-design is a viable and superior alternative to manual tuning, even when hardware synthesis is time-consuming. Future work aims to extend the framework to handle more than two objectives (e.g., adding power consumption) and to incorporate surrogate models to speed up the optimization process by approximating hardware behavior without requiring full synthesis for every evaluation.
Summary updated