full state feedback for state space...

31
Full State Feedback for State Space Approach

Upload: others

Post on 03-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Full State Feedback for State Space Approach

Page 2: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

State Space Equations

Page 3: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

• Using Cramer’s rule it can be shown that the characteristic equation of the system is :

0]det[ AsI

• Roots (for s) of the resulting polynomial will be the poles of the system.

• These values for s in the above equation are the eigenvalues of [A].

Page 4: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the
Page 5: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Full-State Feedback

Page 6: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Full-State Feedback

BKAA

Kxu

CL

Page 7: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

2

1

x

xx

𝑠2 − 3𝑠 + 2=0

Page 8: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the
Page 9: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the
Page 10: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the
Page 11: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

We have examined linear state space models in a little more depth for the SISO case. Many of the ideas will carry over to the MIMO case.

• similarity transformations & equivalent state representations,

• state space model properties: – controllability, reachability, and stabilizability,

– observability, reconstructability, and detectability,

• special (canonical) model formats.

Page 12: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Linear Continuous-Time State Space Models

A continuous-time linear time-invariant state space model takes the form

where x Rn is the state vector, u Rm is the control signal, y Rp is the output, x0 Rn is the state vector at time t = t0 and A, B, C, and D are matrices of appropriate dimensions.

Page 13: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

State Space Characteristics

• Controllability

– Can a system be controlled, fully?

• Each state requires control.

• Observability

– Are all states observable ?

• Must be observed to be used as feedback

– Sensors may be needed to measure states

– Models may be constructed to estimate states that cannot be measured (Model based control).

Page 14: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Controllability • You are sitting in your car on an infinite, flat plane and facing

north. The goal is to reach any point in the plane by driving a distance in a straight line, come to a full stop, turn, and driving another distance, again, in a straight line. If your car has no steering then you can only drive straight, which means you can only drive on a line (in this case the north-south line since you started facing north). The lack of steering case would be analogous to when the rank of is 1 (the two distances you drove are on the same line).

• Now, if your car did have steering then you could easily drive to any point in the plane and this would be the analogous case to when the rank of is 2.

Page 15: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Controllable Canonical Form We can then choose, as state variables, xi(t) = vi(t), which lead to the following state space model for the system.

The above model has a special form. Any completely controllable system can be expressed in this way.

Page 16: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Controllability of State Space

제 14강 16

• Controllability

A system is completely controllable if there exists an unconstrained control u(t) that can transfer any initial state x(t0) to any other desired location x(t) in a finite time t0tT.

u x Ax B

rank[ ]c nP

2 1Controllability Matrix [ ]n

c

P B AB A B A B

nn

nm Controllable

0c P

nn

Page 17: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Example

제 14강 17

• Controllability

Example 1: Controllability of a system

0 1 2

0 1 0 0

0 0 1 0 u

1

y= 1 0 0 0 u

a a a

x x

x

2 1

2

2

2 2 1

0 0 1

[ ] 0 1

1 ( )

n

c a

a a a

P B AB A B A B 1c P

0 1 2

2

2

2

2 2 1

0 1 0 0

0 0 1 , 0

1

0 0

1 ,

( )

a a a

a

a a a

A B

AB A B

Det. Not 0

Rank is full,

Controllable

Page 18: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Ackermann’s Formula & Full State Feedback

Page 19: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the
Page 20: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Observability of State Space

제 14강 20

• Observability

A system is completely observable if and only if there exists a finite time T such that the initial state x(0) can be determined from the observation history y(t) given the control u(t).

u

y=

x Ax B

Cx

rank[ ]o nP

1Observability Matrix [ ]n T

o

P C CA CA

Controllable

0o P

1n

n1

nn

Page 21: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Example 2

제 14강 21

Example 2: Observability of a system

0 1 2

0 1 0 0

0 0 1 0 u

1

y= 1 0 0 0 u

a a a

x x

x

1

1 0 0

[ ] 0 1 0

0 0 1

n T

o

P C CA CA 1o P

0 1 2

2

0 1 0

0 0 1 ,

1 0 0

0 1 0 ,

0 0 1

a a a

A

C

CA

CA

Observable

• Observability

Page 22: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Example 3

Example 3: Controllability and Observability of a two-state system

2 0 1u

1 1 1

y= 1 1

x x

x

0c o P P

1 2 1 2, ,

1 2 1 2

1 11 1 , 1 1 ,

1 1

c

T

o

B AB P B AB

C CA P C CA

Not Controllable and Not Observable

• Observability

1 2

1 2 1 2 1

1 2

2 ( )

y x x

x x x x x u u

x x

Page 23: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Exercise

Is the following system completely state controllable and completely

observable?

Page 24: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Matlab Commands • obsv

– obsv (A,C) returns the observability matrix [C; CA; C(A^2) ... C(A^n)]

– If rank is full then it is observable

– rank(obsv(A,C) )

• ctrb

– ctrb(A,B) returns the controllability matrix [B AB (A^2)B ...]

– If rank is full then it is controllable

– rank(ctrb(A,B) )

Page 25: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

More Matlab • K = place(A,B,p)

– computes a feedback gain matrix K that achieves the desired closed-loop pole locations p, assuming all the inputs of the plant are control inputs. The length of p must match the row size of A.

• K= acker (A,B,p)

– uses Ackermann's formula to calculate a gain vector k such that the state feedback places the closed-loop poles at the locations p. Limited to single input systems.

Page 26: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Matlab Commands

A=[0 1 0; 0 0 1; -6 -11 -6]

B=[0 0 1]'

C=[20 9 1]

D=[0]

Mo=obsv(A,C)

rank(Mc)

Mc=ctrb(A,B)

rank(Mo)

Page 27: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Mo =

20 9 1

-6 9 3

-18 -39 -9

ans =

3

Mc =

0 0 1

0 1 -6

1 -6 25

ans =

3

Thus, the answer is YES!

A = 0 1 0

0 0 1

-6 -11 -6

B =

0

0

1

C = 20 9 1

D = 0

Page 28: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Test for Controllability

Theorem : Consider the state space model

(i) The set of all controllable states is the range space of the controllability matrix c[A, B], where

(ii) The model is completely controllable if and only if where c[A, B] has full row rank.

Page 29: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Example

Consider the state space model

The controllability matrix is given by

Clearly, rank c[A, B] = 2; thus, the system is completely

controllable.

Page 30: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

Example

For

The controllability matrix is given by:

Rank c[A, B] = 1 < 2; thus, the system is not completely controllable.

Page 31: Full State Feedback for State Space Approachfaculty.mercer.edu/jenkins_he/documents/FullStateFeedback.pdf · • Roots (for s) of the resulting polynomial will be the poles of the

We see that controllability is a black and white issue: a model either is completely controllable or it is not. Clearly, to know that something is uncontrollable is a valuable piece of information. However, to know that something is controllable really tells us nothing about the degree of controllability, i.e., about the difficulty that might be involved in achieving a certain objective.