Algorithm Search⌘K

Theoremadvanced

LQR stability margins

Also called return difference inequality, Kalman inequality.

For continuous-time LQR with one input, |1 + L(j omega)| >= 1, so the loop has gain margin (1/2, infinity) and phase margin at least 60 degrees.

A continuous-time LQR state feedback loop is robust without any design for robustness. Kalman (1964) showed that the return difference 1+L(jω)1 + L(j\omega) of a single-input LQR loop has modulus at least one at every frequency. The Nyquist plot of the loop gain therefore stays out of the unit disk centered at −1-1. From this follow the guaranteed margins: the closed loop stays stable when the loop gain is multiplied by any factor in (1/2,∞)(1/2, \infty), and the phase margin is at least 60 degrees. Safonov and Athans (1977) showed that the same margins hold in every input channel at the same time when RR is diagonal. The result is for continuous-time state feedback only. It is false for discrete-time LQR, and Doyle (1978) showed that an LQG loop with an observer has no guaranteed margins at all; see the LQG counterexample.

Statement

Data. A∈Rn×nA \in \mathbb{R}^{n \times n}, B∈Rn×mB \in \mathbb{R}^{n \times m}, Q=QT≥0Q = Q^T \ge 0, R=RT>0R = R^T > 0, with (A,B)(A, B) stabilizable and (Q1/2,A)(Q^{1/2}, A) detectable. Let PP be the stabilizing solution of the CARE ATP+PA−PBR−1BTP+Q=0A^T P + P A - P B R^{-1} B^T P + Q = 0 and K=R−1BTPK = R^{-1} B^T P, so that u=−Kxu = -K x is the optimal control. Break the loop at the plant input. The loop transfer matrix is L(s)=KΦ(s)L(s) = K \Phi(s) with Φ(s)=(sI−A)−1B\Phi(s) = (s I - A)^{-1} B.

Theorem.

  1. Return difference equality. For every ss that is not an eigenvalue of AA or −A-A,
(I+L(−s))TR(I+L(s))=R+Φ(−s)TQ Φ(s).\left(I + L(-s)\right)^T R \left(I + L(s)\right) = R + \Phi(-s)^T Q\, \Phi(s).
  1. Return difference inequality. For real ω\omega with jωj\omega not an eigenvalue of AA, (I+L(jω))∗R(I+L(jω))≥R(I + L(j\omega))^* R (I + L(j\omega)) \ge R. For one input (m=1m = 1) this is ∣1+L(jω)∣≥1|1 + L(j\omega)| \ge 1.
  2. Margins, one input. For m=1m = 1, the closed loop x˙=(A−βBK)x\dot x = (A - \beta B K) x is stable for every real β>1/2\beta > 1/2, and for every complex β=e−jφ\beta = e^{-j\varphi} with ∣φ∣<60°|\varphi| < 60°. So the gain margin is (1/2,∞)(1/2, \infty) and the phase margin is at least 60 degrees.
  3. Margins, several inputs. If RR is diagonal, A−BΔKA - B \Delta K is Hurwitz for every real diagonal Δ=diag⁡(β1,…,βm)\Delta = \operatorname{diag}(\beta_1, \dots, \beta_m) with all βi>1/2\beta_i > 1/2: each channel can change its gain independently.

In plain words

The optimal state feedback cannot be fragile. If the actuator turns out to be half as strong as modeled, or arbitrarily stronger, or adds up to 60 degrees of phase lag at the crossover, the loop is still stable. The reason is that the optimal loop never makes the return difference smaller than one, so the loop gain never comes close to −1-1. A designer gets these margins for any choice of the weights QQ and RR, as long as all states are measured.

Proof

Part 1. Since PB=KTRP B = K^T R, we have PBR−1BTP=KTRKP B R^{-1} B^T P = K^T R K, and the CARE reads −ATP−PA=Q−KTRK-A^T P - P A = Q - K^T R K. Add and subtract sPs P:

