linear state feedback - ulisboa · cee – linear state feedback j. miranda lemos ist-deec- ac...

121
CEE Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 1 Linear state feedback J. Miranda Lemos Professor Catedrático do IST 2019 [JML-CEE2019] Caps. 4 e 5, pp. 143 - 238 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5 -2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5

Upload: others

Post on 07-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

1

Linear state feedback

J. Miranda Lemos

Professor Catedrático do IST

2019

[JML-CEE2019] Caps. 4 e 5, pp. 143 - 238

-2.5 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 2.5-2.5

-2

-1.5

-1

-0.5

0

0.5

1

1.5

2

2.5

Page 2: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

2

Plan

1.Motivation

2.Controlability and Observability

3.Linear state feedback (regulation)

4.Assymptotic observers

5.Separation theorem

6.Reference tracking and integral effect

Page 3: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

3

1.Motivation to linear state feedback

Objective:

Motivate controller design based on linear state feedback. Present structural

issues related to the concepts of controllability and observability.

Page 4: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

4

Example: Control of the magnetic suspension

In closed loop:

ks

ksY

2)(

With proportional control the closed-loop system is always marginally stable.

ku y1

s

+

-

r

2

kj

kj

Page 5: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

5

Velocity feedback

)()1(

)(1

2sR

skKs

KsY

Closed-loop characteristic equation:

01

2 KsKks

By adjusting the coefficients we can place the closed-loop poles arbitrarily.

1s

u y+

-

r1s

K

k1

++

ku y1

s

+

-

r

2

1+k s1

Page 6: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

6

For instance, if we want to place the poles at j1 , the characteristic

polynomial is

221)1( 22 sss

Compare with the polynomial obtained by velocity feedback

KsKks 1

2

Equating the coefficients of both polynomials we get the algebraic system of

equations in the gains

2

21

K

Kk

Important question: Does this

system of equation always have a

solution?

Page 7: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

7

Conclusion

State feedback improves design flexibility because it yields a systematic

procedure to force closed-loop poles

Two important questions

Access to the state measure. The state is not always available for direct

measure, for instance due to technological limiotations, or because it is not

made of physical variables; We need state estimators.

Existence of solution of the equations.

This issue will lead us to the

concept of controlability

Page 8: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

8

State estimation

When the state is not available, one possibility is to estimate it and feed back

its estimates. Open-loop estimator:

1s

u y+

-

r1s

K

1s

y1s

k1

++

v

v

Modelo

^ ^

This is not a good solution.

It leads to an open-loop

controller.

Disturbances and

uncertainty are not

attenuated.

Page 9: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

9

Solution with an asymptotic observer

1s

u y+

-

r1s

K

1s

y1s

k1

++

v

v̂ ^

+

-L L

2 1

Relevant questions:

Is it possible to find 1L and 2L

such that the estimation error

goes to zero?

OBSERVABILITY

What is the impact of model

uncertainty?

Limitations on 1L and 2L

Page 10: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

10

Another example: Open-loop compensator of an unstable plant

Kailath, Linear Systems, (p. 31, chap. 2)

Is this system stable, even when the pole-zero cancelation is mathematically

exact?

u y1s-1

r s-1

s+1

Compensador Processo

Page 11: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

11

Start by building a state model. Observe that

1

21

1

1

ss

s

Block diagram with state variables 1x e 2x :

uy=x

1s-1

r -2

s+1

x1

2+

+

State model

)(

2

122

11

rxxdt

dx

rxdt

dx

Page 12: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

12

The solution of these equations is ( means “convolution”):

)(2)( 101 trexetx tt

)()(2

1)( 1020 trexeexety tttt

Conclusion

Even when the cancelation is exact, the response does not go to infinity only if

02010 xx .

It is common to say that the series controller does not stabilize the system because the pole-zero

cancellation is not exact. It is remarked that even in this case the controlled system is not stable.

Page 13: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

13

The need for an internal description of systems

This example illustrates the importance of an internal description of the plant

that clarifies the issues related to pole-zero cancellation.

In this respect, the concepts of controllability and observability are also crucial

Page 14: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

14

2.Controlability and observability

Objectivo:

Introduce the concepts of observability, controllability, reconstructibility and

reachability. Controllability and observability criteria. Controllability,

observability and pole-zero cancellation in a transfer function.

[JML-CEE2019] cap 4, excepto 159 – 162 e 167 (gramianos)

Page 15: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

15

x(0)=0

xf

Controllability (definition – continuous systems)

The continuous state realization

)()()( tbutAxtx

Is said to be completely controllable or reachable

(atingível) if, given an initial state at the origin 0)0( x ,

and any fx , there exists a finite time ft and

an input function )(tu , ftt 0 such that ff xtx )( .

Page 16: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

16

Nota sobre o conceito de controlabilidade

Para sistemas contínuos a definição de controlabilidade é equivalente a

impôr que de qualquer estado se atinja a origem num intervalo de tempo finito

por escolha conveniente da entrada. É esta a definição dada em [Rugh]. A

definição dada no acetato anterior é normalmente referida como

atingibilidade. Para sistemas contínuos as duas definições são equivalentes

mas para sistemas discretos não.

Referências:

Rugh (1996). Linear System Theory.

Kailath (1980). Linear Systems.

Page 17: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

17

Controllability criteria (continuous systems)

The continuous system

)()()( tbutAxtx

Is completely controllable iff the matrix

bAbAAbbBAC n 12 ||||,

called controllability matrix, has rank (característica) xn dim .

Page 18: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

18

Example of a system not completely controllable

1/s 1/sx (t)x (t)

-1 -2

u(t)

2 1

Trajectórias

possíveis

x

x2

1

From the block diagram we conclude that values of 2x different from zero

cannot be zero.

22

211 2

xdt

dx

uxxdt

dx

u

x

x

x

x

0

1

10

12

2

1

2

1

Page 19: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

19

ux

x

x

x

0

1

10

12

2

1

2

1

00

21|),( AbbbAC

21),( nbACcar

Hence this space realization is not controllable. We can only reach points in a

subspace of dimension 1),( bACcar of the tate space (that has dimension 2).

Page 20: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

20

Another example of a system that is not completely controllable

Remark that the eigenvalues are equal

uxdt

dx

uxdt

dx

22

11

1/s

x (t)

-1u(t)

21/s

x (t)

-1

1

Trajectórias

possíveis

x

x1

2

x1

x2=

With zero initial conditions is

t

t duetxtx0

)(

21 )()()(

We can only reach points along the straight line 21 xx

Page 21: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

21

Apply the criteria of controllebility

1

1

10

01bA

11

11),( bAC

Since 21),( nbACcar the realization is not controllable.

Page 22: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

22

Interpretation in terms of diagonal systems (continuous time)

)()()( tbutztz ),,,( 21 ndiag

n

n

nnnnnn

n

n

bbbb

bbbb

bbbb

bC

12

2

1

22

2

2222

1

1

11

2

1111

),(

For this state realization to be controllable it must be iib 0 (none of the

lines vanishes) and jiji (no proportional lines).

Page 23: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

23

Interpretation of the controllability condition for diagonal systems

1/s

z (t)

u(t)

21/s

z (t)1

z (t)n

1/s

b

b

b

1

1

2

2

n

n

If any ib is zero, the input does not

affect the corresponding state that

stays at the origin.

If there equal eigenvalues, the

corresponding states will be

proportional.

Page 24: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

24

Definition of controllability (discrete systems)

The state realization of order n

)()()1( kbukAxkx

Is said to be completely controllable (or reachable) iff for an initial condition

0)0( x and any fx there exists N finite and a sequence of control inputs

)1(,),1(),0( Nuuu

such that

fxNx )(

Page 25: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

25

Criteria of controllability (discrete systems)

The discrete system

)()()1( kbukAxkx

Is completely controllable iif the matrix

bAbAAbbbAC n 12 ||||),(

Called controllability matrix, has rank xn dim .

This result is proved in the following slides.

Page 26: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

26

Cailey-Hamilton theorem

Given a square matrix A with characteristic polynomial

)det()( 2

2

1

1 AsIasasassa n

nnn

The matrix verifies the equation

02

2

1

1 IaAaAaA n

nnn

With an abuse of language we say that a matrix verifies its characteristic

equation.

Reference: Strang (1980). Linear Algebra and its Applications. Academic Press.

Page 27: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

27

Lemma

nN we have

bAAbbrankbAbAAbbrank nNn 111 ||||||||

The proof of this lemma is a consequence of the Cailey-Hamilton theorem

(try to do it before looking at the next slide).

Page 28: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

28

Proof of the Lemma

Let n

nn asasAsIsa 1

1)det()( be the characteristic polynomial of A .

From Cailey-Hamilton theorem

01

1 IaAaA n

nn

Multiply in the right by b

01

1 babAabA n

nn

This means that bAn is a linear combination of bbAn ,,1 . The proof that

nibA in is also a linear combination of the same vector is made by

induction.

Page 29: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

29

Proof of the controllability criteria (discrete time)

From the formula of variation of constants with zero initial conditions, the sate

at time nN is given by

)1()1()0()( 21 NbubuAbuANx NN

The points of the state space that can be reached are thus the linear

combination of

bAbAAbb NN 12 ,,,,

By the Lemma, the subspace generated by these vectors is the same as the

subspace generated by

bAbAAbb nn 12 ,,,,

Page 30: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

30

Problem

Consider the discrete system

)(0

1

)(

)(

00

11

)1(

)1(

2

1

2

1ku

kx

kx

kx

kx

a) Show that the system is not controllable, i. e. that it is not always possible to

