Algorithm Search⌘K

Definitioncore

Controllability Gramian

Also called reachability Gramian.

W_c(t), the integral of e^(As)BB^T e^(A^T s) from 0 to t, is positive definite exactly for controllable pairs. For Hurwitz A the infinite integral exists and solves AW + WA^T + BB^T = 0.

The controllability gramian of a linear system x˙=Ax+Bu\dot x = A x + B u is the symmetric matrix Wc(t)=∫0teAsBBTeATsdsW_c(t) = \int_0^t e^{As} B B^T e^{A^T s} ds. It is positive definite exactly when the pair (A,B)(A, B) is controllable, and its inverse gives the least input energy needed to reach each state. The finite horizon form exists for every AA. The infinite integral Wc=∫0∞eAsBBTeATsdsW_c = \int_0^\infty e^{As} B B^T e^{A^T s} ds exists when AA is Hurwitz, and then it is the solution of the Lyapunov equation AWc+WcAT+BBT=0A W_c + W_c A^T + B B^T = 0. Its dual is the observability gramian, and the two together give the Hankel singular values.

Definition

Notation. A∈Rn×nA \in \mathbb{R}^{n \times n} and B∈Rn×mB \in \mathbb{R}^{n \times m}; the time tt is in seconds; eAte^{At} is the matrix exponential. For symmetric matrices, P>0P > 0 means positive definite and P≥0P \ge 0 positive semidefinite.

Finite horizon gramian. For t>0t > 0,

Wc(t)=∫0teAsBBTeATs ds∈Rn×n.W_c(t) = \int_0^t e^{As} B B^T e^{A^T s}\, ds \in \mathbb{R}^{n \times n}.

It exists for every AA. Its properties:

  • Wc(t)W_c(t) is symmetric and Wc(t)≥0W_c(t) \ge 0, since vTWc(t)v=∫0t∣BTeATsv∣2dsv^T W_c(t) v = \int_0^t |B^T e^{A^T s} v|^2 ds.
  • Wc(t)W_c(t) grows with tt: Wc(t2)−Wc(t1)≥0W_c(t_2) - W_c(t_1) \ge 0 for t2≥t1t_2 \ge t_1.
  • range⁡Wc(t)=range⁡[B,AB,…,An−1B]\operatorname{range} W_c(t) = \operatorname{range} [B, AB, \dots, A^{n-1} B] for every t>0t > 0 (proof on Kalman rank condition, Step 2). So Wc(t)>0W_c(t) > 0 for some t>0t > 0 if and only if Wc(t)>0W_c(t) > 0 for all t>0t > 0, if and only if (A,B)(A, B) is controllable.
  • WcW_c solves the matrix differential equation W˙c=AWc+WcAT+BBT\dot W_c = A W_c + W_c A^T + B B^T with Wc(0)=0W_c(0) = 0. Proof: the derivative of the integral is eAtBBTeATte^{At} B B^T e^{A^T t}, and AWc(t)+Wc(t)AT=∫0tdds(eAsBBTeATs)ds=eAtBBTeATt−BBTA W_c(t) + W_c(t) A^T = \int_0^t \frac{d}{ds} \bigl(e^{As} B B^T e^{A^T s}\bigr) ds = e^{At} B B^T e^{A^T t} - B B^T.

Infinite horizon gramian. If AA is Hurwitz, ∣eAs∣|e^{As}| decays exponentially, so the limit

Wc=lim⁡t→∞Wc(t)=∫0∞eAsBBTeATs dsW_c = \lim_{t \to \infty} W_c(t) = \int_0^\infty e^{As} B B^T e^{A^T s}\, ds

exists. Letting t→∞t \to \infty in the identity of the last property gives

AWc+WcAT+BBT=0.A W_c + W_c A^T + B B^T = 0 .

