Salta al contenuto
Note per Studenti Control Systems - Mock Exam 3 Report

Control Systems - Mock Exam 3

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 5

Mock exam for Control Systems (Information Engineering, UniPD). The official written exam is a test of at most 30 points with numerical exercises and theory questions on modeling, stability, time response, frequency analysis, root locus and the design of controllers and feedback systems. The past exam papers of this course are not public: the model used here is the set of papers of the equivalent course taught in Italian in Padova, adapted to the topics explained in the notes of this course (which also include ODEs, the Laplace transform, second-order step response and sinusoidal signals). The split of the points below is a proposal, not an official one. It is a simulation, not an exam given by the course.

Structure: Exercise 1 (9 points), Exercise 2 (8 points), Exercise 3 (8 points), Theory 1 (5 points), 30 points in total. Time: 3 hours. Closed book, calculators allowed only for decimal values: leave numbers such as 3\sqrt{3} or e−πe^{-\pi} unevaluated unless a decimal value is requested. Justify every answer and show the calculations. First read only the text and solve, then compare with the results, and only at the end open the solutions and the grid.

The three exercises of this mock exam cover the Laplace-transform solution of an ODE, the design of a second-order loop from time-domain specifications, and the rejection of sinusoidal signals together with a root locus; the theory question is on the feedback control scheme and its requirements. The root locus in the notes of this course is the positive one (K≥0K \ge 0), so only that one is asked.

Exercise 1 (points 9)

Solution of an ODE with the Laplace transform. A linear time-invariant system is described by the input-output equation y¨(t)+4 y˙(t)+4 y(t)=u˙(t)+3 u(t).\ddot y(t) + 4\,\dot y(t) + 4\,y(t) = \dot u(t) + 3\,u(t). The initial conditions are y(0−)=1y(0^-) = 1, y˙(0−)=−1\dot y(0^-) = -1, and the input is u(t)=4⋅1(t)u(t) = 4\cdot\mathbb 1(t) (a step of amplitude 4 applied at t=0t = 0).

(a) Apply the Laplace transform to the equation and write Y(s)Y(s) in the form Y(s)=C(s)A(s)+B(s)A(s)U(s)Y(s) = \dfrac{C(s)}{A(s)} + \dfrac{B(s)}{A(s)}U(s), giving A(s)A(s), B(s)B(s), C(s)C(s) and U(s)U(s).

(b) Find the transfer function of the system, its poles and zeros, its static gain H(0)H(0), and say whether the system is BIBO stable.

(c) Using partial fractions, compute the free evolution yn(t)y_n(t), the forced evolution yf(t)y_f(t) and the complete output y(t)y(t) for t≥0t \ge 0. Which modes appear in each of them?

(d) Check the result with the initial value theorem and the final value theorem, and show that y(t)y(t) never exceeds its final value.

Show the result

(a) A(s)=s2+4s+4=(s+2)2A(s) = s^2 + 4s + 4 = (s+2)^2, B(s)=s+3B(s) = s + 3, C(s)=s+3C(s) = s + 3, U(s)=4sU(s) = \dfrac4s.

(b) H(s)=s+3(s+2)2H(s) = \dfrac{s+3}{(s+2)^2}: zero in −3-3, double pole in −2-2, H(0)=34H(0) = \dfrac34; strictly proper and BIBO stable.

(c) yn(t)=(1+t) e−2ty_n(t) = (1+t)\,e^{-2t}, yf(t)=3−(3+2t) e−2t\quad y_f(t) = 3 - (3 + 2t)\,e^{-2t}, y(t)=3−(2+t) e−2t\quad y(t) = 3 - (2+t)\,e^{-2t} for t≥0t \ge 0. The modes of yny_n are e−2te^{-2t} and te−2tte^{-2t}; yfy_f has the same two modes plus the constant of the input.

(d) y(0+)=1y(0^+) = 1,  y(∞)=3\ y(\infty) = 3;  y˙(t)=(3+2t) e−2t>0\ \dot y(t) = (3+2t)\,e^{-2t} > 0, so yy increases from 11 to 33 and has no overshoot.

Show the full solution

(a) Transform of the ODE. The initial conditions are given at 0−0^- and u(t)=0u(t) = 0 for t<0t < 0, so u(0−)=0u(0^-) = 0 and the input contributes no initial-condition terms (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →). With the derivative-in-time property, L[y¨]=s2Y−s y(0−)−y˙(0−)=s2Y−s+1\mathcal L[\ddot y] = s^2Y - s\,y(0^-) - \dot y(0^-) = s^2 Y - s + 1 and L[y˙]=sY−y(0−)=sY−1\mathcal L[\dot y] = sY - y(0^-) = sY - 1, while L[u˙]=sU\mathcal L[\dot u] = sU. The equation becomes (s2Y−s+1)+4(sY−1)+4Y=sU+3U.\left(s^2Y - s + 1\right) + 4\left(sY - 1\right) + 4Y = sU + 3U . Collecting the terms with YY on the left and the known terms on the right: (s2+4s+4) Y(s)=(s−1+4)⏟C(s)+(s+3) U(s).(s^2 + 4s + 4)\,Y(s) = \underbrace{(s - 1 + 4)}_{C(s)} + (s+3)\,U(s) . So A(s)=s2+4s+4=(s+2)2A(s) = s^2 + 4s + 4 = (s+2)^2 (the coefficients of yy, y˙\dot y, y¨\ddot y), B(s)=s+3B(s) = s + 3 (the coefficients of uu, u˙\dot u) and C(s)=s y(0−)+y˙(0−)+4 y(0−)=s+3C(s) = s\,y(0^-) + \dot y(0^-) + 4\,y(0^-) = s + 3. The input is U(s)=4sU(s) = \dfrac4s. Then Y(s)=s+3(s+2)2⏟Yn(s)+s+3(s+2)2⋅4s⏟Yf(s).Y(s) = \underbrace{\frac{s+3}{(s+2)^2}}_{Y_n(s)} + \underbrace{\frac{s+3}{(s+2)^2}\cdot\frac4s}_{Y_f(s)} . YnY_n depends only on the initial conditions (free evolution) and YfY_f only on the input (forced evolution, zero initial conditions). Typical error: forgetting the term −y˙(0−)-\dot y(0^-) or the term 4y(0−)4y(0^-) that comes from 4y˙4\dot y in C(s)C(s).

(b) Transfer function. By definition H(s)=Yf(s)/U(s)=B(s)/A(s)H(s) = Y_f(s)/U(s) = B(s)/A(s): H(s)=s+3(s+2)2.H(s) = \frac{s+3}{(s+2)^2}. The zero is s=−3s = -3 and the poles are s=−2s = -2 (double). The root −3-3 of BB is not a root of AA, so there is no cancellation and HH is already in least terms; deg⁡B=1<deg⁡A=2\deg B = 1 < \deg A = 2 (strictly proper). Both poles have negative real part, so the system is BIBO stable (BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →, Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →): the double pole produces the mode te−2tte^{-2t}, which still decays. The static gain is H(0)=34H(0) = \dfrac{3}{4}.

(c) Partial fractions.

Free evolution. Since s+3=(s+2)+1s + 3 = (s+2) + 1, Yn(s)=s+3(s+2)2=1s+2+1(s+2)2.Y_n(s) = \frac{s+3}{(s+2)^2} = \frac{1}{s+2} + \frac{1}{(s+2)^2}. From the table, L−1 ⁣[1s+2]=e−2t\mathcal L^{-1}\!\left[\dfrac1{s+2}\right] = e^{-2t} and L−1 ⁣[1(s+2)2]=te−2t\mathcal L^{-1}\!\left[\dfrac1{(s+2)^2}\right] = te^{-2t}, so yn(t)=(1+t) e−2ty_n(t) = (1+t)\,e^{-2t}. Check on the initial conditions: yn(0)=1y_n(0) = 1 and y˙n(t)=e−2t−2(1+t)e−2t\dot y_n(t) = e^{-2t} - 2(1+t)e^{-2t}, hence y˙n(0)=1−2=−1\dot y_n(0) = 1 - 2 = -1. ✓

