Course1 - Plantwide
Course1 - Plantwide
Course1 - Plantwide
Introduction
Sigurd Skogestad, NTNU
May 2014
1
Tue AM
Introduction.
– Objective: Put controllers on flow sheet (make P&ID)
– Two main objectives for control: Longer-term economics (CV1) and shorter-term
stability (CV2)
– Regulatory (basic) and supervisory (advanced) control layer
2
Why control?
• Operation
Actual value(dynamic)
Steady-state (average)
time
inflow ∞ outflow
(b) Detect and remove source of disturbances
• “Statistical process control”
• Example: Detect and eliminate variations in feed composition
4
Countermeasures to disturbances (II)
II. Process control
5
Classification of variables
d
u y
input (MV) Process output (CV)
6
Inputs for control (MVs)
7
Idealized view of control
(“PhD control”)
d, ys = y-ys
Control: Use inputs (MVs, u) to counteract the effect of the disturbances (DVs, d)
such that the outputs (CV=y) are kept close to their setpoints (ys)
8
Practice: Tennessee Eastman challenge
problem (Downs, 1991)
(“PID control”)
1st letter: Controlled variable (CV) = What we are trying to control (keep constant)
T: temperature
F: flow
L: level
P: pressure
DP: differential pressure (Δp)
A: Analyzer (composition)
C: composition
X: quality (composition)
10
H: enthalpy/energy
Example: Level control
Inflow (d)
Hs
H
LC
Outflow (u)
CLASSIFICATION OF VARIABLES:
INPUT (u): OUTFLOW (Input for control!)
OUTPUT (y): LEVEL
DISTURBANCE (d): INFLOW
11
How we design a control system for a
complete chemical plant?
• How do we get from PID control to PhD control?
• Where do we start?
• What should we control? and why?
• etc.
• etc.
12
Plantwide control =
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 “PhD” control
13
Previous work on plantwide control:
14
• Alan Foss (“Critique of chemical process control theory”, AIChE
Journal,1973):
15
Main objectives control system
• Usually NOT
– Different time scales
• Stabilization fast time scale
– Stabilization doesn’t “use up” any degrees of freedom
• Reference value (setpoint) available for layer above
• But it “uses up” part of the time window (frequency range)
16
Optimal operation (economics)
Example of systems we want to operate optimally
• Process plant
– minimize J=economic cost
• Runner
– minimize J=time
• «Green» process plant
– Minimize J=environmental impact (with given economic cost)
• General multiobjective:
– Min J (scalar cost, often $)
– Subject to satisfying constraints (environment, resources)
17
Theory: Optimal operation
Objectives
Theory:
•Model of overall system
Present state
CENTRALIZED •Estimate present state
•Optimize all degrees of
OPTIMIZER freedom
Process control:
• Excellent candidate for
centralized control
18
(Physical) Degrees of freedom
Practice: Engineering systems
19
Our Paradigm
Process engineer
Operator/RTO
Operator/”Advanced control”/MPC
PID-control
20 u = valves
Translate optimal operation
into simple control objectives:
What should we control?
CV1 = c ? (economics)
CV2 = ? (stabilization)
21
Outline
23
Step S1. Define optimal operation (economics)
• *No need to include fixed costs (capital costs, operators, maintainance) at ”our” time scale
(hours)
• Note: J=-P where P= Operational profit
24
Optimal operation distillation column
• Distillation at steady state with given p and F: N=2 DOFs, e.g. L and V (u)
• Cost to be minimized (economics)
cost energy (heating+ cooling)
J = - P where P= pD D + pB B – pF F – pVV
value products cost feed
• 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 (d) 2) p free (u): pmin · p · pmax
Feed: 1) F given (d) 2) F free (u): F · Fmax
• Optimal operation: Minimize J with respect to steady-state DOFs (u)
25
Step S2. Optimize
26
Steady-state DOFs
27
Steady-state DOFs
1. Equation-counting
• Nss = no. of variables – no. of equations/specifications
• Very difficult in practice
2. Valve-counting (easier!)
• Nss = Nvalves – N0ss – Nspecs
• N0ss = variables with no steady-state effect
• Inputs/MVs with no steady-state effect (e.g. extra bypass)
• Outputs/CVs with no steady-state effect that need to be controlled (e.g., liquid levels)
3. Potential number for some units (useful for checking!)
28 CV = controlled variable
Steady-state DOFs
Typical Distillation column
5 3
1
4 DOFs:
With given feed and pressure:
NEED TO IDENTIFY 2 more CV’s
- Typical: Top and btm composition
6
2
Nvalves = 6 , N0y = 2* ,
NDOF,SS = 6 -2 = 4 (including feed and pressure as DOFs)
29
*N0y : no. controlled variables (liquid levels) with no steady-state effect
Steady-state DOFs
split
“Potential number”,
Nss= 0 (column distillation) + 1 (feed) + 2*1 (heat exchangers) + 1 (split) = 4
31 With given feed and pressure: N’ss = 4 – 2 = 2
Step S2b: Optimize for expected disturbances
• What are the optimal values for our degrees of freedom u (MVs)?
minu J(u,x,d)
subject to:
Model equations (e,g, Hysys): f(u,x,d) = 0
Operational constraints: g(u,x,d) < 0
33
Optimal operation - Runner
34
Optimal operation - Runner
– 100m. J=T
– Active constraint control:
• Maximum speed (”no thinking required”)
• CV = power (at max)
35
Optimal operation - Runner
• 40 km. J=T
• What should we control? CV=?
• Unconstrained optimum
J=T
uopt u=power
36
Optimal operation - Runner
37
Optimal operation - Runner
J=T
c = heart rate
Control implications:
1. ALWAYS Control valuable product at spec. (active cheap product
(byproduct)
constraint). water
2. May overpurify (not control) cheap product + max. 2%
methanol
39
Example with Quiz:
Optimal operation of two distillation columns
in series
40
QUIZ 1
Operation of Distillation columns in series
With given F (disturbance): 4 steady-state DOFs (e.g., L and V in each column)
F ~ 1.2mol/s
pF=1 $/mol < 4 mol/s < 2.4 mol/s
> 95% C
pB2=1 $/mol
Cost (J) = - Profit = pF F + pV(V1+V2) – pD1D1 – pD2D2 – pB2B2
Energy price: pV=0-0.2 $/mol (varies)
PC PC
LC LC
Given
LC LC
PC PC
LC LC
xB
0
1
Energy 1
price
[$/mol]
2
2 0
3
1
[mol/s]
Cheap energy: 1 remaining unconstrained DOF (L1)
-> Need to find 1 additional CVs (“self-optimizing”)
46
Comment: Distillation column control in
practice
1. Add stabilizing temperature loops
– In this case: use reflux (L) as MV because boilup (V) may
saturate
– T1s and T2s then replace L1 and L2 as DOFs.
47
Comment: In practice
Control of Distillation columns in series
PC PC
LC LC
xB
T1 T2 T2s
TC T1s TC CC xBS=95%
Given
MAX V1 MAX V2
LC LC
48
CV = Active constraint
Loss
Jopt Back-off
c
a) If constraint can be violated dynamically (only average matters)
• Required Back-off = “measurement bias” (steady-state measurement error for c)
b) If constraint cannot be violated dynamically (“hard constraint”)
• Required Back-off = “measurement bias” + maximum dynamic control error
N Histogram
LEVEL 0 / LEVEL 1
2
Sigma 1 -- Sigma 2
Sigma 2
LEVEL 2
OFF
Q1 -- Q2
SPEC
W2
1.5
1
Rule for control of hard output constraints:
•“Squeeze and shift”!
•Reduce variance (“Squeeze”) and “shift”
Sigma 1
setpoint cs to reduce backoff
0.5
SQUEEZE
Q2 Q1 QUALITY
0
0 50 100 150 200 250 300 350 400 450
50 SHIFT
© Richalet
CV = Active constraint
Example. Optimal operation = max. throughput.
Want tight bottleneck control to reduce backoff!
Back-off
= Lost
production
Time
51
CV = Active constraint
D1
Example back-off. xB
8
– Backoff = 1%
– Setpoint xBs= 95 + 1% = 96% (to be safe)
– Do not need to include control error because it averages out in tank
52
Unconstrained variables
• More precisely
1. Optimal value of CV is constant
2. CV is “sensitive” to MV (large gain)
53
Unconstrained optimum
54
Example.
Control of Distillation columns. Cheap energy
PC PC
LC LC
xB
Overpurified CC xBS=95%
Given
MAX V1 MAX V2
LC LC
Overpurified
56
Mode 1. Given feedrate
Amount of products is then usually indirectly given and
J = cost feed– value products + cost energy
Often constant
57
copt c
Mode 2. Maximum production
J = cost feed + cost energy – value products
Control:
•Focus on tight control of bottleneck
• “Obvious what to control”
J •CV = ACTIVE CONSTRAINT
Infeasible
region
58 cmax c
Conclusion optimal operation
ALWAYS:
1. Control active constraints and control them tightly!!
– Good times: Maximize throughput -> tight control of bottleneck
• Use offline analysis to find expected operating regions and prepare control
system for this!
– One control policy when prices are low (nominal, unconstrained optimum)
– Another when prices are high (constrained optimum = bottleneck)
59