68
Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Technology N-7491 Trondheim Nordic Process Control Workshop 2009 1 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Design of multivariable LQ-optimal PIDcontrollers based on convex optimization

Henrik Manum and Sigurd Skogestad

Department of Chemical EngineeringNorwegian University of Science and Technology

N-7491 Trondheim

Nordic Process Control Workshop 2009

1 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 2: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 3: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 4: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 5: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 6: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 7: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 8: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 9: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 10: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 11: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 12: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Outline

Paradigms for implementation of the optimal solution

What variables should we control?

Nullspace method

Full information: u = −Kx is optimal!

Extensions to output feedback

Closed-loop optimizationExamples:

Underdamped second-order plantDistillation column

2 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 13: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Implementation of optimal operation

Paradigm 1

On-line optimizing control where measurements are primarilyused to update the model. With arrival of new measurements,the optimization problem is resolved for the inputs.

Paradigm 2

Pre-computed solutions based on off-line optimization.Typically, the measurements are used to update the inputsusing feedback control schemes.

3 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 14: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Implementation of optimal operation

Paradigm 1

On-line optimizing control where measurements are primarilyused to update the model. With arrival of new measurements,the optimization problem is resolved for the inputs.

Example: Classical (implicit) MPC.

Paradigm 2

Pre-computed solutions based on off-line optimization.Typically, the measurements are used to update the inputsusing feedback control schemes.

Examples: Explicit MPC and MIMO-PID (with “acceptable” loss)

3 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 15: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

Controller

PlantMeasurementcombination H

d y

ncm = c + ncs

u c

Self-optimizing control

Choice of H such that acceptable operation isachieved with constant setpoints (cs constant).

4 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 16: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

Controller

PlantMeasurementcombination H

d y

ncm = c + ncs

u c

Self-optimizing control

Choice of H such that acceptable operation isachieved with constant setpoints (cs constant).

Optimal cs is invariant with respect to disturbances d

4 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 17: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

Controller

PlantMeasurementcombination H

d y

ncm = c + ncs

u c

Self-optimizing control

Choice of H such that acceptable operation isachieved with constant setpoints (cs constant).

Optimal cs is invariant with respect to disturbances d

Insensitive to measurement errors n

4 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 18: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

Loss = J(u, d)− Jopt(d)

Disturbanced0

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 19: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

Loss = J(u, d)− Jopt(d)

Disturbanced0 d

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 20: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

Loss = J(u, d)− Jopt(d)

Disturbanced0 d

Loss due toconstant setpointpolicy

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 21: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

c2 = csp2

Loss = J(u, d)− Jopt(d)

Disturbanced0 d

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 22: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

c2 = csp2

Loss = J(u, d)− Jopt(d)

Disturbanced0 d

Acceptable loss

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 23: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

What variables should we control?

c1 = csp1

c2 = csp2

Loss = J(u, d)− Jopt(d)

Disturbanced0c3 = Hy = csp3

5 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 24: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Nullspace method for QP problems

Theorem (Nullspace method for QP)

Consider the quadratic problem

minu

J =[u d

] [Juu Jud

JTud Jdd

] [ud

](1)

If there exist ny ≥ nu + nd independent measurements,then the optimal solution to (1) has the property that thereexist variable combinations c = Hy that are invariant to thedisturbances d.a

H may be found from HF = 0, where F = ∂yopt

∂dT

aAlstad and Skogestad Ind. Eng. Chem. Res. 2007

6 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 25: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Linear-quadratic optimal control

For a given x(t), one solves the quadratic problem

minU=(u0,u1,··· ,uN−1)

J(U, x(t)) = xTNPxN +

N−1∑k=0

[xT

k Qxk + uTk Ruk

]

subject to

x0 = x(0)

xk+1 = Axk + Buk , k = 0, 1, · · · , N − 1

yk = Cxk , k = 0, 1, · · · , N

