state observers and the kalman filter - unitrentobursi/download/phd_lectures_02july...luenberger...

36
Page 1 Page 1 State Observers and the Kalman filter Prof. Oreste S. Bursi University of Trento Modelling and Control of Dynamic Systems July 6, 2012

Upload: others

Post on 09-Feb-2021

9 views

Category:

Documents


0 download

TRANSCRIPT

  • Page 1Page 1

    State Observers and the Kalman filter Prof. Oreste S. Bursi University of Trento

    Modelling and Control of Dynamic Systems

    July 6, 2012

  • Page 2

    Feedback System

    State variable feedback system:

    Control feedback law:u = -Kx

    The control law requires that

    all state variables are known July 6, 2012

    • x- states; y- measurements; u- input;• A- State transition Matrix; • B - Input matrix; • C - Measurement matrix• r- reference signal - desired state

    variables • K- state feedback gain matrix

    The closed loop system is:

  • July 6, 2012Page 3

    Feedback System

    r - reference signal

    K- state feedback gain matrix

    x- states

    C - measurement matrixB - input matrix

    A- state transition Matrix

    y- measurementsu- input

  • Page 4

    Feedback System

    July 6, 2012

    • Some of the state variables may not be measurable.

    • The cost of many transducers may be too high.

    Availability of State Variables

  • Page 5

    State Observer

    Therefore,- we discard the assumption that all the state variables are measurable.

    -we need something that gives an estimate of the state variables x for feedback, from the measurement of the controlled output y and from the input u.

    This something is termed as the State Observer.

    July 6, 2012

  • Page 6

    State Observer

    July 6, 2012

  • Page 7

    State Observer

    July 6, 2012

  • July 6, 2012Page 8

    Types:

    • Full-order state observer- Estimates all of the state variables

    • Reduced order state observer- Estimates some of the state variables

  • Page 9

    Full- order State Observer

    July 6, 2012

    y - actual output

    x - actual state variables

  • Page 10 July 6, 2012

    Full- order State ObserverLuenberger Observer (1964)

  • Page 11

    Full- order State Observer

    July 6, 2012

    Luenberger Observer (1964)

    Feedback on the error

    between real measurement

    and estimated

    one

    The Luenberger full order

    state observer

  • Page 12

    Full- order State Observer

    July 6, 2012

    Luenberger Observer (1964)

  • Page 13

    Full- order State Observer

    July 6, 2012

    Luenberger Observer (1964)

    Since

    The dynamic behaviour of the error vector depends upon theeigenvalues of

    As with any measurement system, these eigenvalues should allowthe observer transient response to be more rapid than the systemitself (typically a factor of 5), unless a filtering effect is required.

  • Page 14

    Full- order State Observer

    July 6, 2012

    The problem of observer design is essentially the same as theregulator pole placement problem, and similar techniques may beused.

    The following techniques may be used.

    • Direct comparison method• Observable canonical form method• Ackermann’s formula

  • Page 15 July 6, 2012

    • Direct comparison method

    If the desired locations of the closed-loop poles (eigenvalues) of the observer are:

    Then the characteristic polynomial of (A-KeC) is:

    Full- order State ObserverSolving the eigenvalues of (A-KeC)

  • Page 16 July 6, 2012

    • Observable canonical form method

    For a generalized transfer function shown above, the observable canonical form of the state equation may be written as

    Full- order State ObserverSolving the eigenvalues of (A-KeC)

  • Page 17 July 6, 2012

    Full- order State ObserverSolving the eigenvalues of (A-KeC)

  • Page 18 July 6, 2012

    • Ackermann’s Formula- only applicable to systems where u(t) and y(t) are scalar quantities.

    The observer gain matrix may be can be calculated as follows

    where is defined as

    Full- order State ObserverSolving the eigenvalues of (A-KeC)

  • Page 19

    Full- order State Observer

    July 6, 2012

    Effect on a closed-loop system

    Closed-loop control

    system with full order

    state feedback

    The equations of this closed-loop system are

  • Page 20

    Full- order State Observer

    July 6, 2012

    Effect on a closed-loop system

    Control is implemented using observed state variables,

    The equations of this closed-loop system are

    Error equation, , then

    Combining above equations:

    and remembering that the closed loop dynamic of the observer is:

    The system characteristic equation isThe system characteristic equation shows that the desired closed-loop poles

    for the control system are not changed by the introduction of the state observer.

  • Page 21

    Reduced- order State Observer

    July 6, 2012

    A reduced-order state observer does not measure all the state variables.

    If the state vector is of nth order and the measured output vector is of mth order, then it is only necessary to design an (n - m)th order state observer.

    Consider the case of the measurement of a single state variable . The output equation is therefore

  • Page 22

    Reduced- order State Observer

    July 6, 2012

    In the above equation

    The reduced-order observer gain matrix can be obtained using methods discussed earlier in case of full-order observer.

  • Page 23

    The Kalman Filter

    July 6, 2012

    State estimation is the process of extracting a best estimate of a variablefrom a number of measurements that contain noise.

    The classical problem of obtaining a best estimate of a signal bycombining two noisy continuous measurements of the same signal wasfirst solved by Weiner (1949).

    His solution required that both the signal and noise be modelled as randomprocess with known statistical properties.

    Kalman and Bucy (1961) extended this work by designing a stateestimation process based upon an optimal minimum variance filter,generally referred to as a Kalman filter.

    Evolution

  • Page 24 July 6, 2012

    • In the design of state observers, it was assumed that the measurements y = Cx were noise free;

    • However, this is not usually the case: also measurements are corrupted by noise.

    • The observed state vector may also be contaminated with noise.• Hence, a filter is required to remove the effect of noise.• The Kalman filter is used for this purpose: noisy data in - less

    noisy data out;• But delay is the price for filtering;• Need of the process model for describing how states change

    over time.

    The Kalman FilterIntroduction

  • July 6, 2012Page 25

    The Kalman FilterIntroduction

    KF operates by:• Predicting the new state and its uncertainty;• Correcting with the new measurements.

  • Page 26

    The Kalman Filter

    July 6, 2012

    Single Variable Estimation Problem

  • Page 27

    The Kalman Filter

    July 6, 2012

    Single Variable Estimation Problem

    If P is the variance of the weighted mean,(2)

    The optimal value of K is the one that yields the minimum variance, i.e.

    Substitution of equation (1) into (2) gives

  • Page 28

    The Kalman Filter

    July 6, 2012

    Single Variable Estimation Problem

    Substitution of equation (3) into (1) provides

    Equation (4) is illustrated in the next Figure.

  • Page 29

    The Kalman Filter

    July 6, 2012

    Single Variable Estimation Problem

  • July 6, 2012Page 30

    The Kalman FilterModel and initialization

    Process and measurement model:

  • July 6, 2012Page 31

    The Kalman FilterPrediction-Correction

    Gain in the measurement space

    transition uncertainty Actualmeasurement

    Predictedmeasurement

  • Page 32

    The Kalman Filter

    July 6, 2012

    Multivariable Estimation Problem

    Consider a plant that is subject to a Gaussian sequence of disturbances w(kT)with disturbance transition matrix Cu(T). Measurements z(k + 1)T contain a Gaussian noise sequence v(k + 1)T as shown in the following Figure.

    Measurements vector

    State time evolution

  • Page 33

    The Kalman Filter

    July 6, 2012

    Multivariable Estimation Problem

    The term (k+1/k) means data at time k+1 based on information available at time k.

  • Page 34

    The Kalman Filter

    July 6, 2012

    Multivariable Estimation Problem

    The vector measurement is given by:

    (3)

    The Kalman gain matrix K is obtained from a set of recursive equations that commence from some initial covariance matrix P(k|k):

    (4)(5)(6)

    where:z(k+1)T is the measurement vector;C(T) is the measurement matrix;v(k+1)T is a Gaussian noise sequence;Cd(T) is the disturbance transition matrix;Q is the disturbance noise covariance matrix;R is the measurement noise covariance matrix.

  • Page 35

    The Kalman Filter

    July 6, 2012

    prediction

    correction

    The recursive processcontinues by substitutingthe covariance matrixP(k + 1/k + 1) computed

    in equation (6) back into(4) as P(k/k) untilK(k+1) settles to a steadyvalue.

  • Page 36

    Reference

    July 6, 2012

    • Burns R. S., Advanced Control Engineering, 2001, Butterworth-Heinemann, Jordan Hill, Oxford OX2 8DP.