For Hurwitz AA no two eigenvalues have λi+λj=0\lambda_i + \lambda_j = 0, so this equation has exactly one solution, and it is the gramian. Then Wc>0W_c > 0 if and only if (A,B)(A, B) is controllable. If AA is not Hurwitz, the integral can diverge, and a solution of the algebraic equation, when one exists, need not be a gramian.

Minimum energy. Let (A,B)(A, B) be controllable and t>0t > 0. Among all inputs on [0,t][0, t] that steer x(0)=0x(0) = 0 to x(t)=x1x(t) = x_1, the least value of ∫0t∣u(s)∣2ds\int_0^t |u(s)|^2 ds is

Emin⁡(x1,t)=x1TWc(t)−1x1,E_{\min}(x_1, t) = x_1^T W_c(t)^{-1} x_1 ,

and the input u∗(s)=BTeAT(t−s)Wc(t)−1x1u^*(s) = B^T e^{A^T (t - s)} W_c(t)^{-1} x_1 attains it. Proof: let z=Wc(t)−1x1z = W_c(t)^{-1} x_1. Step 3 on the Kalman rank condition page shows that u∗u^* reaches x1x_1. Any other input that reaches x1x_1 is u=u∗+vu = u^* + v with ∫0teA(t−s)Bv(s) ds=0\int_0^t e^{A(t - s)} B v(s)\, ds = 0. Then ∫0tu∗Tv ds=zT∫0teA(t−s)Bv ds=0\int_0^t u^{*T} v\, ds = z^T \int_0^t e^{A(t-s)} B v\, ds = 0, so ∫∣u∣2=∫∣u∗∣2+∫∣v∣2≥∫∣u∗∣2\int |u|^2 = \int |u^*|^2 + \int |v|^2 \ge \int |u^*|^2, and ∫0t∣u∗∣2ds=zTWc(t)z=x1TWc(t)−1x1\int_0^t |u^*|^2 ds = z^T W_c(t) z = x_1^T W_c(t)^{-1} x_1. For a Hurwitz AA and a start in the far past (x(−∞)=0x(-\infty) = 0), the same argument gives x1TWc−1x1x_1^T W_c^{-1} x_1. States along eigenvectors of WcW_c with small eigenvalues are the hard ones to reach. See minimum energy control.

Coordinates. Under xˉ=Tx\bar x = T x the gramian becomes TWcTTT W_c T^T. Its eigenvalues change with TT, so they say nothing by themselves about the system. The eigenvalues of WcWoW_c W_o, with the observability gramian WoW_o, do not change; their square roots are the Hankel singular values, and a balanced realization makes both gramians equal and diagonal.

Discrete time. For xk+1=Axk+Bukx_{k+1} = A x_k + B u_k, Wc(N)=∑k=0N−1AkBBT(AT)kW_c(N) = \sum_{k=0}^{N-1} A^k B B^T (A^T)^k, and Wc(N)>0W_c(N) > 0 for N≥nN \ge n if and only if the pair is controllable. If AA is Schur, the sum to infinity converges and solves the Stein equation AWcAT−Wc+BBT=0A W_c A^T - W_c + B B^T = 0.

Other readings. If ww is white noise of unit intensity and AA is Hurwitz, the steady state covariance of x˙=Ax+Bw\dot x = A x + B w is WcW_c. For a strictly proper G(s)=C(sI−A)−1BG(s) = C (sI - A)^{-1} B with AA Hurwitz, the H2 norm is ∥G∥2=trace⁡(CWcCT)\|G\|_2 = \sqrt{\operatorname{trace}(C W_c C^T)}.

