An alternative use of the Riccati recursion for efficient optimization

https://doi.org/10.1016/j.sysconle.2011.09.018Get rights and content

Abstract

In optimization routines used for on-line Model Predictive Control (MPC), linear systems of equations are solved in each iteration. This is true both for Active Set (AS) solvers as well as for Interior Point (IP) solvers, and for linear MPC as well as for nonlinear MPC and hybrid MPC. The main computational effort is spent while solving these linear systems of equations, and hence, it is of great interest to solve them efficiently. In high performance solvers for MPC, this is performed using Riccati recursions or generic sparsity exploiting algorithms. To be able to get this performance gain, the problem has to be formulated in a sparse way which introduces more variables. The alternative is to use a smaller formulation where the objective function Hessian is dense. In this work, it is shown that it is possible to exploit the structure also when using the dense formulation. More specifically, it is shown that it is possible to efficiently compute a standard Cholesky factorization for the dense formulation. This results in a computational complexity that grows quadratically in the prediction horizon length instead of cubically as for the generic Cholesky factorization.

Introduction

Model Predictive Control (MPC) is one of the most commonly used control strategies in industry. Some important reasons for its success include that it can handle multi-variable systems and constraints on control signals and state variables in a structured way. In each sample, some kind of optimization problem is solved. In the methods considered in this paper, the optimization problem is assumed to be solved on-line. The optimization problem can be of different types depending on which type of system and problem formulation that is used. The most common variants are linear MPC, non-linear MPC and hybrid MPC. In most cases, the effort spent in the optimization problems boils down to solving Newton-system-like equations. Hence, a great deal of research has been done in the area of solving this type of system of equations efficiently when it has the special form from MPC. It is well-known that these equations (or at least a large part of them) can be cast in the form of a finite horizon LQ control problem and as such it can be solved using a Riccati recursion. Some examples of how Riccati recursions have been used to speed up optimization routines can be found in, for example, [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11].

The main purpose of this paper is twofold. First, this paper introduces a new factorization of the KKT coefficient matrix of an MPC problem given in dense form (states eliminated). It is shown that this factorization is closely related to the Cholesky factorization of the coefficient matrix, when the order of the optimization variables is reversed. Second, using this new factorization, a standard Cholesky factorization can be efficiently computed. This makes it possible to develop a drop-in replacement for a generic Cholesky factorization in, for example, standard range-space or null-space Active Set (AS) methods. Compared to the generic factorization, computational performance can be significantly improved for long prediction horizons. The benefit with the proposed factorization compared to standard Riccati based methods is that it requires only small changes to the solver which it is plugged into since the result from the algorithm is a standard Cholesky factorization. This factorization can, as the generic Cholesky factorization, be reused to solve several systems of equations with different right hand sides, and it can be updated using standard methods.

In this article, Sn denotes symmetric matrices with n columns. Furthermore, S++n (S+n) denotes symmetric positive (semi) definite matrices with n columns. The matrix Ī denotes the exchange matrix, which is a matrix with ones in the counter-diagonal and zeros in other elements. Note that ĪMĪ for a matrix M is nothing but M with the rows and columns in reversed order, which can be performed using zero flops. A Sans Serif font is used to indicate that a matrix or a vector is, in some way, composed of stacked matrices or vectors from different time instants. The stacked matrices or vectors have a similar symbol as the composed matrix, but in an ordinary font. For example, Qu=diag(Qu,,Qu).

Section snippets

Problem formulation

The problem considered in this work is minimizext,utt=0N112[xtTutT][QtWtWtTRt][xtut]qtTxtrtTut+12xNTQNxNs.t.x0=x0b0xt+1=Axt+Butbt,tt=0,,N1 where the states xtRn, the initial condition x0Rn, the control inputs utRm, the penalty matrices for the states QtSn, penalty matrices for the control inputs RtSm, the cross penalty matrices WtRn×m, the linear penalties on the states qtRn, the linear penalties on the control signals rtRm, the off-set terms btRn, and the prediction horizon N

A closer look at the optimality conditions

This section is opened with a standard result that summarizes the properties of the Cholesky factorization.

Theorem 1

Cholesky Factorization, [14]

Assume MS+n . Then, there exists a matrix LRn×n such that L is lower triangular, L has nonnegative diagonal entries, and M=LLT which is known as the Cholesky factorization of M . Furthermore, if MS++n, then L is unique and has positive diagonal entries.

To be able to exploit problem structure, it is common to use a permutation matrix S such that a matrix M can be factored as M=SLLTST

Conclusions

This work presents a method by which Riccati recursions commonly used for high speed MPC applications can be used to compute a generic Cholesky factorization often used in non-structure exploiting optimization routines. The result provides both a new factorization of the coefficient matrix in the KKT system as well as a new way to obtain fast numerical linear algebra for these problems. The classical Riccati method has a computational complexity that grows as O(N) and the generic Cholesky

References (15)

  • Jonson Henrik, A Newton method for solving non-linear optimal control problems with general constraints. Ph.D. thesis,...
  • Christopher V. Rao et al.

    Application of interior-point methods to model predictive control

    J. Optimiz. Theory App.

    (1998)
  • Anders Hansson

    A primal–dual interior-point method for robust optimal control of linear discrete-time systems

    IEEE. Trans. Autom. Control

    (2000)
  • Roscoe A. Bartlett et al.

    Quadratic programming algorithms for large-scale model predictive control

    J. Process Contr.

    (2002)
  • Lieven Vandenberghe, Stephen Boyd, Mehrdad Nouralishahi, Robust linear programming and optimal control. Technical...
  • Magnus A˚kerblad et al.

    Efficient solution of second order cone program for model predictive control

    Internat. J. Control

    (2004)
  • Daniel Axehill, Anders Hansson, A mixed integer dual quadratic programming algorithm tailored for MPC, in: Proceedings...
There are more references available in the full text version of this article.

Cited by (11)

View all citing articles on Scopus
View full text