Problemcore
Discrete-time algebraic Riccati equation
Also called DARE.
Find the stabilizing symmetric solution P of the fixed point equation of the discrete Riccati recursion, which gives the discrete LQR gain.
- Model
- Real RAM
The discrete-time algebraic Riccati equation (DARE) is the matrix equation
in a symmetric unknown . The problem is to find its stabilizing solution: the solution for which is Schur, with . This is the constant optimal gain of the infinite-horizon discrete LQR problem, and is the optimal cost. The equation is the fixed point of the backward Riccati recursion of finite-horizon LQR, so running that recursion long enough is one way to solve it (infinite-horizon LQR). With and replaced by and , it gives the steady-state gain of the Kalman filter. The continuous-time counterpart is the CARE.
In plain words
A sampled system is steered step by step, and each step costs something for the state and something for the input. The best total cost from a state is a bowl-shaped function, held by a symmetric matrix. If the horizon has no end, one step later the future looks exactly the same as now. So the matrix must reproduce itself: the cost of one step plus the best cost from the next state must give back the same matrix. That condition is the discrete Riccati equation. It has several solutions, and only one belongs to a controller that brings the state to zero. The simplest way to find it is to repeat the one-step update from zero until it stops changing. Faster methods use Newton steps or an eigenvalue problem of twice the size.
Definition
Input: , , and . For symmetric the matrix is positive definite, and the Riccati map is
A solution is a symmetric with and invertible. It is stabilizing if is Schur, with . Output: the stabilizing solution and the gain , or the report that none exists.
Facts about the answer.
- The equation has a second form. With , a solution satisfies . This is a Stein (discrete Lyapunov) equation in for a fixed .
- A stabilizing solution is positive semidefinite: from the second form, , and the sum converges because is Schur.
- There is at most one stabilizing solution. Completing the square and summing, as in Lemma 2 of the infinite-horizon LQR proof, shows that is the minimal cost over all inputs with . That minimum does not depend on , and is arbitrary, so two stabilizing solutions are equal.
- If is stabilizable and is detectable, the stabilizing solution exists. It is the only positive semidefinite solution, and the Riccati recursion from converges to it (the stabilizing solution theorem and the infinite-horizon LQR page).
- With and invertible, solves the DARE if and only if the column space of is invariant under the symplectic matrix . Its eigenvalues come in pairs and , and the stabilizing solution belongs to the invariant subspace of the eigenvalues with .
Variants
- Cross term. For the cost , the equation is , and the gain is .
- Singular input weight. In discrete time may be singular, provided stays invertible at the solution. This happens in deadbeat-like problems and in sampled-data problems with a cost that is integrated between the samples.
- Filter form. for the prediction error covariance of the steady-state Kalman filter. It is the DARE of .
- No input. With the DARE is the Stein equation , and its solution is stabilizing exactly when is Schur.
- Without A invertible. The symplectic matrix needs . The pencil does not. It comes from the costate equations and , and the QZ algorithm handles it.
- Discounted cost. A discount gives the DARE of .
Examples
Scalar. With and , . The DARE becomes the quadratic
and the closed loop is .
- : , so , the golden ratio. and the closed loop is . The other root is negative, and its closed loop is not Schur. The Riccati recursion from gives , ratios of Fibonacci numbers.
- , : , so , and the closed loop is .
- , and (not detectable): . The root gives the closed loop . The root gives and the closed loop , so it is the stabilizing solution. The recursion from stays at and never finds it.
- and : , and the only solution gives the closed loop . There is no stabilizing solution, because the mode at is unobservable and on the unit circle.
Sampled double integrator. The double integrator sampled with a zero-order hold of period 1 gives and . With and , the stabilizing solution, to six decimals, is
where agrees with to 59 digits in a computation with 60 digits (a measurement). The closed loop eigenvalues are , with modulus . These are the numbers of the infinite-horizon LQR example. In double precision, 22 passes of the recursion give a DARE residual of in the 2-norm.
Known algorithms
- Value iteration: the Riccati recursion from (infinite-horizon LQR). Each pass costs . The derivative of at the solution is the map , so the convergence is linear with ratio , where is the spectral radius. In the golden ratio example, the ratio is .
- Hewer's method (1971), the discrete version of the Kleinman iteration: from a gain with Schur, solve the Stein equation and update . The iterates decrease to the solution and converge quadratically.
- Schur methods: an ordered Schur form of the symplectic matrix, or an ordered QZ form of the pencil above when is singular or badly conditioned. They cost .
- Doubling and cyclic reduction. A doubling pass doubles the horizon that the recursion covers, so passes reach the horizon , and the convergence is quadratic (see Bini, Iannazzo and Meini).
| 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
- Exactness (a theorem): the entries of are algebraic numbers, and shows that they can be irrational even for integer data. There is no exact finite rational algorithm in general.
- Cost: arithmetic operations per pass or per Newton step with dense methods. Newton steps in Kronecker form cost each.
- Count: as for the CARE, the solutions correspond to -dimensional invariant subspaces of the symplectic matrix with a nonsingular top block, so there are at most when its eigenvalues are distinct.
- Sensitivity (a rule of thumb): the DARE is badly conditioned when the symplectic matrix has eigenvalues close to the unit circle, that is, when the optimal closed loop is close to the edge of the unit disk.
Reductions
- DARE to a fixed point. It is the fixed point of the finite-horizon recursion, so its solution is the limit of finite-horizon costs under the hypotheses above.
- DARE to a sequence of Stein equations. Newton's method, as in Hewer's method.
- DARE to an eigenvalue problem. The stabilizing solution is for a basis of the stable deflating subspace of the pencil, or of the stable invariant subspace of .
- Filter to regulator. The Kalman filter equation for is the DARE of .
- CARE and DARE. A Cayley transform maps one into the other, under invertibility conditions, so a solver for one can solve the other.
- Sampled-data LQR. A continuous cost integrated between samples, with a zero-order hold input, gives a DARE with a cross term and a full weight computed from matrix exponentials.
Applications
- The constant gain of discrete-time LQR, used whenever the controller runs on a computer with a fixed sample time.
- The steady-state gain and error covariance of the Kalman filter.
- The terminal cost and the local controller of linear MPC: with from the DARE makes the finite-horizon cost equal the infinite-horizon cost near the origin.
- Discrete-time H2 and H-infinity synthesis, and the discrete bounded real lemma.
- Econometric and economic models with quadratic loss, where the same equation appears in linear quadratic dynamic programming.
References
- Brian D. O. Anderson and John B. Moore, Optimal Control, Linear Quadratic Methods, Prentice Hall, 1990 (Dover reprint, 2007), the discrete-time regulator and its Riccati equation
- Dimitri P. Bertsekas, Dynamic Programming and Optimal Control, Volume I, fourth edition, Athena Scientific, 2017, Section 3.1, Linear Systems and Quadratic Cost, with the convergence of the Riccati recursion to the algebraic equation
- Kemin Zhou, John C. Doyle and Keith Glover, Robust and Optimal Control, Prentice Hall, 1996, Chapter 21, Discrete Time Control
- Peter Lancaster and Leiba Rodman, Algebraic Riccati Equations, Clarendon Press, Oxford, 1995, the discrete-time equation and its symplectic matrix
- G. A. Hewer, An iterative technique for the computation of the steady state gains for the discrete optimal regulator, IEEE Transactions on Automatic Control 16(4), 382-384, 1971, Newton's method for the DARE, one discrete Lyapunov equation per step
- Dario A. Bini, Bruno Iannazzo and Beatrice Meini, Numerical Solution of Algebraic Riccati Equations, SIAM, 2012, the discrete-time equation, cyclic reduction and doubling
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 2MXQ9Z Edit this page History Report an error Markdown