1 plantwide control (control structure design for complete chemical plants) sigurd skogestad...

47
1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of Science and Tecnology (NTNU) Trondheim, Norway Based on: Plenary presentation at ESCAPE’12, May 2002 Updated/expanded April 2004 for 2.5 h tutorial in Vancouver, Canada Further updated: August 2004, December 2004, August 2005

Upload: mervyn-hancock

Post on 13-Dec-2015

226 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

1

Plantwide control(Control structure design for complete chemical plants)

Sigurd Skogestad

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

Based on: Plenary presentation at ESCAPE’12, May 2002Updated/expanded April 2004 for 2.5 h tutorial in Vancouver, Canada

Further updated: August 2004, December 2004, August 2005

Page 2: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

2

Outline

• Control structure design (plantwide control)

• A procedure for control structure designI Top Down

• Step 1: Degrees of freedom

• Step 2: Operational objectives (optimal operation)

• Step 3: What to control ? (primary CV’s) (self-optimizing control)

• Step 4: Where set production rate?

II Bottom Up • Step 5: Regulatory control: What more to control (secondary CV’s) ?

• Step 6: Supervisory control

• Step 7: Real-time optimization

Page 3: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

3

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

Page 4: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

4

Practice: Tennessee Eastman challenge problem (Downs, 1991)

(“PID control”)

Page 5: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

5

How we design a control system for a complete chemical plant?

• Where do we start?

• What should we control? and why?

• etc.

• etc.

Page 6: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

6

Idealized view II: Optimizing control

Page 7: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

7

Practice II: Hierarchical decomposition with separate layers

What should we control?

Page 8: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

8

• 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.

• Carl Nett (1989):Minimize control system complexity subject to the achievement of accuracy

specifications in the face of uncertainty.

Page 9: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

9

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 10: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

10

Process control:

“Plantwide control” = “Control structure design for complete chemical plant”

• 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 11: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

11

Previous work on plantwide control

• Page Buckley (1964) - Chapter on “Overall process control” (still industrial practice)

• Greg Shinskey (1967) – process control systems

• Alan Foss (1973) - control system structure

• Bill Luyben et al. (1975- ) – case studies ; “snowball effect”

• George Stephanopoulos and Manfred Morari (1980) – synthesis of control structures for chemical processes

• Ruel Shinnar (1981- ) - “dominant variables”

• Jim Downs (1991) - Tennessee Eastman challenge problem

• Larsson and Skogestad (2000): Review of plantwide control

Page 12: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

12

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

Professor Gary Balas (Minnesota) 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 13: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

13

Main simplification: Hierarchical structure

Need to define objectives and identify main issues for each

layer

PID

RTO

MPC

Page 14: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

14

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 15: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

15

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 = (1/k) (1/ [c +]) I = min (1, 4[c + ]), Typical: c=

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

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

Page 16: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

16

Supervisory control (minutes)

• Purpose: Keep primary controlled variables (c=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 17: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

17

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 c=y1 to control?

Page 18: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

18

Local optimization (hour)

• Purpose: Minimize cost function J and: – Identify active constraints

– Recompute optimal setpoints y1s for the 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.

– Need nonlinear steady-state model

– Modelling is time-consuming and expensive

Page 19: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

19

Objectives of layers: MV’s and CV’s

cs = y1s

MPC

PID

y2s

RTO

u (valves)

CV=y1; MV=y2s

CV=y2; MV=u

Min J; MV=y1s

Page 20: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

20

Stepwise procedure plantwide control

I. TOP-DOWNStep 1. DEGREES OF FREEDOMStep 2. OPERATIONAL OBJECTIVES Step 3. WHAT TO CONTROL? (primary CV’s c=y1)Step 4. PRODUCTION RATE

II. BOTTOM-UP (structure control system):Step 5. REGULATORY CONTROL LAYER (PID)

“Stabilization”What more to control? (secondary CV’s y2)

Step 6. SUPERVISORY CONTROL LAYER (MPC) Decentralization

Step 7. OPTIMIZATION LAYER (RTO)Can we do without it?

Page 21: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

21

Step 1. Degrees of freedom (DOFs)

• m – dynamic (control) degrees of freedom = valves

• u0 – steady-state degrees of freedom

• Cost J depends normally only on steady-state DOFs

Page 22: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

22

Control degrees of freeom Nm = 5 Steady-state degrees of freedom, Nu0 = 3 (2 with given pressure)

Distillation column with given feed

Page 23: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

23

Step 2. Define optimal operation (economics)

• What are we going to use our degrees of freedom for?• Define scalar cost function J(u0,x,d)

– u0: degrees of freedom– d: disturbances– x: states (internal variables)Typical cost function:

• Optimal operation for given d:

minu0 J(u0,x,d)subject to:

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

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

J = cost feed + cost energy – value products

Page 24: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

24

Step 3. What should we control (c)?

• Implementation of optimal operation

Page 25: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

25

What c’s should we control?

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

• CONTROL ACTIVE CONSTRAINTS!– cs = value of active constraint

– Implementation of active constraints is usually simple.

• WHAT MORE SHOULD WE CONTROL?– Find variables c for remaining

unconstrained degrees of freedom u.

Page 26: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

26

Self-optimizing Control

Self-optimizing control is when acceptable operation can be achieved using constant set points (c

s)

for the

controlled variables c (without the need to re-optimizing when disturbances occur).

c=cs

Page 27: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

27

Self-optimizing Control – Marathon

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

setpoint)?

