Exercise 3 Solutions
Exercise 3 Solutions
Exercise Session 3
Ton van den Boom ([email protected])
−1 0 3 0 0
4 0 0 2 2
ẋ = x+ u,
0 2 0 0 0
0 0 −3 0 −1
1
y= 0 0 0 x.
2
2. Exploiting the separation principle close the overall loop by designing an observer-based
feedback that places the poles in −4, −6, −3 ± 2i. Does this observer make sense in
combination with the state-feedback of question 1.1 ?
3. Redesign the observer-based feedback of question 1.2 and place its poles in −1, −1, −2±
4i. Discuss the new observer in closed loop with the state-feedback of question 1.1 .
Solution:
The model is controllable. The controllability Kalman rank matrix indeed is:
0 0 12 −24
2 −2 0 24 .
0 4 −4 0
−1 0 −12 12
This can be as well inferred by the structure of the matrices (A, B).
Consider the feedback u = −Kx, where
K= k1 k2 k3 k4 .
det(sI − (A + BK)) =
4 3 2
s + (2k2 − k4 + 1) s + (4k3 − k4 ) s +
Now if the state is not available for feedback, we must design an estimator. Notice
that the model is observable. The observability Kalman rank matrix is:
0 1 0 0
2
2 0 0 1 .
−2
0 3 0
2 6 −6 0
where
T
L= l1 l2 l3 l4 ,
det(sI − (A − LC)) =
4 l2 3 l 2
s + +1 s + 2l1 + 2 + l4 s + (3l3 + l4 − 12) s − 3l3 + 12
2 2
This yields:
Since the model is both controllable and observable, we may now apply the state
feedback from the estimated state as
u= 48 22 5 49 x̂.
Solution:
det(sI − (A − BK)) =
2
s + (α + β + k2 ) s + αβ + βk2 − k1
λ1 = −β, λ2 = −k2 − α.
Notice that in this case we are able to position one of the eigenvalues of the
closed-loop dynamics exclusively on the real line. This is due to the loss of
controllability associated to the case = 0.
2
eedback.
u(s)Loss of Observability
3. z(s) and/or Controllability
y(s)
e ! s+3 ! s+1 !
s+1 s+2
oncepts
Recall a topic developed in Lecture 4. Consider system in series:
Simulation diagram (time domain):
rollable
! !! ! ! ! !! ! !
u(t) $ ξ1 z(t) $ ξ2 y(t)
! 2 ! −1 !
vable # # # #
Controllability/observability
−1 " 9: zero-pole cancellation
−2 " 121 Controll
! 1 ! 1 Diagram uni
d as v(s) x(s) w(s)
! s+1 ! s+3 ! "
s+2 s+1 A B
Show that it is controllable, though not observable. Show that this corresponds to C D
zero/pole cancellation in the Transfer Function. Now consider system in series:
Simulation diagram (time domain) *
n 119 Controllability/observability 9: pole-zero cancellation 120 B A
! −1 ! ! ! ! ! ! !! !
v(t) ! ξ2 x(t) ! ξ1 w(t)
! 2 ! ! "
Eigenvectors of#λ1 = −1, λ2 =#−2: # # C
% & −2 " % & −1 "
1 0 CA
m1 = m2 =
−1! 1 !
1 1 Observable,
% & % &
C C
Show that itCA m1 = 0 though not controllable.
is observable, m2 #= 0Show that this corresponds to
CA
/
zero/pole cancellation in01the Transfer
2 Function. / 01 2
unobservable observable
Unobservable eigenvalue λ2 = −1 is9:cancelled
Controllability/observability zero-poleby forming transfer 123
cancellation
Solution:
function
Eigenvectors of λ1 = −1, λ2 3= s−2:
+3
4
Result
−1
For both −" A)# B let
C(sIinstances, + Dus=write out the simple
" two # dimensional state-space
s + 2
1 two models, which are both2 observable and controllable, Let R be
representations of the
m1 = m2 =
interconnect them and 0 show the lack of either property.
−1 to form of
Let us then introduce the transfer functions of the system components (rather
* + * + Let N be
than ofmthe
1 ∈
/ 2-d compositions),
range B AB and show the
m 2
cancellations.
∈ range B AB
, -. / , -. / to form of
uncontrollable controllable
In general,
Uncontrollable
– Ac.Yr. 2016, 1e Sem. Q1 eigenvalue
– Exercise −1 is cancelled
λ =Session by forming transfer
3 – SC42000/EE4C04 7 Definition
function (A, B, C)
0 1
−1 s+3 is observab
C(sI − A) B + D =
s+2
Introducing state variable [ξ1 ξ2 ]T , input u and output y , we have:
−1 0 2
A= ,B = ,
−1 −2 −1
C= 1 1 , D = [1].
which is full rank. Thus, the composition is controllable. However the observability
one is:
1 1
,
−2 −2
which is not full rank. Thus, the composition is not controllable. The observability
one is:
1 1
,
−1 0
u z1
Observer
a1 a2 z2
u s x2 s x1
ω2
l1 = 2ζω, l2 = .
a2
Let us now look closer at the observer, with variable ẑ = [ẑ1 ẑ2 ]T : ẑ˙ =
Aẑ+Bu+L(y− ŷ) = Aẑ+Bu+L(y−C ẑ) = (A−LC)ẑ+[B L][u y]T ,
If l2 → ∞, we have:
0 1
lim M (s) = .
l2 →∞ 0 s/a2
−4p3 + 0.5 p1 p2 = 2
2
−8p2 + 0.5 p1 = 2
which gives
p1 = 6 , p2 = 2 , p3 = 1
and so
−1
T 6 2 1 3
L = P C Rw = 0.5 =
2 1 0 1
ẋ2 = 4 x1 − 5 x2
An LQR controller has been designed for
6 10
Qx = , Qu = 0.25 .
10 20
Compute the resulting state feedback K (without using a calculator).
(Hint: the matrix P in the related Riccati-equation has a diagonal form.)
Solution:
Desired characteristic polynomial:
5 −6 1
A= , ,B =
4 −5 0
With P A + AT P − P BQ−1 T
u B P + Qx = 0 and
p1 0
P =
0 p2
we obtain
" #
10 p1 − 4 p2
1+6 10 p2 − 6p1 + 10
=0
10 p2 − 6p1 + 10 −10 p2 + 20
1
Ptrue (s) =
(s + 2)(0.1 s + 1)2
Solution:
1
S(s) =
1 + PC
50 −1
= (1 + )
(s + 2)(0.1 s + 1)2
(s + 2)(0.1 s + 1)2
=
0.01 s3 + 0.22s2 + 1.4s + 52
1 − (0.1 s + 1)2
=
(s + 2)(0.1 s + 1)2
0.01 s2 + 0.2 s
=
(s + 2)(0.1 s + 1)2
0.01 s2 + 0.2 s 1 −1
= )
(s + 2)(0.1 s + 1)2 s+2
0.01 s2 + 0.2 s
=
(0.1 s + 1)2
Compute
0.5 s2 + 10 s
=
(s + 52)(0.1 s + 1)2
For ω = 10 we find
Compute
0.5 s2 + 10 s
T (i ω) δ(i ω) =
(s + 52)(0.1 s + 1)2
For ω = 10 we find