transfer the origin to an arbitrarily specified state;

b) Show that starting from a generic state

)0(x , with ,

given, there exists a control law that brings the state to the

origin in 1 step, i.e., exists )0(u function of , such that

0

0)1(x .

Page 31: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

31

a) The state realization is not controllable. Indeed:

00

11),( AbbbAC

2dim1),( xbACrank

According to the criteria of controllability the system is not controllable and

there are states that cannot be achieved staring from the origin..

Page 32: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

32

b) Since

)0(x

0

0)1(x

)0(u must verify the system of equations

)0(0

1

00

11

0

0u

That has the solution

)0(u

Page 33: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

33

Controllability and controllability to the origin

As the previous problem shows, in discrete systems, the concepts of

controllability to the origin (being able to attain the origin from any state) and

controllability (being able to attain any state from the origin, also called

reachability) are not equivalent.

In continuous systems both concepts are equivalent.

The criteria refers to controllability (reachability) and not to controllability to the

origin.

Page 34: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

34

Stabilizablibility

A state realization

�̇� = 𝐴𝑥 + 𝑏𝑢

is stabilizable if there is a state feedback 𝑢(𝑡) = −𝐹𝑥(𝑡) such that the closed

loop is asymptotically stable, which equivalent to state that there is a vector 𝐹

such that all the eigenvalues of 𝐴 − 𝑏𝐹 have negative real part.

All the non-controllable modes of a stabilizable system are asymptotically

stable.

Similar definitions hold for discrete time systems.

Page 35: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

35

The effect of a linear state transformation on controllability

Given the state model

buAxx

Consider the state model in the transformed coordinates Tzx .

a) If T is invertible, show that if ),( bA is controllable, then the state realization

in the new coordinates is also controllable. Write the controllability matrix in

the new coordinates, zC .

b) Relate zC and ),( bAC .

c) Express T in terms of zC and ),( bAC

Page 36: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

36

Tzx zTx buTATzTbuAxTz 111 )(

buTATzTz 11

bTATTATTbTATTbTCz

111111 ))(()(

bAbAAbbTC n

z

121

),(1 bACTCz

1),( zCbACT

Page 37: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

37

Conclusion

Given two controllable state realizations with the same dimension,

ubxAx xx e ubzAz zz

They are similar, and the similarity transformation T that maps one in the

other

Tzx

Is given by

),(),( 1

zzxx bACbACT

Page 38: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

38

Example – Controller canonical form

1s

1s

1s

u yxc2xc1 xc3

b2

b1

b3

-a2

-a1

-a3

321

3

32

2

1)(asasas

bsbsbsG

Page 39: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

39

ubxAx cccc ccxcy

010

001

321 aaa

Ac

0

0

1

cb 321 bbbcc

Controllability matrix:

1

1

21

100

10

1

a

aa

Cc

Page 40: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

40

Transformation that leads to the controller canonical form:

cTxx

1

0

1

1

1

11

a

aa

CT

n

x

This transform will be used later in relation to controller design.

Page 41: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

41

Definition of observability (continuous systems)

The continuous system

)()( tAxtx )()( tCxty

Is said to be completely observable if exists finite 𝑡1, 10 t such that the

knowledge of the output )(ty for 10 tt is sufficient to compute the initial

state )0(x .

Page 42: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

42

Observability criterion

The state realization

)()( tAxtx )()( tCxty

Is completelly observable iff the observability matrix

1

2),(

nCA

CA

CA

C

CAO

Has rank xn dim .

Page 43: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

43

Interpretation in terms of diagonal systems

Given the diagonal system

)()( tztz ndiag ,,1

)()( tCzty

a) Show that it is observable iff

njiji ,,1

nici ,,10

b) Give an interpretation of these conditions with a block diagram.

