controlled variable and measurement selection

29
1 CONTROLLED VARIABLE AND MEASUREMENT SELECTION Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Technology (NTNU) Trondheim, Norway Bratislava, Nov. 2010

Upload: tate-olson

Post on 31-Dec-2015

20 views

Category:

Documents


1 download

DESCRIPTION

CONTROLLED VARIABLE AND MEASUREMENT SELECTION. Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Technology (NTNU) Trondheim, Norway Bratislava, Nov. 2010. NTNU, Trondheim. Plantwide control. The controlled variables (CVs) interconnect the layers. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

1

CONTROLLED VARIABLE AND MEASUREMENT SELECTION

Sigurd Skogestad

Department of Chemical EngineeringNorwegian University of Science and Technology (NTNU)Trondheim, Norway

Bratislava, Nov. 2010

Page 2: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

2

NTNU,Trondheim

Page 3: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

3

cs = y1s

MPC

PID

y2s

RTO

u (valves)

Switch+Follow path (+ look after other variables)

CV=y1 (+ u); MV=y2s

Stabilize + avoid drift CV=y2; MV=u

Min J (economics); MV=y1s

OBJECTIVE

Plantwide control

Process control The controlled variables (CVs)interconnect the layers

MV = manipulated variableCV = controlled variable

Page 4: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

4

• Alan Foss (“Critique of chemical process control theory”, AIChE Journal,1973):

The central issue to be resolved ... is the determination of control system structure. Which variables should be measured, which inputs should be manipulated and which links should be made between the two sets? There is more than a suspicion that the work of a genius is needed here, for without it the control configuration problem will likely remain in a primitive, hazily stated and wholly unmanageable form. The gap is present indeed, but contrary to the views of many, it is the theoretician who must close it.

This talk: Controlled variable (CV) selection: What should we measure and control?

Page 5: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

5

Implementation of optimal operation

• Optimal operation for given d*:

minu J(u,x,d)subject to:

Model equations: f(u,x,d) = 0

Operational constraints: g(u,x,d) < 0

→ uopt(d*)

Problem: Usally cannot keep uopt constant because disturbances d change

How should we adjust the degrees of freedom (u)?

Page 6: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

6

Implementation of optimal operation

• Paradigm 1: Centralized on-line optimizing control where measurements are used to update model and states

• Paradigm 2: “Self-optimizing” control scheme found by exploiting properties of the solution– Control the right variable! (CV selection)

Page 7: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

7

Implementation (in practice): Local feedback control!

“Self-optimizing control:” Constant setpoints for c gives acceptable loss

y

FeedforwardOptimizing controlLocal feedback: Control c (CV)

d

Page 8: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

9

Question: What should we control (c)? (primary controlled variables y1=c)

• Introductory example: Runner

Issue:What should we control?

Page 9: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

10

– Cost to be minimized, J=T

– One degree of freedom (u=power)

– What should we control?

Optimal operation - Runner

Optimal operation of runner

Page 10: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

11

Sprinter (100m)

• 1. Optimal operation of Sprinter, J=T– Active constraint control:

• Maximum speed (”no thinking required”)

Optimal operation - Runner

Page 11: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

12

• 2. Optimal operation of Marathon runner, J=T• Unconstrained optimum!• Any ”self-optimizing” variable c (to control at

constant setpoint)?• c1 = distance to leader of race

• c2 = speed

• c3 = heart rate

• c4 = level of lactate in muscles

Optimal operation - Runner

Marathon (40 km)

Page 12: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

13

Conclusion Marathon runner

c = heart rate

select one measurement

• Simple and robust implementation• Disturbances are indirectly handled by keeping a constant heart rate• May have infrequent adjustment of setpoint (heart rate)

Optimal operation - Runner

Page 13: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

14

Need to find new “self-optimizing” CVs (c=Hy) in each region of active constraints

3

3 unconstrained degrees of freedom -> Find 3 CVs

2

2

1

1

Control 3 active constraints

Page 14: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

15

• Operational objective: Minimize cost function J(u,d)• The ideal “self-optimizing” variable is the gradient (first-order

optimality condition) (Halvorsen and Skogestad, 1997; Bonvin et al. 2001; Cao, 2003):

• Optimal setpoint = 0

• BUT: Gradient can not be measured in practice• Possible approach: Estimate gradient Ju based on measurements y

• Approach here: Look directly for c as a function of measurements y (c=Hy) without going via gradient

Ideal “Self-optimizing” variables

Unconstrained degrees of freedom:

I.J. Halvorsen and S. Skogestad, ``Optimizing control of Petlyuk distillation: Understanding the steady-state behavior'', Comp. Chem. Engng., 21, S249-S254 (1997)Ivar J. Halvorsen and Sigurd Skogestad, ``Indirect on-line optimization through setpoint control'', AIChE Annual Meeting, 16-21 Nov. 1997, Los Angeles, Paper 194h. .

Page 15: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

16

H

Page 16: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

17

H

Page 17: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

18

Guidelines for selecting single measurements as CVs

• Rule 1: The optimal value for CV (c=Hy) should be insensitive to disturbances d (minimizes effect of setpoint error)

• Rule 2: c should be easy to measure and control (small implementation error n)

• Rule 3: “Maximum gain rule”: c should be sensitive to changes in u (large gain |G| from u to c) or equivalently the optimum Jopt should be flat with respect to c (minimizes effect of implementation error n)

