S9 · Lesson 29 · Robustness and model uncertainty
How wrong a model may be: multiplicative uncertainty, the small-gain theorem and the robust stability test |WT| < 1, gain and delay uncertainty, and robust performance
Every controller is designed for a model, and every model is wrong: gains drift with temperature, resonances hide above the frequencies anyone measured, delays change with load. Gain and phase margins (lesson 25) guard against two particular kinds of error, one at a time. Robust control asks the general question: given a bound on how far the real plant may differ from the model at each frequency, is the loop guaranteed to stay stable, and to keep performing? The answer comes from a single inequality on the complementary sensitivity.
- The solid curve is for a closed loop with ζ = 0.5; the dashed curve is , the inverse of an uncertainty weight that's 10% at low frequency and grows past 100% above 10 rad/s, .
- The loop is guaranteed stable for every plant in the set as long as the solid curve stays below the dashed one at every frequency.
- Raise and T's peak climbs into the region where the model is poor: fast loops need good models at high frequencies.
Predict
A loop's closed-loop gain T peaks at 1.5. The real plant's gain may differ from the model's by an unknown factor at every frequency. How large may that relative error be with stability guaranteed?
A multiplicative error Δ turns the loop gain into , and the closed loop stays stable for every such error if at all frequencies: here . That's the small-gain theorem at work. The bound allows any phase for the error, so it's a guarantee, not a prediction: particular errors much larger may still be stable.
Name it
Describing uncertainty
A multiplicative (relative) uncertainty set contains every plant
where the weight W says how large the relative error may be at each frequency: small at low frequency where the model was measured, near or above 1 where it's unknown. Typical sources:
- a gain known only within ±r: |W| = r;
- an unmodeled delay of up to θ: ;
- neglected fast poles and resonances: |W| rising with frequency.
The small-gain theorem and robust stability
A feedback loop of two stable systems is stable if the product of their peak gains is below one. Applied to the uncertainty seen through the nominal loop, the closed loop is stable for every plant in the set exactly when
so |T| must stay under . Since T ≈ 1 below crossover, the model must be good there (|W| < 1); above crossover T rolls off and the model may be poor.
Robust performance
Performance is usually a bound on the sensitivity, , with a weight large where disturbances must be rejected. Keeping it for every plant in the set needs
which is harder than nominal performance and robust stability separately, most of all near crossover, where both S and T are near one.
Worked example
A loop has nominal (from ). What unmodeled delay does the small-gain test guarantee it can tolerate, and what's the exact limit?
Show the solution
- The small-gain test. With , it needs at every ω.
- Search for the limit. A numerical search finds it holds up to θ = 1.48 s; at θ = 1 s the peak of is 0.76.
- The exact limit. It's the delay margin:
- Compare. The test is only 6% conservative here, because a delay's error really can take any phase as frequency varies.
Answer the small-gain test guarantees 1.48 s of delay, and the exact limit is 1.57 s.
Worked example
A loop has a 9.5 dB gain margin (a factor of 3). The plant's gain is known only within ±50%. What margin survives the worst case, and what does the robust stability test say?
Show the solution
- Worst-case gain margin. At 1.5 times the nominal gain: or 6.0 dB: still stable.
- Robust stability test. At all frequencies it asks for a peak closed-loop gain below 2:
- How the two compare. The test covers gain errors of any phase as well as real ones, so it is stricter than checking the gain margin, but it also covers the plant's gain drifting differently at different frequencies.
Answer a gain margin of 2 (6.0 dB) survives, and the robust stability test asks for at every frequency.
Worked example
At 0.5 rad/s, the loop must keep |S| below 0.1 (so = 10) while the model may be off by 30% (|W| = 0.3). Is robust performance met at that frequency?
Show the solution
- Sensitivities at 0.5 rad/s.
- Robust performance test. so it's met.
- Where the room went. Nominal performance alone looks comfortable at 0.57, but the uncertainty uses up most of the remaining room.
- Larger errors. A model error above 42% there would break the guarantee even though the nominal loop meets its specification.
Answer yes: = 0.880, below 1, though a model error above 42% would break it.
Check
A closed loop's |T| peaks at 1.3.
(a)
Up to what relative model error, of any phase, is stability guaranteed?
Check
A loop may contain an unmodeled delay of up to 20 ms.
(a)
How large is the relative uncertainty at 50 rad/s?
(b)
What's the largest |T| allowed at that frequency?
Check
A loop has a gain margin of 3 (a factor) and the plant's gain may be up to 20% higher than modeled.
(a)
What gain margin remains in the worst case?
(b)
In decibels?
Check
At one frequency a loop has |S| = 0.2 and |T| = 0.9; the performance weight is = 10 and the uncertainty weight |W| = 0.5.
(a)
What is there (robust performance needs it below 1)?
Check
Two stable systems in a feedback loop have peak gains 2 and 0.1.
(a)
What is the product the small-gain theorem tests?
(b)
How large could the second system's peak gain be, with the first unchanged, and stability still guaranteed?
Check
A loop was designed for θ = 0 with = 2 s; the actual delay is 0.1 s.
(a)
What phase margin does it have?
(b)
What's the largest delay it could tolerate?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Why must a model be accurate near and below the crossover frequency but may be poor far above it?
Check
A loop with |T| = M at frequency w faces a delay uncertainty of up to t seconds, or separately a gain uncertainty of ±r.
Step 1
What is the delay's |W| at w?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is |WT| for the delay at w?
Step 3
And |WT| for the gain uncertainty?
Check
Write peak_wt(L, W, ws): the largest over the list of frequencies ws, with L and W given as Python functions of the complex s; and max_delay(L, wmin, wmax): the largest θ (by bisection between 0 and 10) for which the small-gain test with passes on 4000 log-spaced frequencies from wmin to wmax.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
How does the robust stability condition |WT| < 1 connect to gain and phase margins?
Gain and phase margins each test one kind of model error at one frequency: a real change in gain at the phase crossover, or a pure phase shift at the gain crossover. The condition |WT| < 1 tests every error whose size is bounded by |W| at each frequency, whatever its phase, which includes both of those as special cases and also errors that combine gain and phase, or that vary with frequency like unmodeled resonances and delays. It follows from the small-gain theorem: the error closes a loop through T, and if the gain around that loop stays below one, no instability can build up. The cost is conservatism, since it guards against error phases the real plant may never have.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.