7 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 26: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Link between linear-quadratic control andself-optimizing control

Let

d = x0 and y =

[ux

]

The optimal combination

c = Hy

can be written as the feedback law

c = u − (Kx + g)

and H (or K ) can be obtained from nullspace method

8 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 27: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 28: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 29: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 30: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 31: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 32: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 33: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Exact local method

Objective: minu J(u, d) =

[ud

]T [Juu Jud

JTud Jdd

] [ud

]

Measurements: y = Gyu + Gydd , ym = y + ny

Add constraints c = Hy = cs to the problem

Resulting loss: L = (u, d)− Jopt(d)

The H that minimizes L may be found by1

minH‖HF‖

subject to HGy = J1/2uu

Here F = [FWd Wny ] and F = −(GyJ−1uu Jud −Gy

d)

1Alstad et. al. Journal of Process Control 20099 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 34: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Nullspace method/LQR: open loop solutions

Full information:

Invariant 1: u0 = K0x0

Invariant 2: u1 = K1x0...

...Invariant n: uN−1 = KN−1x0

For implementation uk = K0xk

is OK, constant optimalfeedback gain:

u1 = K1x0 = K1(A + BK0)−1︸ ︷︷ ︸

=K0

x1

10 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 35: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Nullspace method/LQR: open loop solutions

Full information:

Invariant 1: u0 = K0x0

Invariant 2: u1 = K1x0...

...Invariant n: uN−1 = KN−1x0

For implementation uk = K0xk

is OK, constant optimalfeedback gain:

u1 = K1x0 = K1(A + BK0)−1︸ ︷︷ ︸

=K0

x1

Output “feedback”:

Invariant 1: u0 = K y0 y0

Invariant 2: u1 = K y1 y0

......

Invariant n: uN−1 = K yN−1y0

For implementation uk = K y0 yk

not OK, optimal feedback gainnot constant:

u1 = K y1

(C(A + BK y

0 C)−1C†)

︸ ︷︷ ︸�=K y

0

y1

10 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 36: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Nullspace method/LQR: open loop solutions

Full information:

Invariant 1: u0 = K0x0

Invariant 2: u1 = K1x0...

...Invariant n: uN−1 = KN−1x0

For implementation uk = K0xk

is OK, constant optimalfeedback gain:

u1 = K1x0 = K1(A + BK0)−1︸ ︷︷ ︸

=K0

x1

Output “feedback”:

Invariant 1: u0 = K y0 y0

Invariant 2: u1 = K y1 y0

......

Invariant n: uN−1 = K yN−1y0

For implementation uk = K y0 yk

not OK, optimal feedback gainnot constant:

u1 = K y1

(C(A + BK y

0 C)−1C†)

︸ ︷︷ ︸�=K y

0

y1

K y0 , K y

1 , · · · minimizes the open-loop distance from the LQRcontroller.

10 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 37: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Initial values for closed-loop optimization

We can show that K y = KC† when D = 0 in linear model.

11 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 38: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Initial values for closed-loop optimization

We can show that K y = KC† when D = 0 in linear model.

This can be used to initalize the following problem:

minK y

xTNPxN +

N−1∑i=0

xTi Qxi + uT

i Rui

subject to x0 = x(0) = d

xk+1 = Axk + Buk , yk = Cxk

uk = −K yyk

11 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 39: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Initial values for closed-loop optimization

We can show that K y = KC† when D = 0 in linear model.

This can be used to initalize the following problem:

minK y

xTNPxN +

N−1∑i=0

xTi Qxi + uT

i Rui

subject to x0 = x(0) = d

xk+1 = Axk + Buk , yk = Cxk

uk = −K yyk

Solution is general a function of x0. Therefore considerimpluse response and minimze H2-norm.

11 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 40: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Closed loop optimization

Impulse-response objective function:

J =nx∑

i=1

eTi M(K )ei ,