Forced evolution. The pole of the input, s=0s = 0, is simple and the pole −2-2 is double, so Yf(s)=4(s+3)s(s+2)2=as+bs+2+c(s+2)2.Y_f(s) = \frac{4(s+3)}{s(s+2)^2} = \frac{a}{s} + \frac{b}{s+2} + \frac{c}{(s+2)^2}. The coefficients of the simple poles and of the highest power of a multiple pole are given by the residues: a=lim⁡s→0sYf(s)=4⋅34=3,c=lim⁡s→−2(s+2)2Yf(s)=4(s+3)s∣s=−2=4−2=−2.a = \lim_{s\to0} sY_f(s) = \frac{4\cdot3}{4} = 3, \qquad c = \lim_{s\to-2}(s+2)^2Y_f(s) = \left.\frac{4(s+3)}{s}\right|_{s=-2} = \frac{4}{-2} = -2 . For bb compare the numerators: 4s+12=a(s+2)2+b s(s+2)+c s4s + 12 = a(s+2)^2 + b\,s(s+2) + c\,s. The coefficient of s2s^2 gives a+b=0a + b = 0, so b=−3b = -3. Check with the coefficient of ss: 4a+2b+c=12−6−2=44a + 2b + c = 12 - 6 - 2 = 4 ✓, and the constant term: 4a=124a = 12 ✓. Therefore yf(t)=3−3e−2t−2te−2t=3−(3+2t) e−2t.y_f(t) = 3 - 3e^{-2t} - 2te^{-2t} = 3 - (3+2t)\,e^{-2t}. Check: yf(0)=0y_f(0) = 0 (zero initial conditions) ✓.

Complete output. y(t)=yn(t)+yf(t)=(1+t)e−2t+3−(3+2t)e−2t=3−(2+t) e−2t,t≥0.y(t) = y_n(t) + y_f(t) = (1+t)e^{-2t} + 3 - (3+2t)e^{-2t} = 3 - (2+t)\,e^{-2t}, \qquad t \ge 0. The natural modes of the system are e−2te^{-2t} and te−2tte^{-2t} (from the poles of A(s)A(s)): they appear in yny_n and in yfy_f. The forced evolution has in addition the constant 33, the mode of the input (the pole in 00 of UU). Check against the ODE for t>0t > 0 (where u˙=0\dot u = 0 and u=4u = 4): y¨=−(4+4t)e−2t\ddot y = -(4+4t)e^{-2t} and y˙=(3+2t)e−2t\dot y = (3+2t)e^{-2t}, so y¨+4y˙+4y=e−2t[−4−4t+12+8t−8−4t]+12=12=3u\ddot y + 4\dot y + 4y = e^{-2t}\left[-4-4t+12+8t-8-4t\right] + 12 = 12 = 3u ✓.

(d) Checks and monotonicity. Initial value theorem: sY(s)=s(s+3)(s+2)2+4(s+3)(s+2)2sY(s) = \dfrac{s(s+3)}{(s+2)^2} + \dfrac{4(s+3)}{(s+2)^2}, whose limit for s→∞s\to\infty is 1+0=1=y(0+)1 + 0 = 1 = y(0^+): the output is continuous at 00, as it must be since HH is strictly proper with relative degree 11 (the impulse contained in u˙\dot u makes y˙\dot y jump, not yy). The jump of the derivative is 44: from the formula y˙(0+)=3=y˙(0−)+4=−1+4\dot y(0^+) = 3 = \dot y(0^-) + 4 = -1 + 4 ✓. Final value theorem: the poles of sY(s)sY(s) are all in −2-2 (open left half-plane), so the limit exists and y(∞)=lim⁡s→0sY(s)=0+4⋅34=3y(\infty) = \lim_{s\to0}sY(s) = 0 + \dfrac{4\cdot3}{4} = 3, which is also H(0)⋅4=34⋅4H(0)\cdot4 = \dfrac34\cdot4 ✓ (a stable system with a constant input UU ends at H(0) UH(0)\,U). Monotonicity: y˙(t)=(3+2t)e−2t>0\dot y(t) = (3+2t)e^{-2t} > 0 for all t≥0t\ge0, so yy increases strictly from 11 to 33 and y(t)<3y(t) < 3 for every tt: the overshoot is zero (the double real pole gives no oscillation).

Grafico interattivo: Output y(t) = 3 − (2 + t)e^(−2t): from y(0) = 1 it increases monotonically to the final value 3 without overshoot

Typical errors.

  • Writing the initial-condition polynomial with the wrong signs (for y¨\ddot y it is s y(0−)+y˙(0−)s\,y(0^-) + \dot y(0^-), not s y(0−)−y˙(0−)s\,y(0^-) - \dot y(0^-)).
  • Applying the final value theorem to YnY_n and YfY_f without noticing that the poles must be in the open left half-plane: here they are, but the check has to be made.
  • Forgetting the factor tt in the mode of a double pole, or writing 1(s+2)2→e−2t\dfrac{1}{(s+2)^2}\to e^{-2t}.
  • Believing that the initial conditions affect the transfer function: they live only in C(s)C(s).

Exercise 2 (points 8)

Design of a second-order closed loop from step-response specifications. The plant is G(s)=1s (s+2)G(s) = \frac{1}{s\,(s+2)} (a position servo) inside the basic feedback scheme with unity negative feedback: rr is the reference, e=r−ye = r - y the tracking error, C(s)C(s) the controller and W(s)=C(s)G(s)1+C(s)G(s)W(s) = \dfrac{C(s)G(s)}{1+C(s)G(s)} the closed-loop transfer function. The specifications on the unit step response of W(s)W(s) are: overshoot Ms≤0.05M_s \le 0.05 (5%), settling time (1% band) ts≤1t_s \le 1 s, rise time tr≤0.5t_r \le 0.5 s.

 r --->(+)---e--->[ C(s) ]------>[ 1/(s(s+2)) ]----+----> y
        ^ -                                        |
        +------------------------------------------+

(a) With a proportional controller C(s)=K>0C(s) = K > 0, find the poles of W(s)W(s) and show that no value of KK satisfies the specification on tst_s.

(b) Translate the three specifications into conditions on σ\sigma, ωn\omega_n, ζ\zeta (or the angle φ\varphi) of the dominant poles, i.e. into a region of the complex plane.

(c) Consider the controller C(s)=Ks+2s+cC(s) = K\dfrac{s+2}{s+c} with K>0K > 0, c>0c > 0. Compute W(s)W(s), find the conditions on cc and KK for which the poles of W(s)W(s) are in the region of point (b), and choose a pair (c,K)(c, K) with complex conjugate poles.

(d) For the chosen design write the unit step response y(t)y(t) and compute overshoot, peak time, settling time and rise time with the approximate formulas, saying whether the specifications are met.

(e) Compute the steady-state error of the chosen design to the unit step and to the unit ramp reference.

Show the result

(a) W(s)=Ks2+2s+KW(s) = \dfrac{K}{s^2 + 2s + K}. Its poles are −1±1−K-1 \pm \sqrt{1-K}, so σ≤1\sigma \le 1 for every KK (real part never to the left of −1-1) and ts≃4.6/σ≥4.6t_s \simeq 4.6/\sigma \ge 4.6 s >1> 1 s: impossible.

(b) ζ≥ζ∗=∣log⁡0.05∣π2+log⁡20.05≃0.690\zeta \ge \zeta^* = \dfrac{\lvert\log 0.05\rvert}{\sqrt{\pi^2 + \log^2 0.05}} \simeq 0.690 (i.e. φ≤46.4∘\varphi \le 46.4^\circ); σ≥σ∗=4.61=4.6\sigma \ge \sigma^* = \dfrac{4.6}{1} = 4.6; ωn≥ωn∗=1.80.5=3.6\omega_n \ge \omega_n^* = \dfrac{1.8}{0.5} = 3.6 (implied by the other two).

(c) W(s)=Ks2+cs+KW(s) = \dfrac{K}{s^2 + cs + K} (the factor s+2s+2 cancels), σ=c/2\sigma = c/2, ωn=K\omega_n = \sqrt K, ζ=c/(2K)\zeta = c/(2\sqrt K). Conditions: c≥9.2c \ge 9.2 and c24<K≤c24ζ∗2≃0.525 c2\dfrac{c^2}{4} < K \le \dfrac{c^2}{4\zeta^{*2}} \simeq 0.525\,c^2. Choice: c=12c = 12, K=72K = 72, so C(s)=72(s+2)s+12C(s) = \dfrac{72(s+2)}{s+12} and W(s)=72s2+12s+72W(s) = \dfrac{72}{s^2 + 12s + 72}, poles −6±6j-6 \pm 6j.

