Chapter 4 Controllability and Observability
Chapter 4 Controllability and Observability
Chong-Jin Ong
1 / 24
Outline
1 Introduction
2 Controllability
3 Reachability
2 / 24
Introduction
This chapter deals with two concepts that are not found in classical or
frequency analysis.
Controllability and Observability are two unique features of the state
space analysis.
These concepts were first introduced by E.G. Gilbert and R.F. Kalman
in the 1960s.
Explain why cancellation of unstable poles are undesirable even if perfect
cancellation is possible.
The concepts are first illustrated via several motivating examples.
3 / 24
Example
ẋ1 = u
ẋ2 = u
If x1 (0) = x2 (0), then x1 (t) = x2 (t) for all time and all control u(t).
ẋ1 = x2
ẋ2 = 0
y = x2
Then y(t) = constant for all choices of x1 (0) and x2 (0). Observing y(t) does not tell
us what x1 is doing.
4 / 24
Motivating Example
A more interesting example is one given by the following diagram. It consists of two
carts coupled by a spring. A force f is applied onto both carts via some means
within the system.
5 / 24
Motivating Example
0 0 1 0
0
0 0 0 1 x + 01 f
ẋ =
− mk k
1 m1
0 0 − m1
k k 1
m2
− m2
0 0 m2
From law of physics, f can change the relative distance between the two carts
(x2 − x1 ) but it cannot change x1 and x2 independently.
6 / 24
Example
Example 4: Consider the system given below,
7 / 24
Example
8 / 24
Controllability and Observability
9 / 24
Controllability
Definition: A LTI system (A, B, C, D) (or more precisely (A, B)) is
controllable if there exists an input u(t), 0 ≤ t ≤ t1 that drives the system from
any initial state x(0) = x0 to any other state x(t1 ) = x1 in a finite time t1 .
Otherwise, (A, B) is said to be uncontrollable.
Possible to define the above for time-varying systems (more complicated since
reaching x1 may depend on t0 ). The above assumes t0 = 0 WLOG.
Theorem 4.1 The n-dimensional LTI system with matrices (A, B) is
controllable if and only if any of the following condition is satisfied:
1 The Controllability Grammian
Z t Z t
T T
W (0, t) = eAτ BB T eA τ dτ = eA(t−τ ) BB T eA (t−τ ) dτ
0 0
is nonsingular for all t ≥ 0.
2 The n × nr matrix
U = B AB · · · An−1 B
= eAt1 x0 − (eAt1 x0 − x1 ) = x1
(⇐) Suppose W (0, t) is singular for some t1 > 0, and that the system is controllable.
We show that this leads to a contradiction. Since W (0, t1 ) is singular, there exists a
non-zero α such that
Z t1
T
αT W (0, t1 )α = αT eA(t1 −τ ) BB T eA (t1 −τ ) α = 0
0
Z t1
Or, kαT eA(t1 −τ ) Bk22 dτ = 0
0
Since k · k is a non-negative function, this means that
αT eA(t1 −τ ) B = 0 for all t > τ > 0 (1)
11 / 24
Controllability
Since the system is controllable, this means that any state is reachable by an
appropriate control in finite time. Suppose we want to reach the state
x(t1 ) = α + eAt1 x0 at time t1 . Then
Z t1
x(t1 ) = α + eAt1 x0 = eAt1 x0 + eA(t1 −τ ) Bu(τ )dτ
0
Z t1
or, α = eA(t1 −τ ) Bu(τ )dτ
0
This also means that
Z t1
αT α = αT eA(t1 −τ ) Bu(τ )dτ = 0
0
12 / 24
Controllability
Case (2) (⇒ and ⇐): Various ways of showing this exist and this one given here is
more intuitive but less rigorous. It shows a clear connection to Caley-Hamilton
Principle. Recall that
Z t1
At1
x1 = e x0 + eA(t1 −τ ) Bu(τ )dτ
0
Z t1 Z t1
−At1 −At1 A(t1 −τ )
e x1 − x0 = e e Bu(τ )dτ = e−Aτ Bu(τ )dτ (2)
0 0
Suppose this is not true i.e., there exists a λ1 and a non-zero q s.t.
q T [A − λ1 I B] = 0
q T [B AB · · · An−1 B] = [q T B q T AB · · · q T An−1 B]
= [q T B λ1 q T B · · · λn−1
1 q T B] = 0
14 / 24
Controllability
where Āc̄ is m × m. Let λ1 be an eigenvalue and q1 be the left eigenvector of Āc̄ i.e.,
q1T Āc̄ = λ1 Āc̄ or (q1T − λ1 I)Āc̄ = 0. We form the n vector q as q T = [0 q1T ] where 0 is
a (n − m) row vector. Then, we have
Āc − λ1 I Ā12 B̄c
q T [Ā − λ1 I B̄] = 0 q1T =0
0 Āc̄ − λ1 I 0
15 / 24
Controllability
16 / 24
Example
Consider the system given below:
Questions: Is there an input u(t) such that, when applied, brings the platform
system to equilibrium in 2 seconds starting from x1 (0) = 10 and x2 (0) = −1?
0.5 −0.25
Answer: First check that rank[B AB]=rank( = 2.
1 1
Hence, it is possible to bring the system to the origin in 2 second. The
expression is
T
u(t) = −B T eA (t1 −t) W −1 (0, t1 )(eAt1 x0 − x1 ) with
Z 2 −0.5τ
e−0.5τ
e 0 0.5 0
W (0, 2) = −τ 0.5 1 −τ dτ
0 0 e 1 0 e
0.2162 0.3167
=
0.3167 0.4908
The corresponding u(t) = −58.82e0.5t + 27.96et .
18 / 24
Example
Consider two cases: (1) no constraint on u; and (2) −10 ≤ u(t) ≤ 10,
Figure: Plots of x1 (t), x2 (t) and u(t) for Figure: Plots of x1 (t), x2 (t) and u(t) for
transfer from x(0) = (10, −1)T in 2 seconds. transfer from x(0) = (10, −1)T in 4 seconds.
19 / 24
Controllability under Similarity Transformation
x̄˙ = T −1 AT x̄ + T −1 Bu
y = CT x + Du
Ū = T −1 B T −1 AB · · · T −1 An−1 B = T −1 B AB · · · An−1 B = T −1 U
20 / 24
Reachable States and Controllability Grammian
The set of reachable state, R, is the collection of all x` over all possible u.
Note that R is a linear subspace of Rn : for all α, β ∈ R,
xa , xb ∈ R ⇒ αxa + βxb ∈ R
R` T
Recall W (0, `) = 0
eA(`−τ ) BB T eA (`−τ )
dτ . We claim that
Proof is omitted.
21 / 24
Controllability Grammian is time-independent
22 / 24
Controllability Grammian is time-independent
Proof: (Optional) (⇒)
Z ` T
q T W (0, `) = 0 ⇒ q T eA(`−τ ) BB T eA (`−τ )
qdτ = 0
0
T A(`−τ )
⇒q e B = 0, for all τ ∈ [0, `]. (3)
T
Let τ = ` then the above implies q B = 0. Differentiate (3) once yields
(−1)q T AeA(`−τ ) B = 0
which implies, when τ = `,
(−1)q T AB = 0
Repeating the differentiation n − 1 times yields
h i
q T B (−1)AB · · · (−1)k Ak B, · · · (−1)n−1 An−1 B = 0
which implies that q T B AB · · · An−1 B = 0. This means rank(W (0, `)) ≤ rank(U ).
R∞ T
The expression of W = 0
eA(t−τ ) BB T eA (t−τ )
dτ is hard to compute.
There is another expression that allows easy computation. Note that the W
satisfies the Lyapunov Equation
AW + W AT = −BB T
24 / 24