me 233 review · 2016. 5. 12. · 1 me 233 advanced control ii continuous time results 2 kalman...

33
1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

Upload: others

Post on 22-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

1

ME 233 Advanced Control II

Continuous time results 2

Kalman filters

(ME233 Class Notes pp.KF7-KF10)

Page 2: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

2

Outline

• Continuous time Kalman Filter

• LQ-KF duality

• KF return difference equality

– symmetric root locus

• ARMAX models

Page 3: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

3

Stochastic state model

Consider the following nth order LTI system with

stochastic input and measurement noise:

Where:

• deterministic (known) input

• Gaussian, white noise, zero mean, input noise

• Gaussian, white noise, zero mean, meas. noise

• Gaussian

Page 4: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

4

Assumptions

• Initial conditions:

• Noise properties (in addition to Gaussian),:

Page 5: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

Conditional estimation

• Conditional state estimate

5

• Conditional state estimation error covariance

Page 6: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

6

CT Kalman Filter

Kalman filter:

Where:

Page 7: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

7

Steady State KF Theorem:

1) If the pair (C, A) is observable (or detectable):

The solution of the Riccati differential equation

Converges to a stationary solution, which satisfies the

Algebraic Riccati Equation (ARE):

Page 8: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

8

Steady State KF Theorem:

2) If in addition to 1) the pair (A,B’w) is controllable (stabilizable), where

The solution of the Algebraic Riccati Equation (ARE):

is unique, positive definite (semi-definite) , and the close loop observer

matrix

is Hurwitz.

Page 9: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

9

Steady State Kalman FilterTheorem:

3) Under stationary noise and the conditions in 1) and 2),

The observer residual

of the KF:

becomes white

Page 10: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

10

KF as a innovations (whitening) filter

White noise

input Colored noise

output

White noise

output

plant

Kalman filter

W(s) Y(s)+

C Bw (s)

-

+

L

Y(s)

Y(s)^

~

C (s)

Page 11: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

11

LQR dualityCost:

Where:

Page 12: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

12

Kalman Filter & LQR DualityComparing ARE’s and feedback gains, we obtain the following

duality

LQR KF

P M

A AT

B CT

R V

CQT B’w = BwW 1/2

K LT

(A-BK) (A-LC)T

duality

Page 13: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

13

W(s) Y(s)+

C Bw (s)

-

+

L

Y(s)

Y(s)^

~

C (s)

KF return difference equality

Page 14: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

14

KF root locus for SISO Systems

W(s) Y(s)+

C Bw (s)

-

+

L

Y(s)

Y(s)^

~

C (s)

roots are plant poles

roots are Kalman filter poles

Page 15: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

15

KF symmetric root locus for SISO Systems

roots are plant poles

roots are Kalman filter poles

Page 16: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

16

KF Loop gain and phase margins (SISO)

Consider the closed loop sensitive transfer function

-

+

L

Y(z) Y (z)o

Y (z)o

~

C (z)

Page 17: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

17

KF Loop phase margins (SISO)

Since,

The phase margin of is greater than or equal

to 60 degrees.

-

+

L

Y(z) Y (z)o

Y (z)o

~

C (z)

Page 18: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

18

KF Loop gain margins (SISO)

Estimator was designed for

Estimator is guaranteed to remain asymptotically stable for

-

+

L

Y(z) Y (z)o

Y (z)o

~

C (z)

Page 19: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

SISO ARMAX model:

19

SISO ARMAX stochastic models

(Hurwitz)

Kalman filter innovations (residual)

Page 20: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

20

Y(s)

U(s)

+

Y(s)~

SISO ARMAX stochastic models

one random

white noise

input

Page 21: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

21

Outline

– Continuous time Kalman Filter

– LQ-KF duality

– KF return difference equality

• symmetric root locus

– ARMAX models

Additional material:

• Derivation of continuous time Kalman Filter

Page 22: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

22

Derivation of the CT Kalman Filter

1. Approximate the CT state estimation problem by a

DT state estimation problem .

2. Obtain the DT Kalman filter for the DT state

estimation problem.

3. Obtain the CT Kalman filter from the DT Kalman

filter by taking the limit as the sampling time

approaches to zero.

Page 23: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

23

CT Kalman Filter

Consider the following nth order LTI system with

stochastic input and measurement noise:

Where:

• deterministic input

• Gaussian, white noise, zero mean, input noise

• Gaussian, white noise, zero mean, meas. noise

• Gaussian

Page 24: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

24

Derivation of the CT Kalman Filter

1. Approximate the CT state estimation problem by a

DT state estimation problem .

2. Obtain the DT Kalman filter for the DT state

estimation problem.

3. Obtain the CT Kalman filter from the DT Kalman

filter by taking the limit as the sampling time

approaches to zero.

Page 25: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

25

Derivation of the CT Kalman Filter

1. Approximate the CT state estimation problem by a

DT state estimation problem :

• State and output equations:

Page 26: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

26

Derivation of the CT Kalman Filter

• Covariances (from pages 48-52 in random process

lecture 8):

Notice that:

Page 27: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

27

Derivation of the CT Kalman Filter

• Covariances:

Notice that:

Page 28: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

28

Derivation of the CT Kalman Filter

2. Obtain the DT Kalman filter for the DT state

estimation problem.

Page 29: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

29

Derivation of the CT Kalman Filter3) Obtain the CT Kalman filter from the DT Kalman filter.

• State Equation:

Page 30: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

30

Derivation of the CT Kalman Filter

Taking limit as

Page 31: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

31

Derivation of the CT Kalman Filter

Kalman filter gain

Page 32: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

32

Derivation of the CT Kalman Filter

Riccati equation

Subtracting from both sides and dividing by

Page 33: ME 233 Review · 2016. 5. 12. · 1 ME 233 Advanced Control II Continuous time results 2 Kalman filters (ME233 Class Notes pp.KF7-KF10)

33

Derivation of the CT Kalman Filter

Taking

we obtain