Professional Documents
Culture Documents
OPTIMAL Estimator
Chapter 4
Lecture 6
Dr. N. Magaji
Introduction of Kalman Filter
4.4 Introduction
The Kalman Filter algorithm was developed by Rudolf E. Kalman around
ELE8306 (LECTURE 6)
1960 [8].There is a continuous-time version of the Kalman Filter and
several discrete-time versions. (The discrete-time versions are
immediately ready for implementation in a computer program.).
Kalman Filters have the same structure as the observers.
4.5 Classes of algorithm
Discrete-time Kalman Filter (DKF)
Continuous-Discrete Kalman Filter (CDKF)
ELE8306 (LECTURE 6)
Extended Kalman Filter (EKF)
Continuous-time Kalman Filter (CKF)
Here the Discrete-time Kalman Filter (DKF) , Extended Kalman Filter
(EKF) will be introduce but Continuous-time Kalman Filter (CKF) will be
treated.
Assumptions:
(i ) E ww = W and E vv V
T T
(ii) W and V are statistically independent (uncorrelated in time and with each
other)
Example 4.4
Consider a given plant characterized by the following state space model
0 1 0 1 0
x x 1 u 0 0 w
0.89 1.8
ELE8306 (LECTURE 6)
z [1, 0]x v
With
E (v(k )) 0; var(v(k )vT ( k )) R V 1
1 0
E ( w(k )) 0; var( w(k ) w (k )) Q
T
0 1
Simulate the optimal time-varying DT Kalman Filter for the system
0 1 0 1 0
x x u w
0.89 1.8 1 0 0 ,
z [1, 0]x v
K=L= PeCV -1
PeA T +APe +BBT -PeC T V -1CPe =0 .
Example 4.5
Design a kalman filter or Kalman-Busy Filter
x1 0 1 x1 0 0
x 0 0 x 1 u 1 w
2 2
ELE8306 (LECTURE 6)
y 1,0 x v
Now we design the gain L of our Kal man filter
x A LC x Bu y
Solution
rank[A, B ] 2 ( A, B )is controllable
C
rank 2 (A,C) is observable
CA
V -1 = 1
PeA T +APe +BBT -PeC T V -1CPe =0
P11 P12 0 0 0 1 P11 P12 0
P 0 1 PeCT 1/ CPe=0
12 P22 1
0 0 0 P12
P22 1
1 P11 P12 1 P P12
PeCT 1/ CPe= 1 0 11
P12 P22 0 P12 P22
Example 2.1 (cont.)
ELE8306 (LECTURE 6)
Example 4.6
Consider the system below design a Kalman filter gain and
covariance matrix P
ELE8306 (LECTURE 6)
Using lqe or dlqe in matlab
x1 0.0213 0 0 x1 8.9362 0.1 0 0 w1
x 0.0006 0.005 0 x2 0 u 0 0.1 0 w2
2
x 3 0 0.00038 0.0023 x3 0 0 0 0.00132 w3
1 0 0 x1
y 0 1 0 x2
0 0 1 x3
0.01 0 0 0.1 0 0
Q 0 0.01 0 ; R 0
0.1 0
0 0 7.46 0 0 0.1
From general linear Kalman filter equation
x Ax Bu Gw State equation
y Cx Du v Measurements
[L,P,E] = lqe(A,G,C,Q,R,N) returns the observer gain matrix L
such that the stationary Kalman filter