1 control structure design: what should we measure, control and manipulate? sigurd skogestad...

60
1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African Control Conference, Cape Town, 04 December 2003

Upload: moses-davidson

Post on 29-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

1

Control structure design: What should we measure, control and manipulate?

Sigurd Skogestad

Department of Chemical Engineering

NTNU, Trondheim

First African Control Conference, Cape Town, 04 December 2003

Page 2: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

2

Outline

• About myself

• Control structure design

• A procedure for control structure design

• Selection of primary controlled variables

• Example stabilizing control: Anti slug control

• Conclusion

Page 3: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

3

Sigurd Skogestad

• Born in 1955• 1956-1961: Lived in South Africa (Durban & Johannesburg)• 1978: Siv.ing. Degree (MS) in Chemical Engineering from NTNU (NTH)• 1980-83: Process modeling group at the Norsk Hydro Research Center in

Porsgrunn• 1983-87: Ph.D. student in Chemical Engineering at Caltech, Pasadena, USA.

Thesis on “Robust distillation control”. Supervisor: Manfred Morari• 1987 - : Professor in Chemical Engineering at NTNU• Since 1994: Head of process systems engineering center in Trondheim

(PROST)• Since 1999: Head of Department of Chemical Engineering• 1996: Book “Multivariable feedback control” (Wiley)• 2000,2003: Book “Prosessteknikk” (Tapir)• Group of about 10 Ph.D. students in the process control area

Page 4: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

4

Research: Develop simple yet rigorous methods to solve problems of

engineering significance.

• Use of feedback as a tool to1. reduce uncertainty (including robust control),

2. change the system dynamics (including stabilization; anti-slug control),

3. generally make the system more well-behaved (including self-optimizing control).

• limitations on performance in linear systems (“controllability”),

• control structure design and plantwide control,

• interactions between process design and control,

• distillation column design, control and dynamics.

• Natural gas processes

Page 5: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

5

Outline

• About myself

• Control structure design

• A procedure for control structure design

• Selection of primary controlled variables

• Example stabilizing control: Anti slug control

• Conclusion

Page 6: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

6

Idealized view of control(“Ph.D. control”)

Page 7: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

7

Practice: Tennessee Eastman challenge problem (Downs, 1991)

(“PID control”)

Page 8: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

8

Control structure design

• Not the tuning and behavior of each control loop,

• But rather the control philosophy of the overall plant with emphasis on the structural decisions:– Selection of controlled variables (“outputs”)

– Selection of manipulated variables (“inputs”)

– Selection of (extra) measurements

– Selection of control configuration (structure of overall controller that interconnects the controlled, manipulated and measured variables)

– Selection of controller type (LQG, H-infinity, PID, decoupler, MPC etc.).

• That is: Control structure design includes all the decisions we need make to get from ``PID control’’ to “Ph.D” control

Page 9: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

9

Process control:Control structure design = plantwide control

• Large systems

• Each plant usually different – modeling expensive

• Slow processes – no problem with computation time

• Structural issues important– What to control?

– Extra measurements

– Pairing of loops

Page 10: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

10

• Control structure selection issues are identified as important also in other industries.

Professor Gary Balas at ECC’03 about flight control at Boeing:

The most important control issue has always been to select the right controlled variables --- no systematic tools used!

Page 11: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

11

Process operation: Hierarchical structure

Need to define objectives and identify main issues for each

layer

PID

RTO

MPC

Page 12: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

12

Regulatory control (seconds)

• Purpose: “Stabilize” the plant by controlling selected ‘’secondary’’ variables (y2) such that the plant does not drift too far away from its desired operation

• Use simple single-loop PI(D) controllers

• Status: Many loops poorly tuned– Most common setting: Kc=1, I=1 min (default)

– Even wrong sign of gain Kc ….

Page 13: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

13

Regulatory control……...

• Trend: Can do better! Carefully go through plant and retune important loops using standardized tuning procedure

• Exists many tuning rules, including Skogestad (SIMC) rules: – Kc = 0.5/k (1/) I = min (1, 8)

– “Probably the best simple PID tuning rules in the world”

• Outstanding structural issue: What loops to close, that is, which variables (y2) to control?

Page 14: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

14

Supervisory control (minutes)

• Purpose: Keep primary controlled variables (y1) at desired values, using as degrees of freedom the setpoints y2s for the regulatory layer.

• Status: Many different “advanced” controllers, including feedforward, decouplers, overrides, cascades, selectors, Smith Predictors, etc.

• Issues: – Which variables to control may change due to change of “active

constraints”

– Interactions and “pairing”

Page 15: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

15

Supervisory control…...

• Trend: Model predictive control (MPC) used as unifying tool.

– Linear multivariable models with input constraints