(d) y(t)=1−e−6t(cos⁡6t+sin⁡6t)y(t) = 1 - e^{-6t}\left(\cos 6t + \sin 6t\right) for t≥0t\ge0. Ms=e−π≃0.043M_s = e^{-\pi} \simeq 0.043 (4.3%), tM=π6≃0.52t_M = \dfrac{\pi}{6} \simeq 0.52 s, ts≃4.66≃0.77t_s \simeq \dfrac{4.6}{6} \simeq 0.77 s, tr≃1.862≃0.21t_r \simeq \dfrac{1.8}{6\sqrt2} \simeq 0.21 s: all specifications are met.

(e) Type 11: step error 00; ramp error 1H1(0)=cK=16≃0.167\dfrac{1}{H_1(0)} = \dfrac{c}{K} = \dfrac16 \simeq 0.167.

Show the full solution

(a) Proportional control. With C=KC = K, H(s)=Ks(s+2)H(s) = \dfrac{K}{s(s+2)} and W(s)=NCNGNCNG+DCDG=KK+s(s+2)=Ks2+2s+KW(s) = \frac{N_CN_G}{N_CN_G + D_CD_G} = \frac{K}{K + s(s+2)} = \frac{K}{s^2 + 2s + K} (The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →). The poles are the roots of s2+2s+Ks^2 + 2s + K, that is s=−1±1−Ks = -1 \pm \sqrt{1-K}. For K>1K > 1 they are complex with real part exactly −1-1, so σ=1\sigma = 1 whatever KK is: a larger KK only increases ωn=K\omega_n = \sqrt K and lowers the damping ζ=1/K\zeta = 1/\sqrt K. For 0<K≤10 < K \le 1 the poles are real and the slowest one is −1+1−K≥−1-1 + \sqrt{1-K} \ge -1. In every case the dominant poles have σ≤1\sigma \le 1, so ts≃4.6/σ≥4.6t_s \simeq 4.6/\sigma \ge 4.6 s, much more than 11 s (Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →). Proportional control is not enough because the sum of the poles is fixed by the plant (−2-2): feedback with one gain moves the poles only along the vertical line Re(s)=−1\mathrm{Re}(s) = -1. A second parameter that shifts the real part is needed.

(b) Specifications as a region. The formulas of the notes (The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →) give:

  • overshoot: Ms∗=0.05M_s^* = 0.05, log⁡Ms∗=−2.9957\log M_s^* = -2.9957, log⁡2Ms∗=8.974\log^2 M_s^* = 8.974, so ζ∗=2.99579.870+8.974=2.99574.341≃0.690\zeta^* = \dfrac{2.9957}{\sqrt{9.870 + 8.974}} = \dfrac{2.9957}{4.341} \simeq 0.690, i.e. φ≤φ∗=arccos⁡(0.690)≃46.4∘\varphi \le \varphi^* = \arccos(0.690) \simeq 46.4^\circ: the poles are inside the cone of half-angle 46.4∘46.4^\circ around the negative real axis;
  • settling time: σ≥σ∗=4.6/ts∗=4.6\sigma \ge \sigma^* = 4.6/t_s^* = 4.6: the poles are to the left of the vertical line Re(s)=−4.6\mathrm{Re}(s) = -4.6;
  • rise time: ωn≥ωn∗=1.8/tr∗=3.6\omega_n \ge \omega_n^* = 1.8/t_r^* = 3.6: the poles are outside the circle of radius 3.63.6 centred at the origin.

The third condition is implied by the first two: ωn=σ/ζ\omega_n = \sigma/\zeta, and since ζ≤1\zeta \le 1 we have ωn≥σ≥4.6>3.6\omega_n \ge \sigma \ge 4.6 > 3.6. The desired region is the part of the cone beyond the vertical line Re(s)=−4.6\mathrm{Re}(s) = -4.6. Typical error: measuring the cone angle from the imaginary axis (the angle φ\varphi is measured from the negative real axis, and a small φ\varphi means large damping).

(c) The controller C(s)=Ks+2s+cC(s) = K\dfrac{s+2}{s+c}. Here NC=K(s+2)N_C = K(s+2), DC=s+cD_C = s + c, NG=1N_G = 1, DG=s(s+2)D_G = s(s+2), so NCNG+DCDG=K(s+2)+(s+c) s (s+2)=(s+2)(s2+cs+K),N_CN_G + D_CD_G = K(s+2) + (s+c)\,s\,(s+2) = (s+2)\left(s^2 + cs + K\right), W(s)=K(s+2)(s+2)(s2+cs+K)=Ks2+cs+K.W(s) = \frac{K(s+2)}{(s+2)(s^2 + cs + K)} = \frac{K}{s^2 + cs + K}. The zero of the controller cancels the pole −2-2 of the plant. This is allowed here because the cancelled pole is stable: the hidden mode e−2te^{-2t} decays and does not affect the stability of the loop (BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →; a cancellation of an unstable pole would not be acceptable). After the cancellation WW is a second-order system without zeros, exactly the case of the formulas. The parameters are ωn=K,σ=c2,ζ=σωn=c2K.\omega_n = \sqrt K, \qquad \sigma = \frac c2, \qquad \zeta = \frac{\sigma}{\omega_n} = \frac{c}{2\sqrt K}. The conditions are:

  • σ≥4.6\sigma \ge 4.6: c≥9.2c \ge 9.2;
  • ζ≥ζ∗\zeta \ge \zeta^*: c24K≥ζ∗2\dfrac{c^2}{4K} \ge \zeta^{*2}, i.e. K≤c24ζ∗2=c24⋅0.4763≃0.525 c2K \le \dfrac{c^2}{4\zeta^{*2}} = \dfrac{c^2}{4\cdot0.4763} \simeq 0.525\,c^2 (since ζ∗2=8.97418.844=0.4763\zeta^{*2} = \dfrac{8.974}{18.844} = 0.4763);
  • complex poles: c2−4K<0c^2 - 4K < 0, i.e. K>c2/4K > c^2/4 (for K≤c2/4K \le c^2/4 the poles are real and there is no overshoot).

So the admissible pairs satisfy c≥9.2c \ge 9.2 and 0.25 c2<K≤0.525 c20.25\,c^2 < K \le 0.525\,c^2. A convenient choice is ζ=1/2\zeta = 1/\sqrt2 (poles at 45∘45^\circ) with σ=6\sigma = 6: c=12c = 12, ωn=σ/ζ=62\omega_n = \sigma/\zeta = 6\sqrt2, K=ωn2=72K = \omega_n^2 = 72. Check: c=12≥9.2c = 12 \ge 9.2 and 0.25⋅144=36<72≤0.525⋅144=75.60.25\cdot144 = 36 < 72 \le 0.525\cdot144 = 75.6 ✓. Then C(s)=72 (s+2)s+12,W(s)=72s2+12s+72,p1,2=−6±6j.C(s) = \frac{72\,(s+2)}{s+12}, \qquad W(s) = \frac{72}{s^2 + 12s + 72}, \qquad p_{1,2} = -6 \pm 6j . (The unreduced polynomial NCNG+DCDG=(s+2)(s2+12s+72)=s3+14s2+96s+144N_CN_G + D_CD_G = (s+2)(s^2+12s+72) = s^3 + 14s^2 + 96s + 144 has the roots −6±6j-6\pm6j and −2-2: the root −2-2 is the hidden one.)