(−sI−AT)P+P(sI−A)=Q−KTRK.(-s I - A^T) P + P (s I - A) = Q - K^T R K.

Multiply by Φ(−s)T=BT(−sI−AT)−1\Phi(-s)^T = B^T (-s I - A^T)^{-1} on the left and by Φ(s)=(sI−A)−1B\Phi(s) = (s I - A)^{-1} B on the right:

BTP Φ(s)+Φ(−s)TPB=Φ(−s)TQ Φ(s)−Φ(−s)TKTRK Φ(s).B^T P\, \Phi(s) + \Phi(-s)^T P B = \Phi(-s)^T Q\, \Phi(s) - \Phi(-s)^T K^T R K\, \Phi(s).

With BTP=RKB^T P = R K the left side is RL(s)+L(−s)TRR L(s) + L(-s)^T R, and the last term is −L(−s)TRL(s)-L(-s)^T R L(s). Move it to the left and add RR to both sides. The left side becomes (I+L(−s))TR(I+L(s))(I + L(-s))^T R (I + L(s)), which is part 1.

Part 2. Put s=jωs = j\omega. As AA, BB and KK are real, L(−jω)T=L(jω)∗L(-j\omega)^T = L(j\omega)^* and Φ(−jω)T=Φ(jω)∗\Phi(-j\omega)^T = \Phi(j\omega)^*. So the right side is R+Φ∗QΦ≥RR + \Phi^* Q \Phi \ge R. For m=1m = 1, R=r>0R = r > 0 is a number and r∣1+L(jω)∣2≥rr |1 + L(j\omega)|^2 \ge r.

Part 3. Let m=1m = 1, a(s)=det⁡(sI−A)a(s) = \det(s I - A) and b(s)=Kadj⁡(sI−A)Bb(s) = K \operatorname{adj}(s I - A) B, so L=b/aL = b / a. By the determinant formula for a rank one update, the closed loop polynomial is

pβ(s)=det⁡(sI−A+βBK)=a(s)+β b(s).p_\beta(s) = \det(s I - A + \beta B K) = a(s) + \beta\, b(s).

It is monic of degree nn for every complex β\beta, so its roots depend continuously on β\beta. For β=1\beta = 1 all roots are in the open left half plane, because PP is stabilizing. Take a path of values of β\beta from 1 to the target value: the real segment from 1 to β>1/2\beta > 1/2, or the arc e−jθe^{-j\theta}, θ\theta between 0 and φ\varphi. A root can leave the left half plane only by passing through a point jωj\omega of the imaginary axis, so it suffices to show pβ(jω)≠0p_\beta(j\omega) \ne 0 for all β\beta on the path and all real ω\omega.

Suppose pβ(jω)=0p_\beta(j\omega) = 0. If a(jω)=0a(j\omega) = 0, then b(jω)=0b(j\omega) = 0 (as β≠0\beta \ne 0), so p1(jω)=0p_1(j\omega) = 0, which is false. So a(jω)≠0a(j\omega) \ne 0 and L(jω)=−1/βL(j\omega) = -1/\beta. Then part 2 gives ∣1−1/β∣≥1|1 - 1/\beta| \ge 1. For real β>1/2\beta > 1/2 we have 0<1/β<20 < 1/\beta < 2, so ∣1−1/β∣<1|1 - 1/\beta| < 1. For β=e−jθ\beta = e^{-j\theta} with ∣θ∣<60°|\theta| < 60° we have ∣1−ejθ∣=2∣sin⁡(θ/2)∣<1|1 - e^{j\theta}| = 2 |\sin(\theta / 2)| < 1. Both contradict part 2. Hence the roots stay in the left half plane along the path.

Part 4. Let AΔ=A−BΔKA_\Delta = A - B \Delta K. With PB=KTRP B = K^T R,