– Tuning (modelling) is time-consuming and expensive

• Issue: When use MPC and when use simpler single-loop decentralized controllers ?– MPC is preferred if active constraints (“bottleneck”) change.

– Avoids logic for reconfiguration of loops

• Outstanding structural issue:– What primary variables y1 to control?

Page 16: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

16

Local optimization (hour)

• Purpose: Identify active constraints and possibly recompute optimal setpoints y1s for controlled variables

• Status: Done manually by clever operators and engineers

• Trend: Real-time optimization (RTO) based on detailed nonlinear steady-state model

• Issues: – Optimization not reliable.

– Modelling is time-consuming and expensive

Page 17: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

17

Outline

• About myself

• Control structure design

• A procedure for control structure design

• Selection of primary controlled variables

• Example stabilizing control: Anti slug control

• Conclusion

Page 18: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

18

Stepwise procedure plantwide control

I. TOP-DOWN

Step 1. DEFN. OF OPERATIONAL OBJECTIVES

Step 2. MANIPULATED VARIABLES and DEGREE OF FREEDOM ANALYSIS

Step 3. WHAT TO CONTROL? (primary outputs, c= y1)

Step 4. PRODUCTION RATE

Page 19: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

19

II. BOTTOM-UP (structure control system):

Step 5. REGULATORY CONTROL LAYER

Stabilization and Local disturbance rejection What more to control? (secondary outputs y2)

Step 6. SUPERVISORY CONTROL LAYER

Decentralized control or MPC?

Step 7. OPTIMIZATION LAYER (RTO)

Page 20: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

20

Outline

• About myself

• Control structure design

• A procedure for control structure design

• Selection of primary controlled variables

• Example stabilizing control: Anti slug control

• Conclusion

Page 21: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

21

What should we control?

y1 = c ? (economics)

y2 = ? (“stabilization”)

Page 22: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

22

Optimal operation (economics)

• Define scalar cost function J(u0,d)

– u0: degrees of freedom

– d: disturbances

• Optimal operation for given d:

minu0 J(u0,d)subject to:

f(u0,d) = 0

g(u0,d) < 0

Page 23: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

23

Active constraints

• Optimal solution is usually at constraints, that is, most of the degrees of freedom are used to satisfy “active constraints”, g(u0,d) = 0

• Implementation of active constraints is usually simple.

• We here concentrate on the remaining unconstrained degrees of freedom u.

Page 24: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

24

Optimal operation

Cost J

Independent variable u(remaining unconstrained)

uuoptopt

JJoptopt

Page 25: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

25

Implementation: How do we deal with uncertainty?

• 1. Disturbances d

• 2. Implementation error n

us = uopt(d*) – nominal optimization

nu = us + n

d

Cost J Jopt(d)

Page 26: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

26

Problem no. 1: Disturbance d

Cost J

Independent variable uuuoptopt(d(d00))

JJoptopt

d*d*

dd

Loss with constant value for u

Page 27: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

27

Problem no. 2: Implementation error n

Cost J

Independent variable u

uuss=u=uoptopt(d(d00))

JJoptopt

dd00 Loss due to implementation error for u

u = us + n

Page 28: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

28

Probem: Too complicated

”Obvious” solution: Optimizing control

Page 29: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

29

Alternative: Look for another variable c to control

Cost J

Controlled variable cccoptopt

JJoptopt

and keep at constant setpoint cs = copt(d*)

Page 30: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

30

Self-optimizing Control

• Self-optimizing Control– Self-optimizing control is when acceptable

loss can be achieved using constant set points (c

s)

for the controlled variables c (without re-

optimizing when disturbances occur).

• Define loss:

Page 31: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

31

Controlled variable: Feedback implementation

Issue:What should we control?

Page 32: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

32

Constant setpoint policy:Effect of disturbances (“problem 1”)

Page 33: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

33

Effect of implementation error (“problem 2”)

BADGoodGood

Page 34: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

34

Self-optimizing Control – Illustrating Example

• Optimal operation of Marathon runner, J=T– Any self-optimizing variable c (to control at constant

setpoint)?

Page 35: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

35

Self-optimizing Control – Illustrating Example

• Optimal operation of Marathon runner, J=T– 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

Page 36: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

36

Further examples

• Central bank. J = welfare. c=inflation rate

• Cake baking. J = nice taste, c = Temperature

• Biology. J = ?, c = regulatory mechanism

• Business, J = profit. c = KPI = response time to order

Page 37: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

37

Good controlled Variables c: Guidelines

• Requirements for good candidate controlled variables (Skogestad & Postlethwaite, 1996):– Its optimal value copt(d) is insensitive to disturbances d (to

avoid problem 1)– It should be easy to measure and control accurately (n small

to avoid problem 1)– The variables c should be sensitive to change in inputs (to

avoid problem 2)– The selected variables c should be independent (to avoid

problem 2)

