Part 3
Part 3
MV=u y=CV
Process
Additional rule:
3. “ RGA-rule”
• Avoid pairing on negative steady-state RGA-element. Otherwise, the loop gain may
change sign (for example, if the input saturates) and we get instability with integral
action in the controller.
Need to control active constraints
But active constraints may change during operation
Four cases:
• A. MV-MV switching
• B. CV-CV switching
• MV-CV switching
• C. Simple (if we follow input saturation rule)
• D. Complex (combine MV-MV and CV-CV)
Process
A. MV-MV switching
• Need several MVs to cover whole steady-state range (because
primary MV may saturate)*
• Note that we only want to use one MV at the time.
In addition: MPC
Which is best? It depends on the case!
* Adriana Reyes-Lua Cristina Zotica, Sigurd Skogestad, «Optimal Operation with Changing Active Constraint Regions using Classical Advanced Control,, Adchem Conference, Shenyang, China. July 2018 ,
A. Reyes-Lúa and S. Skogestad. “Multi-input single-output control for extending the operating range: Generalized split range control using the baton strategy”. Journal of Process Control 91 (2020)
B. CV-CV switching
Process
• One MV
• Many CVs, but control only one at a time
• Solution: Selector
The four cases in more detail
A. MV-MV switching (because MV may saturate)
• Need many MVs to cover whole steady-state range
• Use only one MV at a time
Process
• Three options:
A1. Split-range control,
A2. Different setpoints,
A3. Valve position control (VPC)
B. CV-CV switching (because we may reach new CV constraint)
• Must select between CVs Process
• One option: Many controllers with Max-or min-selector
Note: we are here assuming that the constraints are not conflicting so that switching is possible
Adriana Reyes-Lua and Sigurd Skogestad, Systematic Design of Active Constraint Switching Using Classical Advanced Control Structures, Ind.Eng.Chem.Res, 2020
Standard advanced control elements
• E1-E18
E1. Cascade control
General case (“parallel cascade”)
T2
d’1
Valve
Use cascade control (with an extra secondary measurement y2) when one or more of the following
occur:
1. Significant disturbances d2 and d2’ inside slave loop (and y2 can be controlled faster than y1)
2. The plant G2 is nonlinear or varies with time or is uncertain.
3. Integrating dynamics (including slow dynamics or unstable) in both G1 and G2, (because without
cascade double integrating plant G1G2 is difficult to control)
4. Measurement delay for y1
• Note: In the flowsheet above, y1 is the measured output, so any measurement delay is included in G1
Design / tuning
• First design K2 (“fast loop”) to deal with d2 and d2’
• Then design K1 to deal with d1 and d1’
Transfer functions and tuning
T2
d’1
ys
With flow loop + y XC τc=1500s=25 min
T-loop in top
Ts
T
TC τc=150s
Ls
L FC τc=15s
z
XC
Problem with many layers:
Eat up the time window
Cascade control block diagram
• Which disturbances motivate the use of
cascade control?
d2 d1 d1o
r2 u y2
r1 C1 C2 + P2 + P1 + y1
Answer: d2
E2. Ratio control
EXAMPLE: CAKE BAKING MIXING PROCESS
RATIO CONTROL with outer feedback trim (to adjust ratio setpoint)
R=(F2/F1)s
d=F1,m u= F2,s
x
Flour
F2,m FC
(solid) Water
VC
ym
∞
y
Viscosity y [cP]
ys
Product
Ratio control
• Avoid divisions in implementation! (avoid divide by 0)
• Process control textbooks has some bad/strange suggestions,
for example, division (bad) and “ratio stations” (complex):
Seborg:
Bad solution
Avoid divisions (divide by 0 if u =0, for example, at startup) This is complicated. What is RS?
Ok if implemented as shown in red at right
Ratio control
• Keep ratio R (between extensive variables) constant in order to keep property y constant
• Feedforward: R=u/d
• Decoupling: R=u1/u2
• u,d: extensive variables
• y: (any!) intensive variable
• Don’t really need a model (no inverse as in «normal» feedforward!)
• Assumes that «scaling property» holds
• Based on physical insight
• Setpoint for R may be found by «feedback trim»
• Scaling property holds for mixing and equilibrium processes
• Rato control is almost always used for mixing of reactants
• Requires that all extensive variables are scaled by same amount
• So does not hold for heat exchanger (since area A is constant) or non-equilibrium reactor (since volume V is
constant)
• L/F constant is not good for distillation column with saturated (max) heat input (V)
Theoretical basis of ratio control
LINEARITY OF RATIO CONTROL when done correctly
R=(F2/F1)s
d=F1,m u= F2,s
x
Flour
F2,m FC
(solid) Water
VC
ym
∞
y
Viscosity y [cP]
ys
Product
Note : This way of implementing ratio control makes it easy to tune the outer feedback loop
(CC: composition controller) because the gain from MV = Rs to CV=y does not depend on
disturbance d=F1.
Proof of last statement
• “Note : This way of implementing ratio control makes it easy to tune the outer feedback loop (CC: composition controller) because the gain from MV = (q2/q1)s to CV=c does not depend on disturbances in q1.”
• One may think that the last statement is fairly obvious, because we are talking about just scaling all flowrates by the same factor and then
the composition c should remain constant. But actually, I wrote the following in 2021 (and earlier).
WRONG: “Potential problem for outer feedback loop (CC: composition controller): Gain from MV = (q2/q1)s to CV=c will vary because of multiplication with q1,m. So outer loop
must have robust tunings to get high gain margin (large tauc)”.
• In fact, it’s opposite, there are less gain variations when the outer controller manipulates (q2/q1)s than when it manipulates q2 directly
• Proof. The component balance gives: CV=c=(c1q1 + c2q2)/(q1+q2)
• We are here considering disturbances in q1, so assume that c1 and c2 are constant.
• We also assume that there is an outer loop so that c remains constant. From the component balance we see that c=constant implies that
at as we change q1 (disturbance) we will have that q1/q2=constant and also that R1=q1/(q1+q2) = constant.
• With no ratio control: The gain from MV=q2 to CV=c is:
• K = (c2-c1)q1/(q1+q2)^2 = (c2-c1)R1/(q1+q2)
• From the above argument K = constant/(q1+q2) so the gain K will change with operation, which will be a problem for the outer feedback controller (CC). Actually, we find that
K=infinity when q=q1+q2 goes to zero, so we may get instability in the outer feedback loop at low flowrates.
• Note: An alternative to ratio control is “standard” feedforward control where u = uFB + uFF (where FB is from the feedback controller CC
and FF is from a feedforward controller from d=q1.) In this case we get the problem with process gain variation for the feedback
controller CC). So ratio control is the best!
• But note that we should not always use ratio control for flow disturbances; it only holds if you are controlling temperature or composition
(which are intensive variables). If you are controlling an extensive variable like total flow or level then you should add or subtract the
disturbance. To the right an example:
• Challenge to myself (Sigurd): prove this more generally using theory of 1) ratio control and 2) input transformations.
Valve position control (VPC)
Have extra MV (input): One CV, many MVs Process
T zB
TC
T zB=0 (closed)
Attempt 2. Use u1=zB=bypass. SATURATES
(at zB=0=closed if CW too small)
=constant
T zB
TC
T zB
SP=50%
T zB VPC
TC
• Fast control of y: u1 = zB
• Main control (VPC): u2=CW (slow loop)
• Need time scale separation between the two loops
Comment on heat exchanger example
• The above example assumes that the flows on the two sides are «balanced» (mcP for cooling water (CW) and
hot flow (H) are not too different) such that both the bypass flow (u1) and CW flow (u2) have an effect on T
(CV)
• This illustrates that heat exchanger may behave very nonlinearly, and a good control structure for one heat
exchanger case, may not work well for another case
Alternative to VPC: Parallell control
VPC with one MV: Stabilizing control with
resetting of MV
VPC
Espen Storkaas and Sigurd Skogestad, "Cascade Control of unstable systems with application to stabilization of slug flow", IFAC-symposium Adchem'2003, Hong Kong,
E4. Selector (for CV-CV switching*)
• Many CVs paired with one MV. Process
• But only one CV controlled at a time.
• Use: Max or Min selector
*Only option for CV-CV switching. Well, not quite true: Selectors may be implemented in other ways, for example, using «if-then»-logic.
y1
u
Implementation selector Process y2
…
Alt. III (For special case where all CVs have same bound). One controller
• Selector is on CVs (Auctioneering) y1 y=max(y1,y2) u
• Also assumes that dynamics from u to y1 and y2 are similar; otherwise use Alt.I y2 > c
• Example: Control hot-spot in reactor or furnace.
ys
CV-CV switching
T1 y=max(Ti) u=Q
T2 C
.
.
>
.
Tn
• Comment: Could use General Alternative I (many controllers) for hot-spot control, with each
temperature controller (c1, c2,…) computing the heat input (u1=Q1, u2=Q2, ….) and then select
u = min(u1, u2, …), but it is more complicated.
CV-CV switching
Process fluid
u=Fuel gas
Air
CV-CV switching
• So: Not necessary to add these as selector blocks (but it will not be wrong).
• Another way to see this is to note that a valve works as a saturation element
Challenges selectors
• Standard approach requires pairing each active constraint with a
single input
• May not be possible in complex cases
• Stability analysis of switched systems is still an open problem
• Undesired switching may be avoided in many ways:
• Filtering of measurement
• Tuning of anti-windup scheme
• Minimum time between switching
• Minimum input change