Design of State Variable Feedback Systems: ELEC-C8201 - Control and Automation
Design of State Variable Feedback Systems: ELEC-C8201 - Control and Automation
Themistoklis Charalambous
You:
I Learned how to plot the open-loop frequency response of the return ratio L(s),
with the imaginary part Im L(jω) plotted against the real part Re L(jω) on
an Argand diagram.
I Inferred more detailed information about the behavior of the closed-loop system:
(a) No need to explicitly compute the poles of the system, so it can be applied to systems
defined by non-rational functions.
(b) Relatively easy to see how changing C(s) affects L(s), but difficult to see how C(s)
affects L(s)/(1 + L(s)) directly.
(c) Gain and phase margins measure how close the closed-loop system is to instability.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
1/26
Learning outcomes...
...the student will:
I Become familiar with the concepts of controllability and observability.
I Understand the separation principle and how to construct state variable controllers.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
2/26
Introduction
State variable design typically consists of three steps.
1. We assume that all the state variables are measurable and utilize them in a
full-state feedback control law
I Not practical because it is not possible (in general) to measure all the states - in
practice, only certain states (or linear combinations of them) are measured.
2. Construct an observer to estimate the states that are not directly sensed and
available as outputs.
Observer +
Controller x̂ ỹ = y C x̂
K x̂˙ = Ax̂ + Bu + Lỹ ⌃
Themistoklis Charalambous
ELEC-C8201 - Control and automation
3/26
Fundamental questions:
1. Is it possible to steer a system from a given initial state to any other state?
observation
Rudolph Kalman was a central figure in the development of mathematical systems theory upon
which much of the subject of state variable methods rests. Kalman was well known for his role in the
development of the so-called Kalman filter, which was instrumental in the successful Apollo moon
landings.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
4/26
Controllability and Observability
I Observability and controllability tests will be connected to the rank tests of certain
matrices: the controllability and observability matrices
Themistoklis Charalambous
ELEC-C8201 - Control and automation
5/26
Controllability
Definition (Controllability)
A linear time-invariant (LTI) system is controllable, if for every x∗ (t) and every
finite time T > 0, there exists an input function u(t), 0 < t < T , such that
the system state goes from x(0) = x0 to x(T ) = x∗ .
I Without loss of generality, assume that x(0) = 01 . Need only to consider the
forced solution to study controllability
Z t
xf (t) = eA(t−τ ) Bu(τ )dτ
0
1
Starting at 0 is not a special case – if we can get to any state in finite time from the origin, then
we can get from any initial condition to that state in finite time as well.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
6/26
I Change of variables τ2 = t − τ , dτ = −dτ2 gives a form that is a little easier to
work with:
Z t
xf (t) = eAτ2 Bu(t − τ2 )dτ2
0
I Assume system has n states (i.e., x(t) ∈ Rn ) and m inputs (i.e., u(t) ∈ Rm ).
for coefficients βi (t) that depend on the input u(τ ), 0 < τ < t.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
7/26
I Result can be interpreted as meaning that the state xf (t) is a linear combination
of the nm vectors Ai B (with m inputs)
I All linear combinations of these nm vectors is the range space of the matrix formed
from the Ai B column vectors, called the controllability matrix:
Pc = B AB A2 B · · · An−1 B
Theorem
Themistoklis Charalambous
ELEC-C8201 - Control and automation
8/26
I When the system is not completely controllable, but where the states (or linear
combinations of them) that cannot be controlled are inherently stable, then these
systems are classified as stabilizable
I If a system is completely controllable, it is also stabilizable (but not vice versa!)
Themistoklis Charalambous
ELEC-C8201 - Control and automation
9/26
Observability
Definition (Observability)
A linear time-invariant (LTI) system is observable, if the initial state x(0) can
be uniquely deduced from the knowledge of the input u(t) and output y(t) for
all t between 0 and any finite T > 0.
I If x(0) can be deduced, then we can reconstruct x(t) exactly because we know
u(t) ⇒ we can find x(t) ∀t
I Thus, it is sufficient to only consider the zero-input (homogeneous) solution to
study observability
Themistoklis Charalambous
ELEC-C8201 - Control and automation
10/26
Example: Let us consider the system
h i h i
−2 0 2
ẋ = x+ u
0 −1 1
y= 3 0 x
T
Is the state x∗ = 0 1 observable?
Answer:
he−2t 0
ih i
0 h0i
CeAt x∗ = 3 0 = 3e−2t 0 =0∀t
0 e−t 1 1
T
So, x∗ = 0 1 is an unobservable state of this system.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
11/26
Theorem
Proof (by a simple example): Let x∗ 6= 0 be an unobservable state and compute the
output of the initial conditions x1 (0) and x2 (0) = x1 (0) + x∗ . Then,
At ∗
CeAt x1 (0) + |
Ce{z x} = y1 (t)
| {z }
=y1 (t) =0
Thus, two different initial conditions give the same output y(t), so it would be
impossible for us to deduce the actual initial condition of the system (x1 (0) or x2 (0))
given y1 (t)
I Testing system observability by searching for a vector x(0) such that CeAt x(0) ∀t
is feasible, but very hard in general – better tests are available.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
12/26
Theorem
Themistoklis Charalambous
ELEC-C8201 - Control and automation
13/26
d2
= 0 ⇒ CA2 eAt x∗ = 0 ⇒ CA2 x∗ = 0
CeAt x∗
dt 2 t=0
t=0
..
.
dk
= 0 ⇒ CAk eAt x∗ = 0 ⇒ CAk x∗ = 0
CeAt x∗
dtk t=0 t=0
I When the system is not completely observable, but where the states (or linear
combinations of them) that cannot be observed are inherently stable, are classified
as detectable. If a system is completely observable, it is also detectable.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
14/26
Example: Let us consider the system
" # " #
0 1 0 0
ẋ = 0 0 1 x+ 0 u
−a0 −a1 −a2 1
y= 1 0 0 x
Themistoklis Charalambous
ELEC-C8201 - Control and automation
15/26
Full state feedback control design
I We consider full-state variable feedback to achieve the desired pole locations of the
closed-loop system
I 1st step: we assume that all the states are available for feedback, i.e., we have
access to the complete state x(t) for all t
ẋ = Ax + Bu
u x
Controller
K
Themistoklis Charalambous
ELEC-C8201 - Control and automation
16/26
I We find the closed-loop system to be
ẋ = Ax + Bu = Ax − BKx = (A − BK)x (1)
I Given the pair (A, B), we can always determine K to place all the system
closed-loop poles in the left half-plane if and only if the system is controllable
I When using this state variable feedback, the roots of the characteristic equation
are placed where the transient performance meets the desired response
Themistoklis Charalambous
ELEC-C8201 - Control and automation
17/26
Ackermann’s formula for the state variable feedback matrix
where
Themistoklis Charalambous
ELEC-C8201 - Control and automation
18/26
Example: Consider the second-order system
Y (s) 1
= G(s) = 2
U (s) s
and determine the feedback gain to place the closed-loop poles at s = −1 ± j.
Themistoklis Charalambous
ELEC-C8201 - Control and automation
19/26
Observer design
I Generally speaking, only a subset of the states are readily measurable and available
for feedback.
I Even if all the states were available for feedback, these states should be measured
with a sensor or sensor combinations.
I The cost and complexity of the control system increase as the number of required
sensors increases ⇒ even in situations where extra sensors are available, it may not be
cost effective to employ them
I The matrix L is the observer gain matrix and is to be determined as part of the
observer design procedure
Themistoklis Charalambous
ELEC-C8201 - Control and automation
20/26
I The observer has two inputs, u and y, and one output, x̂, as depicted in the figure
below:
u y
Observer +
x̂ ỹ = y C x̂
x̂˙ = Ax̂ + Bu + Lỹ ⌃
I We do not know x(0) precisely; therefore we must provide an initial estimate x̂(0)
to the observer
We can guarantee that e(t) → 0 as t → ∞ for any initial tracking error e(0) if the
characteristic equation
det λI − (A − LC) = 0
Themistoklis Charalambous
ELEC-C8201 - Control and automation
22/26
Ackermann’s formula for the observer gain matrix
where
Themistoklis Charalambous
ELEC-C8201 - Control and automation
23/26
Integrated full-state feedback and observer
I Substituting the feedback law in equation (2) and rearranging terms in the
observer yields
x̂˙ = (A − BK − LC)x̂ + Ly
I This is the same result as we obtained for the estimation error before, because the
estimation error does not depend on the input
Themistoklis Charalambous
ELEC-C8201 - Control and automation
24/26
I Recall that the underlying system model is given by
ẋ = Ax + Bu
y = Cx
Substituting the feedback law u(t) = −K x̂(t) into the system model yield
ẋ = Ax − BK x̂(t) = Ax − BK(x(t) − e)
= (A − BK)x + BKe (4)
I Understand the separation principle and how to construct state variable controllers.
System
u x y
ẋ = Ax + Bu C
Observer +
Controller x̂ ỹ = y C x̂
K x̂˙ = Ax̂ + Bu + Lỹ ⌃
Themistoklis Charalambous
ELEC-C8201 - Control and automation
26/26