Professional Documents
Culture Documents
Chapter 2 Compressed
Chapter 2 Compressed
Main goal: introduce the key concepts enabling to deal with current
issues related to the control of complex systems 2
Course overview
– Introduction
– Chapter 1 : Structure of controlled systems
– Chapter 2 : State space representation, controllability, observability
– Chapter 3 : State feedback control
– Chapter 4 : Observers and estimated state feedback control
– Chapter 5 : Performance and robustness analysis of a control law
3
Chapter 2 overview
1. Reminder on the state space representation
a. General case, LTI systems case, in continuous-time, in discrete-time
b. Solution of the state equation
c. Discrete time systems
d. Stability issues
e. From state space to transfer function and vice versa
f. Change of basis
2. Controllability
a. Definition, necessary and sufficient condition for LTI systems
b. Decomposition of non controllable systems
3. Observability
a. Definition, necessary and sufficient condition for LTI systems
b. Decomposition of non observable systems
4. Conclusion 4
Reminder on state space representation
– Internal representation
u(t)
Dynamical y(t)
system
Control Outputs or
signals measurements
X(t)
State vector
▪ The state-space representation is not unique, but the number of state variables remain identical,
equal to n
6
Handout
Reminder on state space representation 2.1.2
– Equilibrium point
x(t ) = f ( t , x(t ), u(t ))
▪ Equilibrium point of a continuous-time system
y(t ) = h ( t , x(t ), u(t ))
( x , u ) is an equilibrium point if:
0 = f ( x , u , t )
, t
Cancel derivative y = h( x , u , t )
x
(t ) = A(t ) x(t ) + B(t ) u(t )
y(t ) = C(t ) x(t ) + D(t ) u(t )
SISO system
▪ F[k] evolution matrix, dimension (n x n) m=l=1
▪ G[k] input matrix, dimension (n x m)
▪ H[k] output matrix, dimension (l x n)
Matlab :
▪ J[k] direct transmission (feedforward) matrix, dimension (l x m) sys = ss(A,B,C,D,Te)
▪ Systematic and recursive methods exist to calculate the (sI-A)-1 matrix, such as the Leverrier-
Souriau algorithm
▪ The common denominator of matrices H(s) is the determinant of sI-A, i.e. the characteristic
polynomial
▪ the poles of the transfer functions are thus all or part of the eigenvalues of A
13
Handout
Reminder on state space representation 2.1.3
−1
X( z ) = ( z I − F )−1 G U( z ) ( z I − F ) X( z ) = G U( z )
H( z ) = C z I − F G+D
Y( z ) = C X( z ) + D U( z ) Y( z ) = C X( z ) + D U( z )
▪ Systematic and recursive methods exist to calculate the (zI-F)-1 matrix, such as the Leverrier-
Souriau algorithm
▪ The common denominator of matrices H(z) is the determinant of zI-F, i.e. the characteristic
polynomial
▪ the poles of the transfer functions are thus all or part of the eigenvalues of F
14
Handout
Reminder on state space representation 2.1.4
H(s) =
Y (s)
= d0 +
N(s) X1(s)
= d0 +
(
b0 + b1 s + + bn −1 s n −1 X1(s) )
U(s) D(s) X1(s) (
a0 + a1 s + + an −1 s n −1 + s n X1(s) )
0 1 0 0
0 0
(
U(s) = D(s)X1(s) = a0 + a1 s + )
+ an −1 s n −1 + s n X1(s)
0 1 0
0 1 0
(
Y (s) = N(s)X1(s) + d0 U(s) = b0 + b1 s + + bn −1 s n −1
) X (s) + d
1 0 U(s) Ac =
0 1
− a0 − a1 − a2 − an −1
▪ Defining the state variables T
Bc = 0 0 0 1
x2 (t ) = x1(t ) , x3(t ) = x2(t ) xn(t ) = xn −1(t ) Cc = b0 b1 bn −1 Dc = d0
15
Handout
Reminder on state space representation 2.1.4
H( z ) =
Y (z)
= d0 +
N( z ) X1( z )
= d0 +
(
g0 + g1 z + + gn −1 z n −1 )
X1( z )
U( z ) D( z ) X1( z ) ( )
f0 + f1 z + + fn −1 z n −1 + z n X1( z )
0 1 0 0
(
U( z ) = D( z )X1( z ) = f0 + f1 z + )
+ fn −1 z n −1 + z n X1(s) 0
0 1 0 0
0 1 0
(
Y ( z ) = N( z )X1( z ) + d0 U( z ) = g0 + g1 z + )
+ gn −1 z n −1 X1(z ) + d0 U(z ) Fc =
0 1
▪ Defining the state variables −f0 −f1 −f2 −fn −1
T
x2[k ] = x1[k + 1] , x3[k ] = x2[k + 1] xn[k ] = xn −1[k + 1] Gc = 0 0 0 1
Cc = g0 g1 gn −1 Dc = d0
16
Handout
Reminder on state space representation 2.1.4
b0 + b1 s + + bn −1 s n −1 g0 + g1 z + + gn −1 z n −1
H(s) = d0 + H( z ) = d0 +
a0 + a1 s + + an −1 s n −1
+s n
f0 + f1 z + + fn −1 z n −1 + z n
Duality between
both canonical 0 0 − a0 0 0 −f0
1 1 0 0 −f1
forms 0 0 − a1
0 1 0 − a2 0 1 0 −f2
A0 = F0 =
0 1 0 − an −2 0 1 0 −fn −2
A0 = ATc F0 = FcT
B0 = CTc G0 = CTc 0 0 1 − an −1 0 0 1 − gn −1
T T
B0 = b0 b1 b2 bn −1 G0 = g0 g1 g2 gn −1
C0 = BTc C0 = GTc
C0 = 0 0 0 1 D0 = d0 C0 = 0 0 0 1 D0 = d0
17
Reminder on state space representation
– From transfer function to state-space representation: keeping a physical meaning of
the state variables
10 1 1 y(t ) = x3(t )
s +1 x1(t ) 1 + 10s x2(t ) s
u(t )
– number of state variables equal to the degree of the denominator of the global transfer function
– one state variable located after each increase of the denominator degree
10
X1(s) = U(s) (s + 1) X1(s) = 10 U(s) x1(t ) + x1(t ) = 10 u(t ) x1(t ) = − x1(t ) + 10 u(t )
s +1
1
X2 (s) = X1(s) (10 s + 1) X2(s) = X1(s) 10 x2(t ) + x2(t ) = x1(t ) x2(t ) = −0.1x2(t ) + 0.1 x1(t )
1 + 10s
1 −1 0 0 10
X3(s) = X2(s) s X3(s) = X2(s) x (t ) = x (t )
s
3 2
A = 0.1 −0.1 0 B = 0 C = ( 0 0 1)
0 1 0 0
18
Handout
Reminder on state space representation 2.1.5
– Change of basis
x (t ) = A x(t ) + B u(t ) x[k + 1] = F x[k ] + G u[k ]
y (t ) = C x(t ) + D u(t ) y[k ] = C x[k ] + D u[k ]
x=Tx
T square invertible
19
Handout
Reminder on state space representation 2.2
– Stability issues
Stable
Unstable
Unstable
Asymptotically stable
Asymptotically
20
stable
Handout
Reminder on state space representation 2.2
Asymptotically
– Exponential stability: x is exponentially stable if: stable
i) It is asymptotically stable
ii) M 0, 0 s.t. t t0
x(t ) − x M x(t0 ) − x e − (t −t0 )
21
Handout
Reminder on state space representation 2.2
– Definition
▪ A system is fully controllable if there exists a control value u(t) which allows
moving from any given initial state x0 to any given final state x1 in finite time
▪ A system is partially controllable if only some components of x0 and x1 can be
moved Matlab:
help ctrb
– Kalman criterion – Necessary and sufficient condition – Continuous-time help rank
linear time-invariant systems case:
▪ rank QG = n (n independent columns) with QG = [B | AB | A2B |.....| An-1B ] n rows
nxm columns
A A12 F F12 G1
11
B1 11
x(t ) = __ __ x(t ) + __ u(t ) x k + 1 = __ __ x k + __ u k
0
0 0
A 22 0 F22
y(t ) = C1 C2 x(t ) + D u(t ) y k = C1 C2 x k + D u k
▪ This property can be used to find numerically the non controllable eigenvalues
▪ The pair (A,B) is stabilizable if all the non controllable modes given by the eigenvalues l are such
that
Re(l ) 0
28
Handout
Observability 2.4
– Definition
▪ A system is fully observable if whatever the initial state, available measurements
y(t) over a finite time allow determination of the full state x0
▪ A system is partially observable if available measurements y(t) over a finite time
only allow determination of some components of x0
Matlab :
– Kalman criterion – Necessary and sufficient condition – Continuous-time help obsv
linear time-invariant systems case:
rank Q0 = n (n independent rows) with Q0T = [CT | [CA]T | [CA2]T |.....| [CAn-1]T ] nxl rows
n columns
~A11 0 ~
B1 F 0 G1
~
~ 11
x(t ) = ___ ____ x(t ) + __ u(t ) x k + 1 = ___ ____ x k + __ u k
~ ~ ~
B2 G
21 A 22
A F21
F22
2
~
y(t ) = C1 0 ~
x(t ) + D u(t ) y k = C1 0 x k + D u k
▪ The output is not affected by the behavior of the non observable part (since the observable part
is not influenced by the non observable one)
30
▪ Detectable system: if the dynamics of the non observable part is asymptotically stable
Observability
– Example x1(t ) = x2 (t )
s +1
H(s) = C (sI − A )
−1
B=
x 2 (t ) = −2 x1(t ) − 3x2 (t ) + u(t ) s2 + 3 s + 2
y(t ) = x1(t ) + x2 (t )
0 1 0
x(t ) =
x(t ) + 1 u(t )
– State-space representation − 2 − 3
y(t ) = 1 1 x(t )
– Observability
C 1 1 Partially observable
Q0 = = Rank(Q0)=1
C A − 2 − 2 system
1 1
– Change of basis: transformation matrix T −1 =
0 1
– New matrices ~ − 2 0 ~ 1 ~
~ ~
x(t ) = x(t ) + u(t ) A = T −1 A T ; B = T −1 B ; C = C T
− 2 − 1 1
y(t ) = 1 0 ~
x(t ) 31
Handout
PBH test for observability 2.4.3
– Aim: obtain the minimal realization of the system linking inputs to outputs
– Consider x(t ) = A x(t ) + B u(t )
y (t ) = C x(t ) + D u(t )
xco
x
▪ There exists a change of basis x(t ) = = T x(t ) with T invertible s.t.
co
xco
A co 0 A13 0 B co
c o
x
A A A A
x(t ) = 21 24 B
co 23
x(t ) + co u(t )
0 0 A co 0 0
0 0 A 43 A co 0
y (t ) = Cco 0 Cco 0 x(t ) + Du(t )
A co 0 B co A co A13
with , controllable, 0 , Cco Cco observable and
A 21 A co B co A co
H ( s ) = C( sI − A) −1 B + D = Cco ( sI − A co ) −1 B co + D
33
– Similar principle in the discrete-time case
Conclusion
– Highlights of the chapter
▪ Modeling of the system under a
state space representation with a
preliminary linearization if
appropriate