Techniquecore
Loop shaping
Also called classical loop shaping.
Design a controller C by shaping the Bode plot of L = PC: high gain at low frequency, low gain at high frequency, and a crossover with a slope near -20 dB per decade and enough phase margin.
Loop shaping is a way to design a feedback controller by choosing the frequency response of the loop transfer function instead of the closed loop. The designer asks for high gain at low frequency, so that the sensitivity function is small and the loop tracks references and rejects disturbances; low gain at high frequency, so that is small and the loop ignores sensor noise and model errors; and a crossover where passes 0 dB with a slope near dB per decade and enough phase margin. On a Bode plot the factors of add to the curve of , so the controller is built one factor at a time. The Bode gain-phase relation and the Bode sensitivity integral say how far the shape can be pushed.
In plain words
The loop gain is the controller times the plant, and its curve against frequency tells most of the story. Where the curve is high, the loop follows commands and fights disturbances. Where it is low, the loop ignores noise and does not care about errors in the model. The designer draws the wanted curve: high at slow frequencies, low at fast ones, and a gentle slope where the curve passes through one, because a steep slope there brings too much lag and the loop starts to ring. Then the controller is the wanted curve divided by the plant, built from a few standard pieces such as an integrator, a lead and a lag. Last, the designer checks the margins and the response, and adjusts.
When it applies
- The plant is linear, time invariant, and single input single output, with a model or a measured frequency response. For several inputs and outputs the same ideas work with singular values, with more care.
- The specifications are, or can be turned into, bounds on and over frequency bands: an error of at most for slow references and disturbances, a noise or uncertainty bound at high frequency, a peak of 1.2 to 2, and a phase margin of 30 to 60 degrees.
- The plant is minimum-phase and stable, or close to it. A zero in the right half plane at , a time delay and an unstable pole at all limit the crossover frequency . Common rules of thumb are , and ; an unstable pole and a slower zero in the right half plane together make the design hard or impossible.
The template
- Turn the specifications into bounds on . If with , then . If , then . So a low-frequency band where must be small becomes a floor under , and a high-frequency band where must be small becomes a ceiling over . For a relative model uncertainty of size , robust stability asks , which is again a ceiling at high frequency.
- Choose the crossover frequency . It must lie between the floor band and the ceiling band, and below the limits set by zeros in the right half plane and delays. The closed-loop bandwidth is roughly .
- Draw the target loop. Put an integrator in if steady state errors to steps must be 0. Give a slope of about dB per decade over roughly a decade around ; by the gain-phase relation this keeps the phase near to degrees there. Let the gain fall faster above that band, for roll-off.
- Build . Write in terms of standard factors: a gain, an integrator or a PI factor , a lead-lag compensator for phase near , and extra poles for roll-off. Never cancel a pole or zero of in the closed right half plane.
- Check and iterate. Compute the margins, and , confirm with the Nyquist stability criterion or the closed-loop poles that the loop is asymptotically stable, and look at the step responses to the reference and to a load disturbance.
Why it works. At frequencies where , and . Where , and . So far from crossover, the closed loop is read directly from , and the shape of alone sets performance and noise rejection. Near crossover neither approximation holds, and there the phase of decides the peaks of and ; for a minimum-phase loop that phase is fixed by the slope of , which is why step 3 asks for a gentle slope. The sensitivity integral adds a global limit: with a finite bandwidth, a deeper floor under costs a higher peak of elsewhere.
Classic examples
A PI controller for three equal lags. Let and ask for zero steady state error to steps and a phase margin of 60 degrees. Take . The integrator gives the floor at low frequency. Put the PI zero a factor 3 below crossover, , so that the PI factor costs degrees at . The plant phase is , so the margin of 60 degrees needs degrees, which gives and . The gain from is
so . You can check the phase by hand: at the plant gives degrees and the PI factor degrees, in total.
The resulting loop has these properties:
| quantity | value |
|---|---|
| phase margin | 60.00 degrees at |
| gain margin | 3.7819 (11.554 dB) at |
| peak sensitivity | 1.73168 at |
| peak of | 1.08677 at |
| closed-loop poles | , , |
The approximations of step 1 hold away from crossover. At , and ; at , and . At , and ; at , and .
For comparison, the classic Ziegler-Nichols PID for the same plant (, , ) has a phase margin of 30.62 degrees at and : a faster loop with half the phase margin and a higher peak of .
The slow pole of the PI zero. The closed-loop pole at is close to the PI zero at . In the response to a reference step the pair nearly cancels and leaves a small slow tail. In the response to a load disturbance at the plant input, the zero is not in the transfer function , and the slow pole shows fully. Placing the PI zero closer to speeds this pole up but costs phase margin.
A lead network on a fast plant. For , the loop without compensation has its crossover at 3.08423 rad/s with a phase margin of only 17.96 degrees. A lead network adds about 37 degrees at a new crossover of 4.41659 rad/s and gives a margin of 49.63 degrees with the same low-frequency gain; the lead-lag compensator page works this example through.
Variations
- Lead-lag design. Shape the loop with one or two first-order lead or lag factors, the classical form of loop shaping before computers (lead-lag compensator).
- PID tuning by loop shaping. Fix the crossover and margin of a PID controller loop, as in the example above, instead of a tuning table.
- Design on the Nichols chart. Work with the curve of on the Nichols chart, where a gain change moves the curve up or down and the closed-loop peak is read from the contours.
- Horowitz's design against uncertainty. Isaac Horowitz (1963) designed so that a whole set of plants meets the specifications, by bounds on at each frequency; he later developed this into quantitative feedback theory.
- H-infinity loop shaping. Shape the plant with weights by the classical rules, then compute a controller that robustly stabilizes the shaped plant (H-infinity loop shaping).
- Mixed-sensitivity design. Write the floor and the ceiling as weights on and and minimize an H-infinity norm (mixed-sensitivity design).
- Two degrees of freedom. Shape for feedback properties only, and shape the reference response with a prefilter (two-degree-of-freedom control).
Pitfalls
- Cancelling an unstable pole or a zero in the right half plane. near such a factor gives a nice but an internally unstable loop: the cancelled mode is still there in or .
- Shaping the gain and forgetting the phase. A slope of dB per decade at crossover gives a phase near degrees for a minimum-phase loop. With a delay or a zero in the right half plane the phase is even lower than the slope suggests.
- Trusting the two margins. A loop with good gain and phase margins can still pass close to between the crossovers, for example near a lightly damped mode. Check as well (see the example on the gain margin page).
- Several crossovers. If crosses 0 dB more than once, each crossover needs its own phase margin, and the smallest counts.
- Saturation. The linear design assumes that the actuator does not saturate. A high gain at low frequency with an integrator needs anti-windup.
- Pushing the floor too far. By the sensitivity integral, a deeper or wider floor under raises the peak of when the bandwidth is limited.
Exercises
- In the PI example, what does the PI factor cost in phase at if ? (Answer: degrees.)
- Redo the PI design for a phase margin of 45 degrees with . (Answer: , , .)
- Show that implies , and that implies .
- For , find for a phase margin of 45 degrees. (Answer: the phase is degrees at , so .)
- Let and . Compute and its margins, then compute and explain why the loop is not usable.
References
- Isaac M. Horowitz, Synthesis of Feedback Systems, Academic Press, 1963, the whole book (the design of the loop transmission against plant uncertainty and the cost of feedback in bandwidth); no chapter locator confirmed
- John C. Doyle, Bruce A. Francis and Allen R. Tannenbaum, Feedback Control Theory, Macmillan, 1992 (Dover reprint, 2009), Chapter 7, Loopshaping (performance and robustness specifications turned into bounds on the loop gain)
- Sigurd Skogestad and Ian Postlethwaite, Multivariable Feedback Control, Analysis and Design, second edition, Wiley, 2005, Section 2.6, Loop shaping, with Section 2.6.1 on the trade-offs in terms of L and Section 2.6.2 on the fundamentals, including the limits from zeros in the right half plane and from time delays
- Karl Johan Åström and Richard M. Murray, Feedback Systems, An Introduction for Scientists and Engineers, second edition, Princeton University Press, 2021, Chapter 12, Frequency Domain Design, the section on feedback design via loop shaping
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 266P6R Edit this page History Report an error Markdown