Professional Documents
Culture Documents
Balasaheb M. Patre
October 4, 2018
ẋ = Ax + Bu (1)
y = Cx + Du
where, x= state vector (n-vector)
y =output signal (scalar)
u=control signal (scalar)
A= n × n constant matrix
B= n × 1 constant matrix
C = 1 × n constant matrix
D = Constant (scalar)
Now choose the control signal to be:
u = −Kx (2)
u = −Kx
is of rank n.
Now define
K̂ = KP = k1 ... k2
h i
Then we have
|sI − (A − BK )| = P −1 (sI − A + BK )P
= sI − P −1 AP + P −1 BKP
= sI − Â + B̂ K̂
x = T x̂
x̂˙ = T −1 AT x̂ + T −1 Bu (6)
Let
KT = [δn δn−1 · · · δ1 ] (10)
When u = −KT x̂ is used to control the system given by (6), the
system equation becomes
x̂˙ = T −1 AT x̂ − T −1 BKT x̂
|sI − A + BK | = T −1 (sI − A + BK )T
= sI − T −1 AT + T −1 BKT = 0
Therefore
K = [δn δn−1 · · · δ1 ] T −1
T = MW
I Step 4: Using the desired eigenvalues (Desired closed-loop
poles), write the desired characteristic polynomial:
ẋ = Ax + Bu
where
0 1 0 0
A= 0 0 1 ,B = 0
−1 −5 −6 1
The system uses the state feedback control (u=-Kx). It is desired
to have closed-loop poles at s = −2 + j4, s = −2 − j4 ,s = −10
Determine the state feedback gain matrix K.
First check the controllability matrix.
0 0 0
M = B : AB : A2 B = 0 1 −6
1 −6 31
K = [α3 − a3 : α2 − a2 : α1 − a1 ] T −1
where T=I for this problem because the given state equation is in
the controllable canonical form
Balasaheb M. Patre State Space Design 24 / 92
Determination of matrix K using Transformation Matrix T
K = [200 − 1 : 60 − 5 : 14 − 6]
K = [199 55 8]
Consider the system given by:
ẋ = Ax + Bu
where
0 1 0 0
A = 0 −1 1
,B = 0
0 −1 10 7
The system uses the state feedback controlu = −Kx. It is desired
to have closed-loop poles at s = −1 + j2, s = −1 − j2 ,s = −8
Determine the state feedback gain matrix K.
K = [k1 k2 k3 ]
= s 3 + (6 + k3 )s 2 + (5 + k2 )s + 1 + k1
= s 3 + 14s 2 + 60s + 200
Thus,
6 + k3 = 14, 5 + k2 = 60, 1 + k1 = 200
Therefore
k1 = 199, k2 = 55, k3 = 8
K = [199 55 8]
= s n + α1 s n−1 + · · · + αn−1 s + αn = 0
Since the Cayley-Hamilton theorem states that A
e satisfies its own
characteristic equation, we have
φ(A) e n + α1 A
e =A e n−1 + · · · + αn−1 A
e + αn I = 0 (13)
α3 I + α2 A + α1 A2 + A3 = φ(A) = 0
Since φ(A)=0,
e we obtain
e2
α2 K + α1 K A
e + KA
. .
h i
φ(A) = B .. AB .. A2 B α1 K + K A
e (15)
K
Since system is completely state controllable,i the inverse of the
.. .
h
controllability matrix B . AB .. A2 B exists.
Balasaheb M. Patre State Space Design 32 / 92
Determination of matrix K using Ackermann’s Formula
e2
i−1 α2 K + α1 K A
e + KA
. .
h
B .. AB .. A2 B φ(A) = α1 K + K A
e
K
e2
−1 α2 K + α1 K A
e + KA
B AB A2 B
[0 0 1] φ(A) = [0 0 1] α1 K + K A
e
K
i−1
. .
h
K = [0 0 1] B .. AB .. A2 B φ(A)
This last equation gives the required state feedback gain matrix K
Balasaheb M. Patre State Space Design 33 / 92
Determination of matrix K using Ackermann’s Formula
0 1 0 0
A= 0 0 1 ,B = 0
−1 −5 −6 1
The system uses the state feedback control u = −Kx. It is desired
to have closed-loop poles at s = −2 + j4, s = −2 − j4 ,s = −10
Determine the state feedback gain matrix K.
We use Ackermann’s formula
i−1
K = [0 0 1] B ... AB ... A2 B
h
φ(A)
199 55 8
= −8 159 7
−7 −43 117
0 0 1
.. ..
h i
B . AB . A B = 0 1
2 −6
1 −6 31
−1
0 0 1 199 55 8
K = [0 0 1] 0 1 −6 −8 159 7
1 −6 31 −7 −43 117
K = [199 55 8]
I 6 0) (Must be controllable)
First check controllability (|P| =
I Find full-state feedback regulator gain matrix K of has
elements (r × n)
I Find A − BK (closed loop state dynamic matrix)
I Find |sI − A + BK | (Polynomial of elements of K in s)
I Select desired poles and find characteristic equation for it
I From above two polynomials find the values of elements of K
I Check controllability
|P| = B : AB : A2 B 6= 0
Therefore rank is 3
I Find no. of elements of state feedback regulator gain matrix
(2x3)
k1 k2 k3
i.e. K =
k4 k5 k6
I Find A − BK as
−k1 −k2 −k3
A − BK = k4 (0.01 + k5 ) k6
2k4 2k5 (−0.1 + 2k6 )
Find |sI − A + BK |
I
(s + k1 ) k2 k3
|sI − A + BK | = −k4 (s − 0.01 − k5 ) −k6 =0
−2k4 −2k5 (s + 0.1 − 2k6 )
Show that
0 0 ... 0 −an
1 0 ... 0 −an−1
M −1 AM =
0 1 ... 0 −an−2
.. .. .. .. ..
. . . . .
0 0 ... 1 −a1
Where a1 , a2 , · · · , an are coefficient of the characteristic polynomial
|sI − A| = s n + a1 s n−1 + · · · + an−1 s + an
Balasaheb M. Patre State Space Design 42 / 92
Proof
AM = M B : AB : A2 B = AB : A2 B : A3 B
0 1 −a1
(17)
A3 + a1 A2 + a2 A + a3 I = 0 (18)
Using Equation (18), the third column of the right hand side of
Equation (17) becomes
−a3 B − a2 AB − a1 A2 B = −a3 I − a2 A − a1 A2 B = A3 B
Thus the Equation (17) which is the right hand side of Equation
(16), becomes
0 0 −a3
2 2
0 −a2 = AB : A2 B : A3 B
B : AB : A B B : AB : A B 1
0 1 −a1
Hence, the left hand side and the right hand side of Equation (16)
are the same. We have thus shown that Equation (16) is true.
Consequently,
0 0 −a3
M −1 AM = 1 0 −a2
0 1 −a1
The preceding derivation can be easily extended to the general
case of any positive integer n.
ẋ = Ax + Bu
Define
M = B : AB : · · · : An−1 B
and
an−1 an−2 . . . a1 1
an−2 an−3 ... 1 0
W =
.. .. .. .. ..
. . . . .
a1 1 ... 0 0
1 0 ... 0 0
Where a1 , a2 , · · · , an are coefficient of the characteristic polynomial
Define also
T = MW
show that
0 1 0 ... 0 0
0 0 1 ... 0
0
T −1 AT = .. .. .. .. .. −1 ..
T B =
. . . . . .
0 0 0 ... 1 0
−an −an−1 −an−2 . . . −a1 1
Noting that
0 a 2 a1 1 0
2
T 0 = B : AB : A B
a1 1 0 0
1 1 0 0 1
1
= B : AB : A2 B 0 = B
0
We have
0
T −1 B = 0
1
The derivation shown here can be easily extended to the general
case of any positive integer n.
1. Concept of Observability
2. Concept and Definition of Observer
3. Types of Observer
4. Full order state observer
5. Minimum order observer
ẋ = Ax + Bu (22)
y = Cx (23)
= (A − Ke C ) x̃ + Bu + Ke y (24)
where x̃ is the estimated state and C x̃ is the estimated output.
I Inputs to the observer are the output y and control input u
I Matrix Ke ( observer gain matrix) is weighting matrix to the
correction term involving the difference between measured
output y and estimated output C x̃.
I This term continuously corrects the model output and
improves the performance of the observer.
ė = (A − Ke C ) e (28)
ẋ = Ax + Bu
y = Cx
In designing the full-order state observer, one may solve the dual
problem, that is, solve the pole-placement problem for the dual
system.
ż = A∗ z + C ∗ ν
n = B ∗z
assuming the control signal ν to be
ν = −KZ
be n.
This is the condition for complete observability of the original
system defined by Equation (22) and (23).
Means that a necessary and sufficient condition for observation of
the state of the system defined by Equation (22) and (22) is that
the system be completely observable.
Balasaheb M. Patre State Space Design 65 / 92
Concluding Remarks
where Ke is an n × 1 matrix,
Q = (WN∗)−1
and
∗ .. ∗ ∗ .. .. ∗ n−1
N = C .A C . · · · .(A ) C ∗
an−1 an−2 ··· a1 1
an−2 an−3 ··· 1 0
W =
.. .. .. ..
. . . .
a1 1 ··· 0 0
1 0 ··· 0 0
ẋ = Ax + Bu (30)
y = Cx (31)
We know the Ackermann’s formula for pole-placement for the
defined by Equation (30) and (31)
.. n−1 −1
.. ..
K = [0 0 · · · 0 1] B . AB . · · · . A B φ(A)
−1 −1
C 0 C 0
CA
0
CA
0
Ke = K ∗ = φ(A∗ )∗ .. .. .. ..
= φ(A)
.
.
.
.
CAn−2 0 CAn−2
0
CAn−1 1 CAn−1
1
(33)
Where φ(s) is the desired characteristic polynomial for the state
observer,or
φ(s) = (s − µ1 )(s − µ2 ) · · · (s − µn )
ẋ = Ax + Bu (34)
y = Cx (35)
where
0 20.6 0
A= ,B = , C = [0 1]
1 0 1
The observed state feedback such that
u = −K x̃
a1 = 0, a2 = −20.6
The desired characteristic equation is
Hence, α1 = 20 , α2 = 100
∗ −1 α2 − a2 1 0 100 + 20.6 120.6
Ke = (WN ) = =
α1 − a1 0 1 20 − 0 20
ė = (A − Ke C )e
The characteristic equation is
|sI − A + Ke C | = 0
Define
ke1
Ke =
ke2
s 0 0 20.6 ke1
− + [0 1]
0 s 1 0 ke2
s −20.6 + ke1 2
=
1 s + ke2 = s + ke2 s − 20.6 + ke1 = 0
−1
C 0
Ke = φ(A)
CA 1
where
φ(s) = (s − µ1 )(s − µ2 ) = s 2 + 20s + 100
Thus
φ(A) = A2 + 20A + 100I
−1
0 1 0
Ke = (A2 + 20A + 100I )
1 0 1
120.6 412 0 1 0 120.6
Ke = =
20 120.6 1 0 1 20
x˜˙1
0 −100 x˜1 0 120.6
= + u+ y
x˜˙2 1 −20 x˜2 1 20
ẋ = Ax − BK x̃ = (A − BK ) x + BK (x − x̃) (36)
ẋ = (A − BK ) x + BKe (37)
ė = (A − Ke C ) e (38)
ẋ = Ax + Bu
The state equation for minimum-order observer is
y = Cx