Salta al contenuto
Note per Studenti Tracking and Rejection of Standard Signals Report

Tracking and Rejection of Standard Signals

In questa pagina 10

This note studies the steady-state requirement of 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 →: for which references r(t)r(t) the tracking error e(t)=r(t)−y(t)e(t) = r(t) - y(t) goes to zero, even in the presence of a disturbance d(t)d(t) acting on the output. It uses the transfer functions of 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 →, the idea of BIBO stability (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 →) and Hurwitz polynomials (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 →).

Recap of the control scheme

Second-order step response (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 →): the poles of W(s)W(s) are described by p=−σ+jωp = -\sigma + j\omega, ωn=σ2+ω2\omega_n = \sqrt{\sigma^2 + \omega^2}, ζ=σ/ωn=cos⁡φ∈[0,1]\zeta = \sigma/\omega_n = \cos\varphi \in [0,1]. The control requirements (steady state and transient) lead to the design of C(s)C(s) so that y(t)≃r(t)y(t) \simeq r(t) with the poles of W(s)W(s) in a desired region.

Scheme with a disturbance on the output

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

The disturbance d(t)d(t) is added to the output of the plant, before the feedback branch.

H(s)=C(s)G(s) (open-loop tf),W(s)=H(s)1+H(s) (closed-loop tf)H(s) = C(s)G(s) \ \text{(open-loop tf)}, \qquad W(s) = \frac{H(s)}{1+H(s)} \ \text{(closed-loop tf)}

Assuming that W(s)W(s) is BIBO stable, the objective is to design C(s)C(s) such that e(t)→0e(t) \to 0 for some r(t)r(t) and even in the presence of some d(t)d(t).

Standard signals

Definition (standard signal). The standard signal of order ℓ\ell, ℓ∈N\ell \in \mathbb{N}, is

1ℓ! tℓ 1(t)\frac{1}{\ell!}\,t^{\ell}\,1(t)

i.e. the signal whose Laplace transform is 1sℓ+1\dfrac{1}{s^{\ell+1}}.

order signal Laplace transform
00 1(t)1(t) (step) 1s\dfrac{1}{s}
11 t 1(t)t\,1(t) (ramp) 1s2\dfrac{1}{s^2}
22 12t2 1(t)\dfrac{1}{2}t^2\,1(t) (parabola) 1s3\dfrac{1}{s^3}

(Plot of the slide: the three curves start at the origin; order 0 is a constant line, order 1 a straight line with unit slope, order 2 a parabola that eventually overtakes the others.)

System type

Definition (system type). The (control) system type is the number of poles in the origin of H(s)=C(s)G(s)H(s) = C(s)G(s), the open-loop transfer function of W(s)=H(s)1+H(s)W(s) = \dfrac{H(s)}{1+H(s)}.

  • Type 0: H(s)H(s) such that H(0)≠∞H(0) \ne \infty, i.e. no poles in 00.
  • Type k≥1k \ge 1: H(s)=1sk H1(s)H(s) = \dfrac{1}{s^k}\,H_1(s) with H1(s)H_1(s) such that H1(0)≠∞H_1(0) \ne \infty (no poles in 00) and H1(0)≠0H_1(0) \ne 0 (no zeros in 00).

Example. H(s)=s+2s2(s+1)(s+3)H(s) = \dfrac{s+2}{s^2(s+1)(s+3)} can be written in three ways:

writing the remaining factor is it a valid H1(s)H_1(s)?
1s2⋅s+2(s+1)(s+3)\dfrac{1}{s^2}\cdot\dfrac{s+2}{(s+1)(s+3)} H1(0)=23H_1(0) = \dfrac{2}{3}, finite and nonzero yes: the system has type 2
1s⋅s+2s(s+1)(s+3)\dfrac{1}{s}\cdot\dfrac{s+2}{s(s+1)(s+3)} equal to +∞+\infty in 00 no
1s3⋅(s+2) s(s+1)(s+3)\dfrac{1}{s^3}\cdot\dfrac{(s+2)\,s}{(s+1)(s+3)} equal to 00 in 00 no

Only the first writing has a remaining factor with no pole and no zero in 00, so the type is 22.

Final value theorem

Theorem (final value). Let F(s)=NF(s)sℓDF(s)F(s) = \dfrac{N_F(s)}{s^{\ell}D_F(s)} with NF(0)≠0N_F(0) \ne 0 (no zeros in 00) and DF(0)≠0D_F(0) \ne 0 (no poles in 00), and let f(t)=L−1[F(s)]f(t) = \mathcal{L}^{-1}[F(s)]. If DF(s)D_F(s) is Hurwitz, then