Page 28: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

28

Self-optimizing Control – Marathon

• 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 29: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

29

Self-optimizing Control – Marathon

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

setpoint)?• c1 = distance to leader of race (Problem: Feasibility for d)

• c2 = speed (Problem: Feasibility for d)

• c3 = heart rate (Problem: Impl. Error n)

• c4 = level of lactate in muscles (Problem: Large impl.error n)

Page 30: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

30

Self-optimizing Control – Sprinter

• Optimal operation of Sprinter (100 m), J=T– Active constraint control:

• Maximum speed (”no thinking required”)

Page 31: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

31

What should we control?Rule: Maximize the scaled gain

• Scalar case. Minimum singular value = gain |G|

• Maximize scaled gain: |Gs| = |G| / span

– |G|: gain from independent variable (u) to candidate controlled variable (c)

– span (of c) = optimal variation in c + control error for c

Page 32: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

32

Step 4. Where set production rate?

• Very important!

• Determines structure of remaining inventory (level) control system

• Set production rate at (dynamic) bottleneck

• Link between Top-down and Bottom-up parts

Page 33: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

33

Production rate set at inlet :Inventory control in direction of flow

Page 34: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

34

Production rate set at outlet:Inventory control opposite flow

Page 35: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

35

Production rate set inside process

Page 36: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

36

Where to set the production rate?

• Very important decision that determines the structure of the rest of the control system!

• May also have important economic implications

Page 37: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

37

II. Bottom-up

• Determine secondary controlled variables and structure (configuration) of control system (pairing)

• A good control configuration is insensitive to parameter changes

Step 5. REGULATORY CONTROL LAYER

5.1 Stabilization (including level control) 5.2 Local disturbance rejection (inner cascades)

What more to control? (secondary variables)Step 6. SUPERVISORY CONTROL LAYER

Decentralized or multivariable control (MPC)?Pairing?

Step 7. OPTIMIZATION LAYER (RTO)

Page 38: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

38

Step 5. Regulatory control layer

• Purpose: “Stabilize” the plant using local SISO PID controllers

• Enable manual operation (by operators)

• Main structural issues:• What more should we control? (secondary cv’s, y2)

• Pairing with manipulated variables (mv’s u2)

y1 = c

y2 = ?

Page 39: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

39

XC

TC

FC

ys

y

Ls

Ts

L

T

z

XC

Page 40: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

40

Degrees of freedom unchanged

• No degrees of freedom lost by control of secondary (local) variables as setpoints become y2s replace inputs u2 as new degrees of freedom

GKy2s u2

y2

y1

Original DOFNew DOF

Cascade control:

Page 41: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

41

What should we control?Rule: Maximize the scaled gain

• Scalar case. Minimum singular value = gain |G|

• Maximize scaled gain: |Gs| = |G| / span

– |G|: gain from independent variable (u) to candidate controlled variable (y)

– span (of y) = optimal variation in c + control error for y

Page 42: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

42

Step 6. Supervisory control layer

• Purpose: Keep primary controlled outputs c=y1 at optimal setpoints cs

• Degrees of freedom: Setpoints y2s in reg.control layer

• Main structural issue: Decentralized or multivariable?

Page 43: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

43

Decentralized control(single-loop controllers)

Use for: Noninteracting process and no change in active constraints

+ Tuning may be done on-line

+ No or minimal model requirements

+ Easy to fix and change

- Need to determine pairing

- Performance loss compared to multivariable control

- Complicated logic required for reconfiguration when active constraints move

Page 44: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

44

Multivariable control(with explicit constraint handling = MPC)

Use for: Interacting process and changes in active constraints

+ Easy handling of feedforward control

+ Easy handling of changing constraints• no need for logic

• smooth transition

- Requires multivariable dynamic model

- Tuning may be difficult

- Less transparent

- “Everything goes down at the same time”

Page 45: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

45

Step 7. Optimization layer (RTO)

• Purpose: Identify active constraints and compute optimal setpoints (to be implemented by supervisory control layer)

• Main structural issue: Do we need RTO? (or is process self-optimizing)

Page 46: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

46

Conclusion

Procedure plantwide control:

I. Top-down analysis to identify degrees of freedom and primary controlled variables (look for self-optimizing variables)

II. Bottom-up analysis to determine secondary controlled variables and structure of control system (pairing).

Page 47: 1 Plantwide control (Control structure design for complete chemical plants) Sigurd Skogestad Department of Chemical Engineering Norwegian University of

47

Summary: Main steps

1. What should we control (y1=c=z)?

• Must define optimal operation!

2. Where should we set the production rate?• At bottleneck

3. What more should we control (y2)?

• Variables that “stabilize” the plant

4. Control of primary variables• Decentralized?

• Multivariable (MPC)?