Algorithm Search⌘K

Techniqueadvanced

Loop transfer recovery

Also called LQG/LTR.

Tunes the Kalman filter of an LQG design by fictitious input noise so that, for a square minimum phase plant, the loop tends to the LQR loop and recovers its margins.

Loop transfer recovery (LTR) is a design step that gives back to an LQG controller the robustness of the LQR loop it is built from. The LQR gain KK is fixed first. Then the Kalman filter is designed with fictitious process noise of intensity q2q^2 that enters at the plant input. As qq grows, the loop transfer function at the plant input tends, at every frequency, to the LQR loop K(sI−A)−1BK (sI - A)^{-1} B, and with it the gain margin (1/2,∞)(1/2, \infty) and the 60 degree phase margin come back. The recovery needs a plant that is square and minimum phase. It fails for a plant with zeros in the right half plane.

In plain words

A controller that sees the whole state of a machine is very tolerant of errors in the machine model. A controller that must estimate the state from a sensor loses much of that tolerance, because the estimator can be wrong in the same way as the model. LTR tells the estimator to expect large unknown pushes exactly where the motor acts. The estimator then trusts the sensor more and the model less in that direction, and the whole controller behaves more and more like the one that sees the state. The price is a faster estimator, which amplifies sensor noise. The trick works only for machines without delays or inverse responses of a certain kind.

When it applies

  • The plant G(s)=C(sI−A)−1BG(s) = C (sI - A)^{-1} B is square: as many inputs as outputs, m=pm = p, and G(s)G(s) is invertible as a matrix of rational functions.
  • The plant is minimum phase: all its transmission zeros have negative real part. Input recovery also needs (A,B)(A, B) stabilizable and (C,A)(C, A) detectable.
  • The design goal can be stated as a target loop at one point of the loop, usually the plant input, and a state feedback KK that gives that target loop is available, often from LQR.
  • The sensor noise and the unmodeled dynamics at high frequency allow a fast filter. LTR raises the controller bandwidth.

For a plant with right half plane zeros, LTR still helps at frequencies well below those zeros, but the LQR loop cannot be recovered, and other methods such as H-infinity loop shaping are a better fit.

The template

  1. Target loop. Choose KK, for example by LQR with weights QQ and RR, so that LT(s)=KΦ(s)BL_T(s) = K \Phi(s) B with Φ(s)=(sI−A)−1\Phi(s) = (sI - A)^{-1} has the wanted crossover frequency and shape. By the LQR stability margins theorem it has the gain margin (1/2,∞)(1/2, \infty) and at least 60 degrees of phase margin in each channel when RR is diagonal.
  2. Fictitious noise. For a scalar q≥0q \ge 0, design the Kalman filter with
W(q)=W0+q2BBT,V=V0,W(q) = W_0 + q^2 B B^T, \qquad V = V_0,

where W0≥0W_0 \ge 0 and V0>0V_0 > 0 are nominal intensities. The filter gain is Lo(q)=S(q)CTV0−1L_o(q) = S(q) C^T V_0^{-1} with the filter Riccati solution S(q)S(q). 3. Controller. Use the LQG controller Cq(s)=K(sI−A+BK+Lo(q)C)−1Lo(q)C_q(s) = K (sI - A + BK + L_o(q) C)^{-1} L_o(q) from yy to −u-u, and the loop at the plant input Lq(s)=Cq(s)G(s)L_q(s) = C_q(s) G(s). 4. Raise qq. Increase qq until Lq(jω)L_q(j\omega) is close to LT(jω)L_T(j\omega) in the band up to and a little beyond crossover. Do not go further than needed: the controller bandwidth grows with qq. 5. Check. Compute the margins of LqL_q at the plant input and also at the plant output, and the sensitivity functions, since LTR acts only at the point where the target was set.

Why it works. Write Lo=q BM+o(q)L_o = q\, B M + o(q). For a square minimum phase plant, the filter Riccati solution satisfies S(q)/q2→0S(q)/q^2 \to 0, and the filter equation divided by q2q^2 then gives LoV0LoT/q2→BBTL_o V_0 L_o^T / q^2 \to B B^T, and in fact Lo(q)/q→BML_o(q)/q \to B M for a nonsingular matrix MM (Doyle and Stein 1979). With the matrix inversion lemma,

