Algorithm Search⌘K

Theoremadvanced

LQG has no guaranteed margins

Also called Doyle's LQG counterexample.

An example of Doyle in 1978 shows that LQG loops can have arbitrarily small gain margin, unlike LQR loops.

This page is a counterexample, not a positive result. A continuous-time LQR loop with the full state has guaranteed margins: every input gain in (1/2,∞)(1/2, \infty) and every phase lag below 60 degrees keep the closed loop Hurwitz (LQR stability margins). One could hope that an LQG loop, which applies the same gain to a Kalman-Bucy estimate, keeps some margin of this kind. Doyle (1978) showed that it does not. He gave a plant with two states for which the LQG loop becomes unstable under input gains arbitrarily close to 1 as the weights grow. So no positive margin holds for all LQG designs.

Statement

The claim that fails. There are numbers g−<1<g+g_- < 1 < g_+ such that, for every plant (A,B,C)(A, B, C) and all weights Q,R,W,VQ, R, W, V that satisfy the LQG assumptions, the LQG closed loop stays Hurwitz when a real gain m∈[g−,g+]m \in [g_-, g_+] multiplies the plant input. For LQR with the full state the claim is true with g−=1/2g_- = 1/2 and g+=∞g_+ = \infty.

The counterexample. Take

A=[1101],B=[01],C=[10],h=[11],A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, \quad C = \begin{bmatrix} 1 & 0 \end{bmatrix}, \quad h = \begin{bmatrix} 1 \\ 1 \end{bmatrix},

with Q=q hhTQ = q\, h h^T, W=σ hhTW = \sigma\, h h^T, R=V=1R = V = 1 and q,σ>0q, \sigma > 0. So the cost weights the output hTx=x1+x2h^T x = x_1 + x_2, and the process noise enters along hh. Put

f=2+4+q,d=2+4+σ.f = 2 + \sqrt{4 + q}, \qquad d = 2 + \sqrt{4 + \sigma}.

Theorem (Doyle 1978).

  1. The LQG gains are K=f[11]K = f \begin{bmatrix} 1 & 1 \end{bmatrix} and Lo=d[11]L_o = d \begin{bmatrix} 1 \\ 1 \end{bmatrix}.
  2. With the plant input multiplied by mm, the closed-loop characteristic polynomial is
χm(s)=s4+a1s3+a2s2+(a1+2(m−1)df)s+1−(m−1)df,\chi_m(s) = s^4 + a_1 s^3 + a_2 s^2 + \left(a_1 + 2 (m - 1) d f\right) s + 1 - (m - 1) d f,

with a1=d+f−4a_1 = d + f - 4 and a2=6−2d−2f+dfa_2 = 6 - 2d - 2f + d f. 3. If the closed loop is Hurwitz, then

1−d+f−42df<m<1+1df.1 - \frac{d + f - 4}{2 d f} < m < 1 + \frac{1}{d f}.

Both bounds tend to 1 as qq and σ\sigma go to infinity together. So for every ε>0\varepsilon > 0 there are weights for which the gain margin is inside (1−ε,1+ε)(1 - \varepsilon, 1 + \varepsilon), and the claim fails. 4. For q=σ=60q = \sigma = 60, K=[1010]K = \begin{bmatrix} 10 & 10 \end{bmatrix}, Lo=[1010]L_o = \begin{bmatrix} 10 \\ 10 \end{bmatrix}, and the closed loop is Hurwitz exactly for

97−88525<m<1.01,that is 0.9297<m<1.01.\frac{97 - 8\sqrt{85}}{25} < m < 1.01, \qquad \text{that is } 0.9297 < m < 1.01.

In plain words

When a controller can measure the whole state of a machine, the best quadratic controller is very tolerant: the motor can be twice as strong as assumed, or half as strong, and the loop still settles. When the controller must estimate the state from a sensor, the best controller for the noise model can lose this tolerance completely. Doyle built a small machine with two unstable modes where the cost and the noise both point along the same direction. As both become large, the controller and the estimator become very aggressive and cancel each other in a delicate way. Then a motor that is one percent stronger than assumed already makes the loop unstable.

Proof

Regulator gain. Look for the CARE solution in the form P=f[2111]P = f \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}, so that K=BTP=f[11]K = B^T P = f \begin{bmatrix} 1 & 1 \end{bmatrix} and PB=fhP B = f h. Then

ATP+PA=f[4444]=4f hhT,PBBTP=f2hhT,A^T P + P A = f \begin{bmatrix} 4 & 4 \\ 4 & 4 \end{bmatrix} = 4 f\, h h^T, \qquad P B B^T P = f^2 h h^T,

