Abstract
Quadratic Programming (QP) problems frequently appear as core components when solving constrained optimal control or estimation problems. The focus of this paper is on accelerating an existing Interior Point Method (IPM) for solving QP problems by exploiting the parallel computing characteristics of GPUs. We compare data-parallel and problem-parallel approaches to achieve speedups. The data-parallel approach achieves acceleration by parallelizing vector and matrix computations such as the dot-product, while the problem-parallel approach solves multiple QP problems in parallel using one GPU. Our results show that solving several QP problems in parallel leads to better utilization of GPU resources. This problem-parallel approach is well-suited for implementing a new type of Model Predictive Control (MPC) algorithm characterized by solving multiple copies of MPC in parallel to improve closed-loop performance.
Introduction
Model Predictive Control (MPC) is a powerful tool used in complex systems ranging from chemical plants to aerospace. It works by solving an optimization problem—specifically a Quadratic Programming (QP) problem—at every sampling interval to find the best control action.
As applications move toward high-speed environments like drones or fast-acting robotics, the time allowed to solve these QPs shrinks. While GPUs are renowned for parallel processing, most research focuses on "data-parallelism"—breaking one large matrix operation into smaller pieces. However, many real-world control problems are "small" but require extremely fast execution or multiple simultaneous variations. This paper investigates how to map these optimization structures onto GPU architecture to break the real-time bottleneck.
Methodology
The researchers implemented an Interior Point Method (IPM) rather than the traditional Active Set Method (ASM). IPM was chosen for its predictable, "regular" structure; it solves a similar system of linear equations in every iteration, making it a superior fit for the rigid Single Instruction, Multiple Data (SIMD) architecture of a GPU.
Two primary parallelization strategies were explored using NVIDIA's CUDA:
- Data-Parallel Approach: For large QP problems, matrix partitioning (tiling) was used. By breaking large matrices into smaller blocks that fit into the GPU's fast "shared memory," the system reduces the bottleneck of slow global memory access.
- Problem-Parallel Approach: For smaller QP problems that do not fully utilize the GPU's thousands of cores, multiple independent QP problems are solved concurrently. A "flag-based" system manages varying iteration counts, preventing finished problems from wasting resources.
Performance was evaluated using randomly generated QP problems parameterized by the number of decision variables ($n$) and inequality constraints ($m_c$), with $m_c = 10n$ to simulate typical control complexity.
Key Results and Insights
The study identified a "Small Problem Trap": data-parallelism (speeding up a single QP) actually performs worse than a CPU for problems under 100 variables due to data transfer overhead and core underutilization. However, for larger scales, the improved matrix partitioning method showed significant gains.
- Matrix Partitioning Gains: The "improved" matrix multiplication (using tiling) was 5x faster than a basic GPU implementation and roughly 6x faster than a sequential CPU program.
- Concurrent Solving: When solving 20 small QP problems (50 variables each) simultaneously, the problem-parallel approach achieved an 11x speedup over solving them one-by-one on a CPU.
- Hardware Utilization: Problem-parallelism successfully activated more Streaming Processors (SMs), leading to higher efficiency for the "small-but-fast" QPs common in industrial control.
Conclusion
This research demonstrates that while IPM's mathematical consistency is its greatest asset for hardware acceleration, the optimal parallelization strategy depends on the problem scale. Future work will focus on addressing sensitivity to rounding errors and exploiting the "sparse banded" matrix structures typical of real-world MPC to further enhance performance. Integrating this solver into a full closed-loop MPC system is the next step toward real-world deployment.
Summary updated