(d) Step response and verification. For W(s)=Ks2+2ζωns+ωn2W(s) = \dfrac{K}{s^2 + 2\zeta\omega_ns + \omega_n^2} with W(0)=1W(0) = 1, σ=6\sigma = 6, ω=1−ζ2 ωn=6\omega = \sqrt{1-\zeta^2}\,\omega_n = 6, sin⁡φ=cos⁡φ=12\sin\varphi = \cos\varphi = \dfrac1{\sqrt2}, φ=π4\varphi = \dfrac\pi4, the formula of the notes gives y(t)=1−1sin⁡φe−σtsin⁡(ωt+φ)=1−2 e−6tsin⁡ ⁣(6t+π4)=1−e−6t(cos⁡6t+sin⁡6t),y(t) = 1 - \frac{1}{\sin\varphi}e^{-\sigma t}\sin(\omega t + \varphi) = 1 - \sqrt2\,e^{-6t}\sin\!\left(6t + \frac\pi4\right) = 1 - e^{-6t}\left(\cos6t + \sin6t\right), because 2sin⁡(6t+π4)=sin⁡6t+cos⁡6t\sqrt2\sin(6t+\frac\pi4) = \sin6t + \cos6t. The step-response parameters:

  • overshoot: Ms=e−ζ1−ζ2π=e−π≃0.0432M_s = e^{-\frac{\zeta}{\sqrt{1-\zeta^2}}\pi} = e^{-\pi} \simeq 0.0432, that is 0.043≤0.050.043 \le 0.05 (4.3% against 5%) ✓ (the peak is at tM=π/ω=π/6≃0.52t_M = \pi/\omega = \pi/6 \simeq 0.52 s, where y=1.043y = 1.043);
  • settling time: ts≃4.6σ=4.66≃0.77t_s \simeq \dfrac{4.6}{\sigma} = \dfrac{4.6}{6} \simeq 0.77 s ≤1\le 1 s ✓;
  • rise time: tr≃1.8ωn=1.862≃0.21t_r \simeq \dfrac{1.8}{\omega_n} = \dfrac{1.8}{6\sqrt2} \simeq 0.21 s ≤0.5\le 0.5 s ✓.

All three specifications are met. (Numerical simulation of the response: overshoot 4.32%, 1% settling time 0.7760.776 s, 10%-90% rise time 0.2530.253 s; the third-order loop without the cancellation gives exactly the same step response.)

Grafico interattivo: Unit step response of W(s) = 72/(s² + 12s + 72): peak 1.043 at t = 0.52 s, inside the 1% band (dotted) after 0.78 s; the dashed line is the 5% overshoot limit

(e) Steady-state error. The open loop in least terms is H(s)=C(s)G(s)=72s(s+12)H(s) = C(s)G(s) = \dfrac{72}{s(s+12)}: one pole in the origin, so the system has type 11 (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →). The closed loop WW is BIBO stable (poles −6±6j-6\pm6j), so the table of the notes applies: with H=1sH1H = \dfrac1sH_1 and H1(0)=7212=6H_1(0) = \dfrac{72}{12} = 6,

  • unit step: e(∞)=0e(\infty) = 0;
  • unit ramp: e(∞)=1∣H1(0)∣=cK=16≃0.167e(\infty) = \dfrac{1}{\lvert H_1(0)\rvert} = \dfrac{c}{K} = \dfrac16 \simeq 0.167;
  • a parabola would give an infinite error.

Typical errors.

  • Using ωn\omega_n instead of σ\sigma in ts≃4.6/σt_s \simeq 4.6/\sigma.
  • Forgetting that WW must be reduced to least terms before reading its poles (and that a stable cancellation is acceptable).
  • Choosing KK above the bound 0.525 c20.525\,c^2: the poles are then too close to the imaginary axis for the overshoot limit.
  • Computing the steady-state error with the type 00 formula 11+H(0)\dfrac1{1+H(0)} although HH has a pole in 00.

Exercise 3 (points 8)

(i) Rejection of a sinusoidal disturbance (4.5 points). In the basic scheme with plant G(s)=1s+4G(s) = \dfrac{1}{s+4}, a disturbance d(t)d(t) is added to the output of the plant (the output is y=G u+dy = G\,u + d, and yy is fed back with negative sign, e=r−ye = r - y). The controller is C(s)=K s+1s2+4,K>0.C(s) = K\,\frac{s+1}{s^2+4}, \qquad K > 0.

(a) The aim is e(t)→0e(t) \to 0 with r=0r = 0 and d(t)=3sin⁡(2t)d(t) = 3\sin(2t). Write H(s)=C(s)G(s)H(s) = C(s)G(s), W(s)W(s) and Wd(s)W_d(s) and say why this controller achieves the aim whenever the loop is BIBO stable.

(b) Find the values of KK for which the closed loop is BIBO stable (Routh). Show that the factor s+1s+1 in CC is necessary: with C(s)=K/(s2+4)C(s) = K/(s^2+4) no K>0K > 0 stabilizes the loop.

(c) Take K=8K = 8. Compute Wd(2j)W_d(2j) and the steady-state output due to d(t)=3sin⁡(2t)d(t) = 3\sin(2t). Is a reference r(t)=sin⁡(2t)r(t) = \sin(2t) tracked?

(d) With K=8K = 8, r=0r = 0 and a disturbance of a different frequency, d(t)=sin⁡td(t) = \sin t, find the steady-state output and error.

(e) With K=8K = 8 and r(t)=1(t)r(t) = \mathbb 1(t), d=0d = 0, find the steady-state error. What must be added to C(s)C(s) to make it vanish, and what has to be checked afterwards?

(ii) Root locus of a system with a zero (3.5 points). Consider G2(s)=s+3s (s+2)G_2(s) = \dfrac{s+3}{s\,(s+2)} in the basic scheme with C(s)=K≥0C(s) = K \ge 0.

(a) Sketch the positive root locus: poles, zero, real-axis points of the locus, asymptote, direction of the branches.

(b) Find the multiple points of the locus and the value of KK at each of them.

(c) Show that the closed loop is BIBO stable for every K>0K > 0. For the values of KK with complex poles, show that the poles lie on a circle and find its centre and radius.

(d) Find the smallest KK such that the steady-state error to the unit ramp is at most 0.050.05, and the corresponding poles.

Show the result

(i) (a) H(s)=K(s+1)(s2+4)(s+4)H(s) = \dfrac{K(s+1)}{(s^2+4)(s+4)}, W=K(s+1)s3+4s2+(4+K)s+16+KW = \dfrac{K(s+1)}{s^3+4s^2+(4+K)s+16+K}, Wd=(s2+4)(s+4)s3+4s2+(4+K)s+16+KW_d = \dfrac{(s^2+4)(s+4)}{s^3+4s^2+(4+K)s+16+K}. HH contains 1s2+4\dfrac1{s^2+4} (internal model of sin⁡2t\sin 2t), so Wd(±2j)=0W_d(\pm2j) = 0.

(b) Stable if and only if K>0K > 0 (Routh first column 1, 4, 3K4, 16+K1,\ 4,\ \tfrac{3K}{4},\ 16+K). With C=K/(s2+4)C = K/(s^2+4) the polynomial is s3+4s2+4s+16+Ks^3 + 4s^2 + 4s + 16 + K, whose s1s^1 entry is −K/4-K/4: unstable for all K>0K>0.

(c) Wd(2j)=0W_d(2j) = 0, so the steady-state output due to dd is yd(t)→0y_d(t) \to 0 (and e→0e \to 0). Yes: r=sin⁡2tr = \sin 2t is tracked, since e=Wd re = W_d\,r.

(d) ∣Wd(j)∣=317521≃0.542\lvert W_d(j)\rvert = 3\sqrt{\tfrac{17}{521}} \simeq 0.542, ∠Wd(j)=arctan⁡14−arctan⁡1120≃−0.258\angle W_d(j) = \arctan\tfrac14 - \arctan\tfrac{11}{20} \simeq -0.258 rad. Steady state: yd(t)→0.542 sin⁡(t−0.258)y_d(t) \to 0.542\,\sin(t - 0.258) and e(t)→−0.542 sin⁡(t−0.258)e(t) \to -0.542\,\sin(t - 0.258).

(e) e(∞)=11+H(0)=23e(\infty) = \dfrac{1}{1+H(0)} = \dfrac23 with H(0)=12H(0) = \dfrac12. Add a factor 1s\dfrac1s to CC, C(s)=K(s+1)s(s2+4)C(s) = \dfrac{K(s+1)}{s(s^2+4)}, and check again that the new closed loop is BIBO stable.

(ii) (a) Poles 00 and −2-2, zero −3-3, n−m=1n - m = 1. Real axis: locus on (−2,0)(-2, 0) and on (−∞,−3)(-\infty, -3); asymptote: the negative real axis. The branches leave 00 (towards the left) and −2-2 (towards the right), meet, leave the axis, go around the zero and come back to the axis; one ends in −3-3, the other goes to −∞-\infty.

