CAS 2023 Lecture3 LectureNotes
CAS 2023 Lecture3 LectureNotes
INPUT/OUTPUT REPRESENTATIONS
3 We also typically say “in the left half-plane”, where plane is meant for complex plane.
31
1.6. INPUT/OUTPUT REPRESENTATIONS
Figure 1.21: Controller and plant in feedback loop with unitary gain
for the second (sub)system, with TF P (s) (say the considered plant). Combining
now (1.136) and (1.137), we get the IO relation
where H(s) = P (s)F (s) is the Transfer Function of the overall system.
32
1.6. INPUT/OUTPUT REPRESENTATIONS
Y (s) P (s)C(s)
H(s) = = . (1.143)
R(s) 1 + P (s)C(s)
which simplifies to
np (s)nc (s)
H(s) = . (1.145)
dp (s)dc (s) + np (s)nc (s)
Hence, H(s) is stable if and only if the roots of dp (s)dc (s) + np (s)nc (s) are in
the left half-plane.
where both the amplitude A and the phase ' depend on angular frequency !!
Hence, one can perform a frequency analysis of a linear system by sweeping a
range of sine waves at the input and see how they are amplified or reduced in
amplitude (through A) and shifted in time (through '). In this case, a dynamical
system with input and output is seen here as a filter: what frequencies are
attenuated, what frequencies are amplified, etc.
33
1.6. INPUT/OUTPUT REPRESENTATIONS
The so-called Bode plots are just that: two di↵erent plots where a TF P (s) is
evaluated at s = j!. One is called the magnitude plot and is defined by
A = |P (s = j!)| , ! 2 R+ , (1.148)
while the phase plot can be simply obtained by the expression
' = arg(P (s = j!)) , ! 2 R+ . (1.149)
The phase plot is represented on a semi-log scale, with the log scale being on
the angular frequencies, while the magnitude plot is represented on a log-log
scale, i.e. we compute, instead of (1.148), 20 log10 |P (s = j!)|, and where the
units are decibels.
In Matlab, the Bode plot are obtained readily by the command bode. In figure
1.22 are given the Bode plots of an MSD system for m = 10, d = 0.1 and k = 5.
34
1.6. INPUT/OUTPUT REPRESENTATIONS
35
Chapter 2
Feedback control
2.1 Introduction
Roughly speaking, feedback control can be seen as making corrections so that a
system (or its output y(t) or the state x(t)) behaves as you want, i.e follow some
desired behavior (follows a reference r(t) or a desired trajectory yd (t), etc.). Ide-
ally, this should happen even when the system is starting not where you thought
it would be starting from (di↵erent initial conditions), even when “something”
is pushing the system away (disturbances) or when the system turns out to not
be exactly what you thought it would be (system uncertainties).
In this chapter, our primary focus will be on state-space control techniques, after
a very simple discussion on stability. But before doing so, let recall a few basics
on the most famous feedback controller of all time, the Proportional-Integral-
Derivative controller.
36
2.2. A PRIMER ON PID CONTROL
• I term: this term uses the history of the di↵erence between the output and
the reference signal to infer the (typically) constant part of the control
signal that will make the system output y(t) stabilize right on r(t), as well
as compensating for constant to slowly-varying disturbances acting on the
system.
• D term: finally, the D term helps to smooth things out, roughly speaking
by adding damping in the system, so that the convergence of output y(t)
is not too oscillatory.
Note that, even if this method works for a large class of systems, it does not do
so for all systems. Furthermore, as mentioned above, these are just guidelines,
and as such, they can be used to get a first rough tuning of the PID controller.
37
2.2. A PRIMER ON PID CONTROL
Derivative term
As we have already discussed when making block diagrams out of di↵erential
equations, computing the derivative of a signal could be an issue because of
added noise. It is especially relevant in the present case for PID control, as the
derivative term implies the derivative of the error signal e(r). The error con-
taining the measurement noise-corrupted output y(t), calculating ė(t) directly
will inject amplified noise into the closed-loop.
A simple way to remedy that is to replace the pure derivative term by a simple
derivative filter, whose role is to remove the high-frequency component of the
noise. Hence, expressed in the Laplace domain, the derivative term being given
as
kd sE(s) (2.4)
is then changed into a pre-filtered version of E(s), i.e. we have
1/Tf
kd s E(s) (2.5)
s + 1/Tf
38
2.2. A PRIMER ON PID CONTROL
with
1/Tf
(2.6)
s + 1/Tf
being a simple low-pass filter.
It can actually be proven that controller (2.7) is still able to stabilize a system
around a constant reference signal r despite the absence of e(t) in the propor-
tional and derivative terms.
39