AΔTP+PAΔ=ATP+PA−KT(ΔR+RΔ)K=−Q−KT(ΔR+RΔ−R)K.A_\Delta^T P + P A_\Delta = A^T P + P A - K^T (\Delta R + R \Delta) K = -Q - K^T (\Delta R + R \Delta - R) K.

As RR and Δ\Delta are diagonal, ΔR+RΔ−R=diag⁡((2βi−1)ri)\Delta R + R \Delta - R = \operatorname{diag}((2 \beta_i - 1) r_i), which is positive definite when all βi>1/2\beta_i > 1/2. Let AΔv=λvA_\Delta v = \lambda v with v≠0v \ne 0 and Re⁡λ≥0\operatorname{Re} \lambda \ge 0. Then 2Re⁡(λ) v∗Pv=−v∗Qv−(Kv)∗(ΔR+RΔ−R)(Kv)2 \operatorname{Re}(\lambda)\, v^* P v = -v^* Q v - (K v)^* (\Delta R + R \Delta - R) (K v). The left side is at least 0 because P≥0P \ge 0, and the right side is at most 0, so Qv=0Q v = 0 and Kv=0K v = 0. Then Av=AΔv=λvA v = A_\Delta v = \lambda v with Qv=0Q v = 0, which detectability excludes. So AΔA_\Delta is Hurwitz. The same computation with m=1m = 1 gives a second proof of the gain part of part 3. ■\blacksquare

Consequences

A check by hand

Double integrator, A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, Q=IQ = I, R=1R = 1. The optimal gain is K=[13]K = \begin{bmatrix} 1 & \sqrt 3 \end{bmatrix}, and Φ(s)=[1/s21/s]\Phi(s) = \begin{bmatrix} 1/s^2 \\ 1/s \end{bmatrix}, so

L(s)=3 s+1s2,1+L(s)=s2+3 s+1s2.L(s) = \frac{\sqrt 3\, s + 1}{s^2}, \qquad 1 + L(s) = \frac{s^2 + \sqrt 3\, s + 1}{s^2}.

At s=jωs = j\omega, ∣1+L∣2=((1−ω2)2+3ω2)/ω4=1+(1+ω2)/ω4|1 + L|^2 = ((1 - \omega^2)^2 + 3 \omega^2) / \omega^4 = 1 + (1 + \omega^2)/\omega^4, and Φ∗QΦ=1/ω4+1/ω2\Phi^* Q \Phi = 1/\omega^4 + 1/\omega^2 is the same excess, as part 1 says. At ω=1\omega = 1 both sides are 3; at ω=2\omega = 2 both are 1.31251.3125. The loop gain is 1 where ω4=3ω2+1\omega^4 = 3 \omega^2 + 1, at ω≈1.8174\omega \approx 1.8174, and there the phase of LL is −107.6°-107.6°: the phase margin is 72.4°72.4°. The closed loop polynomial with gain β\beta is s2+3βs+βs^2 + \sqrt 3 \beta s + \beta, stable for every β>0\beta > 0, so the true gain margin here is larger than the guarantee.

A small script checks the identity at many frequencies:

import math
for w in [0.1, 0.5, 1.0, 2.0, 10.0]:
    s = 1j * w
    L = (math.sqrt(3) * s + 1) / s**2
    lhs = abs(1 + L) ** 2
    rhs = 1 + abs(1 / s**2) ** 2 + abs(1 / s) ** 2
    assert abs(lhs - rhs) <= 1e-9 * rhs and lhs >= 1