Examples and non-examples

  • Scalar, the check value. a=−1a = -1, b=1b = 1: Wc(t)=∫0te−2sds=(1−e−2t)/2W_c(t) = \int_0^t e^{-2s} ds = (1 - e^{-2t})/2, and Wc=1/2W_c = 1/2, which solves −2W+1=0-2 W + 1 = 0. The least energy to reach x1=1x_1 = 1 is 2/(1−e−2t)2/(1 - e^{-2t}): 3.16403.1640 for t=0.5t = 0.5 s, 2.31302.3130 for t=1t = 1 s and 2.03732.0373 for t=2t = 2 s, with the limit 2=1/Wc2 = 1/W_c. With c=1c = 1, G(s)=1/(s+1)G(s) = 1/(s + 1) and ∥G∥2=1/2=1/2\|G\|_2 = \sqrt{1/2} = 1/\sqrt 2.
  • Scalar, unstable (non-example for the infinite form). a=1a = 1, b=1b = 1: Wc(t)=(e2t−1)/2W_c(t) = (e^{2t} - 1)/2 grows without bound, so there is no infinite gramian. The algebraic equation 2W+1=02 W + 1 = 0 has the solution W=−1/2W = -1/2, which is negative and is not a gramian. The least energy to reach x1=1x_1 = 1 is 2/(e2t−1)2/(e^{2t} - 1), which goes to 00: an unstable mode can be pushed far with little energy if there is time.
  • Double integrator. A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}: eAsB=(s,1)Te^{As} B = (s, 1)^T, so Wc(t)=[t3/3t2/2t2/2t]W_c(t) = \begin{bmatrix} t^3/3 & t^2/2 \\ t^2/2 & t \end{bmatrix} with determinant t4/12>0t^4/12 > 0 for t>0t > 0. The pair is controllable. AA is not Hurwitz, and the infinite gramian does not exist. For t=1t = 1 s and x1=(1,0)x_1 = (1, 0), the least energy is x1TWc(1)−1x1=12x_1^T W_c(1)^{-1} x_1 = 12.
  • A Hurwitz two-state system. A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix} (eigenvalues −1-1, −2-2), B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}. The solution of AW+WAT+BBT=0A W + W A^T + B B^T = 0 is Wc=diag⁡(1/12,1/6)W_c = \operatorname{diag}(1/12, 1/6): here AWc=[01/6−1/6−1/2]A W_c = \begin{bmatrix} 0 & 1/6 \\ -1/6 & -1/2 \end{bmatrix}, and adding its transpose and BBTB B^T gives 00. With C=[1,0]C = [1, 0], G(s)=1/((s+1)(s+2))G(s) = 1/((s+1)(s+2)) and ∥G∥22=CWcCT=1/12\|G\|_2^2 = C W_c C^T = 1/12. The impulse response e−t−e−2te^{-t} - e^{-2t} gives the same value: ∫0∞(e−t−e−2t)2dt=1/2−2/3+1/4=1/12\int_0^\infty (e^{-t} - e^{-2t})^2 dt = 1/2 - 2/3 + 1/4 = 1/12.
  • Uncontrollable pair (non-example of a positive definite gramian). A=−I2A = -I_2, B=(1,1)TB = (1, 1)^T: the Lyapunov equation reads −2W+BBT=0-2 W + B B^T = 0, so Wc=12[1111]W_c = \frac{1}{2} \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}. It is singular, and its kernel, spanned by (1,−1)(1, -1), is the direction the input cannot reach.

References

  1. R. E. Kalman, Contributions to the theory of optimal control, Boletín de la Sociedad Matemática Mexicana (2) 5, 102-119, 1960, controllability tested by the nonsingularity of the gramian integral, and the minimum energy control
  2. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 6.2 (the finite horizon gramian W_c(t) and the input that reaches a given state) and Section 7.4 (gramians of asymptotically stable systems and balanced realization)
  3. Kemin Zhou, John C. Doyle and Keith Glover, Robust and Optimal Control, Prentice Hall, 1996, Chapter 3, Linear Dynamical Systems (controllability and the Lyapunov equations for the gramians when A is Hurwitz)
  4. Athanasios C. Antoulas, Approximation of Large-Scale Dynamical Systems, SIAM, 2005, Chapter 4 (the reachability gramian, finite and infinite, and the energy to reach a state)

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/8WRT4F/text.yaml