Professional Documents
Culture Documents
Jacopo Tani
October 5, 2018
# Date Topic
1 Sept. 21 Introduction, Signals and Systems
2 Sept. 28 Modeling, Linearization
3 Oct. 5 Analysis 1: Time response, Stability
4 Oct. 12 Analysis 2: Diagonalization, Modal coordinates
5 Oct. 19 Transfer functions 1: Definition and properties
6 Oct. 26 Transfer functions 2: Poles and Zeros
7 Nov. 2 Analysis of feedback systems: internal stability,
root locus
8 Nov. 9 Frequency response
9 Nov. 16 Analysis of feedback systems 2: the Nyquist
condition
10 Nov. 23 Specifications for feedback systems
11 Nov. 30 Loop Shaping
12 Dec. 7 PID control
13 Dec. 14 State feedback and Luenberger observers
14 Dec. 21 On Robustness and Implementation challenges
Definition (state)
The state x(t0 ) of a causal system at time t0 is the information needed, together
with the input u between times t0 and t1 , to uniquely predict the output at time
t1 , for all t1 ≥ t0 .
https://www.youtube.com/watch?v=oWiuSp6qAPk
Notation:
Angular position: θ,
Torque input: u,
Pendulum length: L,
Pendulum mass: m,
Viscous damping coefficient: c
Dynamic model:
ẋ1 = x2 ,
c g
ẋ2 = − x2 − sin(x1 ) + u.
mL2 L
The key idea is that of constructing an approximation that is valid “near” some
special operating condition, e.g., equilibrium points.
ẋ1 = x2 = 0,
c g
ẋ2 = − 2 x2 − sin(x1 ) + u = 0.
mL L
xe = (π, 0), ue = 0.
The first equilibrium is stable, the second unstable; we will make these notions
more precise.
x ← xe + δx,
u ← ue + δu,
y ← ye + δy ,
and then neglecting all terms of second (or higher) order in δx, δu, and δy in
the (nonlinear) dynamics model.
δ ẋ1 = 0 + δx2 ,
c g 1
δ ẋ2 = − 2 (0 + δx2 ) − (0 + δx1 ) + (0 + δu),
mL L mL2
δy = δx1 .
δ ẋ = Aδx + Bδu,
δy = C δx + Dδu,
where
0 1 0
A= , B= .
−g /L −c/(mL2 ) 1/(mL2 )
C= 1 0 , D = 0.
δ ẋ1 = π + δx2 ,
c g 1
δ ẋ2 = − 2 (0 + δx2 ) − (0 − δx1 ) + (0 + δu),
mL L mL2
δy = δx1 .
δ ẋ = Aδx + Bδu,
δy = C δx + Dδu,
where
0 1 0
A= , B= .
+g /L −c/(mL2 ) 1/(mL2 )
C= 1 0 , D = 0.
∂f ∂u
.
B= (x(t), u(t)) =
..
∈ <n×1
∂u (x,u)=(xe ,ue )
∂fn
∂u (x,u)=(xe ,ue )
J. Tani, E. Frazzoli (ETH) Lecture 3: Control Systems I 10/05/2018 12 / 40
Questions of the day
Next steps:
We are convinced (hopefully) about the LTI formulation. But what is the
solution of ẋ(t) = Ax(t) + Bu(t), y = Cx(t) + Du(t)?
I.e., given the system A, B, C , D, the input sequence u(t), t ∈ [t0 , t] and some
initial conditions x(t0 ) = x0 ; how can we express x(t) and y (t), ∀t ≥ t0 ?
We saw that the first objective of control is to keep systems stable. What is
stability, and how can we tell if a system is stable?
Compute the general form response of a linear system by adding its initial
condition response and its forced response.
Check whether a LTI system is stable or not by inspection of the A matrix and
its eigenvalues.
Suppose that the temperature dynamics in the cabin is well described by the
LTI model:
ẋ = −2x + 6u,
y = x,
upast = PT u, ufuture = u − PT u.
Due to causality, we know that the effects of the ”past” input upast can be
summarized by the state x(t0 ) at time t0 .
Due to time invariance, the time reference does not matter, so we can choose
t0 = 0.
Forced response:
xF (0) = 0,
→ yF .
uF (t) = u(t), t ≥ t0 ,
x(t) = e at x0 = φ(t)x0 ,
Multiply both sides of the ODE by e −at and integrate over [0, t]:
Z t Z t
e −aτ ẋ(τ ) dτ = e −aτ ax(τ ) + e −aτ bu(τ ) dτ
0 0
In this case, we found out that, e.g., the IC response was determined by the
exponential x(t) = e at x0 .
When integrating ẋ(t) = ax(t), the key property we used was that de at /dt =
ae at . Also recall the series expansion for the exponential:
1 1
e at = 1 + at + (at)2 + . . . + (at)n + . . .
2 n!
de At
= Ae At = e At A.
dt
x(t) = e At x0 = Φ(t)x0 .
Using the matrix exponential, we can extend all calculations made in the scalar
case to the matrix case, and get
Z t
At
x(t) = e x0 + e A(t−τ ) Bu(τ ) dτ,
0
Z t
y (t) = Ce At x0 + C e A(t−τ ) Bu(τ ) dτ + Du(t).
0
λ1 0 exp(λ1 t) 0 x0,1
y (t) = C exp(At)x0 = C exp t x0 = c1 c2
0 λ2 0 exp(λ2 t) x0,2
= c1 exp(λ1 t)x0,1 + c2 exp(λ2 t)x0,2
When there are two (or more) distinct real eigenvalues, the response is given
by the linear combination of exponentials of the form exp(λi t).
y (t)
Note that since the matrix was real, the expression of the exponential must be
real as well, even though we use complex (conjugate) numbers in the process!
When there are two complex conjugate eigenvalues, the homogeneous response
(i.e., with u(t) = 0) is given by a sinusoid of frequency ω, with amplitude
increasing/decreasing as exp(σt).
Initial phase and amplitude are functions of the initial conditions.
y (t)
Forced responce:
λ 1 exp(λt) t exp(λt)
y (t) = C exp(At)x0 = C exp t x0 = C x
0 λ 0 exp(λt) 0
= c1 exp(λt)x0,1 + c1 t exp(λt)x0,2 + c2 exp(λt)x0,2 .
ma = F ⇒ mp̈ = F
Lyapunov stability: A system is called Lyapunov stable if, for any bounded
initial condition, and zero input, the state remains bounded, i.e.,
A system is called asymptotically stable if, for any bounded initial condition,
and zero input, the state converges to zero, i.e.,
the system is Lyapunov stable if the Re(λi ) ≤ 0 for all i, and there are no
repeated eigenvalues with 0 real part.
For linear systems asymptotic stability = BIBO stability.
Check whether a LTI system is stable or not by inspection of the A matrix and
its eigenvalues.