(Φ−1+LoC)−1Lo=ΦLo(I+CΦLo)−1→ΦBM(GM)−1=ΦBG−1,(\Phi^{-1} + L_o C)^{-1} L_o = \Phi L_o (I + C \Phi L_o)^{-1} \to \Phi B M (G M)^{-1} = \Phi B G^{-1},
(Φ−1+LoC)−1B=ΦB−ΦLo(I+CΦLo)−1CΦB→ΦB−ΦBG−1G=0,(\Phi^{-1} + L_o C)^{-1} B = \Phi B - \Phi L_o (I + C \Phi L_o)^{-1} C \Phi B \to \Phi B - \Phi B G^{-1} G = 0,

at every ss that is not a pole of GG or a zero of GG. The controller is Cq=(I+K(Φ−1+LoC)−1B)−1K(Φ−1+LoC)−1LoC_q = (I + K (\Phi^{-1} + L_o C)^{-1} B)^{-1} K (\Phi^{-1} + L_o C)^{-1} L_o, so Cq(s)→KΦBG−1C_q(s) \to K \Phi B G^{-1} and

Lq(s)=Cq(s)G(s)→KΦ(s)B=LT(s).L_q(s) = C_q(s) G(s) \to K \Phi(s) B = L_T(s).

The controller tends to the target loop times the inverse of the plant. The inverse G−1G^{-1} has the plant zeros as poles, so the limit is a stable controller only when those zeros have negative real part. This is why the plant must be minimum phase.

What is not proved here. The convergence is pointwise in ss and not uniform up to infinite frequency: LqL_q rolls off like the plant at high frequency while LTL_T may not. The rate of convergence and the size of qq needed depend on the plant, and for multivariable plants on the conditioning of GG.

Classic examples

Double integrator. A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, C=[10]C = \begin{bmatrix} 1 & 0 \end{bmatrix}, so G(s)=1/s2G(s) = 1/s^2, with no finite zeros. The LQR gain for Q=IQ = I, R=1R = 1 is K=[13]K = \begin{bmatrix} 1 & \sqrt3 \end{bmatrix}, and the target loop LT(s)=(3 s+1)/s2L_T(s) = (\sqrt3\, s + 1)/s^2 has a phase margin of 72.4 degrees and every gain in (0,∞)(0, \infty). With W=I+q2BBTW = I + q^2 B B^T and V=1V = 1 the filter gain is

Lo(q)=[1+21+q21+q2],L_o(q) = \begin{bmatrix} \sqrt{1 + 2\sqrt{1 + q^2}} \\ \sqrt{1 + q^2} \end{bmatrix},

so Lo/q→BL_o/q \to B. The LQG loop at the plant input recovers step by step:

qq LoTL_o^T phase margin Hurwitz for input gains
0 (1.732, 1.000) 39.0° (0,4.00)(0, 4.00)
3 (2.706, 3.162) 39.6° (0,3.87)(0, 3.87)
10 (4.593, 10.05) 45.7° (0,4.63)(0, 4.63)
30 (7.812, 30.02) 52.9° (0,6.35)(0, 6.35)
100 (14.18, 100.0) 59.8° (0,9.94)(0, 9.94)
1000 (44.73, 1000.0) 67.7° (0,27.5)(0, 27.5)
target 72.4° (0,∞)(0, \infty)

The upper gain limit first drops a little and then grows without bound. The controller tends to KΦBG−1=3 s+1K \Phi B G^{-1} = \sqrt3\, s + 1, a PD law with no roll-off, which shows the growth of the controller bandwidth.

A nonminimum phase plant. Keep AA, BB and KK, and measure y=x1−x2y = x_1 - x_2, so C=[1−1]C = \begin{bmatrix} 1 & -1 \end{bmatrix} and G(s)=(1−s)/s2G(s) = (1 - s)/s^2 has a zero at s=1s = 1. The target loop KΦBK \Phi B is the same, since it does not depend on CC. Now Lo/q→[21]L_o/q \to \begin{bmatrix} 2 \\ 1 \end{bmatrix}, which is not along BB, and the recovery fails: the phase margin is 27.6, 26.2, 26.5 and 26.5 degrees for q=0,10,100,1000q = 0, 10, 100, 1000, and the upper gain limit stays near 1.6.

Doyle's example. In the LQG counterexample, the process noise enters along h=(1,1)h = (1, 1), not along BB. Its growth makes the filter fast, but in a direction that destroys the margins instead of recovering them. The plant 1/(s−1)21/(s - 1)^2 has no zeros, so LTR with noise along BB applies to it.

