State Feedback Prof. Seungchul Lee Industrial AI Lab. State Space - - PowerPoint PPT Presentation

β–Ά
state feedback
SMART_READER_LITE
LIVE PREVIEW

State Feedback Prof. Seungchul Lee Industrial AI Lab. State Space - - PowerPoint PPT Presentation

State Feedback Prof. Seungchul Lee Industrial AI Lab. State Space Representation Given a point mass on a line whose acceleration is directly controlled: We want to write this on a compact/general form On a state space form 2 Block


slide-1
SLIDE 1

State Feedback

  • Prof. Seungchul Lee

Industrial AI Lab.

slide-2
SLIDE 2

State Space Representation

  • Given a point mass on a line whose acceleration is directly controlled:
  • We want to write this on a compact/general form
  • On a state space form

2

slide-3
SLIDE 3

Block Diagram

3

slide-4
SLIDE 4

The Car Model

  • If we care about/can measure the velocity:
  • If we care about/can measure the position we have the same general equation with different

matrices:

4

slide-5
SLIDE 5

Output Feedback

  • Control idea: move towards the origin 𝑠 = 0

5

slide-6
SLIDE 6

Output Feedback

  • Assume 𝛿 = 0
  • Pick, if possible, 𝐿 (= 1) such that
  • What's the problem?

– the problem is that we do not take the velocity into account – we need to use the full state information in order to stabilize this system

6

slide-7
SLIDE 7

Output Feedback in MATLAB

7

slide-8
SLIDE 8

State Feedback

  • To move forwards origin, 𝑠 = 0

8

slide-9
SLIDE 9

State Feedback

  • Pick, if possible, 𝐿 such that the closed-loop system is stabilized

9

slide-10
SLIDE 10

State Feedback

  • Let's try

– Asymptotically stable – Damped oscillations

  • Let's do another attempt

– Asymptotically stable – No oscillations

10

slide-11
SLIDE 11

State Feedback

  • Eigenvalues Matter

– It is clear that some eigenvalues are better than others. Some cause oscillations, some make the system respond too slowly, and so forth ... – We will see how to select eigenvalues and how to pick control laws based on the output rather than the state.

11

slide-12
SLIDE 12

State Feedback in MATLAB

12

slide-13
SLIDE 13

State Feedback in MATLAB

13

slide-14
SLIDE 14

Pole Placement

  • Back to the point-mass, again

14

slide-15
SLIDE 15

Pole Placement

  • Desired eigenvalues: let's pick both eigenvalues at βˆ’1
  • Pick the control gains such that the eigenvalues (poles) of the closed loop system match the desired

eigenvalues

– Questions: is this always possible? (No)

  • How should we pick the eigenvalues? (Mix of art and science)

– No clear-cut answer – The "smallest" eigenvalue dominates the convergence rage – The bigger eigenvalues, the bigger control gains/signals

15

slide-16
SLIDE 16

Example

  • Let's pick both eigenvalues at βˆ’1
  • What's at play here is a lack of controllability, i.e., the effect of the input is not sufficiently rich to

influence the system enough

16

slide-17
SLIDE 17

Pole Placement in MATLAB

17

slide-18
SLIDE 18

Controllability

  • When can we place the eigenvalues using state feedback?
  • When is 𝐢 matrix (the actuator configuration) rich enough so that we can make the system do

whatever we want it to do?

  • The answer revolves around the concept of controllability
  • The system ሢ

𝑦 = 𝐡𝑦 + 𝐢𝑣 is controllable if there exists a control 𝑣(𝑒) that will take the state of the system from any initial state 𝑦0 to any desired final state 𝑦𝑔 in a finite time interval

  • Given a discrete-time system

18

slide-19
SLIDE 19

Controllability

  • Given a discrete-time system
  • We would like to drive this system in π‘œ steps to

a particular target state π‘¦βˆ—

  • We want to solve
  • The system (𝐡, 𝐢) is controllable if and only if

𝐷 has full row rank

19

slide-20
SLIDE 20

Controllability

20

slide-21
SLIDE 21

Controllability in MATLAB

  • ctrb(A, B) is the MATLAB function to form a controllability matrix, 𝐷

21

slide-22
SLIDE 22

Observer

  • We now know how to design rather effective controllers using state feedback.
  • But what about 𝑧 ?
  • The predictor-corrector (observer)

– Assume 𝐢 = 0 or – Assume that we are aware of 𝐢 and 𝑣 – Make a copy of the system – Add a notion of how wrong your estimate is to the model

22

slide-23
SLIDE 23

Observer

  • The predictor-corrector (observer)

– Make a copy of the system – Add a notion of how wrong your estimate is to the model

  • What we want to stabilize (drive to zero) is the estimation error, i.e., the difference between the

actual state and the estimated state 𝑓 = 𝑦 βˆ’ ො 𝑦

23

slide-24
SLIDE 24

Observer

  • Just pick 𝑀 such that the eigenvalues to 𝐡 βˆ’ 𝑀𝐷 have negative real part !!!
  • We already know how to do this β†’ Pole-placement
  • Does this always work?

– No

24

slide-25
SLIDE 25

Observability

  • Need to redo what we did for control design to understand when we can recover the state from the
  • utput
  • The system is observable if, for any 𝑦(0), there is a finite time 𝜐 such that 𝑦(0) can be determined

from 𝑣(𝑒) and 𝑧(𝑒) for 0 ≀ 𝑒 ≀ 𝜐

  • Given a discrete time system without inputs

25

slide-26
SLIDE 26

Observability

  • Can we recover the initial condition by collecting π‘œ output values?
  • The system (𝐡, 𝐷) is observable if and only if 𝑆 has full column rank
  • The initial condition can be recovered from the outputs when the so-called observability matrix has

full rank.

26

slide-27
SLIDE 27

Observability

27

slide-28
SLIDE 28

Observability in MATLAB

  • obsv(A, C) is the MATLAB function to form a observability matrix

28

slide-29
SLIDE 29

Now, How Do We Put Everything Together ?

  • Step 1) Design the stat feedback controller as if we had 𝑦 (which we don't)
  • Step 2) Estimate 𝑦 using an observer (that now also contains 𝑣)

29

slide-30
SLIDE 30

Now, How Do We Put Everything Together ?

  • Step 1) Design the stat feedback controller as if we had 𝑦 (which we don't)
  • Step 2) Estimate 𝑦 using an observer (that now also contains 𝑣)

30

slide-31
SLIDE 31

The Separation Principle

  • Want both 𝑦 and 𝑓 to be stabilized (𝑠 = 0)
  • This is an (upper) triangular block matrix

– Its eigenvalues are given by the eigenvalues of the diagonal blocks !

  • (The Separation Principle) Design 𝐿 and 𝑀 independently to satisfy

31

slide-32
SLIDE 32

Everything in Block Diagram

32