Algorithm Search⌘K

Theoremadvanced

Rohrs counterexample

Also called Rohrs example.

An example of 1985 showing that standard adaptive controllers can go unstable under small unmodeled dynamics and disturbances.

The Rohrs counterexample is a counterexample to the claim that the standard model reference adaptive controller, which keeps all signals bounded for a plant of the assumed structure, keeps this property when the plant has small unmodeled dynamics. Rohrs, Valavani, Athans and Stein (1985) took a first order plant with a fast, well damped second order factor that the designer ignores, and showed that a bounded command at a high frequency makes the gains drift until the closed loop loses stability. The unmodeled factor has a bandwidth of about 15 rad/s against the plant pole at 1 rad/s, so a fixed controller with the same nominal design has a large margin. The example started the work on robust adaptive control, with modifications such as sigma modification and parameter projection.

Statement

The claim that fails. For the plant y=2s+1uy = \frac{2}{s + 1}u, the reference model ym=3s+3ry_m = \frac{3}{s + 3}r, the controller u=krr+kyyu = k_r r + k_y y, the error e=y−yme = y - y_m and the adaptive law

k˙r=−γ e r,k˙y=−γ e y,γ=1,\dot k_r = -\gamma\, e\, r,\qquad \dot k_y = -\gamma\, e\, y,\qquad \gamma = 1,

all signals are bounded and e(t)→0e(t) \to 0 for every bounded rr and every initial state. This is a theorem for the plant above (it has relative degree one and the transfer function 2s+1\frac{2}{s+1}, and the law is the Lyapunov law of the MRAC page for a plant with a positive high frequency gain). The ideal gains are kr∗=1.5k_r^* = 1.5 and ky∗=−1k_y^* = -1.

The counterexample. Let the true plant be

y=2s+1⋅229s2+30s+229 u,y = \frac{2}{s + 1}\cdot\frac{229}{s^2 + 30s + 229}\,u,

with the same model, controller and law. The extra factor has the poles −15±2j-15 \pm 2j and the gain 1 at s=0s = 0. Start with the plant and the model at rest and kr(0)=1.14k_r(0) = 1.14, ky(0)=−0.65k_y(0) = -0.65, and apply

r(t)=0.3+1.85sin⁡(16.1 t).r(t) = 0.3 + 1.85\sin(16.1\,t).

Then:

  1. For each frozen value of kyk_y, the closed loop is asymptotically stable if and only if −17.03<ky<0.5-17.03 < k_y < 0.5 (exactly, −7800/458<ky<1/2-7800/458 < k_y < 1/2). The initial gains are inside, with the DC gain 0.99130.9913 from rr to yy.
  2. The solution of the adaptive loop has ky(t)k_y(t) decreasing on average: ky=−1.70k_y = -1.70 at t=10t = 10 s and −12.6-12.6 at t=20t = 20 s, while krk_r grows to 3.773.77 and 14.614.6.
  3. kyk_y passes −17.03-17.03 at t=20.36t = 20.36 s, and ∣y∣|y| exceeds 10 at t=20.69t = 20.69 s: the closed loop is unstable, and the signals grow without bound.

Item 1 is exact. Items 2 and 3 are measurements of a numerical solution (RK4 with the step 0.001 s, the same times with 0.0005 s), which agree with Fig. 6 of the paper.

In plain words

An adaptive controller is designed for a simple model of a machine. The real machine has an extra small delay that the model leaves out; it only matters for fast signals. If the command contains a fast wave, at a speed where this small delay turns the response of the machine upside down, the adaptive rule reads the wrong direction from the data. It keeps raising the feedback gain, slowly, because it thinks this makes the error smaller. After about 20 seconds the gain is so large that the loop shakes itself apart. A fixed controller with the same starting tuning would have been fine forever. The lesson is that an adaptive rule that is proved correct for the model can fail for a machine that is only a little different.

Proof

Step 1 (the frozen loop). With constant gains, u=krr+kyyu = k_r r + k_y y and y=Guy = G u with G(s)=458(s+1)(s2+30s+229)G(s) = \frac{458}{(s + 1)(s^2 + 30s + 229)}. The denominator of the closed loop is

