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 , , 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 |
| output | speed |
Control problem of the example: choose so that reaches a desired speed .
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 (forward) and a resistive force (backward).
F_v <--+----------+--> F_m
| vehicle |
+----------+
o o
==========================> roadNewton's law, with the mass of the vehicle and its acceleration:
The resistive force is viscous friction with coefficient , i.e. proportional to the speed:
Since :
Renaming the output and the input we obtain the model
a first-order linear ODE with input and output .
Naive controller (open loop)
Choose a constant force:
The model becomes , i.e.
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:
The integral evaluates to (the slide computes it with the antiderivative between and and reaches the same result), so
- is the steady-state part;
- is the transient, which vanishes exponentially with time constant .
Plot described by the slide (case ): starts at and rises monotonically, with exponential shape, towards the horizontal asymptote .
So . To make we choose
Sensitivity to model errors
If we only know an estimate of the true coefficient , the force is and
Example: if (10% error on the parameter) then (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 does not depend on the output , 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:
This is feedback: the force is proportional, with gain , to the difference between the desired speed and the actual one (if the vehicle is slower than , and the force is positive; if it is faster, the force is negative).
Substituting in the model:
This is again a first-order ODE, now with rate instead of . Its solution is
and therefore
Two consequences:
- Choosing gives , so the speed reaches (almost) the desired value.
- The transient becomes faster, because the exponent is .
Robustness example from the slide: take and suppose the estimate is wrong by 50%, (so ). Then
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 depends on the output (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 | 10% error on the output | with the error stays small (1% in the example, even with 50% error on ) |
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: , with (speed) and (driving force), viscous friction . 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, : , steady state . To reach choose .
- With only an estimate : ; gives a 10% error. The controller does not use the output, so it cannot correct this.
- Closed loop (feedback), : , so .
- gives and a faster transient. Example: , gives (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 , not , so the error is small only for large .