• Rule: Maximize minimum singular value of scaled G • c = G u

Page 38: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

38

Candidate controlled variables

• Selected among available measurements y,

• More generally: Find the optimal linear combination (matrix H):

Page 39: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

39

Candidate Controlled Variables: Guidelines

• Recall first requirement:

Its optimal value copt(d) is insensitive to disturbances (to avoid problem 1)

• Can we always find a variable combination c = H y

which satisfies

• YES!! Provided

Page 40: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

40

Derivation of optimal combination (Alstad)

• Starting point: Find optimal operation as a function of d:– uopt(d), yopt(d)

• Linearize this relationship: yopt = F d

• Look for a linear combination c = Hy which satisfies: copt = 0

• To achieve

• Always possible if

Page 41: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

41

Applications of self-optimizing control

• Distillation

• Tennessee Eastman Challenge problem

• Power plant

• +++

Page 42: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

42

Outline

• About myself

• Control structure design

• A procedure for control structure design

• Selection of primary controlled variables

• Example stabilizing control: Anti-slug control

• Conclusion

Page 43: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

43

Application: Anti-slug control

Slug (liquid) buildup

Two-phase pipe flow(liquid and vapor)

Page 44: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

44

Slug cycle (stable limit cycle) Experiments performed by the Multiphase Laboratory, NTNU

Page 45: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

45

Experimental mini-loop

Page 46: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

46

p1

p2

z

Experimental mini-loopValve opening (z) = 100%

Page 47: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

47

p1

p2

z

Experimental mini-loopValve opening (z) = 25%

Page 48: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

48

p1

p2

z

Experimental mini-loopValve opening (z) = 15%

Page 49: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

49

p1

p2

z

Experimental mini-loop:Bifurcation diagram

Valve opening z %

No slug

Slugging

Page 50: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

50

p1

p2

z

Avoid slugging:1. Close valve (but increases pressure)

Valve opening z %

No slugging when valve is closed

Page 51: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

51

Avoid slugging:2. Build large slug-catcher

• Most common strategy in practice

p1

p2

z

Page 52: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

52

Avoid slugging:3. Other design changes to avoid slugging

p1

p2

z

Page 53: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

53

Avoid slugging: 4. Control?

Valve opening z %

Predicted smooth flow: Desirable but open-loop unstable

Comparison with simple 3-state model:

Page 54: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

54

Avoid slugging:4. ”Active” feedback control

PT

PCref

Simple PI-controller

p1

z

Page 55: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

55

Anti slug control: Mini-loop experiments

Controller ON Controller OFF

p1 [bar]

z [%]

Page 56: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

56

Anti slug control: Full-scale offshore experiments at Hod-Vallhall field (Havre,1999)

Page 57: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

57

Poles and zeros

y

zP1 [Bar] DP[Bar] ρT [kg/m3] FQ [m3/s] FW [kg/s]

0.175-0.0034 3.2473

0.0142

-0.0004

0.0048

-4.5722

-0.0032

-0.0004

-7.6315

-0.0004

0

0.25-0.0034 3.4828

0.0131

-0.0004

0.0048

-4.6276

-0.0032

-0.0004

-7.7528

-0.0004

0

Operation points:

Zeros:

zP1 DP Poles

0.175 70.05 1.94-6.11

0.0008±0.0067i

0.25 69 0.96-6.21

0.0027±0.0092i

P1

ρT

DP

FTTopside

Topside measurements: Ooops.... RHP-zeros or zeros close to origin

Page 58: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

58

Stabilization with topside measurements:Avoid “RHP-zeros by using 2 measurements

• Model based control (LQG) with 2 top measurements: DP and density ρT

Page 59: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

59

Summary anti slug control

• Stabilization of smooth flow regime = $$$$! (or Rand!)

• Stabilization using downhole pressure simple

• Stabilization using topside measurements possible

• Control can make a difference!

Thanks to: Espen Storkaas + Heidi Sivertsen and Ingvald Bårdsen

Page 60: 1 Control structure design: What should we measure, control and manipulate? Sigurd Skogestad Department of Chemical Engineering NTNU, Trondheim First African

60

Conclusion

What would I do if I was manager in a large chemical company?

• Define objective of control: Better operation (objective is not just to collect data)

• Define control as a function in my organization

• Define operational objectives for each plant ($ + other..)

• Unified approach (”company policy”):– Stabilizing control. PID rules

– MPC

– Avoid rule-based systems / Artificial intelligens /operator support systems - people are better at this

• Set high standards for acceptable control

My view

More information: Home page of Sigurd Skogestad - http://www.nt.ntnu.no/users/skoge/