(b) s2+6s+6=0s^2 + 6s + 6 = 0: sˉ=−3±3\bar s = -3 \pm \sqrt3 (≃−1.27\simeq -1.27 and −4.73-4.73), with Kˉ=4−23≃0.536\bar K = 4 - 2\sqrt3 \simeq 0.536 and Kˉ=4+23≃7.46\bar K = 4 + 2\sqrt3 \simeq 7.46.

(c) PK(s)=s2+(2+K)s+3KP_K(s) = s^2 + (2+K)s + 3K: all coefficients positive for K>0K>0, so stable for every K>0K>0. For 4−23<K<4+234 - 2\sqrt3 < K < 4 + 2\sqrt3 the poles satisfy ∣s+3∣2=3\lvert s + 3\rvert^2 = 3: circle of centre −3-3 and radius 3\sqrt3.

(d) eramp(∞)=23K≤0.05e_{\text{ramp}}(\infty) = \dfrac{2}{3K} \le 0.05 gives K≥403K \ge \dfrac{40}{3}; for K=403K = \dfrac{40}{3} the poles are −12-12 and −103-\dfrac{10}{3}.

Show the full solution

(i)(a) Transfer functions and internal model. With NH=K(s+1)N_H = K(s+1) and DH=(s2+4)(s+4)=s3+4s2+4s+16D_H = (s^2+4)(s+4) = s^3 + 4s^2 + 4s + 16, H(s)=K(s+1)(s2+4)(s+4),W(s)=NHNH+DH=K(s+1)s3+4s2+(4+K)s+16+K,H(s) = \frac{K(s+1)}{(s^2+4)(s+4)}, \qquad W(s) = \frac{N_H}{N_H + D_H} = \frac{K(s+1)}{s^3 + 4s^2 + (4+K)s + 16 + K}, Wd(s)=11+H(s)=DHNH+DH=(s2+4)(s+4)s3+4s2+(4+K)s+16+KW_d(s) = \frac{1}{1+H(s)} = \frac{D_H}{N_H + D_H} = \frac{(s^2+4)(s+4)}{s^3 + 4s^2 + (4+K)s + 16 + K} (Tracking and Rejection of Sinusoidal SignalsIn the basic feedback loop, the error vanishes for a sinusoidal disturbance at frequency w0 exactly when the open-loop H(s) contains the factor 1/(s^2+w0^2) (internal model principle), a result that generalises the rule for polynomial signals; the note also shows that rejecting a step disturbance at the plant input needs an integrator in the controller.Tracking and Rejection of Sinusoidal Signals →; for the disturbance on the output Y=WR+WdDY = WR + W_dD, and e=Wd (R−D)e = W_d\,(R - D) as in Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →). Assume WW and WdW_d BIBO stable. For d(t)=Asin⁡(ω0t)d(t) = A\sin(\omega_0t) the frequency response theorem (Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems →) says yd(t)→∣Wd(jω0)∣ Asin⁡(ω0t+∠Wd(jω0))y_d(t) \to \lvert W_d(j\omega_0)\rvert\,A\sin(\omega_0t + \angle W_d(j\omega_0)), which vanishes if and only if Wd(jω0)=0W_d(j\omega_0) = 0, i.e. DH(jω0)=0D_H(j\omega_0) = 0, i.e. ±jω0\pm j\omega_0 are poles of HH. This is the internal model principle: HH must contain 1s2+ω02\dfrac1{s^2+\omega_0^2}. With ω0=2\omega_0 = 2, C(s)C(s) has the factor 1s2+4\dfrac1{s^2+4} in the denominator, so DH(±2j)=0D_H(\pm2j) = 0 and Wd(±2j)=0W_d(\pm2j) = 0. The plant does not provide such poles (GG is 1s+4\dfrac1{s+4}), so the controller must.

(i)(b) Stability. The closed-loop denominator is P(s)=NH+DH=s3+4s2+(4+K)s+(16+K)P(s) = N_H + D_H = s^3 + 4s^2 + (4+K)s + (16+K) (The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →). The numerator and denominator of WW have no common factor for K>0K > 0 (the numerator zero is −1-1, and P(−1)=−1+4−4−K+16+K=15≠0P(-1) = -1 + 4 - 4 - K + 16 + K = 15 \ne 0), so the poles of WW are all the roots of PP. Routh table:

row
s3s^3 11 4+K4+K
s2s^2 44 16+K16+K
s1s^1 4(4+K)−(16+K)4=3K4\dfrac{4(4+K) - (16+K)}{4} = \dfrac{3K}{4}
s0s^0 16+K16+K

The first column is 1, 4, 3K4, 16+K1,\ 4,\ \dfrac{3K}4,\ 16+K: all positive if and only if K>0K > 0. So the closed loop is BIBO stable for every K>0K > 0 (and, as K→0+K \to 0^+, the two poles tend to ±2j\pm 2j from the left). Without the zero, C(s)=Ks2+4C(s) = \dfrac{K}{s^2+4} gives P(s)=(s2+4)(s+4)+K=s3+4s2+4s+16+KP(s) = (s^2+4)(s+4) + K = s^3 + 4s^2 + 4s + 16 + K; the table has the entries 11, 44, 16−(16+K)4=−K4\dfrac{16 - (16+K)}{4} = -\dfrac K4, 16+K16+K: for K>0K>0 the third entry is negative, so there are sign changes and the loop is unstable (for instance K=1K = 1 gives the poles −4.05-4.05 and 0.025±2.05j0.025 \pm 2.05j). The zero in −1-1 adds phase lead and is needed.

(i)(c) Rejection of 3sin⁡2t3\sin 2t. With K=8K = 8, P(s)=s3+4s2+12s+24P(s) = s^3 + 4s^2 + 12s + 24 (Routh: 4⋅12=48>244\cdot12 = 48 > 24, so stable; the roots are −2.79-2.79 and −0.61±2.87j-0.61 \pm 2.87j). Then Wd(2j)=((2j)2+4)(2j+4)P(2j)=0P(2j)=0,W_d(2j) = \frac{\left((2j)^2 + 4\right)(2j+4)}{P(2j)} = \frac{0}{P(2j)} = 0, with P(2j)=−8j−16+24j+24=8+16j≠0P(2j) = -8j - 16 + 24j + 24 = 8 + 16j \ne 0. Therefore yd(t)→0⋅3sin⁡(2t+θ)=0y_d(t) \to 0\cdot3\sin(2t + \theta) = 0: the disturbance is completely cancelled at steady state, and e=−yd→0e = -y_d \to 0. For the reference, E=Wd RE = W_d\,R and Wd(±2j)=0W_d(\pm2j) = 0, so a reference r(t)=sin⁡2tr(t) = \sin 2t is tracked with zero steady-state error as well (the same internal model works for references and disturbances at that frequency).

(i)(d) A disturbance at another frequency. For d(t)=sin⁡td(t) = \sin t the factor s2+4s^2+4 does not vanish at s=js = j: Wd(j)=(−1+4)(j+4)P(j)W_d(j) = \dfrac{(-1+4)(j+4)}{P(j)} with P(j)=−j−4+12j+24=20+11jP(j) = -j - 4 + 12j + 24 = 20 + 11j, so Wd(j)=3(4+j)20+11j,∣Wd(j)∣=317521≃0.542,∠Wd(j)=arctan⁡14−arctan⁡1120≃0.245−0.503=−0.258 rad.W_d(j) = \frac{3(4+j)}{20+11j}, \qquad \lvert W_d(j)\rvert = \frac{3\sqrt{17}}{\sqrt{521}} \simeq 0.542, \qquad \angle W_d(j) = \arctan\frac14 - \arctan\frac{11}{20} \simeq 0.245 - 0.503 = -0.258\ \text{rad}. The theorem gives yd(t)→0.542 sin⁡(t−0.258)y_d(t) \to 0.542\,\sin(t - 0.258) and, with r=0r = 0, e=−yd→−0.542 sin⁡(t−0.258)e = -y_d \to -0.542\,\sin(t - 0.258). The controller rejects only the frequency it contains: the disturbance at ω=1\omega = 1 is only attenuated, to about 54% of its amplitude. Typical error: using Wd(1)W_d(1) instead of Wd(j)W_d(j) (the frequency response is evaluated at s=jωs = j\omega).