(s+1)(s2+30s+229)−458ky=s3+31s2+259s+(229−458ky).(s + 1)(s^2 + 30s + 229) - 458k_y = s^3 + 31s^2 + 259s + (229 - 458k_y).

By the Routh-Hurwitz criterion, a cubic s3+a1s2+a2s+a3s^3 + a_1s^2 + a_2s + a_3 has all roots in the open left half plane if and only if a1>0a_1 > 0, a3>0a_3 > 0 and a1a2>a3a_1a_2 > a_3. Here a1=31a_1 = 31, a3>0a_3 > 0 means ky<1/2k_y < 1/2, and 31⋅259=8029>229−458ky31 \cdot 259 = 8029 > 229 - 458k_y means ky>−7800/458=−17.0306k_y > -7800/458 = -17.0306. At ky=−0.65k_y = -0.65, a3=526.7a_3 = 526.7 and the DC gain is krG(0)/(1−kyG(0))=2.28/2.3=0.9913k_r G(0)/(1 - k_yG(0)) = 2.28/2.3 = 0.9913.

Step 2 (the critical frequency). G(jω)G(j\omega) is real when the imaginary part of the denominator 229−31ω2+j(259ω−ω3)229 - 31\omega^2 + j(259\omega - \omega^3) is zero, that is at ω=259=16.0935\omega = \sqrt{259} = 16.0935 rad/s. There the denominator is 229−31⋅259=−7800229 - 31 \cdot 259 = -7800 and G=−458/7800=−0.058718G = -458/7800 = -0.058718: the phase is −180-180 degrees and 1/G=−17.031/G = -17.03, the same bound as in Step 1. At ω=16.1\omega = 16.1 the phase is −180.02-180.02 degrees and ∣G∣=0.058669|G| = 0.058669. The reduced plant 2/(s+1)2/(s + 1) has the phase −86.4-86.4 degrees at this frequency, so the unmodeled factor adds about −94-94 degrees exactly where the command has its energy.

Step 3 (the direction of the drift). This step is an approximation by averaging, valid while the gains change slowly compared with the loop. For frozen gains and a sine r=r1sin⁡ωtr = r_1\sin\omega t, the steady state is y=Try = T r with T=krG/(1−kyG)T = k_rG/(1 - k_yG) and ym=Mry_m = Mr with M=3/(s+3)M = 3/(s + 3), so the mean of e ye\,y over one period is

e y‾=r122(∣T(jω)∣2−Re⁡(M(jω)T(jω)‾)).\overline{e\,y} = \frac{r_1^2}{2}\left(|T(j\omega)|^2 - \operatorname{Re}\big(M(j\omega)\overline{T(j\omega)}\big)\right).

At ω=16.1\omega = 16.1, GG is real and negative, so TT is real and negative while 1−kyG>01 - k_yG > 0, and Re⁡M(j16.1)=9/(9+16.12)=0.03356>0\operatorname{Re}M(j16.1) = 9/(9 + 16.1^2) = 0.03356 > 0. Both terms are then positive, so e y‾>0\overline{e\,y} > 0 and k˙y=−e y\dot k_y = -e\,y decreases kyk_y on average. In the same way e r‾=(r12/2)Re⁡(T−M)<0\overline{e\,r} = (r_1^2/2)\operatorname{Re}(T - M) < 0, so krk_r increases. As kyk_y falls, 1−kyG=1+0.0587ky1 - k_yG = 1 + 0.0587k_y moves toward zero, ∣T∣|T| grows, and the drift becomes faster. The constant part 0.30.3 of rr pulls the gains toward the correct DC gain, but with the amplitude 1.851.85 the sine term dominates. Nothing stops kyk_y before the bound −17.03-17.03 of Step 1.