lim⁡t→+∞f(t)=lim⁡s→0s F(s)\lim_{t \to +\infty} f(t) = \lim_{s \to 0} s\,F(s)

Relations from rr and dd to yy and ee

From the scheme, the output is the plant output plus the disturbance:

Y(s)=G(s)U(s)+D(s)=C(s)G(s)(R(s)−Y(s))+D(s)Y(s) = G(s)U(s) + D(s) = C(s)G(s)\bigl(R(s) - Y(s)\bigr) + D(s)

Y(s)(1+C(s)G(s))=C(s)G(s)R(s)+D(s)Y(s)\bigl(1 + C(s)G(s)\bigr) = C(s)G(s)R(s) + D(s)

Y(s)=C(s)G(s)1+C(s)G(s)⏟W(s) R(s)+11+C(s)G(s)⏟Wd(s) D(s)Y(s) = \underbrace{\frac{C(s)G(s)}{1 + C(s)G(s)}}_{W(s)}\,R(s) + \underbrace{\frac{1}{1 + C(s)G(s)}}_{W_d(s)}\,D(s)

With H(s)=NH(s)DH(s)H(s) = \dfrac{N_H(s)}{D_H(s)}:

W(s)=C(s)G(s)1+C(s)G(s)=H(s)1+H(s)=NH(s)NH(s)+DH(s)(tf from r to y)W(s) = \frac{C(s)G(s)}{1+C(s)G(s)} = \frac{H(s)}{1+H(s)} = \frac{N_H(s)}{N_H(s) + D_H(s)} \quad \text{(tf from } r \text{ to } y\text{)}

Wd(s)=11+C(s)G(s)=11+H(s)=DH(s)NH(s)+DH(s)(tf from d to y)W_d(s) = \frac{1}{1 + C(s)G(s)} = \frac{1}{1+H(s)} = \frac{D_H(s)}{N_H(s) + D_H(s)} \quad \text{(tf from } d \text{ to } y\text{)}

W(s)W(s) and Wd(s)W_d(s) share the same denominator; it can be proved that W(s)W(s) is BIBO stable if and only if Wd(s)W_d(s) is BIBO stable.

Tracking error

E(s)=R(s)−Y(s)=R(s)−W(s)R(s)−Wd(s)D(s)=(1−W(s))R(s)−Wd(s)D(s)E(s) = R(s) - Y(s) = R(s) - W(s)R(s) - W_d(s)D(s) = \bigl(1 - W(s)\bigr)R(s) - W_d(s)D(s)

and

1−W(s)=1−C(s)G(s)1+C(s)G(s)=11+C(s)G(s)=Wd(s)1 - W(s) = 1 - \frac{C(s)G(s)}{1 + C(s)G(s)} = \frac{1}{1 + C(s)G(s)} = W_d(s)

so

E(s)=Wd(s) R(s)−Wd(s) D(s)E(s) = W_d(s)\,R(s) - W_d(s)\,D(s)

The total tracking error is the sum of a component due to rr and a component due to dd (the same function Wd(s)W_d(s) multiplies both, with opposite signs).

Tracking of standard signals

Take a reference R(s)=1sℓ+1R(s) = \dfrac{1}{s^{\ell+1}} (standard signal of order ℓ\ell) and D(s)=0D(s) = 0 (no disturbance):

E(s)=Wd(s)R(s)=11+H(s) 1sℓ+1=DH(s)NH(s)+DH(s)⋅1sℓ+1E(s) = W_d(s)R(s) = \frac{1}{1+H(s)}\,\frac{1}{s^{\ell+1}} = \frac{D_H(s)}{N_H(s) + D_H(s)}\cdot\frac{1}{s^{\ell+1}}

Since W(s)W(s) and Wd(s)W_d(s) are BIBO stable, NH(s)+DH(s)N_H(s) + D_H(s) is Hurwitz. Consequently the final value theorem applies to e(t)e(t):

e(∞)=lim⁡t→+∞e(t)=lim⁡s→0s E(s)=lim⁡s→011+H(s) 1sℓe(\infty) = \lim_{t\to+\infty} e(t) = \lim_{s \to 0} s\,E(s) = \lim_{s \to 0} \frac{1}{1+H(s)}\,\frac{1}{s^{\ell}}