(i)(e) Step reference. The open loop H(s)=8(s+1)(s2+4)(s+4)H(s) = \dfrac{8(s+1)}{(s^2+4)(s+4)} has no pole in s=0s = 0: type 00, and since WW is BIBO stable the table of the notes gives e(∞)=11+H(0),H(0)=8⋅14⋅4=12⇒e(∞)=11.5=23.e(\infty) = \frac{1}{1+H(0)}, \qquad H(0) = \frac{8\cdot1}{4\cdot4} = \frac12 \quad\Rightarrow\quad e(\infty) = \frac{1}{1.5} = \frac23 . The internal model of the sinusoid does not help with the step. To track a step, HH must contain 1s\dfrac1s (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →): the controller becomes C(s)=K(s+1)s (s2+4)C(s) = \dfrac{K(s+1)}{s\,(s^2+4)}, i.e. the models of both signals (1s\dfrac1s and 1s2+4\dfrac1{s^2+4}). Since the new P(s)P(s) has degree 44 and a different table, the BIBO stability of the closed loop must be checked again (the Routh test must be repeated, and a value of KK that works before need not work now).

(ii)(a) Sketch of the locus. G2G_2 has n=2n = 2 poles (00 and −2-2), m=1m = 1 zero (−3-3), n−m=1n - m = 1 (The Root LocusThe positive root locus is the set of closed-loop poles of the loop with a proportional controller C(s)=K, K>=0, as K varies; it consists of n branches that start at the poles of G(s) and end at its zeros or at infinity along asymptotes, and four sketching rules (real-axis rule, asymptotes with centroid, multiple points) let one draw it and read off stability and transient requirements.The Root Locus →). Rule R2 (real-axis points with an odd number of poles and zeros on their right):

  • s>0s > 0: none on the right, so no;
  • −2<s<0-2 < s < 0: only the pole 00 on the right (one, odd): in the locus;
  • −3<s<−2-3 < s < -2: poles 00 and −2-2 on the right (two, even): not in the locus;
  • s<−3s < -3: the three singularities 00, −2-2, −3-3 are all on the right (three, odd): in the locus.

With one asymptote (n−m=1n - m = 1) the asymptote is the negative real axis. The branches start at the poles: the branch from 00 moves left and the branch from −2-2 moves right along (−2,0)(-2, 0); they meet in a multiple point (part (b)), leave the real axis (one upward, one downward), go around the zero and come back onto the axis to the left of the zero; one then goes to the zero −3-3, the other to −∞-\infty along the asymptote.

Grafico interattivo: Positive root locus of G2(s) = (s+3)/(s(s+2)): the real segments (−2, 0) and (−∞, −3), and the circle of centre −3 and radius √3 that the complex poles follow; × poles, o zero

(ii)(b) Multiple points. With N(s)=s+3N(s) = s+3, D(s)=s2+2sD(s) = s^2 + 2s, N′=1N' = 1 and D′=2s+2D' = 2s + 2, the condition N′D=ND′N'D = ND' gives s2+2s=(s+3)(2s+2)=2s2+8s+6⟹s2+6s+6=0⟹sˉ=−3±3.s^2 + 2s = (s+3)(2s+2) = 2s^2 + 8s + 6 \quad\Longrightarrow\quad s^2 + 6s + 6 = 0 \quad\Longrightarrow\quad \bar s = -3 \pm \sqrt3 . Both lie on the locus if Kˉ=−D(sˉ)/N(sˉ)≥0\bar K = -D(\bar s)/N(\bar s) \ge 0:

  • sˉ=−3+3≃−1.27\bar s = -3 + \sqrt3 \simeq -1.27: D=sˉ(sˉ+2)=(−3+3)(−1+3)=6−43D = \bar s(\bar s+2) = (-3+\sqrt3)(-1+\sqrt3) = 6 - 4\sqrt3, N=3N = \sqrt3, so Kˉ=43−63=4−23≃0.536>0\bar K = \dfrac{4\sqrt3 - 6}{\sqrt3} = 4 - 2\sqrt3 \simeq 0.536 > 0 (the branches meet and leave the axis: it lies in (−2,0)(-2,0) ✓);
  • sˉ=−3−3≃−4.73\bar s = -3 - \sqrt3 \simeq -4.73: D=(−3−3)(−1−3)=6+43D = (-3-\sqrt3)(-1-\sqrt3) = 6 + 4\sqrt3, N=−3N = -\sqrt3, so Kˉ=6+433=4+23≃7.46>0\bar K = \dfrac{6 + 4\sqrt3}{\sqrt3} = 4 + 2\sqrt3 \simeq 7.46 > 0 (the branches come back onto the axis: it lies in (−∞,−3)(-\infty,-3) ✓).

Check on the characteristic polynomial: for K=4−23K = 4 - 2\sqrt3, s2+(6−23)s+12−63s^2 + (6-2\sqrt3)s + 12 - 6\sqrt3 has discriminant (6−23)2−4(12−63)=36−243+12−48+243=0(6-2\sqrt3)^2 - 4(12-6\sqrt3) = 36 - 24\sqrt3 + 12 - 48 + 24\sqrt3 = 0 ✓ (double root −3+3-3+\sqrt3).

(ii)(c) Stability and the circle. The closed-loop poles are the roots of PK(s)=D+KN=s2+2s+K(s+3)=s2+(2+K)s+3KP_K(s) = D + KN = s^2 + 2s + K(s+3) = s^2 + (2+K)s + 3K. A second-degree polynomial is Hurwitz if and only if all coefficients are positive (The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →): 2+K>02 + K > 0 and 3K>03K > 0, true for every K>0K > 0. So there is no critical gain: the branches never cross the imaginary axis. For 4−23<K<4+234 - 2\sqrt3 < K < 4 + 2\sqrt3 the discriminant (2+K)2−12K=K2−8K+4(2+K)^2 - 12K = K^2 - 8K + 4 is negative and the poles are complex conjugate, with Re(s)=−2+K2,∣s∣2=ssˉ=3K.\mathrm{Re}(s) = -\frac{2+K}{2}, \qquad \lvert s\rvert^2 = s\bar s = 3K . Then ∣s+3∣2=∣s∣2+6 Re(s)+9=3K−3(2+K)+9=3\lvert s + 3\rvert^2 = \lvert s\rvert^2 + 6\,\mathrm{Re}(s) + 9 = 3K - 3(2+K) + 9 = 3: the poles lie on the circle of centre −3-3 (the zero) and radius 3\sqrt3. The damping on this arc is ζ=−Re(s)∣s∣=2+K23K\zeta = \dfrac{-\mathrm{Re}(s)}{\lvert s\rvert} = \dfrac{2+K}{2\sqrt{3K}}, with ζ2=(2+K)212K≥23\zeta^2 = \dfrac{(2+K)^2}{12K} \ge \dfrac23, minimum at K=2K = 2 (poles −2±j2-2 \pm j\sqrt2): the poles are always well damped. For KK outside the interval the poles are real: both in (−2,0)(-2,0) for K<4−23≃0.536K < 4 - 2\sqrt3 \simeq 0.536, and one in (−∞,−4.73)(-\infty,-4.73) and one in (−4.73,−3)(-4.73,-3) for K>4+23≃7.46K > 4 + 2\sqrt3 \simeq 7.46.

(ii)(d) Ramp error. The open loop H(s)=K(s+3)s(s+2)=1sH1(s)H(s) = \dfrac{K(s+3)}{s(s+2)} = \dfrac1sH_1(s) with H1(0)=3K2H_1(0) = \dfrac{3K}{2} has type 11, and WW is stable for every K>0K>0, so eramp(∞)=1H1(0)=23Ke_{\text{ramp}}(\infty) = \dfrac{1}{H_1(0)} = \dfrac{2}{3K} (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →). The condition 23K≤0.05\dfrac2{3K} \le 0.05 gives K≥23⋅0.05=403≃13.3K \ge \dfrac{2}{3\cdot0.05} = \dfrac{40}{3} \simeq 13.3. For K=403K = \dfrac{40}3 the polynomial is s2+463s+40=(s+12)(s+103)s^2 + \dfrac{46}{3}s + 40 = (s+12)\left(s + \dfrac{10}3\right): poles −12-12 and −103-\dfrac{10}{3}, both real and negative (indeed K>7.46K > 7.46), so the response has no oscillations; the slow pole −103-\dfrac{10}3 gives a settling time of about 4.6⋅310≃1.44.6\cdot\dfrac{3}{10} \simeq 1.4 s.

