Lead compensation
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
The plant G(s) = 1/(s(s + 1)) under a plain gain can only slide its poles up and down the line σ = −0.5, so it always takes about 8 s to settle. A lead compensator, Kc(s + z)/(s + p) with the zero nearer the origin than the pole, adds angle and pulls the locus left. You will design one by hand on the root locus, with the angle rule to place its pole and the magnitude rule to set its gain, and get the same 16.3% overshoot in 2.02 s instead of 8.08 s. Then you will see why it is called lead: on the Bode plot its phase is positive, peaking at 36.9°.
A loop that is too slow
Our plant is G(s) = 1/(s(s + 1)), driven by a plain gain K. With K = 1 the output overshoots 16.3%, which we like, but takes 8.08 s to settle. We want the same overshoot, four times faster.
G(s) = 1 / (s(s + 1)) poles 0, −1 controller: a gain K closed-loop poles: s² + s + K = 0 K = 1: s = −0.5 ± 0.87j (ζ = 0.5, ωn = 1) overshoot 16.3 % peak at 3.63 s settles (2 %) in 8.08 s goal: same overshoot, settle in about 2 s
اقرأ الدرس خطوة بخطوة
A loop that is too slow
Our plant is G(s) = 1/(s(s + 1)), driven by a plain gain K. With K = 1 the output overshoots 16.3%, which we like, but takes 8.08 s to settle. We want the same overshoot, four times faster.
G(s) = 1 / (s(s + 1)) poles 0, −1 controller: a gain K closed-loop poles: s² + s + K = 0 K = 1: s = −0.5 ± 0.87j (ζ = 0.5, ωn = 1) overshoot 16.3 % peak at 3.63 s settles (2 %) in 8.08 s goal: same overshoot, settle in about 2 sGain alone cannot do it
Turn K up. The poles meet at −0.5, then only climb the line σ = −0.5. The real part never moves, so the settling time stays near 8 s. At K = 16 the output overshoots 67.3% and still needs 7.33 s.
s² + s + K = 0 → s = −0.5 ± j√(K − 0.25) real part −0.5 for every K > 0.25 settling time ≈ 4 / 0.5 = 8 s, whatever K K = 16: s = −0.5 ± 3.97j overshoot 67.3 % settles (2 %) in 7.33 s more gain: faster swings, same slow decayWhere we want the poles
Same overshoot means ζ = 0.5; four times faster means ωn = 4. So we want poles at −2 ± 3.46j. Is that point on the locus? Add the plant's angles there: 120° + 106.1° = 226.1°, not 180°. No gain can reach it.
target ζ = 0.5, ωn = 4 s_d = −ζωn ± jωn√(1 − ζ²) = −2 ± 3.46j angle condition: on the locus ∠G(s) = −180° from the pole at 0: 120° from the pole at −1: 106.1° ∠G(s_d) = −(120 + 106.1) = −226.1° short by 226.1 − 180 = 46.1° the controller must ADD 46.1° thereA lead compensator
Swap the plain gain for a lead compensator: Kc(s + z)/(s + p), a zero and a pole with the zero nearer the origin (z < p). Seen from any point above the axis, the zero adds more angle than the pole takes away.
lead compensator Gc(s) = Kc (s + z) / (s + p), 0 < z < p zero at −z (nearer the origin) pole at −p (further left) at a point s above the axis: ∠Gc(s) = ∠(s + z) − ∠(s + p) > 0 the zero's angle is always the larger one why not a bare zero (PD)? its gain keeps rising with frequency and amplifies noise; the pole levels it off at p/z times the low-frequency gainPut the zero on the slow pole
A common choice: put the zero at −1, right on the plant's slow pole. At the target it adds +106.1°, exactly cancelling that pole's angle. We still need 46.1° in total, so the lead's pole must take away 60°.
zero at −1 (z = 1), on the plant pole at −1 ∠(s_d + 1) = +106.1° cancels the pole's −106.1° wanted from the lead in total: +46.1° zero: +106.1° pole: 106.1 − 46.1 = 60° to take away zero on a plant pole: the two cancel, so the loop behaves as if that pole were gonePlace the pole by the angle rule
The pole must sit where the line to the target leans at 60°: that is −4. Now the loop is Kc/(s(s + 4)), and its locus climbs the line σ = −2, straight through the target.
pole: ∠(s_d + p) = 60° tan 60° = 3.46 / (p − 2) → p = 2 + 3.46/1.732 = 4 angles at s_d now: −120 − 106.1 + 106.1 − 60 = −180° ✓ on the locus loop Kc(s + 1) / (s(s + 1)(s + 4)) = Kc / (s(s + 4)) closed-loop poles (s + 1)(s² + 4s + Kc) = 0 real part −2 once Kc > 4Pick Kc by the magnitude rule
On the locus, the gain that lands on a point is the product of the distances from the poles, divided by those from the zeros. At the target: Kc = 4 × 4 = 16. The poles now sit on −2 ± 3.46j.
magnitude condition |Gc(s)G(s)| = 1 Kc = |s_d| · |s_d + 4| (the zero and the pole at −1 cancel) = 4 · 4 = 16 Gc(s) = 16 (s + 1) / (s + 4) closed loop: (s + 1)(s² + 4s + 16) = 0 s = −2 ± 3.46j, and −1 (on the zero) T(s) = 16 / (s² + 4s + 16): ζ = 0.5, ωn = 4Same overshoot, four times faster
Run the step again. The output overshoots 16.3% as before, but peaks at 0.91 s instead of 3.63 s and settles in 2.02 s instead of 8.08 s (dashed). The velocity constant rose from 1 to 4.
gain K = 1 lead 16(s+1)/(s+4) poles −0.5 ± 0.87j −2 ± 3.46j overshoot 16.3 % 16.3 % peak at 3.63 s 0.91 s settles (2 %) 8.08 s 2.02 s Kv = lim sL 1 16·1/4 = 4 4.0 times faster, ramp error 1 → 0.25Why it is called lead
Feed the compensator a sine wave and its output runs ahead of the input: positive phase. For (s + 1)/(s + 4) the lead peaks at 36.9° at 2 rad/s, halfway between 1 and 4 on a log scale.
∠Gc(jω) = atan(ω/1) − atan(ω/4) > 0 for all ω α = z/p = 1/4, T = 1/z = 1 frequency of most lead ωmax = 1/(T√α) = √(1·4) = 2 rad/s most lead sin φmax = (1 − α)/(1 + α) = 0.6 φmax = 36.9° at the complex point s_d it gave 46.1°: φmax only limits the jω axis, used in Bode designCheck the design in Python
Python's cmath does the angle and magnitude rules for us: it finds the missing angle, places the pole, and works out Kc. It prints 46.1°, a pole at 4 and a gain of 16.
import cmath, math s = complex(-2, 2 * math.sqrt(3)) # target: zeta 0.5, wn 4 ang = lambda z: math.degrees(cmath.phase(z)) need = -180 + ang(s) + ang(s + 1) # angle the lead must add pole_ang = ang(s + 1) - need # zero at -1 gives ang(s + 1) p = -s.real + s.imag / math.tan(math.radians(pole_ang)) Kc = abs(s) * abs(s + p) # zero and plant pole cancel print(round(need, 1), round(p, 2), round(Kc, 2)) # 46.1 4.0 16.0
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01With G(s) = 1/(s(s + 1)) and a plain gain K > 0.25, where are the closed-loop poles?
The poles solve s² + s + K = 0, so s = −0.5 ± j√(K − 0.25). More gain only raises the imaginary part; the decay rate, set by the real part −0.5, never changes.
02At the target s = −2 + 3.46j the plant's angle is −226.1°. What must the compensator add there?
A point is on the root locus when the total angle is −180°. −226.1° + 46.1° = −180°, so the lead must add +46.1°.
03Which of these is a lead compensator?
In a lead network the zero is nearer the origin than the pole (z < p), so (s + 1)/(s + 4). (s + 4)/(s + 1) has the pole nearer the origin: that is a lag network.
04The design gives the loop Kc/(s(s + 4)) after the zero cancels the plant pole at −1. Which Kc puts the poles at −2 ± 3.46j?
The magnitude condition: Kc = |s|·|s + 4| at s = −2 + 3.46j. Both distances are 4, so Kc = 16. Check: s² + 4s + 16 = 0 gives −2 ± j√12 = −2 ± 3.46j.
05A lead network has α = z/p = 0.25. What is its largest phase lead on the Bode plot?
sin φmax = (1 − α)/(1 + α) = 0.75/1.25 = 0.6, so φmax = 36.9°, reached at ωmax = √(z·p). The 46.1° it adds at the complex target point is not bound by this, which only holds on the jω axis.
المسرد
- Compensator
- A block added to the loop, usually before the plant, to reshape how the closed loop responds.
- Lead compensator
- Gc(s) = Kc(s + z)/(s + p) with 0 < z < p. It adds positive angle (phase lead), pulling the root locus left and making the loop faster.
- Angle condition
- A point s is on the root locus when the angles of the open-loop transfer function there add up to an odd multiple of −180°.
- Magnitude condition
- On the locus, the gain that puts a closed-loop pole at s makes |Gc(s)G(s)| = 1: the product of distances from the poles divided by the product of distances from the zeros.
- Angle deficiency
- How far the plant's angle at the target point is from −180°: the angle the compensator must supply.
- Pole-zero cancellation
- Placing a zero on a pole so the two cancel in the loop. Only safe for poles in the left half-plane whose position is well known.
- Phase lead
- A positive phase shift: the output sine wave runs ahead of the input.
- Velocity constant Kv
- lim s→0 of s·Gc(s)G(s). The steady-state error to a unit ramp is 1/Kv.
الملاحظات والمصادر
- Every curve is the step response of the closed loop, integrated from its own equations (fourth-order Runge-Kutta: 3.125 ms steps on the plot, 1 ms steps for the measured numbers). Overshoot, peak time and 2% settling time are measured on that curve.
- Putting the lead's zero on a stable plant pole is a standard first choice and makes the result an exact second-order loop. If the plant pole is not known exactly the cancellation is imperfect, and it must never be tried on a pole in the right half-plane.
- The lead network's phase on the jω axis peaks at sin φmax = (1 − α)/(1 + α), at ωmax = 1/(T√α), with α = z/p < 1 and T = 1/z. Frequency-response design picks α from the phase margin it needs.
- The Python uses only the standard library. With python-control installed, ct.root_locus_map(ct.tf([1, 1], [1, 5, 4, 0]), gains=[16]) returns the same closed-loop poles: −2 ± 3.46j and −1.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 9, Design via Root Locus: lead compensation)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 6, lead compensation by the root-locus method; ch. 7, by frequency response)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 5 and ch. 6, lead compensation)
- R. Babuška, TU Delft lecture 9: Lead and lag compensators (sin φmax = (1 − α)/(1 + α), ωmax = 1/(T√α))
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- Lead–lag compensator: in a lead compensator |z| < |p|
- python-control: control.tf
- python-control: control.root_locus_map
- Python documentation: cmath, complex numbers (cmath.phase)
اختبار يتاح بعد الخطوة الأخيرة.