Lecture10(Controllability and Observability)
Lecture10(Controllability and Observability)
Lecture10(Controllability and Observability)
University
Plant
x Ax Bu, x (t0 ) x0
y Cx Du
State variables are used for feedback.
10.2 Controllable/Uncon-
trollable
10.3 Controllability
Controllability concept
Situations:
We want to design a feedback system with the de-
sired performance.
We want to control unstable systems.
Questions:
Is it possible to move the initial state x(t0) to the
desired state x(t1) after a finite time by applying
the appropriate input u(t)? YES.
10.3 Controllability
Observability concept
Situations:
Some variables are difficult to measure for feed-
back.
Some sensors are too expensive. So they can not
be used.
Questions:
Is it possible to know the initial state x(t0) or the
state x(t) from both the input u(t) and the output
y(t) observed for a finite time? YES.
10.3 Controllability
Why do we check it?
Necessary to know the existence
of uncontrollable state variables
because the feedback of the state
variables is used.
If a system is uncontrolable, no
state controller can be designed.
Firstly introduced by R.E. R.E. Kalman
(1930-2016)
Kalman.
Adama Science and Technology
University
Controllable and
observable system
Controllable but
unobservable system
Observable but un-
controllable system
Uncontrollable and
unobservable system
10.3 Controllability
(Definition) Controllability
A system is said to be controllable at t= t0 if there is a
control input u(t), t0<tt1 that can move the initial
state x(t0) to the desired state x(t1) at t= t1.
10.3 Controllability
Single input LTI system:
The controllability is closely related to matrices A and
B. For example
0 1
x x u, x (t0 ) 0
0 1
t 1 -1+e(t )
0 0
e (t )
u ( )d
t
(t )
[ e ]u ( )d
0
t
(t )
e u ( )d
0
10.3 Controllability
Letting t= t1
t1 t1
x1 (t1 ) ( ) 0
u ( )d
0
e(t1 ) u ( )d
t1
e
(t1 )
x2 (t1 ) u ( )d
0
When 0, = 0
t1
x1 (t1 ) u( )d
0
x2 (t1 ) 0
x1(t1) can be moved to any state via u(t), but x2(t1) is
always fixed to 0.
10.3 Controllability
(Definition) Controllability of a LTI system
A LTI system is said to be controllable at t= t0 if u(t),
t0< t t1 exists to move x(t0) to the desired state x(t1)
at t= t1. Especially if one of the following conditions
is true, then it is controllable:
1 1 3
0 4 8 -E2+E3 E3 1 1 3
0 4 8
0 1 3
0 0 1
Since U= 3= n, controllable.
10.3 Controllability
Consider a LTI system
1 1 1
x x u, x (t0 ) x0
0 2 1
1
1 s 1 1 1
( sI A) B 1
0 s 2
s 3
1 s 2 1 1 ( s 1)( s 2)
( s 1)( s 2) 0 s 1 1 1
( s 2)
To check the linear independence of two rows
s 3 1
1 2 0
( s 1)( s 2) ( s 2)
10.3 Controllability
Multiplying both sides by (s-1)(s+2) gives
t T t e 2 e 3
0
Wc e A BBT e A d
0 e
3
e 4
d
1 2t 1 3t
2 (1 e ) (1 e )
3
1 (1 e 3t ) 1 (1 e 4t )
3 4
Since Wc is
1 1
Wc (1 e 2t )(1 e 4t ) (1 e 3t ) 2 0 nonsingular,
8 9
controllable.
10.3 Controllability
For example, check the controllability using the Mat-
lab functions.
1 1 0 1
x 0 1 0 x 2 u, x (t0 ) x0
0 0 0 1
Program:
>>A= [-1 1 0;0 -1 0;0 0 0];
>> B= [1;2;1];
>> U= ctrb(A,B); % Controllability matrix
>> r= rank(U) % Rank
r= 3
10.4 Observability
Why do we need to check it?
Designing and implementing state feedback control
require the feedback of all state variables.
When some state variables are unmeasurable, we
need to check whether they can be estimated from the
model.
If the system is unobservable, state observer design is
impossible
Firstly introduced by R.E. Kalman
10.4 Observability
LTI system:
The observability is closely related to matrices A
and C.
x Ax Bu, x (t0 ) x0
y Cx Du
x Ax Bu, x (t0 ) x0
y Cx
10.4 Observability
(Definition) Observability
A LTI system is said to be observable if there is
enough t= t1>0 that u and y determine x0 uniquely. Es-
pecially it is observable if one of the following condi-
tions is true:
1. The rank of the npm observability matrix V is n.
C
CA
V
n-1
CA
10.4 Observability
2. All columns of the transfer matrix are linearly
independent.
C(sI-A)-1
1s+2= 0s+0s0
x Ax Bu
y Cx Du
where A Q 1 AQ , B Q 1 B, C = CQ, D D
10.5 Similarity Transforma-
tion
Transformed system
x c Ac A12 xc Bc
u
c 0
x Ac xc 0
xc
y C c C c Du
xc
Controllable subsystem
x c Ac xc Bc u
y C c xc Du
10.5 Similarity Transforma-
tion
Consider a LTI system.
0 1 0 0
x 1
2 0 x 1 u, x (t0 ) x0
0 0 3 0
y 1 1 0 x
The controllability matrix U gives
0 1 2
U [ B AB A2 B ] 1 2 3
0 0 0
10.5 Similarity Transforma-
tion
Since U= 2 < n= 3, it is uncontrollable. n1= 3-2= 1.
Choosing one vector randomly such that Q is non-
singular yields
0 1 2 0 1 0
U 1 2 3 Q 1 2 0
0 0 0 0 0 1
2 1 0
Q 1
1 0 0
Randomly choose
0 0 1 such that Q-1 exists
10.5 Similarity Transforma-
tion
Thus
0 - 1 0
A Q 1 AQ 1 -2 0 ,
0 0 -3
1
1
B Q B 0 ,
0
C CQ 1 1 0 ,
D D 0
10.5 Similarity Transforma-
tion
The transformed system is given by
0 - 1 0 1
xc xc
1 -2 0 0 u
xc xc
0 0 -3 0
xc
y 1 1 0
xc
Thus, controllable sub- x 0 1 x 1 u
c 1 2 c 0
system is given by
y 1 1 xc
10.5 Similarity Transforma-
tion
Observable subsystem
x Ax Bu, x (t0 ) x0
y Cx Du
If V= n2 < n, via the similarity transformation
x Q 1 x
the original system can be represented by a combina-
tion of observable subsystems and unobservable sub-
systems.
10.5 Similarity Transforma-
tion
q1
q n2 independent vectors
2
selected from V
where Q qn2
q
n2 1 (n-n2) vectors randomly cho-
sen such that Q is nonsingu-
lar
qn
10.5 Similarity Transforma-
tion
Original system
x Ax Bu, x (t0 ) x0
y Cx Du
1
Similarity transformation x Q x
x Ax Bu
y Cx Du
where A QAQ 1 , B QB, C CQ 1 , D D
10.5 Similarity Transforma-
tion
Transformed system
x o Ao A12 xo Bo
u
x o 0 Ao xo 0
xo
y C o C o Du
xo
Observable subsystem
x o Ao xo Bo u
y C o xo Du
10.5 Similarity Transforma-
tion
Consider a LTI system.
0 1 0 0
x 1
2 0 x 1 u , x (t 0 ) x 0
0 0 3 0
y 1 1 0 x
The observability matrix V gives
C 1 1 0
V CA 1 1 0
2 1 1 0
CA
10.5 Similarity Transforma-
tion
Since V= 1 < n= 3, it is unobservable. Selecting Q as
1 1 0 1 1 0
Q 0 1 0 Q 1 0 1 0
0 0 1 0 0 1
Randomly choose
Thus such that Q-1 exists
-1 0 0 1
A QAQ 1 -1 -1 0 , B QB 1
0 0 -3 0
C CQ 1 1 0 0 , D D 0
10.5 Similarity Transforma-
tion
The transformed system is given by
-1 0 0 1
xo xo
-1 -1 0 xc 1 u
xo xo
0 0 -3 0
xo
y 1 0 0
xo
Thus, observable sub- x 1 0 x 1 u
system is given by
o 1 1 o 1
y 1 0 xo
10.6 Controllable Canonical
Form
State feedback control
d
r Feedforward + u + + y
Plant
gain matrix -
Feedback x
gain matrix
10.6 Controllable Canonical
Form
Controller Plant
r u y
u Kx Fr D/A
A/D A/D
x1 x2
10.6 Controllable Canonical
Form
Plant
x Ax Bu , x (t0 ) x0
y Cx Du
where A nn , B n1 , C 1n ,D
Assumption
The plant is a SISO LTI system(u and y are scalars)
It is controllable & observable(U= n, V= n)
10.6 Controllable Canonical
Form
Similarity transformation
Before
x Ax Bu , x (t0 ) x0
y Cx Du
x Qx
After
Q is nonsingu-
x Ax Bu , x (t0 ) x0 lar
y Cx Du
1 1
where A Q AQ, B Q B, C CQ , D =D
10.6 Controllable Canonical
Form
Controllability
Before U [ B AB An 1 B ], U n
After U [ B AB Ai 1 B An 1 B ]
The ith term in the above equation
Ai 1 B (Q 1 AQ )(Q 1 AQ ) (Q 1 AQ )Q 1 B Q 1 Ai 1 B
(i-1) times
10.6 Controllable Canonical
Form
After transformation
C C
V CAi 1 CAi 1 Q VQ
n 1 n 1
CA CA
Thus V n
Observability is kept after transformation.
10.6 Controllable Canonical
Form
Conversion to controllable canonical form
System
x Ax Bu, x (t0 ) x0
y Cx Du
Controllable canonical form
x Ax Bu, x (t0 ) x0
y Cx Du
where A Q 1 AQ, B Q 1 B, C CQ , D =D
10.6 Controllable Canonical
Form
Controllable canonical
form(SISO)
0 1 0 0 0
0 0 1 0 0
x x u, x (t0 ) x0
0 0 0 1 0
a a 1
n n 1 an 2 a1
Transfer function
1 1 1 1 1 0 2 1 0 1
A Q AQ =
4 2 2 1 2 2 1 2 1
1 1 1 1 1 0
B Q B =
4 2 2 1 1
2 1
C CQ = 2 1 2 3 , D D =0
2 1
10.6 Controllable Canonical
Form
Before
1 0 1 G ( s ) C ( sI A) 1 B D
x x u
1 2 1 3s 2
2
y 2 1 x s s 2
TFs before and after the transfor-
After
mation are the same.
x 0 1 x 0 u 1
G ( s ) C ( sI A) B D
2 1 1
3s 2
2
y 2 3 x s s 2
10.6 Controllable Canonical
Form
Example 1: Code to obtain the controllable canonical
form of the system.
2 1 0 4
x 0 0 1 x 0 u
1 0 0 1
y 1 0 0 x
Program:
10.6 Controllable Canonical
Form
MATLAB program
0 0 0 an (bn b0 an )
1 (b b a )
0 0 an 1 n 1 0 n 1
x 0 1 0 an 2 x (bn 2 b0 an 2 ) u , x (t0 ) x0
0 0 1 a1 (b b a )
1 0 1
y 0 0 0 1 x b0u
Q&A