Abstract
In almost all algorithms for Model Predictive Control (MPC), the most time-consuming step is to solve some form of Linear Quadratic (LQ) Optimal Control Problem (OCP) repeatedly. The commonly recognized best option for this is a Riccati recursion based solver, which has a time complexity of $\mathcal{O}(N(n_x^3 + n_x^2 n_u + n_x n_u^2 + n_u^3))$. In this paper, we propose a novel Brunovsky Riccati Recursion algorithm to solve LQ OCPs for Linear Time Invariant (LTI) systems. The algorithm transforms the system into Brunovsky form, formulates a new LQ cost (and constraints, if any) in Brunovsky coordinates, performs the Riccati recursion there, and converts the solution back. Due to the sparsity (block-diagonality and zero-one pattern per block) of Brunovsky form and the data parallelism introduced in the cost, constraints, and solution transformations, the time complexity of the new method is greatly reduced to $\mathcal{O}(n_x^3 + N(n_x^2 n_u + n_x n_u^2 + n_u^3))$ if $N$ threads/cores are available for parallel computing.
Introduction
Model Predictive Control (MPC) has become a standard for controlling complex dynamical systems, but its real-time implementation is often bottlenecked by the computational burden of solving Optimal Control Problems (OCPs). For Linear Time-Invariant (LTI) systems, these OCPs are typically framed as convex Quadratic Programming (QP) problems. While Riccati recursion is the gold standard for solving these problems due to its linear scaling with the prediction horizon ($N$), it still suffers from cubic scaling with respect to the state dimension ($n_x$).
Traditional efforts to accelerate MPC focus on optimizing the QP solver structure, such as through condensing or partial condensing. However, few approaches exploit the underlying structure of the linear dynamics themselves. This paper introduces a novel algorithm that transforms the system dynamics into a highly sparse "Brunovsky form," effectively turning expensive matrix multiplications into simple memory operations and decoupling the cubic state complexity from the horizon length.
The Brunovsky Riccati Recursion Algorithm
The core innovation of this work is the Brunovsky Riccati Recursion. Rather than solving the OCP in the original state space, the algorithm shifts the problem into a structured coordinate space where the dynamics are represented as independent chains of integrators. The pipeline consists of five primary stages:
- Kalman Decomposition: The system is first decomposed to isolate controllable states. This ensures that computational resources are focused exclusively on the states that the controller can influence.
- Brunovsky Transformation: The controllable subsystem is transformed into Brunovsky form. In this representation, the system matrices ($A$ and $B$) become incredibly sparse, consisting entirely of zeros and ones in a block-diagonal pattern. This is achieved through a combination of deadbeat control and Jordan normal forms.
- Parallelized Cost Transformation: The cost matrices and constraints are mapped into the new Brunovsky coordinates. Since the system is time-invariant, these transformations are constant across the horizon. This allows the transformations to be computed once and applied in parallel across all $N$ time steps.
- Zero-FLOP Riccati Recursion: The Riccati recursion is executed in the Brunovsky space. Because the system matrices contain only 0s and 1s, the most computationally intensive step—matrix-matrix multiplications such as $A^T P A$—requires zero floating-point operations (FLOPs). Instead, these operations are reduced to selective memory copy-pasting.
- Inverse Transformation: Finally, the solution is transformed back to the original coordinate system, a process that is also highly parallelizable.
Complexity and Performance
Theoretical Speedup
The standard Riccati recursion is a serial process with a complexity of $\mathcal{O}(N n_x^3)$. By exploiting the sparsity of the Brunovsky form and utilizing parallel computing for the transformations, the proposed algorithm reduces the complexity to $\mathcal{O}(n_x^3 + N(n_x^2 n_u + n_x n_u^2 + n_u^3))$. Crucially, the $n_x^3$ term is no longer multiplied by the horizon $N$. This represents a fundamental shift in how the algorithm scales for large-scale systems.
Empirical Results
Benchmarking conducted in MATLAB using randomly generated controllable LTI systems demonstrates that the Brunovsky Riccati Recursion significantly outperforms classical serial Riccati recursion as the state dimension increases. Specifically, for systems where $n_x > 20$, the proposed method shows a clear advantage. While the classical method's computation time grows cubically, the Brunovsky approach scales closer to quadratically, as it is dominated by memory operations rather than floating-point matrix multiplications.
Discussion and Future Work
While the theoretical and empirical results are promising, several areas for further development remain. The current prototype relies on MATLAB's sparse matrix handling; a dedicated C++ implementation is expected to yield even greater speedups by fully exploiting the zero-one memory patterns. Additionally, while the mathematical framework supports inequality constraints, full integration into interior point method solvers is a subject for future research. Finally, the numerical conditioning of the Brunovsky transformation must be carefully managed to ensure stability in edge cases where the transformation matrices might become ill-conditioned.
By shifting the focus from solver optimization to dynamic transformation, the Brunovsky Riccati Recursion provides a new pathway for high-speed, large-scale Model Predictive Control.
Summary updated