Docsity

Linear Quadratic Regulator, Lecture Notes - Linear System And Control, Study notes of Production Planning and Control

Partial preview of the text

Download Linear Quadratic Regulator, Lecture Notes - Linear System And Control and more Study notes Production Planning and Control in PDF only on Docsity!

Linear Control Systems

Lecture # 14

Linear Quadratic Regulator (LQR)

Consider the system

x

Ax

Bu

and suppose we want to design state feedback control u

F x

to stabilize the system.

The design of

F

is a

tradeoff between the transient response and the controleffort. The optimal control approach to this design tradeoffis to define the performance index (cost functional)

J

∞

0

[

x

T

t

Qx

t

u

T

t

Ru

t

)]

dt

and search for the control

u

F x

that minimizes this index.

Q

is an

n

×

n

symmetric positive semidefinite matrix and

R

is an

m

×

m

symmetric positive definite matrix

Write

J

as

J

lim

t

f

→∞

J

t

f

J

t

f

t

f

0

[

x

T

t

Qx

t

u

T

t

Ru

t

)]

dt

J

t

f

is a monotonically increasing function of

t

f

. Hence,

as

t

f

J

t

f

either converges to a finite limit or

diverges to infinityUnder what conditions will

lim

t

f

→∞

J

t

f

be finite?

Recall that

A, B

is stabilizable if the uncontrollable

eigenvalues of

A

, if any, have negative real parts

Notice that

A, B

is stabilizable if

A, B

is controllable or

R

e

[

λ

A

)]

Definition:

A, C

is detectable if the unobservable

eigenvalues of

A

, if any, have negative real parts

Lemma 1 :

Suppose

A, B

is stabilizable,

A, M

is

detectable, where

Q

M

T

M

, and

u

t

F x

t

. Then,

J

is finite for every

x

R

n

if and only if

R

e

[

λ

A

BF

)]

Lemma 2:

For any stabilizing control

u

t

F x

t

, the

cost is given by

J

x

T

W x

where

W

is a symmetric positive semidefinite matrix that

satisfies the Lyapunov equation

W

A

BF

A

BF

T

W

Q

F

T

RF

Remark:

The control

u

t

F x

t

is stabilizing if

R

e

[

λ

A

BF

)]

Theorem:

Consider the system

x

Ax

Bu

and the

performance index

J

∞

0

[

x

T

t

Qx

t

u

T

t

Ru

t

)]

dt

where

Q

M

T

M

R

is symmetric and positive definite,

A, B

is stabilizable, and

A, M

is detectable. The

optimal stabilizing control is

u

t

R

−

1

B

T

P x

where

P

is the symmetric positive semidefinite solution of

the Algebraic Riccati Equation (ARE)

P A

A

T

P

Q

P BR

−

1

BP

Example:

x

1

x

2

x

2

u

J

∞

0

[

x

2 1

ρu

2

]

dt,

ρ >

A

[

]

, B

[

]

, Q

[

]

, R

ρ

Q

[

]

[

]

M

[

]

rank[

B, AB

] = rank

[

]

A, B

) is controllable

rank

[

M

M A

]

= rank

[

]

A, M

) is observable

P A

A

T

P

Q

P BR

−

1

BP

P

[

p

11

p

12

p

12

p

22

]

1 ρ

p

2 12

p

11

1 ρ

p

12

p

22

p

12

1 ρ

p

2 22

p

12

ρ,

p

22

ρ p

12

p

12

ρ, p

22

ρ

3

/

4

, p

11

(^1) ρ

p

12

p

22

ρ

1

/

4

Notice how

F

and the eigenvalues depend on

ρ

F

[

ρ

−

1

/

2

ρ

−

1

/

4

]

λ

1

,

2

ρ

−

1

/

4

j

What happens as you change

ρ

Matlab Calculations:X = lyap(A,N)

solves the Lyapunov equation

AX

XA

T

N

To solve the equation

W

A

BF

A

BF

T

W

Q

F

T

RF

use W = lyap((A+B*F)

′

,Q+F

′

RF)

Notice the transpose

LQR Design Given the system

x

Ax

Bu

where

A, B

is stabilizable, we want to design state

feedback control

u

F x

to stabilize the system while

meeting

Transient response specifications Magnitude constraints on

x

and

u

Procedure: 1. Choose

Q

and

R

such that

Q

M

T

M

, with

A, M

detectable, and

R

R

T

2. Solve the Riccati equation

P A

A

T

P

Q

P BR

−

1

B

T

P

and compute

F

R

−

1

B

T

P

3. Simulate the initial response of

x

A

BF

x

for

different initial conditions4. If the transient response specifications and/or themagnitude constraints are not met, go back to step 1 andre-choose

Q

and/or

R

Example:

A

B

Open-loop eigenvalues are:

j

Desired settling time is

sec.

Q

I

3

Try

R

and 1

R

λ

j

j

j

0

1

2

3

4

5

0

1

2

x

1

Q = diag(1,1,1)

R=0.01R=0.1R=

0

1

2

3

4

5

−

−0.

0

1

x

2

0

1

2

3

4

5

−2.

−

−1.

−

−0.

0

1

x

3

0

1

−10 −15 −20 −25 −

−

5 0

u