and the CARE ATP+PA−PBBTP+qhhT=0A^T P + P A - P B B^T P + q h h^T = 0 reduces to the scalar equation f2−4f−q=0f^2 - 4 f - q = 0, whose positive root is f=2+4+qf = 2 + \sqrt{4 + q}. PP is positive definite since det⁡P=f2>0\det P = f^2 > 0. The matrix A−BK=[11−f1−f]A - B K = \begin{bmatrix} 1 & 1 \\ -f & 1 - f \end{bmatrix} has the characteristic polynomial ΔK(s)=s2+(f−2)s+1\Delta_K(s) = s^2 + (f - 2) s + 1, which is Hurwitz because f>2f > 2. So PP is the stabilizing solution, and it is unique.

Filter gain. The filter equation AS+SAT−SCTCS+σhhT=0A S + S A^T - S C^T C S + \sigma h h^T = 0 is the CARE for the dual data (AT,CT,σhhT,1)(A^T, C^T, \sigma h h^T, 1). Let J=[0110]J = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}. Then JATJ=AJ A^T J = A, JCT=BJ C^T = B and Jh=hJ h = h, so the dual problem is the regulator problem above with qq replaced by σ\sigma, written in swapped coordinates. Hence S=d J[2111]J=d[1112]S = d\, J \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix} J = d \begin{bmatrix} 1 & 1 \\ 1 & 2 \end{bmatrix}, Lo=SCT=d hL_o = S C^T = d\, h, and A−LoCA - L_o C has the characteristic polynomial ΔL(s)=s2+(d−2)s+1\Delta_L(s) = s^2 + (d - 2) s + 1. This proves part 1.

Closed loop. The controller is x^˙=Acx^+Loy\dot{\hat x} = A_c \hat x + L_o y, u=−Kx^u = -K \hat x with

Ac=A−BK−LoC=[1−d1−f−d1−f].A_c = A - B K - L_o C = \begin{bmatrix} 1 - d & 1 \\ -f - d & 1 - f \end{bmatrix}.

With the gain mm, the plant is x˙=Ax+mBu\dot x = A x + m B u, and the closed-loop matrix is [A−mBKLoCAc]\begin{bmatrix} A & -m B K \\ L_o C & A_c \end{bmatrix}. By the Schur complement and the matrix determinant lemma, its characteristic polynomial is

χm(s)=Δ(s) Δc(s)+m nG(s) nC(s),\chi_m(s) = \Delta(s)\, \Delta_c(s) + m\, n_G(s)\, n_C(s),

where Δ(s)=(s−1)2=det⁡(sI−A)\Delta(s) = (s - 1)^2 = \det(sI - A), Δc(s)=det⁡(sI−Ac)\Delta_c(s) = \det(sI - A_c), C adj(sI−A)B=nG(s)=1C\, \mathrm{adj}(sI - A) B = n_G(s) = 1 and nC(s)=K adj(sI−Ac)Lon_C(s) = K\, \mathrm{adj}(sI - A_c) L_o. Here

adj(sI−Ac)=[s−1+f1−(f+d)s−1+d],\mathrm{adj}(sI - A_c) = \begin{bmatrix} s - 1 + f & 1 \\ -(f + d) & s - 1 + d \end{bmatrix},

and K adj(sI−Ac)Lo=dfK\, \mathrm{adj}(sI - A_c) L_o = d f times the sum of the four entries, so nC(s)=df(2s−1)n_C(s) = d f (2 s - 1). At m=1m = 1 the separation principle gives χ1=ΔKΔL\chi_1 = \Delta_K \Delta_L. Subtract the two expressions:

χm(s)=ΔK(s)ΔL(s)+(m−1) df (2s−1).\chi_m(s) = \Delta_K(s) \Delta_L(s) + (m - 1)\, d f\, (2 s - 1).

Expand ΔKΔL=s4+(d+f−4)s3+(6−2d−2f+df)s2+(d+f−4)s+1\Delta_K \Delta_L = s^4 + (d + f - 4) s^3 + (6 - 2d - 2f + d f) s^2 + (d + f - 4) s + 1. This proves part 2.

The interval shrinks. A Hurwitz polynomial with leading coefficient 1 has all coefficients positive. The coefficient of ss gives a1+2(m−1)df>0a_1 + 2 (m - 1) d f > 0, and the constant gives 1−(m−1)df>01 - (m - 1) d f > 0. These are the two bounds of part 3. As q,σ→∞q, \sigma \to \infty, both dd and ff go to infinity, 1/(df)→01 / (d f) \to 0 and (d+f−4)/(2df)<1/(2f)+1/(2d)→0(d + f - 4)/(2 d f) < 1/(2f) + 1/(2d) \to 0. This proves part 3.

The numbers for q=σ=60q = \sigma = 60. Here 64=8\sqrt{64} = 8, so d=f=10d = f = 10, a1=16a_1 = 16, a2=66a_2 = 66, and with e=m−1e = m - 1,

