Chap3 Student
Chap3 Student
Department of Control Science & Engineering School of Electronic & Information Engineering Tongji University
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
3.1 Introduction
Rudolf E. Kalman
(Hungary, 1821- )
Nationality Hungarian-born American Fields Elec Engn; Mathematics; Applied Engn Systems Theory Institutions Stanford Univ; Univ of Florida; Swiss Federal Inst of Tech Alma mater MIT; Columbia Univ Notable awards IEEE Medal of Honor; National Medal of Science; Charles Stark Draper Prize ; Kyoto Prize
Prof J Wang (Tongji Uni)
Spring 2012
4 / 52
3.1 Introduction
Spring 2012
5 / 52
3.1 Introduction
x2
Spring 2012
6 / 52
Example (A numerical example) Suppose a system can be described by the following state-space model 1 x x 4 0 1 + u 1 = 2 2 0 5 x2 x x1 y = 0 6 x2
What can we observe from these equations? to zero by a proper control input u;
1 = 4x1 + u x 2 = 5x2 + 2u x y = 6x
2
Both the state x1 and x2 can be moved from the their initial values The output y is associated with the state x2 , and is completely isolated from the state x1 . Therefore, the system is completely controllable, but NOT completely observable.
3.1 Introduction
Spring 2012
8 / 52
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
eA(t) bu() d
Applying the denition of complete state controllability, we have x(t1 ) = 0 = eAt1 x(0) + or x(0) =
0 t1 t1 0
eA(t1 ) bu() d
eA bu() d
eA =
k=0
k ()Ak
we have
t1 n1
x(0) =
0 k=0 n1 t1
=
k=0 n1 0
=
k=0 n1
Ak b
k ()u() d
t1 0
=
k=0
Ak bk , where k =
k ()u() d
x(0) =
k=0
Ak bk
= b1 Ab2 An1 bn1 1 2 n 1 = b Ab A b . . . n1 If the system is completely state controllable, the above equation must be satised for any initial state x(0), which requires that rank b Ab An1 b = n It can be extended to a general case where u is a vector.
Spring 2012
13 / 52
2 2 0 0 0 1 0 3 4
x1 x2 x3
10 01 11
u1 u2
Example Prove that an SISO system must be completely controllable if it can be described by a state-space model of the controllable canonical form. Solutions Since the model is in controllable canonical form, 1 0 0 . . . .. . . . . A= , b = 0 0 1 1 a0 a1 an1
Spring 2012
15 / 52
We have the controllability matrix Qc = b Ab An1 b 0 0 0 1 . . . 0 . . . 1 . .. .. . = . . . . . . . . . 0 1 1 It is clear that rankQc = n Therefore the system is completely controllable.
Spring 2012
16 / 52
Theorem The system (A, B) is completely state controllable if and only if all the eigenvalues i of the state matrix A satisfy rank [i I A, B] = n,
Prof J Wang (Tongji Uni)
i = 1, 2, , n
Spring 2012 17 / 52
Corollary (Diagonal canonical criterion) If the eigenvalues of A are distinct and the corresponding diagonal canonical form after similarity transformation is (t) = P1 APx x (t) + P1 Bu(t) where .. . n
1 2 1 = P AP = A
The original system (A, B) is completely state controllable if and only if there = P1 B. is no zero row in B
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 18 / 52
Corollary (Jordan canonical criterion) Suppose the system matrix A has repeated eigenvalues, and the corresponding Jordan canonical form after similarity transformation is (t) = P1 APx x (t) + P1 Bu(t) where = P1 AP = A J
1
J2 .. . Jl
, Ji =
i 1 i 1 .. .. . . i 1 i
and each distinct eigenvalue is associated with only one Jordan block. Then the original system (A, B) is completely state controllable if and only if = P1 B corresponding to the last row of each Jordan block is not the row of B zero row.
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 19 / 52
x1 x x2 2 1 3 x4 2 1 x 5 2 x6 3
u1 u2
where denotes any real constant value. Solutions The system is completely state controllable if and only if
1 2 3
b21 and b22 are not all zero; b51 and b52 are not all zero; b61 and b62 are not all zero;
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 20 / 52
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
Spring 2012
22 / 52
1 1 2 1 x1 x2
x1 x2
0 1
y = [1 0]
Is the system controllable and observable? Solutions Calculating the controllability and observability matrices yields Qc = [ b Ab ] = Qo = controllable and observable.
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 23 / 52
0 1 1 1 10 11
c cA
Spring 2012
24 / 52
Corollary (Diagonal canonical criterion) If the eigenvalues of A are distinct and the corresponding diagonal canonical form after similarity transformation is (t) = P1 APx x (t) + P1 Bu(t) y(t) = CPx (t) + Du(t) where .. . n
1 2 1 P AP = A =
The original system (A, C) is completely state observable if and only if there is = CP. no zero column in C
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 25 / 52
Corollary (Jordan canonical criterion) If the system matrix A has repeated eigenvalues, and the corresponding Jordan canonical form after similarity transformation is (t) = P1 APx x (t) + P1 Bu(t) y(t) = CPx (t) + Du(t) where = P1 AP = A
J1 J2 .. . Jl
, Ji =
i 1 i 1 .. .. . . i 1 i
and each distinct eigenvalue is associated with only one Jordan block, then the original system (A, C) is completely state observable if and only if the column = CP corresponding to the rst column of each Jordan block is not zero of C column.
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 26 / 52
Example Are the following systems (A, B, C) state controllable and observable? (1) 1 : A = (2) 2 : A = (3) 3 : A = Solutions (1) 1 is uncontrollable, but observable; (2) 2 is controllable and observable; (3) How about 3 ? Can we get the answer directly? rank [ B AB A2 B ] = rank
015 137 112 1 0 0 4
,B=
0 0 2 0 0 0 0 1 2 0
0 1
4 0 0 0 0
1 4 0 0 0
0 0 0 , 1 2 0 1 1
, C = [1 2] B= , C = [1 0 1]
0 1 0 , 2 1
C=
10101 00110
,B=
= 3,
rank
C CA CA2
= rank
=3
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
Principle of duality
Denition (Dual systems) x (t) = Ax(t) + Bu(t) 1 : y(t) = Cx(t) x Rn , u Rl , y Rm . (t) = AT (t) + CT (t) 2 : (t) = BT (t)
Rn , Rm , Rl .
The LTI systems 1 (A, B, C) and 2 (AT , CT , BT ) are dual of each other and the dimensions of the input and the output are exchanged between dual systems. u
+
B
+
x A
BT
CT
AT
Chap 3. Controllability and observability Spring 2012 29 / 52
Theorem (Principle of duality) The system 1 (A, B, C) is completely controllable (observable) if and only if its dual system 2 (AT , CT , BT ) are completely observable (controllable). For system 1 (A, B, C) Controllability criterion: rank B AB An1 B = n Observability criterion: C CA =n rank . . . CAn1 For system 2 (AT , CT , BT ) Controllability criterion: rank CT AT CT AT
n1
CT = n
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
cc = cPc 0 . . . bc = 0 1
Spring 2012 32 / 52
1 0 . .. . . . , Ac = 0 1 a0 a1 an1
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability
1 1 P c A = Ac P c
Expanding the above equation and comparing the two sizes, we have pc1 A = pc2 pc2 A = pc3 . . . pc(n1)A = pcn pcn A = a0 pc1 a1 pc2 an1 pcn If pc1 is known, then we can work out pc2 , pc3 , ,pcn successively.
1 Let pci denotes the ith row vector of P c . Hence 1 pc1 pc1 0 . . .. pc2 pc2 . . . A = . . . 0 . 1 . pcn pcn a0 a1 an1
Then we have pc1 b = 0 pc2 b = pc1 Ab = 0 . . . pc(n1) b = pc1 An2 b = 0 pcn b = pc1 An1 b = 1 pc1 b Ab A2 b An1 b = 0 0 0 1
1 = 0 0 0 1 Q c
p A c1 2 p A = c1 . . . n 1 pc1 A
pc1
Spring 2012
35 / 52
Similarity transformation matrix for controllable canonical form Given a completely controllable SISO system : (A, b, c), the following similarity transformation matrix Pc can transform into the controllable canonical form c : (Ac , bc , cc ). pc1 p A c1 2 1 p A Pc = c1 . . . n 1 pc1 A where
1 pc1 = 0 0 0 1 Q c
Spring 2012
36 / 52
1 0 0 1 2 0 0 5 0
x1 x2 x3
1 0 0
Find the similar transformation matrix Pc which can transform the system into the controllable canonical form. Solutions (1) Check the controllability of the system Qc = [ b Ab A2 b ] = rank(Qc ) = 3 The system is controllable and can be transformed into the controllable canonical form.
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 37 / 52
1 1 1 0 1 3 0 0 5
11 0 1 00
2 5 3 5 1 5
1 0 0 5 0 1 0 1 2 0
Pc =
1 bc = P c b=
0 0 1
Spring 2012
38 / 52
po1
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
By using the similar matrix P dened above, the system can be ,c : (A ,b transformed into ). b x A A12 x c + c u c= c nc nc 0 x nc 0 A x x c y= c c c nc x nc c Rn1 1 , c c Rn1 n1 , b c R1n1 . where A c Note that, the n1 dimensional subsystem cu cx c = A x c + b y=c cx c is completely state controllable.
Prof J Wang (Tongji Uni) Chap 3. Controllability and observability Spring 2012 42 / 52
c: System
c A 12 A nc 0 A c nc ] x c x nc x c x nc
c b 0
cu cx c = A x c + b y=c cx c
c y = [c
c b
+ +
x c
+
c c
y1 y2
+
c A 12 A x nc
+
y
+
c nc
nc A
x+
0 1 0
y = [1 1 1]x Determine whether the system is controllable. If not, make a decomposition according to controllability. Solutions Since rank(Qc ) = 2 < 3, the system is not completely controllable. The similar matrix can be constructed as follows P = [ b Ab q1 ] =
Prof J Wang (Tongji Uni)
P1 =
0 1 1 00 1 1 0 1
Spring 2012 44 / 52
Letting x = Px yields = P1 AP = A
0 1 0 1 2 0 0 0 1
= P1 b = b
1 0 0
c = cP = [ 1 3 1 ]
x c +
1 0
The transfer function of the controllable subsystem is G c (s) = [ 1 3 ] It is apparent that G (s) = G c (s)
s 1 1 s2 1 1 0
(AT )
2 T c
(AT )
n 1 T c
= n1 < n
o + b
c o
+
o A +
o b no b
o 0 A 21 A no A x o x no
x o x no
u no b
+
21 A
o 0 ] y = [c
no A
co B co B u 0 0
where x co is controllable and observable, x co is controllable but not observable, x c o is not controllable, but observable, x c o is neither controllable nor observable.
Spring 2012
48 / 52
Outline
1
3.1 Introduction 3.2 Analysis of controllability 3.3 Analysis of observability 3.4 Principle of duality 3.5 Obtaining controllable and observable canonical forms 3.6 Canonical decomposition 3.7 Simulations with MATLAB
Spring 2012
50 / 52
A numerical example
Example
Examine the controllability and observability of the system (A, B, C) where A = B=
0 0 1 0 1 0 0 0 1 6 11 6
, C = [ 5 6 1 ].
Solutions
The following MATLAB Program computes the controllability and observability of this system, which turns out to be controllable, but not observable.
>> A = [0 1 0;0 0 1;-6 -11 -6]; >> B = [0;0;1]; >> C = [5 6 1]; >> D = [0]; >> CONT = ctrb(A,B) CONT = 0 0 1 0 1 -6 1 -6 25 >> rank(CONT) ans = 3 >> OBSER = obsv(A,C) OBSER = 5 6 1 -6 -6 0 0 -6 -6 >> rank(OBSER) ans = 2
Department of Control Science & Engineering School of Electronic & Information Engineering Tongji University
Go to next chapter!