(the factor ss cancels one power of ss in sℓ+1s^{\ell+1}.) Two cases are distinguished to compute the limit.

Type 0 (H(0)≠∞H(0) \ne \infty):

e(∞)=lim⁡s→011+H(s) 1sℓ={11+H(0)if ℓ=0∞if ℓ≥1e(\infty) = \lim_{s \to 0}\frac{1}{1+H(s)}\,\frac{1}{s^{\ell}} = \begin{cases} \dfrac{1}{1+H(0)} & \text{if } \ell = 0 \\[2mm] \infty & \text{if } \ell \ge 1 \end{cases}

(for ℓ≥1\ell \ge 1 the factor 1/sℓ1/s^\ell diverges while 1/(1+H(s))1/(1+H(s)) tends to the finite nonzero value 1/(1+H(0))1/(1+H(0)).)

Type k≥1k \ge 1 (H(s)=1skH1(s)H(s) = \dfrac{1}{s^k}H_1(s), H1(0)≠∞H_1(0) \ne \infty, H1(0)≠0H_1(0) \ne 0): first rewrite

11+H(s)=sksk+H1(s)\frac{1}{1+H(s)} = \frac{s^k}{s^k + H_1(s)}

so that

e(∞)=lim⁡s→0sksk+H1(s) 1sℓ=lim⁡s→0sk−ℓsk+H1(s)={0if k>ℓ1H1(0)if k=ℓ∞if k<ℓe(\infty) = \lim_{s \to 0}\frac{s^k}{s^k + H_1(s)}\,\frac{1}{s^{\ell}} = \lim_{s\to 0}\frac{s^{k-\ell}}{s^k + H_1(s)} = \begin{cases} 0 & \text{if } k > \ell \\[1mm] \dfrac{1}{H_1(0)} & \text{if } k = \ell \\[1mm] \infty & \text{if } k < \ell \end{cases}

(the denominator tends to H1(0)≠0H_1(0) \ne 0; the behaviour depends on the power sk−ℓs^{k-\ell}.)

In conclusion, e(∞)e(\infty) is 00 if k>ℓk > \ell, finite if k=ℓk = \ell, ∞\infty if k<ℓk < \ell. (For k=ℓ=0k=\ell=0 the finite value is 11+H(0)\frac{1}{1+H(0)}.)

Rejection of standard signals

Take now a disturbance D(s)=1sℓ+1D(s) = \dfrac{1}{s^{\ell+1}} (standard signal of order ℓ\ell) and a null reference R(s)=0R(s) = 0:

E(s)=−Wd(s)D(s)=−11+H(s) 1sℓ+1=−DH(s)NH(s)+DH(s)⋅1sℓ+1E(s) = -W_d(s)D(s) = -\frac{1}{1+H(s)}\,\frac{1}{s^{\ell+1}} = -\frac{D_H(s)}{N_H(s)+D_H(s)}\cdot\frac{1}{s^{\ell+1}}

This is the same as tracking with changed sign, so e(∞)e(\infty) is computed exactly as above (with the opposite sign when finite).

Linearity

Because the scheme is linear:

  • the total error is the sum of the error due to the reference and the error due to the disturbance;
  • with a scaled standard signal the error is scaled (if null, it remains null);
  • with a linear combination of standard signals, the total error is the linear combination of the errors for each signal.

Conclusion

The steady-state error e(∞)e(\infty) with a reference of order ℓ\ell (or with a disturbance of order ℓ\ell) is:

system type kk steady-state error
k≥ℓ+1k \ge \ell + 1 null
k=ℓk = \ell finite
k<ℓk < \ell infinite

Equivalently, for e(∞)=0e(\infty) = 0: perfect tracking (or rejection) of 1sℓ+1\dfrac{1}{s^{\ell+1}} if and only if H(s)H(s) contains 1sℓ+1\dfrac{1}{s^{\ell+1}}, i.e. H(s)H(s) has at least ℓ+1\ell + 1 poles in the origin (type k≥ℓ+1k \ge \ell+1), as the computation above shows.

Control design rule

This analysis leads to a design rule. In order for e(t)→0e(t) \to 0 with standard signals of order ℓ\ell, C(s)C(s) must be such that H(s)H(s) has ℓ\ell poles in the origin, i.e. if G(s)G(s) has nG (≤ℓ)n_G\ (\le \ell) poles in the origin, C(s)C(s) must have

nC=ℓ−nG (≥0)n_C = \ell - n_G\ (\ge 0)

poles in the origin, and C(s)C(s) must also be such that W(s)W(s) is BIBO stable.

Remark on counting: the rule is written on the slide with ℓ\ell poles, while the preceding result (null error for k≥ℓ+1k \ge \ell+1, finite error for k=ℓk = \ell) shows that ℓ\ell poles give a finite error and ℓ+1\ell + 1 poles give a null one. When designing for exactly zero steady-state error, use the count from the computation, k≥ℓ+1k \ge \ell + 1.

Versione ripasso

  • Scheme with disturbance on the output: Y=G U+DY = G\,U + D, U=C EU = C\,E, E=R−YE = R - Y. H=CG=NH/DHH = CG = N_H/D_H, W=H1+H=NHNH+DHW = \dfrac{H}{1+H} = \dfrac{N_H}{N_H + D_H} (r→yr \to y), Wd=11+H=DHNH+DHW_d = \dfrac{1}{1+H} = \dfrac{D_H}{N_H + D_H} (d→yd \to y). Same denominator, so WW BIBO iff WdW_d BIBO.
  • E(s)=Wd(s)R(s)−Wd(s)D(s)E(s) = W_d(s)R(s) - W_d(s)D(s) (because 1−W=Wd1 - W = W_d): error = component due to rr plus component due to dd.
  • Standard signal of order ℓ\ell: tℓℓ!1(t)\dfrac{t^\ell}{\ell!}1(t), Laplace transform 1sℓ+1\dfrac{1}{s^{\ell+1}} (step, ramp, parabola for ℓ=0,1,2\ell = 0, 1, 2).
  • System type kk = number of poles in the origin of H(s)H(s). Type 0: H(0)≠∞H(0) \ne \infty. Type k≥1k \ge 1: H=H1/skH = H_1/s^k with H1(0)≠0,∞H_1(0) \ne 0, \infty. Example: s+2s2(s+1)(s+3)\dfrac{s+2}{s^2(s+1)(s+3)} is type 2 (H1(0)=2/3H_1(0) = 2/3).
  • Final value theorem: F=NFsℓDFF = \dfrac{N_F}{s^{\ell}D_F}, NF(0)≠0N_F(0) \ne 0, DF(0)≠0D_F(0) \ne 0, DFD_F Hurwitz ⇒lim⁡t→∞f(t)=lim⁡s→0sF(s)\Rightarrow \lim_{t\to\infty} f(t) = \lim_{s\to 0} sF(s). Applicable to ee because NH+DHN_H + D_H is Hurwitz when WW is BIBO.
  • With R=1/sℓ+1R = 1/s^{\ell+1}: e(∞)=lim⁡s→011+H(s)1sℓe(\infty) = \lim_{s\to 0}\dfrac{1}{1+H(s)}\dfrac{1}{s^\ell}.
    • Type 0: 11+H(0)\dfrac{1}{1+H(0)} if ℓ=0\ell = 0; ∞\infty if ℓ≥1\ell \ge 1.
    • Type k≥1k \ge 1: lim⁡sk−ℓsk+H1(s)=0\lim \dfrac{s^{k-\ell}}{s^k + H_1(s)} = 0 if k>ℓk > \ell; 1H1(0)\dfrac{1}{H_1(0)} if k=ℓk = \ell; ∞\infty if k<ℓk < \ell.
  • Rejection (D=1/sℓ+1D = 1/s^{\ell+1}, R=0R = 0): E=−WdDE = -W_d D, same as tracking with the sign changed. Linearity: errors add, scale and combine linearly.
  • Result: e(∞)e(\infty) null for k≥ℓ+1k \ge \ell+1, finite for k=ℓk = \ell, infinite for k<ℓk < \ell.
  • Design: HH needs poles in the origin; if GG has nGn_G of them, CC must supply the missing ones, nC=ℓ−nG≥0n_C = \ell - n_G \ge 0 (rule as written on the slide), keeping WW BIBO stable. By the computation, exactly zero error needs k≥ℓ+1k \ge \ell+1 poles in total.
  • Typical mistakes: applying the final value theorem without checking that NH+DHN_H + D_H is Hurwitz; counting zeros at the origin as poles when finding the type (always factor so that H1(0)H_1(0) is finite and nonzero); forgetting that the disturbance here enters at the output and so has the same WdW_d as the reference error.

Teoria collegata