Salta al contenuto
Note per Studenti The Feedback Control Scheme and Requirements Report

The Feedback Control Scheme and Requirements

In questa pagina 5

This note presents the basic control scheme, derives its closed-loop transfer function, and shows how the control objective is converted into specific requirements: steady-state requirements (treated 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 →) and transient requirements, which are translated into regions of the complex plane using the relations of 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 motivation (why feedback) is in 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 →; transfer functions are in 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 basic control scheme

Control problem: choose the input u(t)u(t) such that y(t)≃r(t)y(t) \simeq r(t), where r(t)r(t) is the ideal desired evolution of y(t)y(t).

To solve it effectively we use the basic control scheme:

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

The summing node subtracts the measured output from the reference (sign −- on the feedback branch).

Symbol Meaning
G(s)G(s) transfer function of the system to be controlled (or plant)
C(s)C(s) transfer function of the control system (or controller)
y(t)y(t) system output
u(t)u(t) (control) input
r(t)r(t) reference input
e(t)e(t) (reference) tracking error, e(t)=r(t)−y(t)e(t) = r(t) - y(t)

The control problem becomes: design C(s)C(s) such that y(t)≃r(t)y(t) \simeq r(t).

Closed-loop transfer function

To understand how C(s)C(s) acts on y(t)y(t) we compute the relation between r(t)r(t) and y(t)y(t). In the Laplace domain:

Y(s)=G(s) U(s)=G(s) C(s) E(s)=G(s) C(s) R(s)−G(s) C(s) Y(s)Y(s) = G(s)\,U(s) = G(s)\,C(s)\,E(s) = G(s)\,C(s)\,R(s) - G(s)\,C(s)\,Y(s)

because U(s)=C(s)E(s)U(s) = C(s)E(s) and E(s)=R(s)−Y(s)E(s) = R(s) - Y(s). Moving the last term to the left:

Y(s)+G(s)C(s)Y(s)=G(s)C(s)R(s)  ⟹  Y(s)(1+G(s)C(s))=G(s)C(s)R(s)Y(s) + G(s)C(s)Y(s) = G(s)C(s)R(s) \;\Longrightarrow\; Y(s)\bigl(1 + G(s)C(s)\bigr) = G(s)C(s)R(s)

Y(s)=G(s)C(s)1+G(s)C(s) R(s)=H(s)1+H(s) R(s)=W(s) R(s)Y(s) = \frac{G(s)C(s)}{1 + G(s)C(s)}\,R(s) = \frac{H(s)}{1 + H(s)}\,R(s) = W(s)\,R(s)

with

  • H(s)=C(s)G(s)H(s) = C(s)G(s): transfer function of the open-loop system;
  • W(s)=H(s)1+H(s)=C(s)G(s)1+C(s)G(s)W(s) = \dfrac{H(s)}{1+H(s)} = \dfrac{C(s)G(s)}{1 + C(s)G(s)}: transfer function of the closed-loop system.

In terms of numerators and denominators

Let G(s)=NG(s)DG(s)G(s) = \dfrac{N_G(s)}{D_G(s)} and C(s)=NC(s)DC(s)C(s) = \dfrac{N_C(s)}{D_C(s)}. Then

W(s)=C(s)G(s)1+C(s)G(s)=NCNGDCDG1+NCNGDCDG=NCNGNCNG+DCDGW(s) = \frac{C(s)G(s)}{1 + C(s)G(s)} = \frac{\dfrac{N_C N_G}{D_C D_G}}{1 + \dfrac{N_C N_G}{D_C D_G}} = \frac{N_C N_G}{N_C N_G + D_C D_G}

W(s)=C(s)G(s)1+C(s)G(s)=NC(s) NG(s)NC(s) NG(s)+DC(s) DG(s)\boxed{W(s) = \frac{C(s)G(s)}{1 + C(s)G(s)} = \frac{N_C(s)\,N_G(s)}{N_C(s)\,N_G(s) + D_C(s)\,D_G(s)}}

The whole loop is equivalent to a single block:

  r --> [ C ]--[ G ] --> y         ===        r --> [ W ] --> y
        ^__________|

The poles of W(s)W(s) are the roots of NCNG+DCDGN_C N_G + D_C D_G: designing C(s)C(s) means choosing where they are. The stability of W(s)W(s) can be checked with the 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 →.

Control requirements

The objective y(t)≃r(t)y(t) \simeq r(t) is converted into more specific requirements, of two kinds.

1. Steady-state requirements: the tracking error is small at steady state (ideally null)

  • at least for some relevant classes of references;
  • even in the presence of some relevant classes of disturbances;
  • even in the presence of model uncertainty.

2. Transient requirements: the tracking error has a suitable transient, i.e. fast convergence and small oscillations. (Plot of the slide: y(t)y(t) starts from a different value than r(t)r(t) and gradually converges to it.)

Many relevant references can be approximated by a sequence of step signals (plot: a piecewise-constant r(t)r(t) and y(t)y(t) that after each step jumps with a transient and settles on the new level). Therefore:

