Controllability & Observability Guide
Controllability & Observability Guide
Learning objectives
Students will be able to explain the qualitative system theory concepts of controllability,
reachability, observability and constructibility for LTI systems. Moreover, they can utilize
different mathematical tools to investigate if a state / system has any of these properties.
No. Topic
1 Introduction (admin, system classes, motivating example)
2 Linear algebra basics
3 Response of linear systems incl. discrete-time representations
4 Laplace and z-transforms (complex frequency domain)
5 Frequency response
6 Stability
7 Controllability and observability
8 State transformation and realizations
9 State feedback and state observers
=output ? System
=input Xo
Fig. 7.2: Can the state be determined based on limited sections of the input and output trajectories?
Oliver Wallscheid AST Topic 07 5
Delimitation of the considered system classes
The previously introduced qualitative system theory concepts will be handled only for LTI
system in this course! Nevertheless, we will consider both systems in continuous time
While illustrative and straightforward procedures exist to verify the existence of the addressed
properties for LTI system, corresponding extensions for LTV and (certain) nonlinear systems
exist but are mathematically more complex.
6 Dual systems
C n U n = x1 − An x0 . (7.7)
Square matrix
Input state
Now, consider another system given by
State space
1 1 1
x[k + 1] = x[k] + u[k].
0 1 0
Two Linearly Dependent Col
This system is not (completely) reachable since
ows, or
1 1
rank(C) = rank([B, AB]) = rank = 1 < n = 2.
0 0
C n U n = −An x0 . (7.10)
Hence, it becomes clear that again rank(C n ) = n must hold to find a solution of the above
equation system, leading to the following theorem:
Obviously, the question arises if the opposite also holds, i.e., if controllability implies
reachability?
controllability
reachability
6 Dual systems
is Z t
x(t, t0 , x0 ) = Φ(t, t0 )x0 + Φ(t, τ )Bu(τ ) dτ (7.13)
t0
Note hat the controllability matrix is defined the same in continuous time as in discrete time.
Oliver Wallscheid AST Topic 07 17
Derivation reachability (3)
In contrast to discrete time, the transition matrix in the continuous time is always nonsingular
since −1
(Φ(t, τ ))−1 = eA(t−τ ) = eA(τ −t) = Φ(τ, t)
Note that Wr is symmetric and positive semi-definite for any time interval T > 0.
Theorem 7.7: System input solution for reachable continuous-time LTI systems
Let the system (7.12) be (completely state) reachable. Then, there exists an input that will
transfer any state x0 to any other state x1 in some finite time T . Such input is given by
T (T −t)
Wr−1 (0, T ) x1 − eAT x0 .
u(t) = BT eA
(7.20)
RT RT
It can be shown that the above solution minimizes 0 ||u(τ )||2 dτ = 0 uT (τ )u(τ )dτ , i.e.,
investing the minimum amount of control effort (least squares solution of (7.17)).
Oliver Wallscheid AST Topic 07 20
NOT important for EXAM, Prof. SKipped the slide
Example (1)
yielding
t
−2a
Z
−at aτ 1
x(t, t0 , x0 ) = e x0 + e b 2aT
eaτ x0 dτ
0 b e −1
2at
−at e −1
=e 1 − 2aT x0 .
e −1
In fact, the larger λi the better the controllability of the corresponding state xi , i.e., one
requires less input ’power’ to transfer the specific state.
Oliver Wallscheid AST Topic 07 23
Stabilizability
In simple words:
One can introduce a state feedback for all unstable states such that the controlled system has
only stable states.
controllable / reachable
if for all eigenvalues λi of A it holds
i = 1, 2, 3...... (we have to evaluate for each state)
rank ([ λi I − A, B ]) = n for those values of i, we get rank defeciencyy (7.22)
say that these are non reachable states
we can
if for all eigenvalues λi ≥ 0 of A it holds Those Eigen values which are stable (WIth negative real part) does not interest us
because they will decay over time, so they don't need to be stabilize
rank ([ λi I − A, B ]) = n (7.23)
Note that with the PBH test we can evaluate which specific states are non-(reachable /
controllable / stabilizable) compared to the binary, system-wide controllability matrix test from
Theo. 7.5.
Oliver Wallscheid AST Topic 07 25
Table of contents
6 Dual systems
it is unobservable.
Oliver Wallscheid AST Topic 07 29
Observability derivation (4)
has two linearly-dependent rows and, therefore, rank(O) = 1 results. Hence, all states of the
form T
x=α 0 1 with α ∈ R
are unobservable since they are in the null space of O. Consequently, one can measure
identical output series {y[k]} although the system is initialized with different x0 .
Oliver Wallscheid AST Topic 07 32
Constructibility (1)
Recall that constructibility refers to the ability to uniquely determine the state from knowledge
of current and past outputs and inputs. This translates to if we can determine x[k = K] with
{u[k], y[k]} samples for k = 0, . . . , K. Formally we introduce:
x = Ak x̃, C x̃ = 0. (7.32)
I In simple words, this expresses that the dynamics of the system states are not evident in
the output measurement.
I The definition might be a little unintuitive in the first place, but allows us to transfer
much insights from the observability discussion to constructibility (see next slide).
6 Dual systems
with Z t
y ỹ(t) = y(t) − [CeA(t−τ ) B + Dδ(t − τ )]u(τ ) dτ . (7.36)
0
Oliver Wallscheid AST Topic 07 36
Derivation observability (2)
Likewise in the reachability analysis, we can state that the left-hand side in
ỹ(t) = CeAt x0 (7.38)
is known and the question is under which conditions one can find a unique solution for x0 . We
can investigate this by applying again the Cayley-Hamilton theorem, that is
n−1
X
At
e = αi (t)Ai (7.39)
i=0
Note hat the observability matrix is defined the same in continuous time as in discrete time.
Taking into account that the time is reversible in the continuous-time state transition matrix
−1
(Φ(t, 0))−1 = eAt = e−At = Φ(−t, 0)
we can directly find the following.
Note that Wo is symmetric and positive semi-definite for any time interval T > 0.
Theorem 7.15: Initial state solution for observable continuous-time LTI systems
Let the system (7.34) be (completely state) observable. Then, the initial state x0 (t0 = 0) can
be determined by evaluating {y(t), u(t)} over some finite time interval T resulting in
Z T
τ AT
x0 = Wo−1 (0, T ) e T
C ỹ(τ )dτ . (7.44)
0
Note: for small T also ||Wo || is small leading to numerical issues when calculating Wo−1 .
Oliver Wallscheid AST Topic 07 40
Example (1)
Consider the system
0 1
ẋ(t) = x(t), y(t) = 1 0 x(t).
0 0
From that we can derive
At 1 t
and CeAt = 1 t .
e =
0 1
The observability Gramian results in
Z T Z T Z T
Aτ T
Aτ
1 1 τ
Wo (0, T ) = Ce Ce dτ = 1 τ dτ = dτ
0 0 τ 0 τ τ2
1 2
T 2 T
= 1 2 1 3 .
2T 3T
1 4
Since det(Wo (0, T )) = 12 T 6= 0 for T > 0 the inverse Wo−1 (0, T ) exists and one can find x0
when monitoring {y(t), u(t)}.
Oliver Wallscheid AST Topic 07 41
Example (2)
Lets further assume that the system has an initial state
T
x0 = 0 1 .
Inserting into (7.44) we can find that the initial state is successfully observed using the
Gramian approach:
" 1 −1
− 12 T −2 Z T 1
Z T # " #
3T
−1 τ AT T
x0 = Wo (0, T ) e C ỹ(τ )dτ = 12 τ dτ
0 − 21 T −2 T −3 0 τ
" 1 −1
− 21 T −2 12 T 2
#" # " #
3T 0
= 12 = .
− 21 T −2 T −3 1 3
3 T 1
In fact, the larger λi the better the observability of the corresponding state xi , i.e., the
’signal-to-noise ratio’ improves when applying some form of estimator.
Oliver Wallscheid AST Topic 07 43
Detectability
In simple words:
The non-observable states of a given system are to some extent ’irrelevant’ since they
asymptotically tend towards zero.
and
detectable
if for all eigenvalues λi of A holds
λi I − A λi I − A
rank =n ∨ rank <n ∧ λi < 0 . (7.47)
C C
With the PBH test we can evaluate which specific states are non-(observable / constructable /
detectable) compared to the binary, system-wide observability matrix test from Theo. 7.13.
Oliver Wallscheid AST Topic 07 45
Table of contents
6 Dual systems
where AD = AT , BD = CT , CD = BT and DD = DT .
The proof is quite simple by evaluating the dual observability and controllability matrices:
BT
BT AT
OD = = CT ,
..
. (7.49)
BT (AT )n−1
C D = CT AT CT · · · (AT )n−1 CT = OT .
The duality property is useful to transfer proofs from observability to controllability and vice
versa. It also facilitates, if necessary, the examination of a given system for these properties.
Oliver Wallscheid AST Topic 07 48
Important Matlab /GNU Octave commands
1 [bool, ncon] = isctrb(A, B); % binary controllability test with ncon controllable states
2 bool = isstabilizable(A, B); % binary stabilizability test
3 Co = ctrb(A,B); % returns the controllability matrix
4
5 [bool, nobs] = isobsv(A, C); % binary observability test with nobs observable states
6 bool = isdetectable(A, C); % binary detectability test
7 Ob = obsv(A,C); % returns the observability matrix
8
9 W = gram(sys, mode) % computes the controllability / observability Gramian for T => infinity
Note:
I The commands require to install the Control (System) Toolbox in Matlab or GNU Octave.
I The binary ’is...’ commands are only available in GNU Octave.
I Only applicable to LTI systems (in continuous or discrete time).