χm(s)=s4+16s3+66s2+(16+200e)s+(1−100e).\chi_m(s) = s^4 + 16 s^3 + 66 s^2 + (16 + 200 e) s + (1 - 100 e).

The Routh-Hurwitz conditions for s4+a1s3+a2s2+a3s+a4s^4 + a_1 s^3 + a_2 s^2 + a_3 s + a_4 are a1,a3,a4>0a_1, a_3, a_4 > 0, a1a2−a3>0a_1 a_2 - a_3 > 0 and a3(a1a2−a3)−a12a4>0a_3 (a_1 a_2 - a_3) - a_1^2 a_4 > 0. They give e>−0.08e > -0.08, e<0.01e < 0.01, e<5.2e < 5.2 and

(16+200e)(1040−200e)−256(1−100e)=16(1024+14400e−2500e2)>0.(16 + 200 e)(1040 - 200 e) - 256 (1 - 100 e) = 16 \left(1024 + 14400 e - 2500 e^2\right) > 0.

The roots of 2500e2−14400e−10242500 e^2 - 14400 e - 1024 are e=(72±885)/25e = (72 \pm 8\sqrt{85})/25, that is −0.0703-0.0703 and 5.835.83. The intersection of all the conditions is (72−885)/25<e<0.01(72 - 8\sqrt{85})/25 < e < 0.01, which is part 4. □\square

Consequences

  • The LQR loop of the same design is robust. With the full state, the loop K(sI−A)−1B=fs/(s−1)2K (sI - A)^{-1} B = f s / (s - 1)^2 closed with a gain kk has the polynomial s2+(kf−2)s+1s^2 + (k f - 2) s + 1, so it is Hurwitz for every k>2/fk > 2/f. For f=10f = 10 this is k>0.2k > 0.2, which contains [1/2,∞)[1/2, \infty), and the phase margin is about 78.5 degrees. Only the estimator removes the margin.
  • Phase margin goes too. For q=σ=60q = \sigma = 60 the LQG loop gain crosses the unit circle at ω≈0.102\omega \approx 0.102 rad/s about 0.92 degrees away from −1-1, so a phase lag of 1 degree at the input already makes the closed loop unstable. For q=σ=1000q = \sigma = 1000 the gain interval is (0.97296,1.00088)(0.97296, 1.00088) and the phase margin is about 0.095 degrees.
  • Check every LQG design. Optimality for the noise model says nothing about robustness. The margins of the actual loop must be computed at the plant input and at the output.
  • Loop transfer recovery. Doyle and Stein (1979) showed that the margins come back for plants that are square and minimum phase when fictitious noise is added along the input matrix BB. Here the noise enters along hh, not along BB, and the filter becomes fast in a direction that does not recover the LQR loop. See loop transfer recovery.
  • Robust synthesis. The example was one of the reasons for frequency domain robustness tools such as H-infinity control, which take a model uncertainty description into the design.

Tightness

The bounds of part 3 come only from the signs of two coefficients, so they are necessary, not sufficient. The exact interval needs the full Routh test, as in part 4: the lower end 0.92970.9297 is a little above the necessary bound 0.920.92, and the upper end 1.011.01 is exact. For q=σ=60q = \sigma = 60 and for q=σ=1000q = \sigma = 1000 the upper end is the bound 1+1/(df)1 + 1/(d f) itself: at that gain the constant coefficient becomes 0, and a real root crosses the origin.

The example does not show that every LQG loop has a small margin. For the double integrator with Q=IQ = I, W=IW = I and R=V=1R = V = 1, the LQG loop is Hurwitz for all gains in (0,4)(0, 4) (see LQG control). It shows that there is no bound that holds for all plants and weights. The limit needs both weights large: if σ\sigma grows with qq fixed, the upper bound 1+1/(df)1 + 1/(d f) still goes to 1, but the necessary lower bound tends to 1−1/(2f)1 - 1/(2f).

History

Safonov and Athans (1977) had proved the gain and phase margins of multiloop LQR regulators with the full state, and it was a common belief that LQG regulators share them. Doyle answered in a note of two pages in IEEE Transactions on Automatic Control in 1978 with the plant on this page and weights along a common direction. Doyle and Stein (1979) then showed how to recover the LQR margins for minimum phase plants with fictitious noise at the input, and Doyle and Stein (1981) put the robustness question into the frequency domain with singular values, which led to loop shaping and H-infinity methods.

References

  1. John C. Doyle, Guaranteed margins for LQG regulators, IEEE Transactions on Automatic Control 23(4), 756-757, 1978, the example with two states and weights along a common direction, whose LQG loop has a gain margin that goes to zero
  2. John C. Doyle and Gunter Stein, Robustness with observers, IEEE Transactions on Automatic Control 24(4), 607-611, 1979, the loss of the state feedback robustness when an observer is added, and its recovery for minimum phase plants

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/QDN400/text.yaml