ece 680: linear system review stan zak˙zak/ece680/secondclass.pdf · stan zak˙ school of...

43
ECE 680: L INEAR S YSTEM R EVIEW Stan ˙ Zak School of Electrical and Computer Engineering Purdue University, West Lafayette, IN [email protected] August 18, 2019 1 / 19

Upload: others

Post on 22-Jun-2020

19 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

ECE 680: LINEAR SYSTEM REVIEW

Stan Zak

School of Electrical and Computer EngineeringPurdue University, West Lafayette, IN

[email protected]

August 18, 2019

1 / 19

Page 2: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 3: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 4: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 5: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 6: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 7: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 8: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Outline

Some remarks on state-space representation

Solving the state equation

Solution of the controlled system

Reachability and controllability

Observability

Controller design problem

Pole placement

2 / 19

Page 9: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Remarks on State-Space Representation

Signals are functions of time, which can be scalar-valued orvector-valued

A system is any part of the real world surrounded by a welldefined boundary

The system is influenced by its environment via input signal,u(t) and acts on its environment via output signal y(t)

3 / 19

Page 10: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Remarks on State-Space Representation

Signals are functions of time, which can be scalar-valued orvector-valued

A system is any part of the real world surrounded by a welldefined boundary

The system is influenced by its environment via input signal,u(t) and acts on its environment via output signal y(t)

3 / 19

Page 11: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Remarks on State-Space Representation

Signals are functions of time, which can be scalar-valued orvector-valued

A system is any part of the real world surrounded by a welldefined boundary

The system is influenced by its environment via input signal,u(t) and acts on its environment via output signal y(t)

3 / 19

Page 12: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

State of the System

The state of the system contains all past information of thesystem up to the initial time t0

If we wish to compute the system output for t > t0, we only needu(t) for t > t0 and the initial state x(t0)

4 / 19

Page 13: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

State of the System

The state of the system contains all past information of thesystem up to the initial time t0

If we wish to compute the system output for t > t0, we only needu(t) for t > t0 and the initial state x(t0)

4 / 19

Page 14: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solving Uncontrolled State Equation

Time-invariant linear model

x(t) = Ax(t)

subject to an initial condition

x(0) = x0

Solution, x(t) = eAt x0

5 / 19

Page 15: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solving Uncontrolled State Equation

Time-invariant linear model

x(t) = Ax(t)

subject to an initial condition

x(0) = x0

Solution, x(t) = eAt x0

5 / 19

Page 16: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solving Uncontrolled State Equation—More GeneralCase

x(t) = eA(t−t0)x(t0)

eA(t−t0) = Φ (t , t0)State transition matrix—it relates the state at any instant of timet0 to the state at any other time t

6 / 19

Page 17: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solving Uncontrolled State Equation—More GeneralCase

x(t) = eA(t−t0)x(t0)

eA(t−t0) = Φ (t , t0)State transition matrix—it relates the state at any instant of timet0 to the state at any other time t

6 / 19

Page 18: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

State Equation Solution of Controlled System

Linear Time-Invariant (LTI) controlled dynamic system

x(t) = Ax(t) + Bu(t)

Premultiply by e−At

e−At x(t) = e−At Ax(t) + e−At Bu(t)

7 / 19

Page 19: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

State Equation Solution of Controlled System

Linear Time-Invariant (LTI) controlled dynamic system

x(t) = Ax(t) + Bu(t)

Premultiply by e−At

e−At x(t) = e−At Ax(t) + e−At Bu(t)

7 / 19

Page 20: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solution of Controlled System

Re-arrange

e−At x(t)− e−At Ax(t) = e−At Bu(t)

Note that

ddt

(e−At x(t)

)= −Ae−At x(t) + e−At x(t)

Hence, ddt

(e−At x(t)

)= e−At Bu(t)

8 / 19

Page 21: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solution of Controlled System

Re-arrange

e−At x(t)− e−At Ax(t) = e−At Bu(t)

Note that

ddt

(e−At x(t)

)= −Ae−At x(t) + e−At x(t)

Hence, ddt

(e−At x(t)

)= e−At Bu(t)

8 / 19

Page 22: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Solution of Controlled System

Re-arrange

e−At x(t)− e−At Ax(t) = e−At Bu(t)

Note that

ddt

(e−At x(t)

)= −Ae−At x(t) + e−At x(t)

Hence, ddt

(e−At x(t)

)= e−At Bu(t)

8 / 19

Page 23: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controlled System Model Solution

Integrate

e−At x(t)− x(0) =∫ t

0e−AτBu(τ)dτ

Manipulate to obtain

x(t) = eAt x(0) +∫ t

0eA(t−τ)Bu(τ)dτ

9 / 19

