How to design the control system for a complete plant in a systematic manner Sigurd Skogestad
Department of Chemical Engineering Norwegian University of Science and Tecnology (NTNU) Trondheim, Norway
Outline (6 lectures)
Control structure design (plantwide control) A procedure for control structure design
I Top Down Lecture 1 (49)
Step S1: Define operational objective (cost) and constraints Step S2: Identify degrees of freedom and optimize operation for disturbances Step S3: Implementation of optimal operation What to control ? (primary CVs) (self-optimizing control) Lecture 2 (71)+ Step S4: Where set the production rate? (Inventory control) Lecture 3 (36)
II Bottom Up
Step S5: Regulatory control: What more to control (secondary CVs) ? Lecture 4 (62)+ Distillation column control Step S6: Supervisory control Lecture 5 (19) Step S7: Real-time optimization
Lecture 6 (54)
*Each lecture is 2 hours with a 10 min intermediate break after about 55 min (no. of slides) + means that it most likely will continue into the next lecture
Where to set the production rate and bottleneck Bottom-up. Design of the regulatory control layer ("what more should we control")
- stabilization - secondary controlled variables (measurements) - pairing with inputs
Main references
The following paper summarizes the procedure:
S. Skogestad, ``Control structure design for complete chemical plants'', Computers and Chemical Engineering, 28 (1-2), 219-234 (2004).
There are many approaches to plantwide control as discussed in the following review paper:
T. Larsson and S. Skogestad, ``Plantwide control: A review and a new design procedure'' Modeling, Identification and Control, 21, 209-240 (2000).
S. Skogestad ``Plantwide control: the search for the self-optimizing control structure'', J. Proc. Control, 10, 487-507 (2000). S. Skogestad, ``Self-optimizing control: the missing link between steady-state optimization and control'', Comp.Chem.Engng., 24, 569575 (2000). I.J. Halvorsen, M. Serra and S. Skogestad, ``Evaluation of self-optimising control structures for an integrated Petlyuk distillation column'', Hung. J. of Ind.Chem., 28, 11-15 (2000). T. Larsson, K. Hestetun, E. Hovland, and S. Skogestad, ``Self-Optimizing Control of a Large-Scale Plant: The Tennessee Eastman Process'', Ind. Eng. Chem. Res., 40 (22), 4889-4901 (2001). K.L. Wu, C.C. Yu, W.L. Luyben and S. Skogestad, ``Reactor/separator processes with recycles-2. Design for composition control'', Comp. Chem. Engng., 27 (3), 401-421 (2003). T. Larsson, M.S. Govatsmark, S. Skogestad, and C.C. Yu, ``Control structure selection for reactor, separator and recycle processes'', Ind. Eng. Chem. Res., 42 (6), 1225-1234 (2003). A. Faanes and S. Skogestad, ``Buffer Tank Design for Acceptable Control Performance'', Ind. Eng. Chem. Res., 42 (10), 2198-2208 (2003). I.J. Halvorsen, S. Skogestad, J.C. Morud and V. Alstad, ``Optimal selection of controlled variables'', Ind. Eng. Chem. Res., 42 (14), 3273-3284 (2003). A. Faanes and S. Skogestad, ``pH-neutralization: integrated process and control design'', Computers and Chemical Engineering, 28 (8), 1475-1487 (2004). S. Skogestad, ``Near-optimal operation by self-optimizing control: From process control to marathon running and business systems'', Computers and Chemical Engineering, 29 (1), 127-137 (2004). E.S. Hori, S. Skogestad and V. Alstad, ``Perfect steady-state indirect control'', Ind.Eng.Chem.Res, 44 (4), 863-867 (2005). M.S. Govatsmark and S. Skogestad, ``Selection of controlled variables and robust setpoints'', Ind.Eng.Chem.Res, 44 (7), 2207-2217 (2005). 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). S. Skogestad, ``The dos and don'ts of distillation columns control'', Chemical Engineering Research and Design (Trans IChemE, Part A), 85 (A1), 13-23 (2007). E.S. Hori and S. Skogestad, ``Selection of control structure and temperature location for two-product distillation columns'', Chemical Engineering Research and Design (Trans IChemE, Part A), 85 (A3), 293-306 (2007). A.C.B. Araujo, M. Govatsmark and S. Skogestad, ``Application of plantwide control to the HDA process. I Steady-state and selfoptimizing control'', Control Engineering Practice, 15, 1222-1237 (2007). A.C.B. Araujo, E.S. Hori and S. Skogestad, ``Application of plantwide control to the HDA process. Part II Regulatory control'', Ind.Eng.Chem.Res, 46 (15), 5159-5174 (2007). V. Lersbamrungsuk, T. Srinophakun, S. Narasimhan and S. Skogestad, ``Control structure design for optimal operation of heat exchanger networks'', AIChE J., 54 (1), 150-162 (2008). DOI 10.1002/aic.11366 990-999 (2008). T. Lid and S. Skogestad, ``Data reconciliation and optimal operation of a catalytic naphtha reformer'', Journal of Process Control, 18, 320-331 (2008). E.M.B. Aske, S. Strand and S. Skogestad, ``Coordinator MPC for maximizing plant throughput'', Computers and Chemical Engineering, 32, 195-204 (2008). A. Araujo and S. Skogestad, ``Control structure design for the ammonia synthesis process'', Computers and Chemical Engineering, 32 (12), 2920-2932 (2008). E.S. Hori and S. Skogestad, ``Selection of controlled variables: Maximum gain rule and combination of measurements'', Ind.Eng.Chem.Res, 47 (23), 9465-9471 (2008). V. Alstad, S. Skogestad and E.S. Hori, ``Optimal measurement combinations as controlled variables'', Journal of Process Control, 19, 138-148 (2009) E.M.B. Aske and S. Skogestad, ``Consistent inventory control'', Ind.Eng.Chem.Res, 48 (44), 10892-10902 (2009).
+ MORE
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.
Minimize control system complexity subject to the achievement of accuracy specifications in the face of uncertainty.
That is: Control structure design includes all the decisions we need make to get from ``PID control to PhD control
10
Process control:
11
Control structure selection issues are identified as important also in other industries.
Professor Gary Balas (Minnesota) at ECC03 about flight control at Boeing:
The most important control issue has always been to select the right controlled variables --- no systematic tools used!
12
13
OBJECTIVE
RTO
MPC
y2s
PID
14
CV=y1
(+ u);
MV=y2s
Hierarchical decomposition
Regulatory control:
First need to learn to stabilize the bicycle
CV = y2 = tilt of bike MV = body position
Supervisory control:
Then need to follow the road.
CV = y1 = distance from right hand side MV=y2s
Optimization:
Which road should you follow? Temporary (discrete) changes in y1s
15
16
y1 y2
MVs Process
(Decision 1).
Step S4: Where set the production rate? (Inventory control) (Decision 3)
II Bottom Up
Step S5: Regulatory / stabilizing control (PID layer) What more to control (y2; local CVs)? y (Decision 2) Pairing of inputs and outputs y (Decision 4) Step S6: Supervisory control (MPC layer) Step S7: Real-time optimization (Do we need it?)
Understanding and using this procedure is the most important part of this course!!!!
17
Notes: Establish control objectives in step L1 does not lead directly to the choice of controlled variables (Decisions 1 and 2). Thus, in Luybens procedure, Decisions 1, 2 and 4 are not explicit, but are included implicitly in most of the steps. Even though the procedure is systematic, it is still heuristic and ad hoc in the sense that it is not clear how the authors arrived at the steps or their order. A major weakness is that the procedure does not include economics, except as an afterthought in step L9.
18
Outline
Skogestad procedure for control structure design
I Top Down
Step S1: Define operational objective (cost) and constraints Step S2: Identify degrees of freedom and optimize operation for disturbances Step S3: Implementation of optimal operation What to control ? (primary CVs) (self-optimizing control) Step S4: Where set the production rate? (Inventory control)
II Bottom Up
Step S5: Regulatory control: What more to control (secondary CVs) ? Step S6: Supervisory control Step S7: Real-time optimization
19
minu J(u,x,d)
subject to: Model equations: Operational constraints: f(u,x,d) = 0 g(u,x,d) < 0
20
Constraints Purity D: For example xD, impurity max Purity B: For example, xB, impurity max Flow constraints: min D, B, L etc. max Column capacity (flooding): V Vmax, etc. Pressure: 1) p given, 2) p free: pmin p pmax Feed: 1) F given 2) F free: F Fmax Optimal operation: Minimize J with respect to steady-state DOFs
21
Optimal operation
minimize J = cost feed + cost energy value products
Control: Operate at optimal trade-off (not obvious what to control to achieve this)
Products usually much more valuable than feed + energy costs small. With feedrate as a degree of freedom, optimal operation is then usually constrained by bottleneck. Control: Focus on tight control of
bottleneck (obvious what to control) 22
Outline
Skogestad procedure for control structure design
I Top Down
Step S1: Define operational objective (cost) and constraints Step S2: Identify degrees of freedom and optimize operation for disturbances Step S3: Implementation of optimal operation What to control ? (primary CVs) (self-optimizing control) Step S4: Where set the production rate? (Inventory control)
II Bottom Up
Step S5: Regulatory control: What more to control (secondary CVs) ? Step S6: Supervisory control Step S7: Real-time optimization
23
Step S2 (Optimize operation): (a) Identify degrees of freedom (b) Optimize for expected disturbances
Need good steady-state model Goal: Identify regions of active constraints Time consuming!
24
25
QUIZ 1
N=41 AB=1.33
N=41 BC=1.5
< 4 mol/s
Cost (J) = - Profit = pF F + pV(V1+V2) pAD1 pBD2 pCB2 QUIZ: What are the expected active constraints? 1. Always. 2. For low energy prices.
SOLUTION QUIZ 1
N=41 AB=1.33
N=41 BC=1.5
1. xB = 95% B Spec. valuable product (B): Always active! Why? Avoid Hm.? product give-away
< 4 mol/s < 2.4 mol/s
2. Cheap energy: V1=4 mol/s, V2=2.4 mol/s > 95% C Max. column capacity constraints active! pC=1 $/mol Why? Overpurify A & C to recover more B Cost (J) = - Profit = pF F + pV(V1+V2) pAD1 pBD2 pCB2 QUIZ: What are the expected active constraints? 1. Always. 2. For low energy prices.
Energy price
[$/mol]
BOTTLENECK
Higher F infeasible because all 5 constraints reached
[mol/s] 28
CV = Controlled Variable
QUIZ 2
Energy price
[$/mol]
[mol/s] 29
CV = Controlled Variable
QUIZ. Assume low energy prices (pV=0.01 $/mol). How should we control the columns?
QUIZ 2
Given
LC
LC
QUIZ. Assume low energy prices (pV=0.01 $/mol). How should we control the columns?
Comment
T1
TC
T1s
T2
TC
T2s
Given
LC
LC
31
Comment: Should normally stabilize column profiles with temperature control, Should use reflux (L) in this case because boilup (V) may saturate. T1S and T2S would then replace L1 and L2 as DOFs but leave this out for now..
Red: Basic regulatory loops
Back to QUIZ 2
Given
LC
LC
QUIZ. Assume low energy prices (pV=0.01 $/mol). How should we control the columns?
SOLUTION QUIZ 2
Given
MAX V2 MAX V1 General for remaining unconstrained DOFs: LOOK FOR SELF-OPTIMIZING CVs = Variables we can keep constant LC WILL GET BACK TO THIS! LC
QUIZ. Assume low energy prices (pV=0.01 $/mol). How should we control the columns?
1
[$/mol]
2 3 2 1
[mol/s]
Cheap energy: 1 remaining unconstrained DOF (L1) -> Need to find 1 additional CVs (self-optimizing) More expensive energy: 3 remaining unconstrained DOFs -> Need to find 3 additional CVs (self-optimizing)
34
CV = Controlled Variable
35
Steady-state DOFs
36
Steady-state DOFs
2. Valve-counting (easier!) 3. Potential number for some units (useful for checking!) 4. Correct answer: Will eventually find it when we perform optimization
37
Steady-state DOFs
38
Steady-state DOFs
1 With given feed and pressure: NEED TO IDENTIFY 2 more CVs - Typical: Top and btm composition 6 2
39
QUIZ 3
Steady-state DOFs
40
Nvalves = 11 (w/feed), N0y = 4 (levels), Nss = 11 4 = 7 (with feed and 2 pressures) Need to find 7 CVs!
Steady-state DOFs
CW
Nss = 3 2 = 1
41
Steady-state DOFs
Steady-state degrees of freedom (Nss): 3. Potential number for some process units
each external feedstream: 1 (feedrate) splitter: n-1 (split fractions) where n is the number of exit streams mixer: 0 compressor, turbine, pump: 1 (work/speed) adiabatic flash tank: 0* liquid phase reactor: 1 (holdup reactant) gas phase reactor: 0* heat exchanger: 1 (bypass or flow) column (e.g. distillation) excluding heat exchangers: 0* + no. of sidestreams pressure* : add 1DOF at each extra place you set pressure (using an extra valve, compressor or pump), e.g. in adiabatic flash tank, gas phase reactor or absorption column
*Pressure is normally assumed to be given by the surrounding process and is then not a degree of freedom Ref: Araujo, Govatsmark and Skogestad (2007) Extension to closed cycles: Jensen and Skogestad (2009) Real number may be less, for example, if there is no bypass valve
42
Steady-state DOFs
CW
Nss = 1
43
Steady-state DOFs
split
Potential number,
44
Nss= 0 (distillation) + 1 (feed) + 2*1 (heat exchangers) + 1 (split) = 4 With given feed and pressure: Nss = 4 2 = 2
Steady-state DOFs
Potential number, Nss = 1 (feed) + 2*0 (columns) + 2*1 (splits) + 1 (sidestream) + 3 (hex) = 7
45
QUIZ 4
Steady-state DOFs
HDA process
Purge (H2 + CH4)
Compressor
H2 + CH4 Toluene
Mixer
FEHE
Furnace
PFR
Quench
Separator
Toluene Benzene
Cooler
CH4
Toluene Column
Benzene Column
Stabilizer
46
Diphenyl
QUIZ 4 solution
Steady-state DOFs
feed:1.2
4 5 6
14
12
10
47
Steady-state DOFs
Check that there are enough manipulated variables (DOFs) - both dynamically and at steady-state (step 2) Otherwise: Need to add equipment
extra heat exchanger bypass surge tank
48
Step S2b: Optimize with respects to DOFS (u) for expected disturbances (d) .. and identify regions of active constraints
minu J(u,x,d)
subject to: Model equations: Operational constraints: f(u,x,d) = 0 g(u,x,d) < 0
d2 = energy price
d1 = feedrate
Idea: Prepare operation for expected future disturbances, incl. price changes In principle: simple In practise: very time consuming
Commercial simulators (Aspen, Unisim/Hysys) are set up in design mode and often work poorly in operation (rating) mode.
Example Heat exchanger Easy (Design mode): Given streams (and temperatures), find UA Difficult (Operation mode): Given UA, find outlet temperatures We use Matlab or even Excel on top Heat exchanger: Let Matlab/Excel vary temperatures to match given UA
49