Variations

  • Recovery at the plant output. The dual procedure fixes the Kalman filter first, with the target loop CΦLoC \Phi L_o at the plant output, and recovers it by LQR with Q(q)=Q0+q2CTCQ(q) = Q_0 + q^2 C^T C and a fixed RR (cheap control). Stein and Athans (1987) present the procedure in this form.
  • Partial recovery. For a nonminimum phase plant, recover only in a band below the right half plane zeros, and accept the loss above it.
  • Discrete time. In discrete time the recovery is in general only partial. The current estimator form of the discrete Kalman filter, which uses the newest measurement, gets closer to the target than the predictor form, which adds one step of delay.
  • H2 view. Stein and Athans (1987) read LTR as the solution of a weighted H2 trade-off between transfer functions. Modern practice often uses H-infinity loop shaping for the same goal, with a guaranteed robustness margin and no limit process.

Pitfalls

  • Forgetting the plant zeros. For a plant with right half plane zeros, a larger qq does not help and can hurt. Compute the transmission zeros first.
  • Recovering at the wrong point. Noise along BB recovers the loop at the plant input. The loop at the output can still have poor margins in a multivariable plant. Check both.
  • Too much recovery. A large qq gives a fast filter and a controller with large gain at high frequency. Sensor noise, sampling and unmodeled dynamics then limit what is safe. Stop when the loop is close enough to the target near crossover.
  • A poor target. LTR only copies the target loop. If KK gives a loop with the wrong bandwidth, the recovered design inherits it.
  • Squaring the plant by force. Adding or removing channels to get a square plant can create zeros in the right half plane. Check the zeros of the squared plant.

Exercises

  1. For the double integrator with W=I+q2BBTW = I + q^2 B B^T and V=1V = 1, show that Lo=(1+21+q2, 1+q2)TL_o = \left(\sqrt{1 + 2\sqrt{1 + q^2}},\ \sqrt{1 + q^2}\right)^T. (Answer: with S=[s1s2s2s3]S = \begin{bmatrix} s_1 & s_2 \\ s_2 & s_3 \end{bmatrix}, the filter equation gives 1+q2−s22=01 + q^2 - s_2^2 = 0, s3=s1s2s_3 = s_1 s_2 and 2s2+1−s12=02 s_2 + 1 - s_1^2 = 0, and Lo=(s1,s2)TL_o = (s_1, s_2)^T.)
  2. Show that Lo(q)/q→BL_o(q)/q \to B in exercise 1. (Answer: 1+q2/q→1\sqrt{1 + q^2}/q \to 1 and 1+21+q2/q→0\sqrt{1 + 2\sqrt{1 + q^2}}/q \to 0.)
  3. Show that the LQG controller of the double integrator tends to 3 s+1\sqrt3\, s + 1 as q→∞q \to \infty. (Answer: the limit is KΦBG−1=3 s+1s2⋅s2K \Phi B G^{-1} = \frac{\sqrt3\, s + 1}{s^2} \cdot s^2.)
  4. For C=[1−1]C = \begin{bmatrix} 1 & -1 \end{bmatrix}, find the zero of GG and explain why the limit controller KΦBG−1K \Phi B G^{-1} cannot be used. (Answer: G(s)=(1−s)/s2G(s) = (1 - s)/s^2 has a zero at s=1s = 1, so G−1G^{-1} has a pole at s=1s = 1 that would cancel the plant zero, and the loop would not be internally stable.)
  5. State the output recovery procedure for a fixed filter gain LoL_o. (Answer: LQR with Q=Q0+q2CTCQ = Q_0 + q^2 C^T C and fixed RR; as q→∞q \to \infty, G(s)Cq(s)→CΦ(s)LoG(s) C_q(s) \to C \Phi(s) L_o for a square minimum phase plant.)

References

  1. John C. Doyle and Gunter Stein, Robustness with observers, IEEE Transactions on Automatic Control 24(4), 607-611, 1979, the recovery of the state feedback loop by fictitious noise at the plant input, for minimum phase plants
  2. John C. Doyle and Gunter Stein, Multivariable feedback design, concepts for a classical/modern synthesis, IEEE Transactions on Automatic Control 26(1), 4-16, 1981, the singular value loop shaping view and loop transfer recovery as a design step
  3. Gunter Stein and Michael Athans, The LQG/LTR procedure for multivariable feedback control design, IEEE Transactions on Automatic Control 32(2), 105-114, 1987, the tutorial statement of the procedure, for minimum phase and nonminimum phase plants
  4. Sigurd Skogestad and Ian Postlethwaite, Multivariable Feedback Control, Analysis and Design, 2nd edition, Wiley, 2005, the chapter on controller design, with LQG control and loop transfer recovery

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)
WritingW2 basic
  • three classic examples