Lecture Note Controllability and Observability: 1 State Diagram
Lecture Note Controllability and Observability: 1 State Diagram
1 State Diagram
Before exploring the topic on controllability and observability, let us discuss an important contin-
uation of the previous lectures, i.e., state diagram. A state diagram is nothing but a signal flow
graph which depicts the flow of signals from input to output while showing all the necessary states
and their derivatives. We can draw the state diagram either from the block diagram or from the
state model directly. Please note that a differentiator is denoted by s and an integrator is denoted
by 1/s in a state diagram. Consider a second order system in controllable canonical form as
Controllability deals with the possibility of forcing the system to a particular state by appli-
cation of a control input. If a state is uncontrollable then no input will be able to control that
state. On the other hand whether or not the initial states can be observed from the output is
determined using observability property. Thus if a state is not observable then the controller will
not be able to determine its behavior from the system output and hence not be able to use that
state to stabilize the system.
1
2.1 Controllability
A control engineer asks a question if a dynamical model is controllable before designing a compen-
sator. Only when a dynamical system is controllable, a suitable controller is designed.
Consider a dynamical system
ẋ = Ax + Bu (1)
where A ∈ Rn×n and B ∈ Rn×p
Controllability: Definition
The state equation (1) ( or the pair (A, B) ) is controllable if for any initial state x(0) = x0
and any final state x1 , there exists an input u(t) that takes the system from x0 to x1 in the state
space in a finite time. Otherwise the state equation (1) is uncontrollable.
Theorem 1
The following three statements are equivalent.
UC = B AB A2 B ...... An−1 B
(3)
has rank n, i.e. full row rank.
proof
Part I: Assume Wc is nonsingular. Then show that the pair (A, B) is controllable. Part II:
Assume that the pair (A, B) is controllable. Then show that Wc is nonsingular.
Assume Wc is nonsingular. The response of the state equation (1)is given as
Z t
At
x(t) = e x(0) + eA(t−τ ) Bu(τ )dτ (4)
0
It is required to show that there exists a control input u that transfers the system from x0 to
x(t) = x1 in a finite time. Let the control input be given by
T (t−τ )
u(τ ) = −B T eA Wc −1 (t) eAt x(0) − x1
(5)
2
This leads to following form
only if Wc is nonsingular.
Part II: By contradiction: the pair (A, B) is controllable but Wc is singular
Since Wc is singular, then there exists a non-zero vector v such that v T Wc (t)v = 0. This implies
Z t Z t
T T A(t−τ ) T AT (t−τ ) T
v Wc (t)v = v e BB e vdτ = || B T eA (t−τ ) v ||2 dτ (8)
0 0
T
Thus B T eA (t−τ ) v = v T eA(t−τ ) B = 0
Let the system (1) has to move from x(0) = e−At v to x(t) = x1 = 0. Then
Z t
0=v+ eA(t−τ ) Bu(τ )dτ (9)
0
v T Ak B = 0 k = 0, 1, 2, 3, ..., n − 1 (11)
Using Caley Hamilton Theorem, eAt = β0 I + β1 A + .... + βn−1 An−1 , one can easily show that
eAt B is linear combination of [B AB A2 B ...... An−1 B].Since v T Ak B = 0, so also v T eAt B = 0.
It is already shown that if v T eAt B = 0 for non-zero v, then Wc is singular. This result concludes
that if C has full row rank, then Wc has to be non-singular.
Let us assume converse: C has full row rank, but Wc (t) is singular.
Since Wc is singular so also v T eAt B = 0 holds true. At t = 0, v T B = 0
Differentiating v T eAt B and then setting t = 0, one gets v T AB = 0. Subsequent differential will
yield v T [B AB .... An−1 B] = v T C = 0. This contradicts the assumption that C has full row
rank.
Example 1:
Given a dynamical system
−0.5 0 0.5
ẋ = x+ u (12)
0 −1 1
find the input force u that will transfer x(0) = [10 − 1]T to x(2) = [0 0]T in two seconds.
Solution:
3
Z 2
−0.5τ
e−0.5τ 0
e 0 0.5
Wc (2) = 0.5 1 dτ (13)
0 0 e−τ 1 0 e−τ
0.2162 0.3167
This results Wc (2) =
0.3167 0.4908
T
If one selects the control input u(t) = −B T eA (tf −t) Wc −1 (tf ) eAtf x(0) − xf , where tf = 2 is
the final time and xf = x(2) is the final state, then one will get u(t) = −58.82e0.5t + 27.96et .
Example 2
Consider the system ẋ = Ax + Bu, y = Cx. where
−2 1 1
A= , B= and C = [0 1]
1 −2 1
Y (s)
Show if the system is controllable. Find the transfer function U (s)
. Can you see any connection
between controllability and the transfer function?
Solution: The controllability matrix is given by
1 −1
U = [B AB] =
1 −1
Its determinant kU k = 0 ⇒ U has a rank 1 < 2. Thus the system is not controllable. The transfer
function
−1
Y (s) −1 s + 2 −1 1 1
G(s) = = C(sI − A) B = [01] =
U (s) −1 s + 2 1 s+1
Although state model is of order 2, the transfer function has order 1. The eigenvalues of A
are λ1 = −1 and λ2 = −3. This implies that transfer function is associated with pole-zero
cancellation where the pole is at −3. Since one of the dynamic mode is cancelled, the system
became uncontrollable.
2.2 Observability
Given the dynamical system
ẋ = Ax + Bu
(14)
y = Cx
the system is observable if for any unknown initial state x(0), there exists a finite t1 > 0 such that
the knowledge of the input u and the output y over [0, t1 ] suffices to determine uniquely the initial
state x(0). Otherwise the system is not observable.
Theorem 2:
Following statements are equivalent.
4
2. The n × n observability Gramian matrix
Z t
T
Wo (t) = eA τ C T CeAτ dτ (15)
0
3. the np × n matrix
C
CA
.
O=
.
(16)
.
CAn−1
has rank n, i.e., full column rank.
Note that D does not play any role in determining controllability. The above model or the pair
(A, B) is said to be controllable if for any initial state x(0) = x0 and any final state x1 , there
exists an input sequence of finite length that takes the system from x0 to x1 . Otherwise the state
equation (17) is uncontrollable. In literature, there are three different controllability definitions.
For continuous time case all the three definitions are equivalent and we term it as controllability
(in some book reachability). But for discrete time case definitions (1) and (3) are equivalent but
(2) is not not. In some books, controllability refers to the second definition while reachability refers
to the first or third.
5
Example:
Theorem: The discrete state variable model (17) or the pair (A, B) is controllable to origin
if and only if range(An ) ⊂ range(U ).
Example:
Careful observation of the above model reveals that the state x1 (t) is uncontrollable since the
derivative of x1 (t) depends only on x1 (t), neither on u(t), nor on x2 (t). Now, the first state equa-
tion describes the dynamis and it is clear that x1 (t) is a stable state. Thus, the model is stabilizable
although not controllable.
Similarly when the unobservable states of a state model are stable, it is known as detectable.
It is a desirable property for designing an observer.