ENع
→The root locus idea
الدرس 25 · Root locus

The root locus idea: poles that move with gain

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

15 دقيقة9 خطوات5 أسئلةIntermediate
عن هذا الدرس

Put a gain K in front of the plant G(s) = 1/(s(s + 2)) and close the loop. The closed-loop poles are the roots of s² + 2s + K = 0, so every turn of the knob moves them. Watch them start at G's poles, slide together, meet at −1 and then climb up and down. The path they trace is the root locus, and it lets you read off the gain that gives the response you want.

ستتعلّم

حدّد ما تشعر بأنك أتقنته. هذا التقييم الذاتي لا يؤثر في درجة الدرس.

شكل 25 · تفاعلي
01 / 09

A loop with one knob

A step goes in. The loop compares it with the output, multiplies the error by a gain K, and drives G(s) = 1/(s(s + 2)). With K = 2 the output rises, overshoots by 4.3%, and settles at 1.

G(s) = 1 / (s(s + 2))        gain K in front, output fed back

closed loop  T(s) = K·G / (1 + K·G)
                  = K / (s² + 2s + K)

K = 2:  T(s) = 2 / (s² + 2s + 2)
peak  1.043 at t = 3.14 s   (overshoot 4.3 %)
final value  2/2 = 1
جارٍ تحميل الرسم…
أو ← →
اقرأ الدرس خطوة بخطوة
  1. A loop with one knob

    A step goes in. The loop compares it with the output, multiplies the error by a gain K, and drives G(s) = 1/(s(s + 2)). With K = 2 the output rises, overshoots by 4.3%, and settles at 1.

    G(s) = 1 / (s(s + 2))        gain K in front, output fed back
    
    closed loop  T(s) = K·G / (1 + K·G)
                      = K / (s² + 2s + K)
    
    K = 2:  T(s) = 2 / (s² + 2s + 2)
    peak  1.043 at t = 3.14 s   (overshoot 4.3 %)
    final value  2/2 = 1
  2. The loop has its own poles

    The closed loop's poles are the roots of s² + 2s + K = 0, which is 1 + K·G(s) = 0. They are not G's poles. K sits inside the equation, so turning K moves the poles.

    1 + K·G(s) = 0
    1 + K / (s(s + 2)) = 0
    s(s + 2) + K = 0
    s² + 2s + K = 0
    
    s = (−2 ± √(4 − 4K)) / 2 = −1 ± √(1 − K)
    
    K = 2:  s = −1 ± √(−1) = −1 ± j
    
    G's own (open-loop) poles: 0 and −2  (×)
  3. K = 0: start at G's poles

    Turn the knob to zero. Now s² + 2s = 0, so the poles are 0 and −2: exactly the open-loop poles of G, marked ×. With no gain, nothing pushes the plant and the output stays at 0.

    K = 0:  s² + 2s = s(s + 2) = 0
            s = 0  and  s = −2
    
    the closed-loop poles START at
    the open-loop poles (×)
    
    T(s) = 0 / (s² + 2s) = 0:  y(t) = 0
  4. Small K: they slide together

    Raise K to 0.75. The poles slide along the real axis toward each other: −0.5 and −1.5. Both are real, so there is no swing. The slow pole at −0.5 makes the output creep: about 8.6 s to settle.

    K = 0.75:  s = −1 ± √0.25 = −0.5, −1.5
    
    y(t) = 1 − 1.5·e^(−0.5t) + 0.5·e^(−1.5t)
    
    overshoot  none (real poles)
    Ts (2 % band, from the curve)  8.6 s
    the pole nearest 0 sets the pace
  5. K = 1: they meet

    At K = 1 the two poles meet at −1. This is the fastest response with no overshoot at all (critical damping): settled in 5.83 s. Any more gain and they cannot stay on the axis.

    K = 1:  s² + 2s + 1 = (s + 1)² = 0
            s = −1 twice
    
    y(t) = 1 − e^(−t)·(1 + t)
    
    overshoot  none     ζ = 1
    Ts (curve)  5.83 s   (was 8.6 s at K = 0.75)
  6. More K: up and down, more swing

    Past K = 1 the poles leave the axis: −1 ± j√(K − 1). At K = 5 they are −1 ± 2j. The real part stays −1, so settling stays near 4 s, but the swing grows: 20.8% overshoot.

    K > 1:  s = −1 ± j√(K − 1)
    
              K = 2       K = 5
    poles     −1 ± j      −1 ± 2j
    ζ         0.707       0.447
    %OS       4.3 %      20.8 %
    Tp        3.14 s     1.57 s
    Ts        4.22 s     3.74 s
    
    real part fixed at −1: settling ≈ 4/1 s
  7. The whole path is the root locus

    Sweep K from 0 upward and trace every place the poles visit. That drawing is the root locus: it starts at G's poles, the branches meet at −1, then run up and down for ever. They never cross into the right half.

    root locus = every root of 1 + K·G(s) = 0
                  for K from 0 to ∞
    
    branch 1:  0 → −1 → −1 + j∞
    branch 2: −2 → −1 → −1 − j∞
    
    one branch per open-loop pole (two here)
    never in the right half: stable for every K > 0
    (a third pole would bend the branches over;
     the next lessons show the sketching rules)
  8. Pick the gain you want

    Want 16.3% overshoot? That needs ζ = 0.5: a ray 60° from the negative real axis. It cuts the locus at −1 ± j√3. The gain there is K = |s|·|s + 2| = 2 · 2 = 4.

    want  %OS = 16.3 %   →   ζ = 0.5   →   ray at cos⁻¹(0.5) = 60°
    
    ray meets the locus (σ = −1) at
      s = −1 + j·tan 60° = −1 + j1.732
    
    magnitude condition  K = 1 / |G(s)| = |s|·|s + 2|
      |s| = 2,  |s + 2| = |1 + j1.732| = 2
      K = 4
    
    check: s² + 2s + 4 = 0 → s = −1 ± j√3
    peak 1.163 at 1.81 s, Ts 4.04 s
  9. Compute the locus in Python

    A root locus is just roots, solved again for each K. A few lines of Python with complex square roots list the poles at each gain, and read the gain back off a chosen point.

    import cmath
    def poles(K):              # roots of s² + 2s + K = 0
        r = cmath.sqrt(1 - K)
        return -1 + r, -1 - r
    for K in (0, 0.75, 1, 2, 5):
        print(K, *poles(K))
    s = complex(-1, 3 ** 0.5)  # where the ζ = 0.5 ray meets the locus
    print(round(abs(s) * abs(s + 2), 6))   # K = |s|·|s + 2|
    # 0 0j (-2-0j)
    # 0.75 (-0.5+0j) (-1.5-0j)
    # 1 (-1+0j) (-1-0j)
    # 2 (-1+1j) (-1-1j)
    # 5 (-1+2j) (-1-2j)
    # 4.0

اختبار يتاح بعد الخطوة الأخيرة.