tracking an arbitrary reference with a suitable transient ≡\equiv the step response of W(s)W(s) has a suitable transient ≡\equiv tr,ts,Mst_r, t_s, M_s are small enough.

tr≤tr∗,ts≤ts∗,Ms≤Ms∗t_r \le t_r^*, \qquad t_s \le t_s^*, \qquad M_s \le M_s^*

where tr∗,ts∗,Ms∗t_r^*, t_s^*, M_s^* are the maximum values allowed by the specification. (Definitions of rise time, settling time and overshoot: 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 →.)

From transient specifications to pole regions

For systems with a pair of complex conjugate dominant poles p=−σ+jωp = -\sigma + j\omega, with ωn=∣p∣\omega_n = |p|, ζ=σ/ωn=cos⁡φ\zeta = \sigma/\omega_n = \cos\varphi, the relations between step response parameters and transfer function parameters let us convert conditions on tr,ts,Mst_r, t_s, M_s into conditions on ζ,ωn\zeta, \omega_n (and hence on the position of the poles).

Rise time

tr≃1.8ωn,tr≤tr∗  ⟺  1.8ωn≤tr∗  ⟺  ωn≥ωn∗=1.8tr∗t_r \simeq \frac{1.8}{\omega_n}, \qquad t_r \le t_r^* \;\Longleftrightarrow\; \frac{1.8}{\omega_n} \le t_r^* \;\Longleftrightarrow\; \omega_n \ge \omega_n^* = \frac{1.8}{t_r^*}

In order for tr≤tr∗t_r \le t_r^* we need ωn≥ωn∗\omega_n \ge \omega_n^*. Since ωn\omega_n is the distance of pp from the origin, the poles must lie outside the circle of radius ωn∗\omega_n^* centred at the origin (in the left half-plane: the region of the slide is the left half-plane with the half-disc of radius ωn∗\omega_n^* removed).

Settling time

ts≃4.6σ,ts≤ts∗  ⟺  4.6σ≤ts∗  ⟺  σ≥σ∗=4.6ts∗t_s \simeq \frac{4.6}{\sigma}, \qquad t_s \le t_s^* \;\Longleftrightarrow\; \frac{4.6}{\sigma} \le t_s^* \;\Longleftrightarrow\; \sigma \ge \sigma^* = \frac{4.6}{t_s^*}

In order for ts≤ts∗t_s \le t_s^* we need σ≥σ∗\sigma \ge \sigma^*: the poles must lie to the left of the vertical line Re(s)=−σ∗\mathrm{Re}(s) = -\sigma^*.

Overshoot

Ms=e−ζ1−ζ2πM_s = e^{-\frac{\zeta}{\sqrt{1-\zeta^2}}\pi} and we require Ms≤Ms∗M_s \le M_s^* (with Ms∗<1M_s^* < 1). Solve for ζ\zeta:

e−ζ1−ζ2π≤Ms∗  ⟺  eζ1−ζ2π≥1Ms∗  ⟺  ζ1−ζ2 π≥log⁡1Ms∗e^{-\frac{\zeta}{\sqrt{1-\zeta^2}}\pi} \le M_s^* \;\Longleftrightarrow\; e^{\frac{\zeta}{\sqrt{1-\zeta^2}}\pi} \ge \frac{1}{M_s^*} \;\Longleftrightarrow\; \frac{\zeta}{\sqrt{1-\zeta^2}}\,\pi \ge \log\frac{1}{M_s^*}

ζπ≥1−ζ2 log⁡1Ms∗  ⟹  ζ2π2≥(1−ζ2) log⁡21Ms∗\zeta\pi \ge \sqrt{1-\zeta^2}\,\log\frac{1}{M_s^*} \;\Longrightarrow\; \zeta^2\pi^2 \ge (1-\zeta^2)\,\log^2\frac{1}{M_s^*}

(squaring is allowed because both sides are non-negative.) Since log⁡21Ms∗=log⁡2Ms∗\log^2\frac{1}{M_s^*} = \log^2 M_s^*:

ζ2π2≥(1−ζ2)log⁡2Ms∗  ⟹  ζ2(π2+log⁡2Ms∗)≥log⁡2Ms∗  ⟹  ζ2≥log⁡2Ms∗π2+log⁡2Ms∗\zeta^2\pi^2 \ge (1-\zeta^2)\log^2 M_s^* \;\Longrightarrow\; \zeta^2\bigl(\pi^2 + \log^2 M_s^*\bigr) \ge \log^2 M_s^* \;\Longrightarrow\; \zeta^2 \ge \frac{\log^2 M_s^*}{\pi^2 + \log^2 M_s^*}

ζ≥ζ∗=∣log⁡Ms∗∣π2+log⁡2Ms∗\zeta \ge \zeta^* = \frac{\lvert\log M_s^*\rvert}{\sqrt{\pi^2 + \log^2 M_s^*}}

In order for Ms≤Ms∗M_s \le M_s^* we need ζ≥ζ∗\zeta \ge \zeta^*. In terms of the angle φ\varphi (recall ζ=cos⁡φ\zeta = \cos\varphi):

