Problemcore
Continuous-time algebraic Riccati equation
Also called CARE.
Find a symmetric P with A^T P + PA - PBR^(-1)B^T P + Q = 0 such that A - BR^(-1)B^T P is Hurwitz.
- Model
- Real RAM
The continuous-time algebraic Riccati equation (CARE) is the matrix equation
in a symmetric unknown . The problem is to find its stabilizing solution: the solution for which is Hurwitz. This solution gives the optimal gain of the infinite-horizon LQR problem and the optimal cost . The same equation, with and replaced by and , gives the gain of the steady-state Kalman-Bucy filter. The CARE is quadratic in , so it can have many solutions or none. The stabilizing solution theorem gives when the stabilizing one exists, and the Hamiltonian matrix gives all solutions in terms of its invariant subspaces. The discrete-time counterpart is the DARE.
In plain words
For a linear system with a quadratic cost, the best cost from any state is a bowl-shaped function of the state, and a symmetric matrix holds its shape. This matrix must satisfy one balance condition: the rate at which the cost falls along the best motion must equal the cost being paid at that moment. Written out, that condition is the Riccati equation. It is quadratic in the unknown matrix, like the scalar equation for the roots of a parabola, so there are usually several solutions. Only one of them belongs to a controller that brings the state back to zero. That one is the answer to look for. Numerical methods find it by a matrix eigenvalue problem of twice the size, or by a sequence of linear matrix equations.
Definition
Input: , , and . Write , which is symmetric and positive semidefinite. The Riccati map is
A solution is a symmetric with . It is stabilizing if is Hurwitz. Output: the stabilizing solution and the gain , or the report that no stabilizing solution exists.
Facts about the answer.
- There is at most one stabilizing solution. If and are both stabilizing, the difference satisfies . This is a Sylvester equation whose two coefficient matrices are both Hurwitz, so its only solution is .
- If is stabilizable and is detectable, the stabilizing solution exists and is positive semidefinite (Kučera 1972). It is then the only positive semidefinite solution.
- The stabilizing solution, when it exists, is the largest symmetric solution: for every symmetric with . Proof: with , the identity gives , and a Lyapunov equation with a Hurwitz matrix and a positive semidefinite right side has a solution .
- solves the CARE if and only if the column space of is invariant under the Hamiltonian matrix . Indeed is the same as . The stabilizing solution belongs to the stable invariant subspace of .
Variants
- Cross term. For the cost , the equation is , and the gain is . It is the CARE of the data and .
- Indefinite quadratic term. In H-infinity control and the bounded real lemma, the matrix is or a similar difference, which need not be positive semidefinite. The stabilizing solution is still read from the Hamiltonian matrix, but the positive semidefinite theory of this page does not apply.
- Riccati inequality. , which is an LMI in after a Schur complement. When the stabilizing solution exists, the same identity shows that it bounds every solution of the inequality from above.
- Generalized CARE. With a descriptor matrix , the equation is , solved through a generalized eigenvalue problem.
- Riccati differential equation. with a terminal value. It is the finite-horizon version (finite-horizon LQR), and the CARE is its equilibrium.
- Filter form. for the error covariance of the Kalman-Bucy filter. It is the CARE of .
Examples
Scalar. With the CARE is . For the roots are
The plus sign gives the stabilizing solution. For , , the gain is and the closed loop is . The other root is negative and gives the closed loop .
Double integrator. With , , , and , the three entries of the CARE are , and . The choice gives , so there is no real solution with it. The choice gives and . So the equation has exactly two real symmetric solutions:
is positive definite and gives and the closed loop polynomial , which is Hurwitz. is negative definite and gives , with both roots in the right half plane. As the order statement says, .
No quadratic term. With the CARE is the Lyapunov equation , and the stabilizing solution exists exactly when is Hurwitz. For and , the solution is .
No detectability. For , and , the CARE is . Both and are positive semidefinite solutions. Only is stabilizing (closed loop ), and leaves the closed loop at . So positive semidefinite does not imply stabilizing when detectability fails.
No stabilizing solution. For , and , the CARE is . The only solution is , with closed loop , which is not Hurwitz. Here has an unobservable mode on the imaginary axis.
Known algorithms
- Schur method (Laub 1979): compute an ordered Schur form of the Hamiltonian matrix, take the first Schur vectors , and set . It costs operations and is the usual dense method. When is badly conditioned, the QZ form of an extended pencil avoids forming (Van Dooren, 1981; see the QZ algorithm).
- Kleinman iteration: Newton's method on . Each step solves a Lyapunov equation; from a stabilizing start the iterates decrease to and converge quadratically. It is also used to refine the result of the Schur method.
- Infinite-horizon LQR by the Riccati differential equation integrated to steady state. It is simple but slow: the convergence is linear, and the slowest closed loop pole sets its rate.
- The matrix sign function of and structure-preserving doubling, both with quadratic convergence (see Bini, Iannazzo and Meini).
- For large sparse with few inputs and low rank , low-rank Newton methods with ADI or Krylov solvers for the Lyapunov steps compute a low-rank factor of .
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Kleinman iteration | O(k (n^6 + m^3)) worst | O(n^4 + m^2) extra | deterministicnot exactiterativeiterative | 1 language |
| Schur method for Riccati equations | O(c n^3) worst | O(n^2) extra | deterministicnot exactiterativeiterative | 1 language |
Bounds
- Count (a theorem): every solution, symmetric or not, corresponds to an -dimensional invariant subspace of with a nonsingular top block. If the eigenvalues of are distinct, has invariant subspaces of dimension , so the CARE has at most solutions, real or complex.
- Exactness (a theorem): the entries of are algebraic numbers, often irrational, as shows. No finite rational algorithm gives exactly in general, and the methods above are iterative.
- Cost: the dense methods use arithmetic operations. Kleinman's method uses per step with the Bartels-Stewart method for the Lyapunov equation, or per step if the Lyapunov equation is solved in Kronecker form.
- Sensitivity (a theorem on an example): take , and . Then and , which grows without bound as . The closed loop pole and the eigenvalues of approach the imaginary axis at the same time. In general (a rule of thumb), the CARE is badly conditioned when the Hamiltonian matrix has eigenvalues close to the imaginary axis.
Reductions
- CARE to an eigenvalue problem. The stabilizing solution is for any basis of the stable invariant subspace of . This is the base of the Schur method and the sign function method.
- CARE to a sequence of Lyapunov equations. Newton's method: .
- Filter to regulator. The filter equation for is the CARE of , so one solver serves both.
- CARE to DARE. A bilinear (Cayley) change of variables turns a CARE into a DARE with the same solution, under invertibility conditions. The bilinear transform is the map on the variable .
- H2 and H-infinity synthesis to CAREs. The H2 controller needs two CAREs, one for the regulator and one for the filter. The DGKF H-infinity controller needs two Riccati equations with indefinite quadratic terms and a coupling condition.
Applications
- The constant gain of infinite-horizon LQR, and the regulator half of LQG control.
- The steady-state gain of the Kalman-Bucy filter, which is the dual of the regulator.
- The bounded real and positive real lemmas, where a Riccati equation or inequality certifies a bound on the H-infinity norm or passivity.
- Spectral factorization of a positive para-Hermitian matrix function, used in Wiener filtering.
- LQG balanced truncation, which balances the solutions of the regulator and the filter CAREs in place of the Gramians, and the terminal cost of model predictive control for continuous-time plants.
References
- W. M. Wonham, On a matrix Riccati equation of stochastic control, SIAM Journal on Control 6(4), 681-697, 1968, the algebraic Riccati equation of the regulator and its positive semidefinite solution
- Vladimír Kučera, A contribution to matrix quadratic equations, IEEE Transactions on Automatic Control 17(3), 344-347, 1972, the existence and uniqueness of the stabilizing solution under stabilizability and detectability
- Peter Lancaster and Leiba Rodman, Algebraic Riccati Equations, Clarendon Press, Oxford, 1995, the continuous-time equation, its Hermitian solutions and their order
- Kemin Zhou, John C. Doyle and Keith Glover, Robust and Optimal Control, Prentice Hall, 1996, Chapter 13, Algebraic Riccati Equations
- Alan J. Laub, A Schur method for solving algebraic Riccati equations, IEEE Transactions on Automatic Control 24(6), 913-921, 1979, the computation of the stabilizing solution from an ordered Schur form of the Hamiltonian matrix
- Dario A. Bini, Bruno Iannazzo and Beatrice Meini, Numerical Solution of Algebraic Riccati Equations, SIAM, 2012, the survey of solution methods, with Newton, doubling and the matrix sign function
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 6VY8RZ Edit this page History Report an error Markdown