Step 4 (the instability). The numerical solution of the six differential equations (three plant states, the model, krk_r and kyk_y) confirms Step 3 with the values of the Statement. Once ky<−17.03k_y < -17.03, the frozen loop has a pair of poles in the right half plane, near ±16.1j\pm 16.1j, the oscillation at this frequency grows, and its growth makes e ye\,y larger and drives kyk_y further down. The claim that fails needs only one bounded command with unbounded signals, and this is such a command. □\square

Consequences

  • Small modeling errors matter. The proofs of MRAC need the plant to have exactly the assumed relative degree and order. A factor with gain 1 at low frequency and a bandwidth 15 times the plant pole is enough to break the guarantee.
  • The command must not excite the unmodeled range. A rule of thumb that follows from Step 3 is to keep the command and the adaptation slow relative to the frequencies where the model is wrong; Åström (1983) explained the effect by averaging.
  • Bounded disturbances cause drift. With a constant command and a small disturbance, the gains can drift without bound even for the ideal plant (Ioannou and Sun, Section 8.3.1, give an explicit solution with x→0x \to 0 and k=5(1+t)1/5→∞k = 5(1 + t)^{1/5} \to \infty). Large gains then meet the unmodeled dynamics.
  • Robust adaptive laws. Leakage (sigma modification), parameter projection, dead zones and normalization keep the gains bounded, at the cost of a bias or a residual error. With projection of kyk_y into [−10,0][-10, 0], for example, the frozen loop of Step 1 stays asymptotically stable for every kyk_y in the set.
  • Later designs. L1 adaptive control separates the adaptation from the control bandwidth with a filter, partly in response to such examples.

Tightness

  • The frequency matters. With r=0.3+2sin⁡8tr = 0.3 + 2\sin 8t the paper reports bounded signals (Fig. 7). At ω=8\omega = 8 the phase of GG is −138.4-138.4 degrees and G=−0.1458−0.1296jG = -0.1458 - 0.1296j; in a simulation with the same start, the gains move to about kr=1.42k_r = 1.42 and ky=−5.5k_y = -5.5 at t=100t = 100 s and stay inside the interval of Step 1 (a measurement).
  • The unmodeled factor matters. For the plant 2/(s+1)2/(s + 1) without the extra factor, the theorem holds for every bounded command, so the counterexample needs the unmodeled dynamics.
  • The bound is sharp. The frozen loop is asymptotically stable exactly for −17.03<ky<0.5-17.03 < k_y < 0.5, so the instability appears precisely when the drift crosses −17.03-17.03, as the numerical solution shows.

History

Rohrs, Valavani, Athans and Stein presented the examples at a conference in the early 1980s and published the full account in the IEEE Transactions on Automatic Control in 1985. They argued that the adaptive algorithms of that time were not robust to unmodeled dynamics. Åström (1983) analyzed the same examples by averaging and related the instability to the frequency content of the command and the phase of the unmodeled dynamics. Ioannou and Kokotović, Egardt, Narendra and Annaswamy, and others developed robust adaptive laws in the same years; Ioannou and Sun (1996) give the unified account.

References

  1. Charles E. Rohrs, Lena Valavani, Michael Athans and Gunter Stein, Robustness of continuous-time adaptive control algorithms in the presence of unmodeled dynamics, IEEE Transactions on Automatic Control 30(9), 1985, pages 881 to 889; the plant 2/(s+1) times 229/(s^2+30s+229), the model 3/(s+3), the initial gains 1.14 and -0.65; Fig. 6 (r = 0.3 + 1.85 sin 16.1t, instability) and Fig. 7 (r = 0.3 + 2 sin 8t, bounded)
  2. Petros A. Ioannou and Jing Sun, Robust Adaptive Control, Prentice Hall 1996 (Dover reprint 2012), Section 8.3, Instability phenomena in adaptive systems (8.3.1 parameter drift, 8.3.2 high frequency unmodeled dynamics) and Section 8.4 (robust modifications of the adaptive law)
  3. Karl Johan Åström, Analysis of Rohrs counterexamples to adaptive control, Proceedings of the 22nd IEEE Conference on Decision and Control, 1983, the whole paper (an averaging analysis that explains the instability by the phase of the unmodeled dynamics at the frequency of the command)

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