From phase margin to overshoot
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
The phase margin you read off an open-loop Bode plot predicts how much the closed loop will overshoot a step. Follow one loop, a gain K and the plant 1/(s(s+2)): read the crossover and the margin, turn the margin into a damping ratio, turn the damping ratio into a percent overshoot, then run the step and watch the prediction come true. Finally, run the chain backwards to choose K for a 10% overshoot.
Will it overshoot?
A gain K = 4 drives a plant 1/(s(s+2)), and the output is fed back and compared with the input. We will apply a step of 1. How far past 1 will the output swing? We answer from the open-loop Bode plot, before running anything.
open loop L(s) = K / (s (s + 2)), K = 4 closed loop T(s) = L / (1 + L) input r = unit step (0 → 1 at t = 0) question: the peak of y(t), read from the plot of L(jω) alone
اقرأ الدرس خطوة بخطوة
Will it overshoot?
A gain K = 4 drives a plant 1/(s(s+2)), and the output is fed back and compared with the input. We will apply a step of 1. How far past 1 will the output swing? We answer from the open-loop Bode plot, before running anything.
open loop L(s) = K / (s (s + 2)), K = 4 closed loop T(s) = L / (1 + L) input r = unit step (0 → 1 at t = 0) question: the peak of y(t), read from the plot of L(jω) aloneFind the crossover
On the magnitude plot, follow |L| down to 0 dB, where the loop gain is exactly 1. That frequency is the gain crossover ωc. For K = 4 it is 1.57 rad/s.
|L(jω)| = K / (ω · √(ω² + 4)) |L| = 1 (0 dB) at ωc = 1.57 rad/s Below ωc the loop gain is above 1; above ωc it is below 1.Read the phase margin
Go straight down to the phase plot at ωc. The phase there is −128.2°. The phase margin is how far that sits above −180°: 180 − 128.2 = 51.8°. The lesson on gain margin and phase margin defined it.
import cmath, math K = 4.0 L = lambda w: K / (1j * w * (1j * w + 2)) lo, hi = 0.01, 100.0 for _ in range(100): # find |L| = 1 w = math.sqrt(lo * hi) if abs(L(w)) > 1: lo = w else: hi = w pm = 180 + math.degrees(cmath.phase(L(w))) print(round(w, 2), round(pm, 1)) # 1.57 51.8Margin gives damping
Closing this loop gives K/(s² + 2s + K), a standard second-order system. For it, the phase margin depends on the damping ratio ζ alone. Solving the formula backwards, 51.8° gives ζ = 0.50.
T(s) = K / (s² + 2s + K) = ωn² / (s² + 2ζωn s + ωn²) PM = atan( 2ζ / √(√(1 + 4ζ⁴) − 2ζ²) ) PM 51.8° → ζ = 0.50 (check: ωn = √4 = 2, 2ζωn = 2, ζ = 0.5)Damping gives overshoot
The damping ratio fixes the overshoot of a second-order step: %OS = 100·e^(−ζπ/√(1−ζ²)). With ζ = 0.50 that is 16.3%. So the prediction: the output peaks at about 1.163.
%OS = 100 · exp(−ζπ / √(1 − ζ²)) = 100 · exp(−0.5π / 0.866) = 16.3 % predicted peak y = 1.163 chain: PM 51.8° → ζ 0.50 → 16.3 %Run the step
Now apply the step. The output rises, swings past 1 and peaks at 1.163 after 1.81 s, exactly the 16.3% we predicted, then settles at 1. The open-loop plot told us this in advance.
y(t) = 1 − e^(−ζωn t)(cos ωd t + ζ/√(1−ζ²) sin ωd t) ωn = 2 rad/s, ζ = 0.5, ωd = 1.732 rad/s peak y = 1.163 at t = 1.81 s predicted from the margin: 1.163Turn the gain up
Raise K to 25. The magnitude curve lifts by 16 dB, so it crosses 0 dB later, at 4.80 rad/s. The phase curve does not move, but there it is −157.4°, so the margin falls to 22.6°.
K 4 → 25 (+15.9 dB, the whole |L| curve lifts) ωc 1.57 → 4.80 rad/s phase at ωc −128.2° → −157.4° PM 51.8° → 22.6° The phase curve does not depend on K.Small margin, big swing
22.6° means ζ = 0.20 and 52.7% overshoot: the output rings up to 1.527. The gain margin is still infinite, because the phase never reaches −180°. Only the phase margin warned us.
PM 22.6° → ζ 0.20 → 52.7 % run: peak 1.527 at 0.64 s gain margin: ∞ (phase only tends to −180° as ω → ∞), yet the step rings hard.Turn the gain down
Lower K to 2. The crossover drops to 0.91 rad/s, where the phase is only −114.5°, so the margin grows to 65.5°. That means ζ = 0.71 and just 4.3% overshoot, but a slower rise.
K = 2 ωc 0.91 rad/s phase −114.5° PM 65.5° → ζ 0.71 → 4.3 % peak 1.043 at 3.14 s more margin: calmer but slowerA rule of thumb
For quick work, engineers use ζ ≈ PM/100. Our three gains: 22.6° gives 0.20 (rule 0.23), 51.8° gives 0.50 (0.52), 65.5° gives 0.71 (0.66). It holds up to about 60° to 70°.
K PM ζ exact PM/100 25 22.6° 0.20 0.23 4 51.8° 0.50 0.52 2 65.5° 0.71 0.66 ζ ≈ PM / 100 (Franklin, Powell, Emami-Naeini)Design backwards
Now run the chain the other way. We want at most 10% overshoot, so ζ ≥ 0.591, so the phase margin must be at least 58.6°. Slide K until the Bode plot shows that margin: K = 2.86. The step peaks at 1.100.
import math os_max = 0.10 z = -math.log(os_max) / math.sqrt(math.pi**2 + math.log(os_max)**2) pm = math.degrees(math.atan(2*z / math.sqrt(math.sqrt(1 + 4*z**4) - 2*z**2))) K = (2 / (2*z))**2 # wn = sqrt(K), 2*z*wn = 2 print(round(z, 3), round(pm, 1), round(K, 2)) # 0.591 58.6 2.86When the link is exact
The formula is exact only when the closed loop is a pure two-pole system, as here. For other loops treat it as an estimate: it works when two poles dominate, and extra poles, zeros or time delay shift the real overshoot.
exact L = K / (s (s + a)) → T = 2nd order estimate higher order, two dominant poles check any closed-loop zero, extra pole or delay: simulate the step The margin still ranks designs: less margin, more ringing.
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01Where on the open-loop Bode plot do you read the phase margin?
The phase margin is measured at the gain crossover, where |L| = 1 (0 dB). For K = 4 that is 1.57 rad/s, where the phase is −128.2°, so PM = 51.8°.
02For a loop L = K/(s(s+2)), what happens to the phase margin when you raise K?
K only lifts the magnitude curve. The crossover moves from 1.57 to 4.80 rad/s when K goes from 4 to 25, and the phase there drops to −157.4°, so the margin falls from 51.8° to 22.6°.
03Using the rule of thumb ζ ≈ PM/100, a loop with a 45° phase margin has roughly what damping ratio?
ζ ≈ 45/100 = 0.45. The rule is a straight-line fit that holds well for phase margins up to about 60° to 70°.
04Our loop with K = 25 has an infinite gain margin, yet its step overshoots by 52.7%. Why?
The phase of L only approaches −180° as ω → ∞, so no gain makes this loop unstable. But a 22.6° phase margin means ζ = 0.20, which gives 52.7% overshoot.
05You need at most 10% overshoot. Working backwards, what phase margin should you aim for (two-pole loop)?
10% overshoot needs ζ ≥ 0.591, and that ζ corresponds to PM ≈ 58.6°. For L = K/(s(s+2)) that is K = 2.86, and the step then peaks at 1.100.
المسرد
- Gain crossover frequency (ωc)
- The frequency where the open-loop magnitude |L(jω)| equals 1, that is 0 dB.
- Phase margin (PM)
- 180° plus the open-loop phase at the gain crossover: how far the phase is from −180° where the loop gain is 1.
- Gain margin
- How much the loop gain could be multiplied before the loop goes unstable, read where the phase is −180°.
- Damping ratio (ζ)
- The number that sets how oscillatory a second-order system is: 0 rings forever, 1 just stops overshooting.
- Percent overshoot (%OS)
- How far the step response goes past its final value, as a percentage of that value.
- Standard second-order system
- A closed loop of the form ωn²/(s² + 2ζωn s + ωn²); its overshoot depends only on ζ.
- Dominant poles
- The pair of closed-loop poles closest to the imaginary axis; when they dominate, the second-order formulas are a good estimate.
الملاحظات والمصادر
- The plant 1/(s(s+2)) is an illustrative motor-like model (an integrator and one pole at 2 rad/s). Every curve and number in the figure is computed from it: the Bode curves from L(jω), the step curves from the exact second-order step response.
- The phase-margin formula PM = atan(2ζ/√(√(1+4ζ⁴)−2ζ²)) holds for an open loop of the form ωn²/(s(s+2ζωn)), whose closed loop is the standard second-order system (Nise, ch. 10).
- The rule ζ ≈ PM/100 is a straight-line fit to that formula; it is close up to a phase margin of about 60° to 70° (Franklin, Powell and Emami-Naeini, ch. 6).
- For this loop the phase only approaches −180° as the frequency goes to infinity, so the gain margin is infinite at every gain. That is why the phase margin, not the gain margin, predicts the overshoot here.
- The Python on each step is plain Python 3 (math and cmath). python-control's margin(L) returns the same phase margin and crossover frequency.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 4 second-order response; ch. 10 frequency response, phase margin versus damping ratio)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 7 frequency-response analysis)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 6, damping ratio versus phase margin, ζ ≈ PM/100)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: control.margin (gain margin, phase margin and crossover frequencies)
اختبار يتاح بعد الخطوة الأخيرة.