Abstract
Faster, cheaper, and more power efficient optimization solvers than those currently offered by general-purpose solutions are required for extending the use of model predictive control (MPC) to resource-constrained embedded platforms. We propose several custom computational architectures for different first-order optimization methods that can handle linear-quadratic MPC problems with input, input-rate, and soft state constraints. We provide analysis ensuring the reliable operation of the resulting controller under reduced precision fixed-point arithmetic. Implementation of the proposed architectures in FPGAs shows that satisfactory control performance at a sample rate beyond 1 MHz is achievable even on low-end devices, opening up new possibilities for the application of MPC on embedded systems.
Introduction
Model Predictive Control (MPC) has long been regarded as the "gold standard" for controlling systems with complex physical constraints, such as actuator limits or safety-critical state bounds. By solving a constrained optimization problem at every sampling instant, MPC can proactively manage system behavior. However, this computational intensity historically restricted MPC to "slow" processes—such as those found in the chemical or petroleum industries—where sampling intervals are measured in seconds or minutes.
For high-speed applications like power electronics, robotics, or disk drive positioning, the millisecond or microsecond requirements have traditionally rendered online optimization infeasible on embedded hardware. While "explicit MPC" (which pre-calculates solutions) offers a workaround, it suffers from exponential complexity as the number of constraints increases. This paper presents a paradigm shift: by co-designing optimization algorithms with custom hardware architectures, MPC can be executed at Megahertz rates on low-cost embedded devices.
Methodology: Hardware-Tailored Optimization
The research moves away from traditional interior-point methods, which involve complex matrix inversions and high-precision floating-point math. Instead, the authors leverage first-order optimization methods that are better suited for parallel hardware execution.
1. Optimization Algorithms
Two primary algorithms are explored based on the complexity of the constraints:
- Fast Gradient Method (FGM): Targeted at problems with simple input constraints. FGM is highly parallelizable, relying primarily on additions and multiplications, making it ideal for high-throughput FPGA implementation.
- Alternating Direction Method of Multipliers (ADMM): Employed for more complex scenarios involving state and rate constraints. The authors utilize a "soft constraint" penalty approach to maintain feasibility even in the presence of external disturbances.
2. Fixed-Point Arithmetic and Stability
To minimize power consumption and hardware area, the architectures utilize fixed-point arithmetic rather than standard floating-point units. A critical contribution of this work is the rigorous stability analysis. Using Lyapunov methods, the authors provide a mathematical framework to prove that the round-off errors inherent in fixed-point math do not compromise the controller's stability. This allows engineers to determine the minimum required bit-width a priori, preventing the over-provisioning of hardware resources.
3. Custom FPGA Architectures
The authors developed parameterized VHDL generators to produce hardware optimized for these algorithms. Key features include:
- Parallel Adder Trees: Optimized for high-speed matrix-vector multiplication.
- Warm-Starting Logic: Utilizing the solution from the previous time step to accelerate convergence in the current step.
- Logarithmic Scaling: By unrolling optimization loops into hardware, the computational delay scales logarithmically with the problem size, provided the FPGA has sufficient logic cells.
Experimental Evaluation
The performance of the proposed architectures was evaluated using a standard benchmark: a chain of oscillating masses connected by springs. The test cases involved systems with 8 to 12 states and 4 control inputs. Additionally, the research references applications in high-precision positioning for atomic force microscopes (AFM).
Key Results
The implementation results demonstrate a significant leap in embedded control performance:
- Megahertz Sampling: Using FGM for input-constrained problems, the system achieved sampling rates exceeding 1 MHz on a Xilinx Virtex-6 FPGA. Even on the budget-friendly Spartan-6, rates reached approximately 700 kHz.
- Complex Constraint Handling: For problems requiring ADMM (state and rate constraints), solution times ranged from 40 kHz to 200 kHz.
- Precision Efficiency: The study found that 16 to 18 bits of fixed-point precision are often sufficient to match the performance of high-precision floating-point simulations.
- Iteration Efficiency: Satisfactory closed-loop performance was achieved with as few as 15 iterations for FGM and 40 iterations for ADMM.
Discussion and Limitations
While the results are transformative, certain challenges remain. The analytical bounding of overflow for ADMM is more complex than for FGM, currently requiring simulation-based estimation for the Lagrange multipliers. Furthermore, while the architectures are highly parallel, the hardware resource requirements (multipliers and logic gates) grow with the problem size, which may limit the complexity of MPC problems solvable on the smallest FPGAs. Finally, the current work focuses on linear-quadratic MPC; extending these high-speed architectures to non-linear MPC remains a significant future challenge.
Conclusion
By bridging the gap between optimization theory and hardware architecture, this work demonstrates that MPC is no longer confined to slow-moving systems. The ability to solve optimization problems at Megahertz rates on low-power, low-cost FPGAs opens new possibilities for advanced control in high-speed robotics, power electronics, and beyond.
Summary updated