What follows from the inequality

  • Sensitivity. For m=1m = 1 the sensitivity function S=1/(1+L)S = 1/(1 + L) satisfies ∣S(jω)∣≤1|S(j\omega)| \le 1 at all frequencies, so the LQR state feedback loop does not amplify a disturbance at the plant input at any frequency.
  • Nonlinear and time-varying gains. The Lyapunov computation of part 4 does not need constant gains. If each channel gain varies with time or with the state but stays in [1/2+ϵ,∞)[1/2 + \epsilon, \infty), then V=xTPxV = x^T P x still does not increase along trajectories. Safonov and Athans state margins of this kind for memoryless nonlinear time-varying gains. This ties the result to the circle criterion.
  • Inverse optimality. Kalman's paper proves the converse too: a stable single-input state feedback whose return difference has modulus at least one is optimal for some Q≥0Q \ge 0.
  • Recovery. Observers destroy the margins in general. Loop transfer recovery tunes the Kalman filter so that the LQG loop approaches the LQR loop and gets the margins back.

Tightness

  • The lower limit 1/21/2 is sharp. Take n=m=1n = m = 1, a>0a > 0, b=r=1b = r = 1. The CARE 2ap−p2+q=02 a p - p^2 + q = 0 gives K=p=a+a2+qK = p = a + \sqrt{a^2 + q}. The loop a−βKa - \beta K is stable exactly for β>a/K\beta > a / K, and a/K→1/2a / K \to 1/2 as q→0q \to 0. For a=1a = 1, q=1q = 1 the limit is 0.4140.414; for q=0.01q = 0.01 it is 0.49880.4988.
  • 60 degrees is sharp. In the same example, L(s)=K/(s−a)L(s) = K / (s - a) has ∣L(jω)∣=1|L(j\omega)| = 1 at ω=K2−a2\omega = \sqrt{K^2 - a^2}, and the phase margin is arctan⁡(ω/a)\arctan(\omega / a). As q→0q \to 0, K→2aK \to 2 a and the margin tends to arctan⁡3=60°\arctan \sqrt 3 = 60°. For a=1a = 1, q=0.01q = 0.01 it is 60.08°60.08°.
  • Discrete time has smaller margins. For the discrete-time scalar plant xk+1=2xk+ukx_{k+1} = 2 x_k + u_k with r=1r = 1 and q→0q \to 0, the DARE gives p=3p = 3 and K=1.5K = 1.5. The loop 2−1.5β2 - 1.5 \beta is stable only for 2/3<β<22/3 < \beta < 2, a finite upper gain margin. The discrete return difference identity has R+BTPBR + B^T P B in place of RR, and the margins depend on the data.
  • Several inputs need diagonal RR. For a general R>0R > 0 the inequality of part 2 holds in the norm weighted by RR, and the channel by channel margins of part 4 can fail. The proof of part 4 works for every real Δ\Delta with ΔR+RΔ−R\Delta R + R \Delta - R positive definite, which for diagonal RR and Δ\Delta means βi>1/2\beta_i > 1/2.
  • Output feedback. The guarantee needs the full state. With an observer in the loop the margins can be arbitrarily small (Doyle 1978).

History

Kalman (1964) asked when a given linear control law is optimal for a quadratic cost and found the answer in the frequency domain: for one input, exactly when the return difference has modulus at least one. The gain and phase margins that follow from it are standard textbook material, for example in Anderson and Moore. Safonov and Athans (1977) extended the margins to multiloop regulators, channel by channel. Doyle (1978) then showed with a short example that the margins do not carry over to LQG, which started the work on robust multivariable control and loop transfer recovery.

References

  1. R. E. Kalman, When is a linear control system optimal?, Journal of Basic Engineering 86(1), 51-60, 1964, Theorem 6, a stable single-input control law is optimal if and only if its return difference has modulus at least one at all frequencies
  2. Michael G. Safonov and Michael Athans, Gain and phase margin for multiloop LQG regulators, IEEE Transactions on Automatic Control 22(2), 173-179, 1977, the gain and phase margins of multiloop linear quadratic state feedback regulators
  3. Brian D. O. Anderson and John B. Moore, Optimal Control, Linear Quadratic Methods, Prentice Hall, 1990 (Dover reprint, 2007), the chapters on the properties of regulators, with the return difference equality and the gain and phase margins

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