cos⁡φ≥ζ∗  ⟺  φ≤φ∗=arccos⁡(ζ∗)\cos\varphi \ge \zeta^* \;\Longleftrightarrow\; \varphi \le \varphi^* = \arccos(\zeta^*)

The poles must lie in the sector (cone) of the left half-plane around the negative real axis with half-opening angle φ∗\varphi^*: the angle φ\varphi between the segment 00-pp and the negative real axis cannot exceed φ∗\varphi^*.

Summary

specification condition region of the poles
tr≤tr∗t_r \le t_r^* ωn≥ωn∗=1.8tr∗\omega_n \ge \omega_n^* = \dfrac{1.8}{t_r^*} outside the circle of radius ωn∗\omega_n^*
ts≤ts∗t_s \le t_s^* σ≥σ∗=4.6ts∗\sigma \ge \sigma^* = \dfrac{4.6}{t_s^*} left of the line Re(s)=−σ∗\mathrm{Re}(s) = -\sigma^*
Ms≤Ms∗M_s \le M_s^* φ≤φ∗=arccos⁡(ζ∗)\varphi \le \varphi^* = \arccos(\zeta^*) inside the cone of half-angle φ∗\varphi^* about the negative real axis

The three conditions together define a desired region of the complex plane (the intersection of the three regions: to the left of the vertical line, outside the small circle, inside the cone). To achieve the desired transient (tr≤tr∗t_r \le t_r^*, ts≤ts∗t_s \le t_s^*, Ms≤Ms∗M_s \le M_s^*):

design C(s)C(s) such that the poles of W(s)W(s) are in the desired region.

Overall picture of the control requirements

control requirements
 |-- steady-state --+-- small error for some references
 |                  |-- small error with some disturbances
 |                  +-- small error with model uncertainty
 +-- transient ------ t_r <= t_r*,  t_s <= t_s*,  M_s <= M_s*
                          ==> poles of W(s) in the desired region

Versione ripasso

  • Scheme: r→(+/−)→e→C(s)→u→G(s)→yr \to (+/-) \to e \to C(s) \to u \to G(s) \to y, with yy fed back to the sum. GG plant, CC controller, e=r−ye = r - y. Control problem: design C(s)C(s) such that y(t)≃r(t)y(t) \simeq r(t).
  • Y(s) (1+G(s)C(s))=G(s)C(s)R(s)Y(s)\,(1 + G(s)C(s)) = G(s)C(s)R(s).
  • Open loop H(s)=C(s)G(s)H(s) = C(s)G(s); closed loop W(s)=H(s)1+H(s)=NCNGNCNG+DCDGW(s) = \dfrac{H(s)}{1+H(s)} = \dfrac{N_C N_G}{N_C N_G + D_C D_G} (with G=NG/DGG = N_G/D_G, C=NC/DCC = N_C/D_C).
  • Requirements: steady-state (small error for some references, some disturbances, model uncertainty; see 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 →) and transient (tr≤tr∗t_r \le t_r^*, ts≤ts∗t_s \le t_s^*, Ms≤Ms∗M_s \le M_s^* on the step response of W(s)W(s), since references are approximated by sequences of steps).
  • With dominant complex poles p=−σ+jωp = -\sigma + j\omega (ωn=∣p∣\omega_n = \lvert p\rvert, ζ=cos⁡φ\zeta = \cos\varphi), using tr≃1.8/ωnt_r \simeq 1.8/\omega_n, ts≃4.6/σt_s \simeq 4.6/\sigma, Ms=e−ζ1−ζ2πM_s = e^{-\frac{\zeta}{\sqrt{1-\zeta^2}}\pi}:
    • tr≤tr∗⇒ωn≥ωn∗=1.8/tr∗t_r \le t_r^* \Rightarrow \omega_n \ge \omega_n^* = 1.8/t_r^* (outside a circle);
    • ts≤ts∗⇒σ≥σ∗=4.6/ts∗t_s \le t_s^* \Rightarrow \sigma \ge \sigma^* = 4.6/t_s^* (left of a vertical line);
    • Ms≤Ms∗⇒ζ≥ζ∗=∣log⁡Ms∗∣π2+log⁡2Ms∗M_s \le M_s^* \Rightarrow \zeta \ge \zeta^* = \dfrac{\lvert\log M_s^*\rvert}{\sqrt{\pi^2 + \log^2 M_s^*}}, i.e. φ≤φ∗=arccos⁡(ζ∗)\varphi \le \varphi^* = \arccos(\zeta^*) (inside a cone).
  • Design rule: choose C(s)C(s) so that the poles of W(s)W(s) lie in the intersection of the three regions.
  • Typical mistakes: using G(s)G(s) instead of C(s)G(s)C(s)G(s) in the loop; forgetting that the poles of W(s)W(s) are the roots of NCNG+DCDGN_C N_G + D_C D_G, not those of GG; mixing up the angle (φ\varphi is measured from the negative real axis, so a small φ\varphi means large damping).

Teoria collegata