where M(K ) is from subsituting xi = (A− BKC)i x0 anduk = −KCxk into the objective function.

12 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 41: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Closed loop optimization

Impulse-response objective function:

J =nx∑

i=1

eTi M(K )ei ,

where M(K ) is from subsituting xi = (A− BKC)i x0 anduk = −KCxk into the objective function.Correspondning problem: Minimize the H2 norm of

Bc (sI − Ac)−1

R1/2

C

K

Q1/2

zx0

yu

x

P

12 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 42: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1: Second order process

Want to control g(s) = kτ2s2+2τζs+1 with a LQ-optimal PI

controller.

Write system on state-space form x = ax + bu, y = cx + duand augment the plant with integrated output:

[xσ

]=

[a 0c 0

] [xσ

]+

[bd

]u

y =

[c 00 1

] [xσ

]+

[d0

]u

← process output← integrated output

Objective function:∑∞

i=0 xTi Qxi + uT

i Rui withQ = diag(0, 0, 1) and R = 1

Optimal control: K = lqr(G, Q, R)

13 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 43: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1: Second order process

Want to control g(s) = kτ2s2+2τζs+1 with a LQ-optimal PI

controller.

Write system on state-space form x = ax + bu, y = cx + duand augment the plant with integrated output:

[xσ

]=

[a 0c 0

] [xσ

]+

[bd

]u

y =

[c 00 1

] [xσ

]+

[d0

]u

← process output← integrated output

Objective function:∑∞

i=0 xTi Qxi + uT

i Rui withQ = diag(0, 0, 1) and R = 1

Optimal control: K = lqr(G, Q, R)

13 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 44: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1: Second order process

Want to control g(s) = kτ2s2+2τζs+1 with a LQ-optimal PI

controller.

Write system on state-space form x = ax + bu, y = cx + duand augment the plant with integrated output:

[xσ

]=

[a 0c 0

] [xσ

]+

[bd

]u

y =

[c 00 1

] [xσ

]+

[d0

]u

← process output← integrated output

Objective function:∑∞

i=0 xTi Qxi + uT

i Rui withQ = diag(0, 0, 1) and R = 1

Optimal control: K = lqr(G, Q, R)

13 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 45: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1: Second order process

Want to control g(s) = kτ2s2+2τζs+1 with a LQ-optimal PI

controller.

Write system on state-space form x = ax + bu, y = cx + duand augment the plant with integrated output:

[xσ

]=

[a 0c 0

] [xσ

]+

[bd

]u

y =

[c 00 1

] [xσ

]+

[d0

]u

← process output← integrated output

Objective function:∑∞

i=0 xTi Qxi + uT

i Rui withQ = diag(0, 0, 1) and R = 1

Optimal control: K = lqr(G, Q, R)

13 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 46: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1: Second order process

Want to control g(s) = kτ2s2+2τζs+1 with a LQ-optimal PI

controller.

Write system on state-space form x = ax + bu, y = cx + duand augment the plant with integrated output:

[xσ

]=

[a 0c 0

] [xσ

]+

[bd

]u

y =

[c 00 1

] [xσ

]+

[d0

]u

← process output← integrated output

Objective function:∑∞

i=0 xTi Qxi + uT

i Rui withQ = diag(0, 0, 1) and R = 1

Optimal control: K = lqr(G, Q, R)

13 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 47: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

In Matlab, solve

f = inline(’norm(lft(P,-[K(1) K(2)]))’,’K’,’P’)K0 = Klqr*pinv(C);Kyopt = fminunc(@(K) f(K,P),K0)

Resulting controller is “fixed-structure” H2 optimal.

14 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 48: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.90

1

2

3

4

ζ

‖J−1uu Jud (C†C − I)‖ (open loop loss)

‖Fl(P, K 0)‖∞

15 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 49: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.90

1

2

3

4

ζ

‖J−1uu Jud (C†C − I)‖ (open loop loss)

