Documente Academic
Documente Profesional
Documente Cultură
x Ax Bu
rank B AB A 2 B A n 1B n
The matrix A is an nxn matrix an B is an nx1 matrix. For multi input systems,
B can be nxm, where m is the number of inputs.
Pc B AB A 2 B A n 1B
which is nxn matrix. Therefore, if the determinant of Pc is nonzero, the system
is controllable.
Example:
Consider the system
0 1 0 0
x 0 0 1 x 0 u , y 1 0 0 x 0u
a 0 a1 a 2 1
0 1 0 0 0 1
A 0 0 1 , B 0 , AB 1 , A 2 B a 2
a 0 a1 a 2 1 a 2
a 22 a1
0 0 1
Pc B AB A 2 B 0 1 a2
1 a 2 a 22 a1
The determinant of Pc =1 and ≠0 , hence this system is controllable.
Example.
x 1 2 x1 u , x 2 3 x 2 d x1
The output of the system is y=x2. Determine the condition of controllability.
2 0 1
x x u , y 0 1 x 0u
d 3 0
1 2 0 1 2
B and AB
0 d 3 0 d
1 2
Pc The determinant of pc is equal to d, which is
0 d nonzero only when d is nonzero.
The controllability matrix Pc can be constructed in Matlab by using ctrb
command.
From two-mass system,
0 0 0 1 0
0 0 0 0 1
B , A
50 500 500 20.5 0
0 20000 20000 0 8.2
Pc =
clc
clear 1.0e+007 *
det_Pc =
-2.5000e+015
OBSERVABILITY:
All the poles of the closed-loop system can be placed arbitrarily in the complex
plane if and only if the system is observable and controllable. Observability
refers to the ability to estimate a state variable.
x Ax Bu and y Cx
where C is a 1xn row vector, and x is an nx1 column vector. This system is
completely observable when the determinant of the observability matrix P0
is nonzero.
The observability matrix, which is an nxn matrix, is written as
C
CA
PO
n 1
C A
Example:
Consider the previously given system
0 1 0
A 0 0 1 , C 1 0 0
a 0 a1 a 2
CA 0 1 0 , CA 2 0 0 1
Thus, we obtain
1 0 0
PO 0 1 0
0 0 1
The det P0=1, and the system is completely observable. Note that
determination of observability does not utility the B and C matrices.
2 0 1
x x u and y 1 1 x
1 1 1
We can check the system controllability and observability using the Pc and P0
matrices.
1 2
B and AB
1 2
1 2
Pc B AB
1 2
det Pc=0 and rank(Pc)=1. Thus, the system is not controllable.
From the system definition, we obtain
C 1 1 and CA 1 1
C 1 1
Po
CA 1 1
det PO=0 and rank(PO)=1. Thus, the system is not observable.
y x1 x 2
However,
x 1 x 2 2x1 x 2 x1 u u x1 x 2
Thus, the system state variables do not depend on u, and the system is not
controllable. Similarly, the output (x1+x2) depends on x1(0) plus x2(0) and does
not allow us to determine x1(0) and x2(0) independently. Consequently, the
system is not observable.
1 1
clc 1 1
clear
A=[2 0;-1 1];
rank_Po =
C=[1 1];
Po=obsv(A,C) 1
rank_Po=rank(Po)
det_Po=det(Po) The system is not
det_Po =
observable.
0