Lecture 13
Lecture 13
Theme: Estimating the state and using the estimate for • A new view on integral action
feedback.
y = Cx d x̂
Wo observability matrix = A x̂ + Bu
dt
dy
= CAx y
dt
Introduce error x̃ = x − x̂
dy
..
.
−1
dt d x̃
x = Wo
= A( x − x̂) = A x̃
d n− 1 y
.
.
dt
= CAn−1 x
.
dtn−1 n− 1
d y
n − 1
Works if A stable, but it makes no use of u.
dt
c K. J. Åström August, 2000 1
Two Ways to Calculate the State An Alternative Solution
By differentiating the output dx
= Ax + Bu
dt
T
dy d n− 1 y y = Cx
x = Wo−1 y ...
dt dtn−1
Drive the model by both u and y
This method has the drawback that it only uses the output and
d x̂
that it is differentiated many times which is highly sensitive to = A x̂ + Bu + K ( y − C x̂ )
dt
noise.
Introduce error x̃ = x − x̂
By integrating the input d x̃
= A( x − x̂ ) − K ( y − C x̂) = ( A − K C ) x̃
dt
d x̂
= A x̂ + Bu Notice that use of output y gives extra freedom.
dt
This method has the drawback that it only uses the input and Determine matrix K so that the matrix A − K C has all its eigenval-
that it only works if the matrix A is stable. ues in the left half plane, then x̃ will go to zero!
Input-output relations A matrix and its transpose have the same eigenvalues. We
have
1 2ζ ω o s + ω 2o
X̂ 1 ( s) = U ( s) + Y ( s) ( A − K C ) T = AT − C T K T
s2 + 2ζ ω o s + ω 2o s2 + 2ζ ω o s + ω 2o
s + 2ζ ω o ω 2o s
X̂ 2 ( s) = U ( s) + 2 Y ( s)
s2 + 2ζ ω o s + ω o
2 s + 2ζ ω o s + ω 2o State feedback and observer design are the same problem.
The same software can be used. Use state feedback program
to obtain the observer gain by feeding it by A T and C T instead
dy of A and B . Transposing L give the observer gain.
Physical interpretation. Compare with x̂2 =
dt
1 0 0 ... 0
1 0 ... 0
−a1 1 0 ... 0 b1 k1
−a1 ... 0 b2 k2
1 0 0
− a1 1 ... 0 −a2
0 1
a − a2 −a1 1 ... 0
0
d ẑ
..
.
.
−a2 −a1 ... =
2
W̃o =
1
,
W̃o−1 =
.
ẑ +
.
.
u+
.
.
( y − ẑ1)
dt
..
..
.
.
− a n− 1 0 0 1
bn−1
kn−1
. . . ... 1 −an − a n− 1 ... 1 −an 0 0 0 bn kn
c K. J. Åström August, 2000 3
Summary Output Feedback
If the system Consider a system which is observable and controllable
dx dx
= Ax = Ax
dt dt
y = Cx y = Cx
is observable its state can be determined by the observer Determine the state with an observer and use state feedback
from the observed state. The controller is
d x̂
= A x̂ + Bu + K ( y − Cx)
dt u = − L x̂
d x̂
• Combine measurements with mathematical model - = A x̂ + Bu + K ( y − C x̂ )
dt
indirect measurements -redundancy
• Sensor fusion in AI terminology The controller is a dynamical system whose dynamics is
represented by the observer
• Determination of filter gain K similar to state feedback
design. Relation to the Kalman filter
d x̂
= A x̂ + Bu + K ( y − C x̂)
dt Observer contains a copy of the process model
y
Introduce the state x̃ = x − x̂ instead of x̂ . Σ −1
dx
= Ax + Bu = Ax − B Lx̂ = Ax − B L( x − x̃) = ( A − B L) x + B Lx̃ K
dt
d x̃
= ( A − K C) x̃
dt u
Σ ∫
x yˆ
B C
Characteristic equation
A
det ( sI − A + B L) det ( sI − A + K C) = 0
c K. J. Åström August, 2000 4
Block Diagram of Closed Loop system Observers and State Feedback - A Summary
Design of a controller for
xˆ u y dx
Observer −L Process = Ax + Bu, y = Cx
dt
c K. J. Åström August, 2000 5
Constant Disturbance at Process Input Example - The Car
Constant disturbance x 3 = v, physical interpretation.
dx
= Ax + B (u + v)
dt 0 1 00
dx
dv
=0 = 0 0 1x +1u
dt dt
0 0 0 0
Feedback from estimated states y = Cx = ( 1 0 0 ) x
k3 0 s
• A nice structure
choose k1 = a + 2ζ ω o, k2 = 2aζ ω o + ω 2o , and k3 = aω 2o to give
characteristic polynomial • Decoupling of estimation of disturbances K
• Reduction of disturbances L
( s + a)( s2 + 2ζ ω o s + ω 2o ) = s3 + ( a + 2ζ ω o ) s2 + (2aζ ω o + ω 2o ) s + aω 2o
• Response to reference signals
c K. J. Åström August, 2000 6
Example - The Car Example - The Car ...
A Simulation Summary
2 y och ym • An elegant approach to control system design
1 • Interesting system structure with three components:
0 – state feedback
0 5 10 15
– observer
20 uff och ufb
– reference trajectory generator
10
• Strong similarity between state feedback and observers
0
• Sensor fusion and diagnosis y − ŷ
0 5 10 15
v and ve • A new interpretation of integral action: disturbance estima-
1
tor. Can be adapted to other signals.
0.5
0
0 5 10 15
c K. J. Åström August, 2000 7