ee16b designing information devices and systems iiee16b/fa17/lec/lecture5a.pdfcontrol- state space...

35
EE16B M. Lustig, EECS UC Berkeley EE16B Designing Information Devices and Systems II Lecture 5A Control- state space representation

Upload: others

Post on 07-Mar-2021

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

EE16B

Designing Information

Devices and Systems II

Lecture 5A

Control- state space representation

Page 2: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Announcements

• Last time:

–  Bode plots

–  Resonance systes and Q

• HW 4 extended to Friday

• No hw this week.

–  Study for the midterm!

–  Posted midterm practice

Page 3: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Today

• Start a new module: Control

• Describe dynamic systems as a state-space model

–  Extremely powerful model

• Show some concrete examples of how to contruct state space models

Page 4: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 5: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 6: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 7: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 8: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 9: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 10: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Brain Machine Interface

http://news.sky.com/story/woman-uses-her-mind-to-control-robotic-arm-10460512

Page 11: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Page 12: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Blood Oxigenation in the Brain

Q(t): Total deoxyhemoglobin

V(t): Venous volume

Fin(t): Volume flow rate into tissue (ml/s)

Fout(t): Volume flow rate out of tissue (ml/s)

Ca: Arterial O2 concentration

E: Net extract of O2 from blood Buxton, Richard B., Eric C. Wong, and Lawrence R. Frank. "Dynamics of blood flow and oxygenation changes during brain activation: the balloon model."

Magnetic resonance in medicine 39.6 (1998): 855-864.

Page 13: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Blood-Oxygen-Level-Dependent Signal

Diamagnetic Hb

Paramagnetic Hbr

Ogawa S. et al, 1992

Oxyhemoglobin

(diamagnetic)

Deoxyhemoglobin

(paramagnetic)

Brain tissue

(diamagnetic)

Page 14: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

M. Lustig, EECS UC Berkeley

Brain Mapping with MRI

Page 15: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Control Design Steps

1.  Describe physics with a differential or difference equations

2.  Design control algorithms that manipulate these equations for desired behavior

⇒Continuous-time

⇒Discrete-time Often where the “art” is

Page 16: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

State Space Models

n first order (but typically coupled)differential equations instead of a single nth order

control variable

“state vector”

“state variables”

State eqn:

Page 17: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

State Space Models

control variable

Free running

Controlled input

with disturbance

disturbance

Page 18: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Reminder:

Today: write state model directly.

2nd order diff. eq.

example:

L ↓i

current

C + - v

Voltage

2

-

Page 19: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 1: Pendulum

⇒acceleration

} ⇒tangent velocity

}

} }

( )

Page 20: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 1 Cont.

Two 1st order diff. Eq. instead of 1 2nd order

f(~x(t))

Page 21: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 2: RLC Circuits

From KVL:

R L C

u

2

Page 22: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Discrete Time Systems

In discrete-time systems, x(t) ,evolves according to a difference equation

Page 23: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 3: Manufacturing

s(t): inventory at the start of day t

g(t): goods manufactured on day t (tomorrow inventory)

r(t): raw material available in the morning (becomes goods)

u(t): raw materials ordered today (arrives next AM)

w(t): amount sold

State { control {

Disturbance {

Page 24: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 3: Manufacturing

s(t): inventory at the start of day t

g(t): goods manufactured on day t (tomorrow inventory)

r(t): raw material available in the morning (becomes goods)

u(t): raw materials ordered today (arrives next AM)

w(t): amount sold

State { control {

Disturbance {

Page 25: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 4: EECS Professors

p(t): EECS professors in year t

r(t): # of industry researchers

δ < 1 : fraction that leave the profession

u(t): average # of PhD/prof/year

Ɣ: fraction of new PhD that become professors

} without input will diminish to 0

Page 26: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Example 4: EECS Professors

u(t): average # of PhD/prof/year

Ɣ: fraction of new PhD that become professors

# of new PhDs = p(t)u(t)

Page 27: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Linear Systems

When the state equation is linear

n×n n×1 for scalar u n×m for m inputs

Page 28: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Revisiting Examples

Q: Is example 1 linear?

Q: example 2 linear?

A: Linear

A: Non Linear

Page 29: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Revisiting Example 2:

A B

Linear relationship:

2

Page 30: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Revisiting Examples

Q: Is example 3 linear?

A: Linear

A Bu Wu x(t) → x(t+1) →

Page 31: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Revisiting Examples

Q: Is example 3 linear?

A: Linear

A Bu Wu x(t) → x(t+1) →

Page 32: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Revisiting Examples

Q: Is example 4 linear?

A: non Linear

Page 33: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

State variables are not unique!

Let T be an invertible matrix:

Then,

Changing State Variable

Page 34: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Changing State Variables

Can be written as,

Define:

Similarly for continuous systems!

Next: We will see how a special choice of T will make it easy to analyze system properties like stability, and controllability

Page 35: EE16B Designing Information Devices and Systems IIee16b/fa17/lec/Lecture5A.pdfControl- state space representation. EE16B M. Lustig, EECS UC Berkeley Announcements • Last time: –

EE16B M. Lustig, EECS UC Berkeley

Summary

• Learned to describe systems in a state-space model

–  Extremely powerful model!!!

• State space model leads to coupled

–  1st order (coupled) differential equations (Cont. time)

–  1st order (coupled) difference equations (Disc. time)

• Talked about linear systems

–  Described state evolution in matrix form

• Showed how to change state variables

• Next: Linearization of non-linear systems