Salta al contenuto
Note per Studenti Introduction to Feedback Control Report

Introduction to Feedback Control

In questa pagina 5

This note follows the operational introduction to control. It fixes the vocabulary (control problem, control system), builds a first mathematical model of a vehicle, and compares two controllers on it: an open-loop controllera controller whose input does not depend on the measured output and a closed-loop controllera controller whose input depends on the measured output, also called feedback controller. The more general framework (blocks C(s)C(s), G(s)G(s), transfer functions) is developed in 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 general picture of the subject is in Introduction to Control SystemsA control system makes a physical system follow a desired reference; the key idea is feedback (closed loop), compared with open-loop control, and the problem is formulated in terms of systems, control inputs, disturbances, outputs and a reference.Introduction to Control Systems →.

Definitions

  • Control problem: the problem of enforcing a desired behavior to a system. "Enforcing" means that we can act on the system only by choosing its input; the "behavior" is represented by the output evolution.
  • Control system: a law that determines the input so as to achieve the desired output evolution.

Practical example: the vehicle

A vehicle moves along a straight road.

Role Quantity
system the vehicle
input driving force Fm(t)F_m(t)
output speed v(t)v(t)

Control problem of the example: choose Fm(t)F_m(t) so that v(t)v(t) reaches a desired speed v∗v^*.

To choose the input well we need a model: a mathematical relation that describes how the output evolves when the input is varied (see also System ModelingA mathematical model (parameters, variables, relations) describes a system quantitatively; models are classified as static or dynamic, causal, linear, time-invariant, SISO or MIMO, and the course focuses on SISO continuous-time causal dynamic LTI systems described by a constant-coefficient input-output ODE.System Modeling →).

Model of the vehicle

Two forces act on the vehicle: the driving force FmF_m (forward) and a resistive force FvF_v (backward).

        F_v  <--+----------+--> F_m
                |  vehicle |
                +----------+
                  o      o
        ==========================> road

Newton's law, with mm the mass of the vehicle and aa its acceleration:

m a=Ftot=Fm−Fvm\,a = F_{tot} = F_m - F_v

The resistive force is viscous friction with coefficient bb, i.e. proportional to the speed:

Fv=b vF_v = b\,v

Since a=v˙a = \dot v:

m v˙=Fm−b vm\,\dot v = F_m - b\,v

Renaming the output v=yv = y and the input Fm=uF_m = u we obtain the model

m y˙+b y=um\,\dot y + b\,y = u

a first-order linear ODE with input uu and output yy.

Naive controller (open loop)

Choose a constant force:

u(t)=F0u(t) = F_0

The model becomes m y˙(t)+b y(t)=F0m\,\dot y(t) + b\,y(t) = F_0, i.e.

y˙(t)=−bm y(t)+1m F0\dot y(t) = -\frac{b}{m}\,y(t) + \frac{1}{m}\,F_0

Its solution (variation-of-constants formula, see Time-Domain Solution of ODEsA linear constant-coefficient ODE is solved as the sum of a homogeneous solution (natural modes from the characteristic equation) and a particular solution (forced by the input), with the constants fixed by the initial conditions; the sign of the real part of the roots decides growth or decay.Time-Domain Solution of ODEs →) is natural response plus forced response:

y(t)=e−bmt y(0)+∫0te−bm(t−s) F0m dsy(t) = e^{-\frac{b}{m}t}\,y(0) + \int_0^t e^{-\frac{b}{m}(t-s)}\,\frac{F_0}{m}\,ds

The integral evaluates to F0b(1−e−bmt)\frac{F_0}{b}\left(1 - e^{-\frac{b}{m}t}\right) (the slide computes it with the antiderivative −F0be−bms-\frac{F_0}{b}e^{-\frac{b}{m}s} between 00 and tt and reaches the same result), so

y(t)=F0b+e−bmt(y(0)−F0b)y(t) = \frac{F_0}{b} + e^{-\frac{b}{m}t}\left(y(0) - \frac{F_0}{b}\right)

  • F0b\dfrac{F_0}{b} is the steady-state part;
  • e−bmt(y(0)−F0b)e^{-\frac{b}{m}t}\left(y(0) - \frac{F_0}{b}\right) is the transient, which vanishes exponentially with time constant m/bm/b.

Plot described by the slide (case y(0)<F0/by(0) < F_0/b): y(t)y(t) starts at y(0)y(0) and rises monotonically, with exponential shape, towards the horizontal asymptote F0/bF_0/b.

So y(t)→F0/by(t) \to F_0/b. To make y(t)→v∗y(t) \to v^* we choose

u(t)=F0=b v∗⟹y(t)→F0b=b v∗b=v∗u(t) = F_0 = b\,v^* \quad\Longrightarrow\quad y(t) \to \frac{F_0}{b} = \frac{b\,v^*}{b} = v^*

Sensitivity to model errors

If we only know an estimate b^\hat b of the true coefficient bb, the force is u(t)=F0=b^ v∗u(t) = F_0 = \hat b\,v^* and

y(t)→F0b=b^b v∗≠v∗y(t) \to \frac{F_0}{b} = \frac{\hat b}{b}\,v^* \neq v^*

Example: if b^=1.1 b\hat b = 1.1\,b (10% error on the parameter) then y(∞)=1.1 v∗y(\infty) = 1.1\,v^* (10% error on the output). The error on the parameter passes unchanged to the output.