‖Fl(P, K 0)‖‖Fl(P, KH2)‖

15 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 50: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.90

1

2

3

4

ζ

‖J−1uu Jud (C†C − I)‖ (open loop loss)

‖Fl(P, K 0)‖‖Fl(P, KH2)‖

15 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 51: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.90

1

2

3

4

ζ

‖J−1uu Jud (C†C − I)‖ (open loop loss)

‖Fl(P, K 0)‖‖Fl(P, KH2)‖KP

KI

15 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 52: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 1 cont’d

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.90

1

2

3

4

ζ

‖J−1uu Jud (C†C − I)‖ (open loop loss)

‖Fl(P, K 0)‖‖Fl(P, KH2)‖KP

KI

MS

MT

15 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 53: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Objective function, ζ = 0.3

16 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 54: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Objective function, ζ = 0.05

17 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 55: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

Distillation model fromSkogestad, 1997:

Binary distillation column

41 stages

Each stage at equilibrium,constant relative volatilityof 1.5

Linearized flow dynamics

Negligible vapor dynamics

Constant pressure

LV-configuration (levelsclosed).

18 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 56: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

Distillation model fromSkogestad, 1997:

Binary distillation column

41 stages

Each stage at equilibrium,constant relative volatilityof 1.5

Linearized flow dynamics

Negligible vapor dynamics

Constant pressure

LV-configuration (levelsclosed).

We compare the followingcontrollers:

LQR controller

MIMO-PI controller

MIMO-PID controller,c(s) = KP + 1

s KI + sτd s+1KD

18 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 57: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

Distillation model fromSkogestad, 1997:

Binary distillation column

41 stages

Each stage at equilibrium,constant relative volatilityof 1.5

Linearized flow dynamics

Negligible vapor dynamics

Constant pressure

LV-configuration (levelsclosed).

We compare the followingcontrollers:

LQR controller

MIMO-PI controller

MIMO-PID controller,c(s) = KP + 1

s KI + sτd s+1KD

Disturbances:

At t = 100 (and t = 300)minutes F steps up (anddown) by 1%.

At t = 400 minutes zF

changes by 10%.

18 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 58: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

F , zF

p

D, xD

B, xB

V

L

MB

MDLCPC

LC

19 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 59: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

F , zF

p

D, xD

B, xB

V

L

MB

MDLCPC

LC

LQR

...

...

19 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 60: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Distillation column

F , zF

p

D, xD

B, xB

V

L

MB

MDLCPC

LC

PI/PID

19 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 61: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controller

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 62: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controllerPI0

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 63: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controllerPI0

PIH2

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 64: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controllerPI0

PIH2

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 65: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controllerPI0

PIH2

PID0

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 66: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Example 2: Simulation results

0 100 200 300 400 500−2

−1

0

1

2

Δx

Time [minutes]

LQR controllerPI0

PIH2

PID0

PIDH2

20 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 67: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Conclusions

Showed link between linear-quadratic control andself-optimizing control

Full information: u = −Kx exists (as an implementation tothe open-loop LQR problem)

Does not hold for output feedbackOur method can be used to initalize fixed-structureH2-optimal design. (Use K y

0 = KC† if D = 0, else solve aconvex program to get K y

0 .)This problem seems to be convex, but most of the timeJ = ’inf’

21 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID

Page 68: Design of multivariable LQ-optimal PID controllers based ... · Design of multivariable LQ-optimal PID controllers based on convex optimization Henrik Manum and Sigurd Skogestad Department

Static output feedback

Static output feedback

The static output feedback problem is the problem of decidingfor given matrices A, B and C whether there exists a matrix Ksuch that A + BKC has all its eigenvalues in the left half plane.

Source:http://www.inma.ucl.ac.be/˜blondel/books/openprobs/

22 Henrik Manum and Sigurd Skogestad LQ-optimal MIMO PID