Typical errors.

  • (i) Taking C(s)=Ks2+4C(s) = \dfrac{K}{s^2+4} and concluding that the loop is stable because HH has the right poles: the stability must be checked (it fails for K>0K>0 without the zero).
  • (i) Saying that the internal model of sin⁡2t\sin 2t also rejects sin⁡t\sin t, or that it gives zero error to a step.
  • (i) Evaluating WdW_d at s=ωs = \omega instead of s=jωs = j\omega, or forgetting the phase of the output sinusoid.
  • (ii) Counting singularities on the left instead of on the right of a point of the real axis.
  • (ii) Accepting a multiple point without checking Kˉ≥0\bar K \ge 0, or counting the zero −3-3 as a point reached for a finite KK (it is reached only for K→+∞K \to +\infty).
  • (ii) Forgetting that for K>4+23K > 4 + 2\sqrt3 the poles are real again.

Theory 1 (points 5)

The feedback control scheme and its requirements. (a) Draw the basic feedback control scheme with a disturbance dd added at the output of the plant, define its signals and derive the transfer functions from rr to yy and from dd to yy, and the tracking error E(s)E(s). (b) State the steady-state and the transient requirements, and show how the transient requirements are translated into a region of the complex plane for the poles of W(s)W(s), deriving the condition on the damping ratio for the overshoot. (c) Explain with the vehicle example why a feedback controller reduces the effect of an error in a parameter of the model with respect to an open-loop controller.

Show the result

(a) W(s)=C(s)G(s)1+C(s)G(s)=NCNGNCNG+DCDGW(s) = \dfrac{C(s)G(s)}{1+C(s)G(s)} = \dfrac{N_CN_G}{N_CN_G + D_CD_G}, Wd(s)=11+C(s)G(s)=1−W(s)W_d(s) = \dfrac{1}{1+C(s)G(s)} = 1 - W(s), E(s)=Wd(s) (R(s)−D(s))E(s) = W_d(s)\,(R(s) - D(s)).

(b) Steady state: small e(∞)e(\infty) for the references and disturbances of interest, even with model uncertainty. Transient: tr≤tr∗t_r \le t_r^*, ts≤ts∗t_s \le t_s^*, Ms≤Ms∗M_s \le M_s^*, i.e. ωn≥1.8tr∗\omega_n \ge \dfrac{1.8}{t_r^*} (outside a circle), σ≥4.6ts∗\sigma \ge \dfrac{4.6}{t_s^*} (left of a vertical line), ζ≥ζ∗=∣log⁡Ms∗∣π2+log⁡2Ms∗\zeta \ge \zeta^* = \dfrac{\lvert\log M_s^*\rvert}{\sqrt{\pi^2 + \log^2M_s^*}} (inside a cone); the poles of WW must lie in the intersection.

(c) Open loop: y(∞)=b^b v∗y(\infty) = \dfrac{\hat b}{b}\,v^*, so a 10% error on bb gives a 10% error on the output. Closed loop with u=−K(y−v∗)u = -K(y - v^*): y(∞)=Kb+K v∗y(\infty) = \dfrac{K}{b+K}\,v^*, which is close to v∗v^* for K≫bK \gg b: with K=100b^K = 100\hat b and b^=1.5b\hat b = 1.5b the error is about 1%.

Show the full solution

(a) Scheme and transfer functions. The basic scheme: the reference rr and the output yy (fed back with negative sign) give the tracking error e=r−ye = r - y; the controller C(s)C(s) turns ee into the input uu of the plant G(s)G(s), and the disturbance dd is added at the plant output.

                               d
                               |
 r --->(+)---e--->[ C(s) ]---u--->[ G(s) ]--->(+)----+----> y
        ^ -                                          |
        +--------------------------------------------+

(GG is the system to be controlled, CC the controller, H=CGH = CG the open-loop transfer function.) From the scheme, Y=GU+D=CG(R−Y)+DY = GU + D = CG(R - Y) + D, hence Y(1+CG)=CGR+DY(1+CG) = CGR + D and Y(s)=CG1+CG⏟W(s)R(s)+11+CG⏟Wd(s)D(s).Y(s) = \underbrace{\frac{C G}{1 + C G}}_{W(s)}R(s) + \underbrace{\frac{1}{1+CG}}_{W_d(s)}D(s). With G=NG/DGG = N_G/D_G and C=NC/DCC = N_C/D_C, multiplying numerator and denominator by DCDGD_CD_G: W=NCNGNCNG+DCDGW = \dfrac{N_CN_G}{N_CN_G + D_CD_G} and Wd=DCDGNCNG+DCDGW_d = \dfrac{D_CD_G}{N_CN_G + D_CD_G}. WW and WdW_d have the same denominator, whose roots are the closed-loop poles, so designing CC means choosing where they are (The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →). The error is E=R−Y=(1−W)R−WdD=Wd R−Wd D=Wd (R−D),E = R - Y = (1 - W)R - W_dD = W_d\,R - W_d\,D = W_d\,(R - D), since 1−W=11+CG=Wd1 - W = \dfrac1{1+CG} = W_d: the same function WdW_d governs the effect of the reference and of the disturbance, and the error is the sum of the two contributions (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →).

(b) Requirements. The control objective is y(t)≃r(t)y(t) \simeq r(t) and it splits in two groups.

  1. Steady-state requirements: the error e(∞)e(\infty) is small (ideally null) for some relevant classes of references, with some relevant disturbances, and in the presence of model uncertainty. They are met by giving H(s)H(s) the right poles in the origin (the system type) or in ±jω0\pm j\omega_0 (internal model: Tracking and Rejection of Sinusoidal SignalsIn the basic feedback loop, the error vanishes for a sinusoidal disturbance at frequency w0 exactly when the open-loop H(s) contains the factor 1/(s^2+w0^2) (internal model principle), a result that generalises the rule for polynomial signals; the note also shows that rejecting a step disturbance at the plant input needs an integrator in the controller.Tracking and Rejection of Sinusoidal Signals →).
  2. Transient requirements: fast convergence and small oscillations. A generic reference can be approximated by a sequence of steps, so the requirement becomes that the step response of WW has tr≤tr∗t_r \le t_r^*, ts≤ts∗t_s \le t_s^*, Ms≤Ms∗M_s \le M_s^* (Second-Order System Step ResponseThe unit step response of a BIBO stable second-order system with complex conjugate poles is W(0) times one minus an exponentially decaying sinusoid, and its rise time, settling time and overshoot are approximately 1.8 over the natural frequency, 4.6 over the real part of the pole magnitude, and exp of minus pi times the damping ratio over the square root of one minus its square.Second-Order System Step Response →).

For dominant complex poles p=−σ+jωp = -\sigma + j\omega with ωn=∣p∣\omega_n = \lvert p\rvert, ζ=σ/ωn=cos⁡φ\zeta = \sigma/\omega_n = \cos\varphi the relations are tr≃1.8/ωnt_r \simeq 1.8/\omega_n, ts≃4.6/σt_s \simeq 4.6/\sigma and Ms=e−ζ1−ζ2πM_s = e^{-\frac{\zeta}{\sqrt{1-\zeta^2}}\pi}. Hence:

  • tr≤tr∗t_r \le t_r^* iff ωn≥ωn∗=1.8/tr∗\omega_n \ge \omega_n^* = 1.8/t_r^*: the poles are outside the circle of radius ωn∗\omega_n^*;
  • ts≤ts∗t_s \le t_s^* iff σ≥σ∗=4.6/ts∗\sigma \ge \sigma^* = 4.6/t_s^*: the poles are left of the line Re(s)=−σ∗\mathrm{Re}(s) = -\sigma^*;
  • Ms≤Ms∗M_s \le M_s^*: taking logarithms, −ζπ1−ζ2≤log⁡Ms∗-\dfrac{\zeta\pi}{\sqrt{1-\zeta^2}} \le \log M_s^*, i.e. ζπ≥1−ζ2 ∣log⁡Ms∗∣\zeta\pi \ge \sqrt{1-\zeta^2}\,\lvert\log M_s^*\rvert. Squaring (both sides are non-negative) gives ζ2π2≥(1−ζ2)log⁡2Ms∗\zeta^2\pi^2 \ge (1-\zeta^2)\log^2M_s^*, so ζ2(π2+log⁡2Ms∗)≥log⁡2Ms∗\zeta^2\left(\pi^2 + \log^2M_s^*\right) \ge \log^2M_s^* and ζ≥ζ∗=∣log⁡Ms∗∣π2+log⁡2Ms∗,i.e.φ≤φ∗=arccos⁡ζ∗:\zeta \ge \zeta^* = \frac{\lvert\log M_s^*\rvert}{\sqrt{\pi^2 + \log^2M_s^*}}, \qquad \text{i.e.}\quad \varphi \le \varphi^* = \arccos\zeta^*: the poles are inside the cone of half-angle φ∗\varphi^* around the negative real axis.