Open-loop control systems

This controller is an example of open-loop control system: the input u(t)u(t) does not depend on the output y(t)y(t), but only on the system parameters (and on the desired output).

Open-loop controllers are simple, but their performance degrades with model inaccuracy (for example uncertainty on the system parameters) and with disturbances.

Advanced controller (feedback)

Now let the force depend on the measured speed:

u(t)=−K (y(t)−v∗)u(t) = -K\,\bigl(y(t) - v^*\bigr)

This is feedback: the force is proportional, with gain KK, to the difference between the desired speed and the actual one (if the vehicle is slower than v∗v^*, y−v∗<0y - v^* < 0 and the force is positive; if it is faster, the force is negative).

Substituting in the model:

m y˙(t)=−b y(t)−K(y(t)−v∗)m\,\dot y(t) = -b\,y(t) - K\bigl(y(t) - v^*\bigr)

y˙(t)=−(bm+Km)y(t)+Km v∗\dot y(t) = -\left(\frac{b}{m} + \frac{K}{m}\right) y(t) + \frac{K}{m}\,v^*

This is again a first-order ODE, now with rate (b+K)/m(b+K)/m instead of b/mb/m. Its solution is

y(t)=e−b+Kmt y(0)+Kb+K(1−e−b+Kmt)v∗y(t) = e^{-\frac{b+K}{m}t}\,y(0) + \frac{K}{b+K}\left(1 - e^{-\frac{b+K}{m}t}\right)v^*

and therefore

y(t)→Kb+K v∗y(t) \to \frac{K}{b+K}\,v^*

Two consequences:

  1. Choosing K≫bK \gg b gives KK+b v∗≃v∗\dfrac{K}{K+b}\,v^* \simeq v^*, so the speed reaches (almost) the desired value.
  2. The transient becomes faster, because the exponent is (b+K)/m(b+K)/m.

Robustness example from the slide: take K=100 b^K = 100\,\hat b and suppose the estimate is wrong by 50%, b^=1.5 b\hat b = 1.5\,b (so K=150 bK = 150\,b). Then

y(∞)=KK+b v∗=150151 v∗≃0.99 v∗y(\infty) = \frac{K}{K+b}\,v^* = \frac{150}{151}\,v^* \simeq 0.99\,v^*

a 1% error, to be compared with the 10% error of the open-loop controller for only a 10% parameter error.

Closed-loop control systems

This controller is an example of closed-loop control system: the input u(t)u(t) depends on the output y(t)y(t) (and possibly on system parameters and desired output).

Closed-loop controllers require sensors to measure the output, but their performance is more robust to model inaccuracy and disturbances.

Open loop versus closed loop

open loop closed loop (feedback)
input depends on system parameters, desired output measured output (and possibly parameters, desired output)
needs sensor no yes
complexity simple needs a measurement
model error 10% on bb 10% error on the output with K≫bK \gg b the error stays small (1% in the example, even with 50% error on bb)

Versione ripasso

  • Control problem: enforce a desired behavior by choosing the input; the behavior is the output evolution. Control system: the law that determines the input.
  • Vehicle model: m y˙+b y=um\,\dot y + b\,y = u, with y=vy = v (speed) and u=Fmu = F_m (driving force), viscous friction Fv=b vF_v = b\,v. See System ModelingA mathematical model (parameters, variables, relations) describes a system quantitatively; models are classified as static or dynamic, causal, linear, time-invariant, SISO or MIMO, and the course focuses on SISO continuous-time causal dynamic LTI systems described by a constant-coefficient input-output ODE.System Modeling →.
  • Open loop, u=F0u = F_0: y(t)=F0b+e−bmt(y(0)−F0b)y(t) = \dfrac{F_0}{b} + e^{-\frac{b}{m}t}\left(y(0) - \dfrac{F_0}{b}\right), steady state F0/bF_0/b. To reach v∗v^* choose F0=b v∗F_0 = b\,v^*.
  • With only an estimate b^\hat b: y(∞)=b^b v∗y(\infty) = \dfrac{\hat b}{b}\,v^*; b^=1.1 b\hat b = 1.1\,b gives a 10% error. The controller does not use the output, so it cannot correct this.
  • Closed loop (feedback), u=−K(y−v∗)u = -K(y - v^*): y(t)=e−b+Kmt y(0)+Kb+K(1−e−b+Kmt)v∗y(t) = e^{-\frac{b+K}{m}t}\,y(0) + \dfrac{K}{b+K}\left(1 - e^{-\frac{b+K}{m}t}\right)v^*, so y(∞)=Kb+K v∗y(\infty) = \dfrac{K}{b+K}\,v^*.
  • K≫bK \gg b gives y(∞)≃v∗y(\infty) \simeq v^* and a faster transient. Example: K=100 b^K = 100\,\hat b, b^=1.5 b\hat b = 1.5\,b gives y(∞)≃0.99 v∗y(\infty) \simeq 0.99\,v^* (1% error).
  • Open loop: simple, no sensor, degrades with model uncertainty and disturbances. Closed loop: needs a sensor, robust to model inaccuracy and disturbances.
  • Typical mistakes: believing that an exact model makes feedback unnecessary (in practice parameters are never exact); forgetting that the feedback result is Kb+K v∗\frac{K}{b+K}\,v^*, not v∗v^*, so the error is small only for large KK.

Teoria collegata