Slides - Control Systems - II (Part II)
Slides - Control Systems - II (Part II)
ẋ1 = −x1 + u
ẋ2 = −2x2
ẋ3 = −3x3 + u
ẋ4 = −4x4
y = x1 + x2
Controllability
A System is said to be Controllable if and only if it is possible, by means
of the input, to transfer the System from any initial State x(t) = xt to
any other State xT = x(T ) in a finite time T − t ≥ 0.
Controllability Theorem
A System is Controllable if and only if the matrix,
Z T
P(T , t) = φ(T , λ)B(λ)B 0 (λ)φ0 (T , λ)dλ (1)
t
or simply,
Z T
0
P(T ) = e At BB 0 e A t dt (3)
0
Sometimes, the matrix used for the Controllability test is expressed as,
Z T
0
P̄(T ) = e −At BB 0 e −A t dt (4)
0
Observability
An Unforced System is said to be Observable if and only if it is possible
to determine any arbitrary initial State x(t) = xt bu using only a finite
information of output, y (τ ) for t ≤ τ ≤ T .
Observability Theorem
A System is Observable if and only if the matrix,
Z T
M(T , t) = φ0 (λ, t)C 0 (λ)C (λ)φ(λ, t)dλ (5)
t
or simply,
Z T
0
M(T ) = e A τ C 0 Ce Aτ dτ (7)
0
In other form, Z T
0
M̄(T ) = e −A t C 0 Ce −At dt (8)
0
ẋ = Ax + Bu
Qc = [B AB · · · Ak−1 B] (9)
ẋ = Ax, y = Cx
Example
0 1 0 0
ẋ = 0 0 1 x + 0 u
−a0 −a1 −a2 1
y= 1 0 0 x
0 1 0 0 0 1
A= 0 0 1 , B = 0 , AB = 1 , B = −a2
−a0 −a1 −a2 1 −a2 a22 − a1
0 0 1
Qc = B AB A2 B = 0
1 −a2
0 −a2 a22 − a1
|Qc | = −1 6= 0
The System is Controllable.
Control Systems - II Session: 2024-2025
Controllability and Observability
Example
0 1 0 0
ẋ = 0 0 1 x + 0 u
0 −2 −3 1
y= 3 4 1 x
0 0 0 3 0 0
A> = 1 0 −2 , C > = 4 , A> C > = 1 , (A> )2 C > = −2
0 1 −3 1 1 −2
3 0 0
Qo = C > A> C > (A> )2 C > = 4 1 −2
1 1 −2
|Qo | = 0
The System is Unobservable.
Control Systems - II Session: 2024-2025
State Feedback Control Design
ẋ = Ax + Bu
(11)
y = Cx
Control Law,
u = −Kx (12)
Closed-Loop System Dynamics,
ẋ = Ax + B(−Kx)
= (A − BK )x (13)
y = Cx
Control Systems - II Session: 2024-2025
State Feedback Control Design
Control Law,
u = −Kx (17)
where,
K = k1 k2 · · · kn
det(sI − (A − BK ))
= s n +(an−1 +kn )s n−1 +(an−2 +kn−1 )s n−2 +···+(a1 +k2 )s+(a0 +k1 ) = 0
(19)
Desired Characteristic Equation,
Feedback Gains,
Transfer Function,
X (s) 20(s + 5)
= (22)
U(s) s(s + 1)(s + 4)
In state-space representation with phase-variable form,
ẋ1 = x2
ẋ2 = x3
(23)
ẋ3 = −k1 x1 − (k2 + 4)x2 − (k3 + 5)x3 + u
y = 100x1 + 20x2
ẋ1 0 1 0 x1 0
ẋ2 = 0 0 1 x2 + 0 u (24)
ẋ3 −k1 −(k2 + 4) −(k3 + 5 x3 1
x1
y = 100 20 0 x2 (25)
x3
Control Systems - II Session: 2024-2025
State Feedback Control Design
0 1 0
A − BK = 0 0 1 (26)
−k1 −(k2 + 4) −(k3 + 5)
det(sI − (A − BK )) = s 3 + (k3 + 5)s 2 + (k2 + 4)s + k1 (27)
1 Qc−1 p(A)
K= 0 0 0 0 ··· (30)
where,
p(A) = An + αn−1 An−1 + · · · + α1 A + α0 I
Control Systems - II Session: 2024-2025
State Feedback Control Design by Ackermann’s Formula
Transfer Function,
Y (s) 1
G (s) = = 2
U(s) s
Desired Characteristic Equation,
p(λ) = λ2 + 2λ + 2
2
0 1 0 1 1 0 2 2
p(A) = +2 +2 =
0 0 0 0 0 1 0 2
ẋ = Ax + Bu
(31)
y = Cx
Control Systems - II Session: 2024-2025
Observer Design
ẋ = Ax + Bu
(32)
y = Cx
State Feedback Control Law,
u = −Kx (33)
Control Systems - II Session: 2024-2025
Observer Design
Observer dynamics,
x̂˙ = Ax̂ + Bu
(34)
y = C x̂
Observer dynamics,
x̂˙ = Ax̂ + Bu + L(y − ŷ )
(36)
ŷ = C x̂
Subtracting (36) from (32),
ẋ − x̂˙ = A(x − x̂) + L(y − ŷ )
(37)
y − ŷ = C (x − x̂)
Control Systems - II Session: 2024-2025
Observer Design
e = (x − x̂) (39)
Error dynamics,
ė = (A − LC )e
(40)
y − ŷ = Ce
In the above unforced system, the error, e converges to zero if its
eigenvalues are all negative.
Characteristic Equation,
det[λI − (A − LC )] = 0 (41)
Control Systems - II Session: 2024-2025
Observer Design
Characteristic Equation,
Observer Gains,
Transfer Function,
s +4
G (s) = (48)
s3 + 8s 2+ 17s + 10
In state-space representation (observer canonical form),
ẋ1 = −8x1 + x2
ẋ2 = −17x1 + x3 + u
(49)
ẋ3 = −10x1 + 4u
y = x1
ẋ1 −8 1 0 x1 0
ẋ2 = −17 0 1 x2 + 1 u (50)
ẋ3 −10 0 0 x3 4
x1
y = 1 0 0 x2 (51)
x3
Control Systems - II Session: 2024-2025
Observer Design
−(8 + l1 ) 1 0
A − LC = −(17 + l2 ) 0 1 (52)
−(10 + l3 ) 0 0
det(sI − (A − LC )) = s 3 + (8 + l1 )s 2 + (17 + l2 )s + (10 + l3 ) (53)
Desired characteristic equation of closed-loop system,
(s + 4)(s 2 + 2s + 5) = s 3 + 6s 2 + 13s + 20 = 0 (54)
Dominant poles = −1 ± j2
where,
p(A) = An + βn−1 An−1 + · · · + β1 A + β0 I
Control Systems - II Session: 2024-2025
Observer Design by Ackermann’s Formula
Transfer Function,
Y (s) 1
G (s) = = 2
U(s) s
Desired Characteristic Equation,
2
2 3 2 3 1 0 133 66
p(A) = + 16 + 100 =
−1 4 −1 4 0 1 −22 177
Observer Gain,
133 66 1 0 0 22
L= =
−22 177 −2/3 1/3 1 59
Control Systems - II Session: 2024-2025
Integrated State Feedback Control and Observer Design
Error Dynamics,
˙
ė(t) = ẋ(t)−x̂(t) = Ax(x)+Bu(t)−Ax̂(t)−Bu(t)−Ly (t)+LC x̂(t) (60)
Simplifying,
ė(t) = (A − LC )e(t) (61)
Control Systems - II Session: 2024-2025
Integrated State Feedback Control and Observer Design
In matrix-vector form,
ẋ(t) (A − BK ) BK x(t)
= (65)
ė(t) 0 (A − LC ) e(t)
Control Systems - II Session: 2024-2025
Integrated State Feedback Control and Observer Design
Characteristic Equation,
ẋ1 A11 A12 x1 B
= + 1 u
ẋ A21 A22 x B2
(67)
x1
y= 1 0
x
Reduced-Order Observer,
x̄ = x − x̂ (71)
Error Dynamics,
x̄˙ = (A22 − LA12 )x̄ (72)
Again, the gain L can be designed such that (A22 − LA12 ) is Hurwitz
matrix.
Control Systems - II Session: 2024-2025
Reduced-Order Observer
x̂˙ = (A22 − LA12 )x̂ + (A21 − LA11 )y + (B2 − LB1 )u + Lẏ (73)
ẑ˙ = (A22 −LA12 )(ẑ +Ly )+(A21 −LA11 )y +(B2 −LB1 )u +Lẏ (74)
Control Systems - II Session: 2024-2025
Reduced-Order Observer
Defining Error,
e(t) = yr (t) − y (t)
where,
y (t) → Actual Output
yr (t) → Desired Output
kc → Proportional Gain
τi → Integral Time
τd → Derivative Time
Transfer Function,
U(s) kc
Gc (s) = = kc + + kc τd s
Yr (s) − Y (s) τi s
Control Systems - II Session: 2024-2025
Linearization
ẋ = f (x) (77)
Equilibrium Point
The Equilibrium Point is the point in the State Space at which the
derivatives of all the States are zero.
Once at the Equilibrium Point, the System trajectories continue to
remain at the point if left undisturbed.
Linearization
Linearized System,
ẋ = Ax (79)
At the Equilibrium Point,
Axe = 0 (80)
x̄ = x − xe (81)
Figure: Linearization
df (x − x0 ) d 2 f (x − x0 )2
f (x) = f (x0 ) + + 2 + · · · (85)
dx x=x0 1! dx x=x0 2!
df
f (x) ≈ f (x0 ) + (x − x0 ) (86)
dx x=x0
Control Systems - II Session: 2024-2025
Linearization
∂g
y (t) = g (x10 , x20 , ..., x1n0 ) + (x1 (t) − x10 )
∂x1 x(t)=x0
∂g
+ (x2 (t) − x20 ) + · · · (88)
∂x2 x(t)=x0
∂g
···+ (xn (t) − xn0 )
∂xn x(t)=x0
where,
x0 → Operating Point
Control Systems - II Session: 2024-2025
Linearization
Example
f (x) = 5 cos x
df
= −5 sin x
dx
df
= −5
dx x= π
2
fl (x) = −5x
Control Systems - II Session: 2024-2025
Linearization
Example
d 2x dx
2
+ 1.1 + cos x = 0
dt dt
d 2 (x + π4 ) d(x + π4 )
π
+ 1.1 + cos x + =0
dt 2 dt 4
π π d cos x
cos x + = cos − x
4 4 dx x= π
4
π π π
=⇒ cos x + = cos − sin x
4 4 4
d 2x dx 1 1
2
+ 1.1 − √ x = −√
dt dt 2 2
Control Systems - II Session: 2024-2025
Linearization
where, p
ω0 = g /l, u = Tc /ml 2
Control Systems - II Session: 2024-2025
Linearization
ẋ1 = x2
g
ẋ2 = − sin θ
l
At the Equilibrium Point,
ẋ1 = 0 = x2
g
ẋ2 = 0 = − sin θ0
l
sin θ0 = 0 =⇒ θ0 = 0, π
Equilibrium Point,
θ0
x0 = , u0 = 0
0
Control Systems - II Session: 2024-2025
Linearization
" ∂f ∂f1
#
1
∂x1 ∂x2 0 1
A= =
∂f2 ∂f2 −ω02 cos θ0 0
∂x1 ∂x2 (x0 ,u0 )
" ∂f #
1
∂u 0
B= =
∂f2 1
∂u (x0 ,u0 )