Reference: S. Skogestad, “Plantwide control: The search for the self-optimizing control structure”, Journal of Process Control, 10, 487-507 (2000).

Page 18: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

19

Optimal measurement combination

H

•Candidate measurements (y): Include also inputs u

Page 19: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

20

Nullspace method

Page 20: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

21

Amazingly simple!

Sigurd is told how easy it is to find H

Proof nullspace methodBasis: Want optimal value of c to be independent of disturbances

• Find optimal solution as a function of d: uopt(d), yopt(d)

• Linearize this relationship: yopt = F d

• Want:

• To achieve this for all values of d:

• To find a F that satisfies HF=0 we must require

• Optimal when we disregard implementation error (n)

V. Alstad and S. Skogestad, ``Null Space Method for Selecting Optimal Measurement Combinations as Controlled Variables'', Ind.Eng.Chem.Res, 46 (3), 846-853 (2007).

Page 21: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

22

( , ) ( , )opt optL J u d J u d

Ref: Halvorsen et al. I&ECR, 2003

Kariwala et al. I&ECR, 2008

Generalization (with measurement noise)

21/2 1( )yavg uu F

L J HG HYLoss with c=Hy=0 due to(i) Disturbances d(ii) Measurement noise ny

31( , ) ( , ) ( ) ( ) ( )

2T

opt u opt opt uu optJ u d J u d J u u u u J u u

1

[ ],d n

y yuu ud d

Y FW W

F G J J G

u

J

( )opt ou d

Loss

'd

Controlled variables,c yH

ydG

cs = constant +

+

+

+

+

- K

H

yG y

'yn

c

u

dW nW

d

optu

Page 22: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

23

'd

ydG

cs = constant +

+

+

+

+

- K

H

yG y

'yn

c

u

dW nW

“Minimize” in Maximum gain rule( maximize S1 G Juu

-1/2 , G=HGy )

“Scaling” S1

“=0” in nullspace method (no noise)

Optimal measurement combination, c = Hy

Page 23: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

24

1/2 1min ( )yuu FH

J HG HY Non-convex optimization problem

(Halvorsen et al., 2003)

Hmin HY F

st 1/ 2yuuHG J

Improvement 1 (Alstad et al. 2009)

st yHG Q

Improvement 2 (Yelchuru et al., 2010)

Hmin HY F

-1 -1 -1 1 -11 y 1 y y y (H G ) H = (DHG ) DH = (HG ) D DH = (HG ) H

1H DH D : any non-singular matrix

Have extra degrees of freedom

[ ]d nY FW W

Convex optimization

problem

Global solution

- Do not need Juu

- Q can be used as degrees of freedom for faster solution- Analytical solution

1/2 1 1 1( ( ) ) ( )yT T y yT TuuH J G Y Y G G Y Y

Page 24: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

25

Special case: Indirect control = Estimation using “Soft sensor”

• Indirect control: Control c= Hy such that primary output y1 is constant

– Optimal sensitivity F = dyopt/dd = (dy/dd)y1

– Distillation: y=temperature measurements, y1= product composition

• Estimation: Estimate primary variables, y1=c=Hy

– y1 = G1 u, y = Gy u

– Same as indirect control if we use extra degrees of freedom (H1=DH) such that (H1Gy)=G11/2 1 1(( ) ( ( ) ) ,

[ ]

T y yT T Tuu

d n

H J YY G G YY

Y FW W

Page 25: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

26

Current research:“Loss approach” can also be used for Y = data

• More rigorous alternative to “least squares” and extensions such as PCR and PLS (Chemiometrics)

• Why is least squares not optimal?– Fits data by minimizing ||Y1-HY||

– Does not consider how estimate y1=Hy is going to be used in the future.

• Why is the loss approach better?– Use the data to obtain Y, Gy and G1 (step 1).

– Step 2: obtain estimate y1=Hy that works best for the future expected disturbances and measurement noise (as indirectly given by the data in Y)

1/2 1 1(( ) ( ( ) ) ,

[ ]

T y yT T Tuu

d n

H J YY G G YY

Y FW W

Page 26: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

27

Toy Example

Reference: I. J. Halvorsen, S. Skogestad, J. Morud and V. Alstad, “Optimal selection of controlled variables”, Industrial & Engineering Chemistry Research, 42 (14), 3273-3284 (2003).

Page 27: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

28

Toy Example: Single measurements

Want loss < 0.1: Consider variable combinations

Constant input, c = y4 = u

Page 28: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

29

Toy Example

Page 29: CONTROLLED VARIABLE AND MEASUREMENT SELECTION

30

Conclusion

• Systematic approach for finding CVs, c=Hy

• Can also be used for estimation

S. Skogestad, ``Control structure design for complete chemical plants'', Computers and Chemical Engineering, 28 (1-2), 219-234 (2004).

V. Alstad and S. Skogestad, ``Null Space Method for Selecting Optimal Measurement Combinations as Controlled Variables'', Ind.Eng.Chem.Res, 46 (3), 846-853 (2007).

V. Alstad, S. Skogestad and E.S. Hori, ``Optimal measurement combinations as controlled variables'', Journal of Process Control, 19, 138-148 (2009)

Ramprasad Yelchuru, Sigurd Skogestad, Henrik Manum , MIQP formulation for Controlled Variable Selection in Self Optimizing Control IFAC symposium DYCOPS-9, Leuven, Belgium, 5-7 July 2010

Download papers: Google ”Skogestad”