Page 44: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

44

Joint controllability and observability

Consider the diagonal systems

)()()( tbutxtx ndiag ,,1

)()( tCxty

Transfer function

n

i i

ii

n

n

ns

bc

b

b

s

s

ccbAsICsH1

11

1

1

100

00

001

)()(

Transfer function

Page 45: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

45

n

i i

ii

s

bcsH

1

)(

The sum has less than n terms if there is i such that

0ib loss of controllability;

0ic loss of observability;

i repeated loss of controllability and observability

Conclusion: There are pole/zero cancellations if the state realization is not

controllable or not observable. This fact is general.

Page 46: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

46

Kalman decomposition

In general, it is possible to transform the state realization to

)(

0

0)(

00

000

00

)(3

1

4442

34333231

22

1211

tub

b

tx

AA

AAAA

A

AA

tx

)(00)( 21 txccty

''''' cococooc xxxxx

The transfer function depends only on the observable and controllable part:

1

1

111 )()( bAsIcsG

Soc

u y

Soc

Soc

Soc

Page 47: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

47

Reconstructibilty and Detectability

Two important concepts related to observability are:

If, from output observations it is possible to reconstruct the most recent

value of the state, the state realization is said to be reconstructible.

If the part of the state that is not observable is asymptotically stable, the

state realization is said to be detectable.

Page 48: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

48

Problem (Interpretation of controllability and observability)

Consider the system

Build a state model using the state variables indicated.

Say for what values of is the state realization:

a) Controlable.

b) Observable

Give an interpretation in terms of a transfer function.

s+1

1s

-1x =y

u x +

+

12

Page 49: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

49

Solution

Us

X

UXsX

1

12

21

u

xdt

dx

uxdt

dx

)

1(22

21

10

10A

1

1

b

01c

11

11),( bAC

)1()1(1),(det 2 bAC

Page 50: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

50

Observe that 11

11

s

s

s

)1()1(1),(det 2 bAC

Hence, there is loss of controlability for:

a) 20 x is not affected by 𝑢 and there is a zero that cancels the pole

at the origin;

b) 1 There is a zero at –1 that cancels a pole.

10

01),( cAO

The state realization is always observable.

Page 51: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

51

Problem (Interpretation of controllability and observability)

Consider

)(0

)(

)(

1

10

)(

)(

2

1

2

1tu

tx

tx

tx

tx

)(

)(1)(

2

1

tx

txty

For what values of , and is the system:

a) Controlable?

b) Observable?

Give an interpretation in terms of the transfer function.

Page 52: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

52

0),( bAC is controllable whenever 0 .

In terms of the transfer function:

bAsICsH 1)()(

s

s

sss

s

As

sAsI

T

11

)1(

1

1

1

)det(

1

1

1)(

1

1

ss

ssH

2

1)( Hence, for 0 the gain of the TF vanishes.

1

1O Since the observability matrix is square, we can look at the

determinant. When 0)),(det( cAO there is loss of observability.

Page 53: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

53

21)),(det( cAO There is loss of observability if 01 2 or

2

1

. In this situation (loss of observability) the poles are the roots of

01

2

2

ss . This equation is satisfied by

1s

meaning that when there

is loss of observability there is a pole/zero cancelation.

Page 54: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

54

3.Linear state feedback

Objective:

Design a pole-placement regulator by state feedback.

Proof of the Bass-Gura formula.

[JML-CEE2019] cap. 5, pp. 181-225

Page 55: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

55

Problem (Regulator design by state feedback)

Given a controllable and observable state realization

)()()()( tCxytbutAxtx

With characteristic polynomial

n

nn asasAsIsa 1

1)det()(

Admissible control law:

)()( tKxrtu

Start by considering 0r (regulation problem).

Compute the vector of controller gains K such that the closed-loop

characteristic polynomial is n

nn sss 1

1)(

Page 56: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

56

)()()()()( tKxrtutbutAxtx

Closed-loop system:

)()()()( tbrtxbKAtx

b+

+

r +

-

K

C

A

yx(t)x.

Page 57: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

57

Closed-loop characteristic polynomial:

)det()( bKAsIsak

Objective:

Compute K such that

)()( ssaK

Characteristic polynomial

of the closed-loop system.

Depends on K

Specified characteristic

polynomial

Can be adjusted by

choice of K

Page 58: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

58

Method of unknown coefficients

Solve the equation with respect to 𝐾

)()det( sbKAsI

n

nnn

K

n

K

n ssasas 1

1

11

)(saK

Characteristic

polynomial as a

function of K

Specified characteristic

polynomial. Depends on

the specifications for the

closed-loop.

Page 59: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

59

n

nnn

K

n

K

n ssasas 1

1

11

Equate the coefficients of the monomials with the same degree to obtain the

system of linear algebraic equations verified by K :

n

n

K

K

a

a

1

1

When does this system as a solution n ,,1 ?

There is always a solution if ),( bA is controllable. (Proved next)

Page 60: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

60

Bass-Gura formula

The closed-loop poles can be arbitrarily placed iff ),( bA is controllable.

Compute the gains by

1)( CMaK T

where bAbAAbbbACC n 12 ||||),( is the controllability matrix of ),( bA , and

n 21

naaaa 21

1

0

1

001

11

1

aa

aM

n

Page 61: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

61

Exercise (Bass-Gura formula)

Consider the system:

a) Obtain a state realization with state variables 1x and 1x .

b) Using Bass-Gura formula compute the gains of the controller that place the

closed-loop poles at j1 .

c) Solve the same problem by the method of unknown multipliers.

u2

1s

1s

xx 12

Page 62: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

62

ux

xx

22

21

u

x

x

x

x

2

0

00

10

2

1

2

1

02

20),( AbbbAC

02/1

2/10),(1 bAC

Characteristic polynomial of A :

2

0

1)det()( s

s

sAsIsa

(as expected!)

Recall the notation:

21

2)( asassa from which 0000 21 aaa

Page 63: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

63

10

01

1

01

1aM

10

01TM

Desired characteristic polynomial:

22)( 2 sss (poles at j1 )

Application of Bass-Gura formula

02

12

10

10

010022),()( 1 bACMaK T

11K

Page 64: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

64

Problem (that leads to the proof of Bass-Gura formula)

Is there any state realization such that the gain computation is trivial?

Sugestion: Consider the controller canonical form

1s

1s

1s

u yxc2xc1 xc3

b2

b1

b3

-a2

-a1

-a3

321

3

32

2

1)(asasas

bsbsbsG

Superimposed to this block

diagram draw the blocks of the

state feedback.

Page 65: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

65

1s

1s

1s

u yxc2xc1 xc3

b2

b1

b3

-a2

-a1

-a3

-k1

-k2

-k3

-1

-2

-3

Conclusion:

In the controller canonical form the

gain are simply computed by

aKc

Page 66: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

66

State

realization

),,( cbA

Controller

canonical form

),,( ccc cbA

Transformation

T

c MbACTTxx ),(

nsformação de coordenadas

Gains in controller canonical

form

Gains in the

original

realization How to invert the gains?

Difficult (objective) Easy

Page 67: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

67

Relation of the gains in the original state x and the state in controller

canonical form, cx :

cKTxKxu

cK

Page 68: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

68

State

realization

),,( cbA

Controller

canonical form

),,( ccc cbA

Coordinate transform

T

c MbACTTxx ),(

Gains in controller canonical

form

aKc

Gains in the

original realization

1 TKK c Inverse transform

Difficult (objective) Easy

Page 69: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

69

Ackerman’s formula

Does not require the explicit knowledge of the open loop characteristic

polynoimial

)(),(100 1 AbACK

MATLAB functions: acker, place

Last line of the inverse of

the controllability matrix

Desired chracteristic

polynomial computed for

As

Page 70: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

70

Example (double integrator)

Consider again the problem of the double integrator (slide 62)

The last line of the controllability matrix is 02/1 .

20

2222)( 2 IAAA

Gains computed using Ackerman’s formula:

1120

2202/1

K

The same as the ones computed with Bass-Gura formula.

Page 71: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

71

Question (practical and of upmost importance!)

Can we transform a FIAT PUNTO into a Ferrari by velocity feedback?

C V

Page 72: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

72

Optimal Linear Quadratic design of the state feedback gains

Linear dynamics, quadratic cost LQ control

�̇� = 𝐴𝑥 + 𝐵𝑢

Select 𝑢 so as to minimize (details to be studied later) the infinite horizon

quadratic cost

𝐽 = ∫ (𝑥𝑇𝑄𝑟𝑥 + 𝑅𝑟𝑢2)𝑑𝑡∞

0.

Consider the special case of 𝑢 scalar.

Works also for multivariable plants with a minor modification.

Page 73: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

73

�̇� = 𝐴𝑥 + 𝐵𝑢 𝐽 = ∫ (𝑥𝑇𝑄𝑟𝑥 + 𝑅𝑟𝑢2)𝑑𝑡∞

0.

Solution

Find the unique positive definite matrix 𝑃 that satisfies the Algebraic Riccati

Equation (ARE)

𝐴𝑇𝑃 + 𝑃𝐴𝑇 − 𝑃𝐵𝑅𝑟−1𝐵𝑇𝑃 + 𝑄𝑟 = 0,

This solution always exists if (𝐴, 𝐵) is controllable.

Compute the state feedback gains 𝐾 (a row vector) using

𝐾 = 𝑅𝑟−1𝐵𝑃.

Apply to the plant the feedback control

𝑢(𝑡) = −𝐾𝑥(𝑡).

Can be computed with

MATLAB function lqr

Page 74: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

74

Understanding the cost functional

𝐽 = ∫ (𝑥𝑇𝑄𝑟𝑥 + 𝑅𝑟𝑢2)𝑑𝑡∞

0.

Always yields an asymptotically stable closed loop for all 𝑄𝑟 ≽ 0, 𝑅𝑟 ≻ 0.

The cost entails a compromise between keeping the state low without much

activity in control.

The diagonal entries of 𝑄𝑟 tell which entries of 𝑥 are more important.

The higher the value of 𝑄𝑟𝑖𝑖, the lower the modulus of the entry 𝑥𝑖𝑖

Increasing 𝑅𝑟 decreases the modulus of 𝑢 and allows 𝑥 to have a higher

value. The closed-loop system becomes slower (smaller bandwidth).

Page 75: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

75

1s+1

1s

-

+

+

k2 k1

x1x2u

Example: Optimal control of a DC motor

𝑑𝑥1

𝑑𝑡= 𝑥2

𝑑𝑥2

𝑑𝑡= −𝑥2 + 𝑢

𝐴 = [0 10 −1

] 𝐵 = [01

]

Page 76: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

76

𝑄𝑟 = [10 00 0,1

] 𝑅𝑟 = 1 𝑄𝑟 = [0,1 00 5

] 𝑅𝑟 = 1

0 1 2 3 4 5 6 7 8

-2

0

2

Time

x

0 1 2 3 4 5 6 7 8

-4

-2

0

Time

u

0 1 2 3 4 5 6 7 8

-2

0

2

Time

x

0 1 2 3 4 5 6 7 8

-4

-2

0

Time

u

Page 77: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

77

𝑄𝑟 = [1 00 0,1

] 𝑅𝑟 = 1 𝑄𝑟 = [1 00 0,1

] 𝑅𝑟 = 0.1

Decreasing 𝑅𝑟 makes the closed-loop faster. However, this trend can be a

danger if there are un-modelled high-frequency dynamics.

0 1 2 3 4 5 6 7 8

-2

0

2

Time

x

0 1 2 3 4 5 6 7 8

-4

-2

0

Time

u

0 1 2 3 4 5 6 7 8

-2

0

2

Time

x

0 1 2 3 4 5 6 7 8

-4

-2

0

Time

u

Page 78: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

78

4.Asymptotic observers

Objective:

Design state estimators.

[JML-CEE2019] pp196 – 210

Page 79: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

79

Problem: State estimation

Given a state realization cbA ,,

)()(

)()()(

tcxty

tbutAxtx

Find an estimate )(ˆ tx of )(tx built from observations of 𝑦 and 𝑢. We want a

recursive estimate, i.e. defined by an ODE which integration yields )(ˆ tx .

u(t)y(t)

x(t)OBSERVADORSISTEMA

^

Page 80: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

80

1st

Solution: Open-loop observer

A replica of the system, excited with the same input

Does it work?

What is the equation satisfied by the estimation error xxx ˆ~ ?

u(t)y(t)

SISTEMA

x(t)b

A

^

Page 81: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

81

Estimation error in the open-loop observer

What is the equation satisfied by the estimation error xxx ˆ~ ?

Subtract the estimator equation from the system equation

bubuxxAxx

buxAx

buAxx

)ˆ(ˆ

_____________________

ˆˆ

from which xAx ~~

Conclusion: In the open-loop observer, the error goes to zero only for stable

systems and with a rate equal to the eigenvalues of A .

Page 82: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

82

2nd

Solution: Closed-loop observer (asymptotic)

What is now the equation satisfied by the error?

u(t) y(t)SISTEMA

x(t)b

A

^

L

Cy(t)^

y(t)-y(t)^

+

-

++

+

)(ˆ)()()(ˆ)(ˆ txCtyLtbutxAtx

Vector coluna com

dim L= dim x

When the estimate is correct, xcy ˆ vanishes

and the estimate satisfies the system dynamics.

Page 83: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

83

xcyLbubuxxAxx

xcyLbuxAx

buAxx

ˆ)ˆ(ˆ

_______________________________

ˆˆˆ

Conclusion: For the closed-loop (asymptotic) observer, the estimation error

satisfies

)(~)(~ txLcAtx

y=cx

Page 84: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

84

Error dynamics in the asymptotic observer

)(~)(~ txLcAtx

If ),( cA is observable, the eigenvalues of the error dynamics LcA can be

placed anywhere.

Page 85: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

85

Exemplo: Observador para o integrador duplo

Consider the system (double integrator):

1. Draw a block diagram of an asymptotic observer

2. Compute the observer gains such that the error eigenvalues are at –1.

Sugestion: Find A, b, c ; Write A-Lc and write its characteristic polynomial for generic L; Compute

L using the method of unknown multipliers.

u 1s

1s

x =yx 12

Page 86: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

86

1

2

21

xy

ux

xx

xy

ux

x

x

x

01

1

0

00

10

2

1

2

1

0

101

00

10

2

1

2

1

L

L

L

LLCA 21

2

2

1 1)det( LsLs

sL

LsLcAsI

We want the eigenvalues of the error dynamics to be the roots of

12)1( 22 sss

Comparing the coefficients

12 21 LL

u 1s

1s

x =yx 12

Page 87: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

87

Observer eigenvalues specification – Example with perfect matching

Process poles (open-loop) observer poles

0 1 2 3 4 5

0

0.5

1

1.5

t

x1 e

estim

ativa

n=5

n=1

(A)

0 1 2 3 4 5

0

0.5

1

1.5

t

x1 e

estim

ativa

n=2

n=1

(B)

0 1 2 3 4 5

0

0.5

1

1.5

t

x1 e

estim

ativa

n=5

n=0,2

(C)

0 1 2 3 4 5

0

0.5

1

1.5

t

x1 e

estim

ativa

n=2

n=0,2

(D)-6 -4 -2 0

-5

0

5

Re

Im

= 5 = 1

(A)

-6 -4 -2 0

-5

0

5

Re

Im

= 2 = 1

(B)

-6 -4 -2 0

-5

0

5

Re

Im

= 5 = 0,2

(C)

-6 -4 -2 0

-5

0

5

Re

Im

(D)

= 2 = 0,2

Page 88: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

88

Choice of the error dynamics eigenvalues

The choice of the eigenvalues of the error dynamics LcA results from the

following trade-off:

They cannot be too small to avoid the error tending to 0 slowly;

They cannot be too big. Otherwise, the estimator may be “cheated” by high

frequency model errors. If there is a feedback of the state estimates, the

loop-gain must satisfy the robust stability condition.

Page 89: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

89

Bass- Gura formula for the observer gains

Obtain a Bass-Gura type formula to compute the observer gains.

Sugestion: Write an ODE for the estimation error and do the transform that

leads to the observer canonical form, where

xTxo ),( CAMOT

1

0

1

001

11

1

aa

aM

n

See the observer canonical form in the next slide.

Page 90: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

90

Observer canonical form

Let the ai be the coefficients of the characteristic polynomials in open-loop.

The observer canonical form is as shown below

b3 b2 b1

x1=yx2x31/s 1/s 1/s

-a3 -a2 -a1

u

Page 91: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

91

5.The separation theorem

Objective:

Show that, in a regulator obtained by feeding back the state estimate, the

observer gains and the controller gains can be designed independently of

each other.

[JML-CEE2019] pp. 211 – 219

Page 92: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

92

Regulator with state estimation feedback

Where are the eigenvalues of the closed-loop system placed?

Sistema

Compensador

r +

-

Kx(t)

u(t)b

A

c

L

b

A

c

+

-

+

+

+

++

y(t)x(t)

^

System:

)()()()()( tcxtytbutAxtx

Observerr:

)()()(ˆ)()(ˆ tbutLcytxLcAtx

Control law:

)(ˆ)( txKtu

The closed—loop system is of order 2n.

Page 93: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

93

Lema

Let CA, be square matrices. Then:

CAC

BA

0

Proof:

We have C

C

I

0

0

and also A

I

BA

0

Since

I

BA

C

I

C

BA

00

0

0 the result is concluded because the determinant

of the product is the product of the determinants of the factors.

Page 94: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

94

The eigenvalues of the closed-loop system

State model of the controlled system:

)()()()()( tcxtytbutAxtx

)()()(ˆ)()(ˆ tbutLcytxLcAtx

)(ˆ)( txKtu

Eliminating 𝑢 yields the autonomous system with order 2𝑛

)(ˆ)()( txbKtAxtx

)(ˆ)()()(ˆ txbKLcAtLcxtx

Page 95: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

95

)(ˆ)()( txbKtAxtx

)(ˆ)()()(ˆ txbKLcAtLcxtx

It is better to work with )(ˆ)()(~ txtxtx This corresponds to make a linear

transform of the state variables. Subtracting both equations

)(~)()(~ txLcAtx

The whole system is thus described in an equivalent way by

)(~)()(~

)(~)()()(

txLcAtx

txbKtxbKAtx

Page 96: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

96

State equations of the overall (controlled) system

)(~)()(~

)(~)()()(

txLcAtx

txbKtxbKAtx

IN matrix form

x

x

LcA

bKbKA

x

x~0~

By the lemma, the characteristic polynomial of the overall system is

observercontroller

LcAsIbKAsILcAsI

bKbKAsI)det(.)det(

0

Page 97: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

97

Conclusion: The poles of the overall system are grouped in two sets:

One set depends only on the controller gain K , as if we did a feedback of

the state and not of its estimate.

Another set depends only on the observer gain L , as if we do the estimate

with a controller.

Page 98: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

98

Separation theorem

The characteristic polynomial of the overall system (process, observer and

estimated state feedback) is the product of the characteristic polynomials of

bKA and LcA .

This theorem tells us the we can

Design the vector of controller gains K as if we feedback the sate and not

its estimate;

Design the vector of observer gains L as if the observer acts on the

system without control.

Page 99: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

99

Example: Inverted pendulum

)()()( tLttg

mLsin

z

)(sin)()(

)(sin)(

tLttz

tmgtzm

Linear model, valid for small angles:

sin

)()()(

)()(

tLttz

tgtz

Page 100: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

100

)()()( tLttg

Define:

State variables: 21 xx Manipulated input: Lu /

We obtain the state model:

uxLg

x

1

0

0/

10

xy 01

Take 9/ Lg .

Page 101: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

101

uxx

1

0

09

10

xy 01

Controller design assuming access to the state:

21

219

10

1

0

09

10

kkkkbKA

)9(9

1)det( 12

2

21

ksksksk

sbKAsI

Specified characteristic polynomial: 22)( 2 sss

Comparying the coefficiente sof both polynomials

211 21 kk

Page 102: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

102

The structure of the observer is a replica of the process with the state

derivatives added by a term given by the output error amplified by 1L e 2L :

9

1/s 1/s

9

+

-

xx

-

+

- +

+

1/s 1/s

L

L

xx yu

^^

1

1

2

2

1

2

Page 103: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

103

To design the observer gains, impose the eigenvalues of LcA .

09

101

09

10

2

1

2

1

L

L

L

LLcA

99

1)det( 21

2

2

1

LsLs

sL

LsLcAsI

Specified error characteristic polynomial

3284)4()( 222 sssso

Observer gains obtained by equating the coefficients in both polynomials

418 21 LL

Page 104: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

104

The controller is build by feeding back the gains of the state estimates:

9

1/s 1/s

9

+

-

xx

-

+

- +

+

1/s 1/s

L

L

xx yu

^^

1

1

2

2

1

2

-

k k12

Page 105: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

105

Response to the regulation of a non-zero initial condition

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-0.04

-0.02

0

0.02

0.04

0.06

0.08

0.1

0.12

Page 106: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

106

Compensator transfer function

Process model:

cxy

buAxx

bAsIcsGp

1)()(

Observer/controller state model:

LybuxLcAx ˆ)(̂

LyxbKLcAx ˆ)(̂

xKu ˆ

xKu ˆ

Page 107: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

107

LyxbKLcAx ˆ)(̂

xKu ˆ

The controller is described as having dynamics bKLcA , input y ND

OUTPUT u . The transfer function of the controller is thus

LbKLcAsIKsGc

1)()(

G (s)

G (s)

u y

Processo

Compensadorc

p

Page 108: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

108

Example: Controller transfer function

xy

ux

x

x

x

01

1

0

00

10

2

1

2

1

2

1)(

ssGp

Specified characteristic polynomial (desired poles):

12)( 2 sss Controller gains: 21K

Observer error dynamics:

12)( 2 sss Observer gains

25

5L

Controller transfer function: 77.421.3

)62.0(4.40)(

js

ssGc

Page 109: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

109

The controller transfer function depends on the gains K and L .

These gains can be envisaged as tuning knobs (“botões de ajuste”) that allow

to shape the loop gain such as to meet specifications.

VKG

KGW

KG

GR

KG

KGYcL

111 𝐾𝐺 is the loop gain

R U

W

yK(s) G(s)

v

-

Page 110: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

110

The controller 𝐾(𝑠) is designed such as to “shape” the loop gain:

VKG

KGW

KG

GR

KG

KGYcL

111

|K(j)G(j)|

Especificação devida

ao ruído: Atenuação

na alta frequência

Especificação

relativa ao

seguimento da

referência e

rejeição das

perturbações For a complete framework we must also

consider stability and uncertainty in plant

model.

Page 111: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

111

6.Reference tracking and integral gain

Objectivo:

Show how it is possible to change the basic regulator to track non-zero

references, possibly including integral effect.

[JML-CEE2019] pp. 219 – 225

Page 112: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

112

Servomechanism problem: Possibilities to insert a reference

Process model:

cxybuAxx

Controller:

MrLyxLcbKAx ˆ)(̂

NrxKu ˆ

There are several possibilities to select M (vector) and N (escalar).

Page 113: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

113

a) Select M and N such that the error equation does not depend on r

MrLyxLcbKA

NrxKBAxxx

ˆ)(

)ˆ(̂

or

rMbNxLcAx

0

)(~)(~

In order for this term to vanish, select

bNM

Page 114: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

114

With the choice NbM we have:

NbrLyxLcbKAx ˆ)(̂

or

LyNrxKbxLcAx

u

)ˆ(ˆ)(ˆ

The controller equations are thus

LybuxLcAx ˆ)(̂

NrxKu ˆ

Page 115: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

115

Controller structure such that the error does not depend on the reference

LybuxLcAx ˆ)(̂

NrxKu ˆ

rN

K

+

-

u y

x

Processo

Observador^

Page 116: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

116

b) Select M and N such that the tracking error yre is used

MrLyxLcbKAx ˆ)(̂

NrxKu ˆ

Select

LMN 0

The controller is defined by the equations

LexLcbKAx ˆ)(̂

xKu ˆ

Page 117: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

117

Controller structure that uses the tracking error

LexLcbKAx ˆ)(̂

xKu ˆ

Observador ProcessoKuxer +

-

y^

Page 118: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

118

Inclusion of the integral effect

Augment the state x with the state Ix of the integral of the tracking error.

Differentiating

t

I drytx0

))(()( for .constr we get )()( tCxtxI

The ensemble process+integrator is described by the augmented state model

rub

x

x

c

A

x

x

II

1

0

00

0

Page 119: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

119

rub

x

x

c

A

x

x

II

1

0

00

0

We can apply to this augmented system the pole placement methods studied

before.

I

Ix

xkKu 0

Yields the controller structure

r -

+

1

s-k

-k

Processo

x

yxI

o

I

+

+

Page 120: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

120

The augmented state model

ub

x

x

c

A

x

x

II

00

0

Is controllable but not observable.

We can estimate x with an observer and use the direct measure of Ix (since it

is generated by the control computer).

The separation theorem is still valid.

Page 121: Linear state feedback - ULisboa · CEE – Linear State Feedback J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo 16 Nota sobre o conceito de controlabilidade Para sistemas

CEE – Linear State Feedback

J. Miranda Lemos IST-DEEC- AC Sistemas, Decisão e Controlo

121

Another way of forcing the integral effect: Integrator in series

Include an integrator at the input, in series with the system

Augmented state model (controllable and observable):

ux

xbA

x

x

II

1

0

00

Ix

xcy 0

Design the controller for the augmented model.

1

s

u=xIu yx=Ax+bu

y=cx

.

xxI