Lab 4 Observer Design
Lab 4 Observer Design
Objective
The objective of this Lab is to learn the estimator design and implement it with
full state feedback control for regulator.
Apparatus
MATLAB Software
Introduction
The basic estimator design involves the creating the states using the output of the system.
The simplest form of observer is the Luenberger Observer which uses the system
mathematical model and compare the output of the system and the mathematical model and
the difference is amplified and fed back to estimate the correct value of the state.
The differential equation of the observer is
X˙ =A ^
^ X + BU + L(Y −Y^ )
Here ^X ∧Y^ represent estimated states and L is the observer gain. The gain is decided on the
basis of poles of the observer and how fast the error needs to be eliminated.
The goal of the observer is to provide an estimate x so that x → ^x ast → ∞ Remember that we
do not know x (t 0) precisely; therefore, we must provide an initial estimate ^x (t 0) to the
observer. Define the observer estimation error as
e (t )=x ( t )−^x (t)
The observer design should produce an observer with the property that e (t) → 0 as t → 0. One
of the main results of systems theory is that if the system is completely observable, we can
always find L so that the tracking error is asymptotically stable as desired. Taking the time-
derivative of the estimation error yields
ė (t )= ( A−LC ) e (t)
The error will approach zero ( will approach ) if the matrix is stable (has negative
eigenvalues)
the observer design process reduces to finding the matrix L such that the roots of the
characteristic equation lie in the left half-plane. This can always be accomplished if the
system is completely observable.
Example:
Consider the Inverted pendulum the system matrix is
• l = 0.098 m
• g=9.8 m/ s2
• m=0.825 kg
• M=8.085 kg
MATLAB Result
detPc =
196.5402
detPo =
P =
-3.0000 + 2.0000i
-3.0000 - 2.0000i
-5.0000 + 0.0000i
-6.0000 + 0.0000i
K =
L =
Conclusion
I. Determine K such that det(AI - (A - BK)) = 0 has roots in the left half-plane and place
the poles appropriately to meet the control system design specifications
II. Determine L such that det(AI - (A - LC)) = 0 has roots in the left half-plane and place
the poles to achieve acceptable observer performance
III. Connect the observer to the full-state feedback law using
IV. U(t) = -Kx hat(t).
Conclusion
This response is almost identical to the response achieved when it was assumed that we had full access to the
state variables. This is because the observer poles are fast, and because the model we assumed for the
observer is identical to the model of the actual plant (including the same initial conditions). Therefore, all of the
design requirements have been met with the minimal control effort expended.