Page 24: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controlled System Model Solution

Integrate

e−At x(t)− x(0) =∫ t

0e−AτBu(τ)dτ

Manipulate to obtain

x(t) = eAt x(0) +∫ t

0eA(t−τ)Bu(τ)dτ

9 / 19

Page 25: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controlled System—General Case

Important Solution Formula

x(t) = eA(t−t0)x(t0) +

∫ t

t0

eA(t−τ)Bu(τ)dτ

10 / 19

Page 26: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Reachability Definition

We say that the system x(t) = Ax(t) + Bu(t) is reachable if for any xf

there is t1 > 0 and a control law, u(t), that transfers x(t0) = 0 tox(t1) = xf

11 / 19

Page 27: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controllability Definition

We say that the system x(t) = Ax(t) + Bu(t) is controllable if there isa control law u(t) that transfers any initial state x(t0) = x0 to theorigin at some time t1 > t0

For continuous LTI systems controllability and reachability areequivalent

12 / 19

Page 28: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controllability Definition

We say that the system x(t) = Ax(t) + Bu(t) is controllable if there isa control law u(t) that transfers any initial state x(t0) = x0 to theorigin at some time t1 > t0

For continuous LTI systems controllability and reachability areequivalent

12 / 19

Page 29: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Controllability Tests

The following are equivalent:

The system x(t) = Ax(t) + Bu(t) is reachable

rank[

B AB · · · An−1B]= n

The matrix

W (t0, t1) =

∫ t1

t0

e−At BB>e−A>t dt

is nonsingular for all t1 > t0

13 / 19

Page 30: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Controllability Tests

The following are equivalent:

The system x(t) = Ax(t) + Bu(t) is reachable

rank[

B AB · · · An−1B]= n

The matrix

W (t0, t1) =

∫ t1

t0

e−At BB>e−A>t dt

is nonsingular for all t1 > t0

13 / 19

Page 31: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Controllability Tests

The following are equivalent:

The system x(t) = Ax(t) + Bu(t) is reachable

rank[

B AB · · · An−1B]= n

The matrix

W (t0, t1) =

∫ t1

t0

e−At BB>e−A>t dt

is nonsingular for all t1 > t0

13 / 19

Page 32: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Some Controllability Tests

The following are equivalent:

The system x(t) = Ax(t) + Bu(t) is reachable

rank[

B AB · · · An−1B]= n

The matrix

W (t0, t1) =

∫ t1

t0

e−At BB>e−A>t dt

is nonsingular for all t1 > t0

13 / 19

Page 33: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability

Suppose the system state is not directly accessible

Instead, we have the output of the system

y = Cx + Du

We still want to know the behavior of the entire state

14 / 19

Page 34: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability

Suppose the system state is not directly accessible

Instead, we have the output of the system

y = Cx + Du

We still want to know the behavior of the entire state

14 / 19

Page 35: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability

Suppose the system state is not directly accessible

Instead, we have the output of the system

y = Cx + Du

We still want to know the behavior of the entire state

14 / 19

Page 36: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability Definition

The systemx = Ax + Buy = Cx + Du

}or equivalently the pair (A,C), is observable if there is a finite t1 > t0

such that for arbitrary u(t) and resulting y(t) over [t0, t1], we candetermine x(t0) from complete knowledge of the system input u andoutput y

15 / 19

Page 37: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Remark on Observability

Note that once x(t0) is known, we can determine x(t) fromknowledge of u(t) and y(t) over any finite time interval [t0, t1]

16 / 19

Page 38: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability Test

The following are equivalent:

The pair (A,C) is observable

The observability matrixC

CA...

CAn−1

∈ Rpn×n

is of full rank n

17 / 19

Page 39: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability Test

The following are equivalent:

The pair (A,C) is observable

The observability matrixC

CA...

CAn−1

∈ Rpn×n

is of full rank n

17 / 19

Page 40: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Observability Test

The following are equivalent:

The pair (A,C) is observable

The observability matrixC

CA...

CAn−1

∈ Rpn×n

is of full rank n

17 / 19

Page 41: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controller Design

Plant (System to be controlled)

x = Ax + Bu

y = Cx

Controller—linear state-feedback

u = −K x + v

18 / 19

Page 42: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Controller Design

Plant (System to be controlled)

x = Ax + Bu

y = Cx

Controller—linear state-feedback

u = −K x + v

18 / 19

Page 43: ECE 680: LINEAR SYSTEM REVIEW Stan Zak˙zak/ECE680/SecondClass.pdf · Stan Zak˙ School of Electrical and Computer Engineering ... August 18, 2019 1/19. Outline Some remarks on state-space

Closed-Loop System

x = (A − BK ) x + Bv

19 / 19