The desired region is the intersection of the three: left of the vertical line, outside the circle, inside the cone. The design is: choose C(s)C(s) such that the poles of W(s)W(s) lie in it. These formulas are very accurate for two complex poles without zeros, and quite accurate for a dominant complex pair with the other poles (and zeros) far to the left.

(c) Open loop versus closed loop (Introduction to Feedback ControlThe control problem is choosing the input of a system so that its output follows a desired evolution; on a vehicle with viscous friction an open-loop controller that only uses the model gives a 10 percent output error when the friction coefficient is 10 percent off, while a feedback controller with a large gain K keeps the error near 1 percent even with a 50 percent model error.Introduction to Feedback Control →). The vehicle is my˙+b y=um\dot y + b\,y = u (yy the speed, uu the driving force, bb the friction coefficient). Open loop: with u=F0u = F_0 the output tends to F0/bF_0/b, so to reach the speed v∗v^* one chooses F0=b v∗F_0 = b\,v^*; but only an estimate b^\hat b is known, and u=b^ v∗u = \hat b\,v^* gives y(∞)=b^b v∗y(\infty) = \dfrac{\hat b}{b}\,v^*: if b^=1.1 b\hat b = 1.1\,b the output has a 10% error. The input does not depend on the output, so nothing corrects the mistake. Closed loop: u=−K(y−v∗)u = -K(y - v^*) gives my˙=−by−K(y−v∗)m\dot y = -by - K(y - v^*), so y(∞)=Kb+K v∗y(\infty) = \dfrac{K}{b+K}\,v^* and the transient has rate b+Km\dfrac{b+K}{m}, faster than bm\dfrac bm. For K≫bK \gg b the output is close to v∗v^* whatever the exact value of bb: with K=100b^K = 100\hat b and a 50% error b^=1.5 b\hat b = 1.5\,b (so K=150 bK = 150\,b), y(∞)=150151 v∗≃0.99 v∗y(\infty) = \dfrac{150}{151}\,v^* \simeq 0.99\,v^*, an error of about 1%, against 10% for a 10% parameter error in open loop. The price is the need for a sensor that measures yy. Typical errors: believing that an exact model makes feedback useless (parameters are never exact), and forgetting that the closed-loop result is Kb+Kv∗\dfrac{K}{b+K}v^*, not v∗v^*.

Self-assessment grid
Exercise Points What is needed for full marks Typical errors
1 (a) 2 A(s)=(s+2)2A(s) = (s+2)^2, B(s)=s+3B(s) = s+3, C(s)=s+3C(s) = s+3 (with the initial-condition terms) and U(s)=4/sU(s) = 4/s wrong signs in C(s)C(s); forgetting 4y(0−)4y(0^-)
1 (b) 1.5 H(s)=s+3(s+2)2H(s) = \frac{s+3}{(s+2)^2}, zero −3-3, double pole −2-2, H(0)=34H(0) = \frac34, BIBO stable cancelling something that is not common; calling a double pole unstable
1 (c) 4 yn=(1+t)e−2ty_n = (1+t)e^{-2t} (1.5); YfY_f decomposed with a=3a = 3, b=−3b = -3, c=−2c = -2 and yf=3−(3+2t)e−2ty_f = 3-(3+2t)e^{-2t} (1.5); y=3−(2+t)e−2ty = 3-(2+t)e^{-2t} and the modes (1) forgetting the factor tt; wrong coefficient bb; modes mixed up
1 (d) 1.5 initial value 11, final value 33 with the stability remark (1); y˙>0\dot y > 0 so no overshoot (0.5) final value theorem without checking the poles; no justification of the absence of overshoot
2 (a) 1.5 W=Ks2+2s+KW = \frac{K}{s^2+2s+K}, Re(p)≥−1\mathrm{Re}(p) \ge -1 for every KK, hence ts≥4.6t_s \ge 4.6 s only trying values of KK; using ωn\omega_n in tst_s
2 (b) 1.5 ζ∗≃0.690\zeta^* \simeq 0.690, σ∗=4.6\sigma^* = 4.6, ωn∗=3.6\omega_n^* = 3.6 and the region (cone, line, circle) angle measured from the imaginary axis; wrong constant 4.6 or 1.8
2 (c) 2.5 W=Ks2+cs+KW = \frac{K}{s^2+cs+K} with the cancellation of s+2s+2 (1); σ=c2\sigma = \frac c2, ζ=c2K\zeta = \frac c{2\sqrt K} and the conditions on cc and KK (1); a valid pair, e.g. (12,72)(12, 72), with check (0.5) reading the poles before reducing WW; KK above the damping bound
2 (d) 1.5 y(t)=1−e−6t(cos⁡6t+sin⁡6t)y(t) = 1 - e^{-6t}(\cos 6t + \sin 6t) (0.5); Ms=e−πM_s = e^{-\pi}, tM=π6t_M = \frac\pi6, ts≃0.77t_s \simeq 0.77, tr≃0.21t_r \simeq 0.21 and the comparison with the specifications (1) wrong phase φ\varphi; forgetting to compare with the limits
2 (e) 1 type 1, step error 00, ramp error cK=16\frac cK = \frac16 using the type 0 formula
3 (i)(a) 1 HH, WW, WdW_d and the internal model 1s2+4\frac1{s^2+4} with Wd(±2j)=0W_d(\pm2j) = 0 taking only +2j+2j; confusing WW and WdW_d
3 (i)(b) 1.5 P(s)=s3+4s2+(4+K)s+16+KP(s) = s^3 + 4s^2 + (4+K)s + 16 + K, Routh table, stable iff K>0K > 0 (1); without the zero unstable for K>0K > 0 (0.5) wrong constant term (16 instead of 4); not checking stability
3 (i)(c) 0.5 Wd(2j)=0W_d(2j) = 0, yd→0y_d \to 0; r=sin⁡2tr = \sin 2t also tracked forgetting that e=Wd(r−d)e = W_d(r-d)
3 (i)(d) 1 ∣Wd(j)∣≃0.542\lvert W_d(j)\rvert \simeq 0.542, phase ≃−0.258\simeq -0.258, ydy_d and ee with opposite signs evaluating at s=1s = 1; sign of ee
3 (i)(e) 0.5 e(∞)=23e(\infty) = \frac23 and the factor 1s\frac1s with the new stability check missing stability recheck
3 (ii)(a) 1 locus on (−2,0)(-2,0) and (−∞,−3)(-\infty,-3), asymptote on the negative real axis, direction of the branches counting on the left; wrong parity
3 (ii)(b) 1 s2+6s+6=0s^2 + 6s + 6 = 0, sˉ=−3±3\bar s = -3\pm\sqrt3, Kˉ=4∓23\bar K = 4\mp2\sqrt3 with the check Kˉ≥0\bar K \ge 0 sign error in Kˉ=−D/N\bar K = -D/N; derivative of the wrong function
3 (ii)(c) 0.75 stable for every K>0K>0 (0.25); circle of centre −3-3 and radius 3\sqrt3 with the derivation (0.5) claiming a critical gain
3 (ii)(d) 0.75 e=23Ke = \frac2{3K}, K≥403K \ge \frac{40}3, poles −12-12 and −103-\frac{10}3 using KK instead of 3K2\frac{3K}{2} as H1(0)H_1(0)
Theory 1 5 scheme and derivation of WW, WdW_d, E=Wd(R−D)E = W_d(R-D) (1.5); steady-state and transient requirements (1); regions and derivation of ζ∗\zeta^* (1.5); open loop versus closed loop with the numbers of the vehicle (1) using GG instead of CGCG; angle from the wrong axis; forgetting the model-error example