Advanced Modeling and Control
🤔 how many measurements are there?
Several layers: regulatory, supervisory, optimization, scheduling.
Regulatory: multi-loop PID controls levels, temperature, flow, pressure. Ensures stability.
Supervisory: sends setpoints to the regulatory layer. May be centralized.
Optimization: real-time monitoring and optimization provide optimal targets for supervision.
Trade-off: plantwide optimization acts slower than local control.
Scheduling: inventory and production planning, often offline.
Use fast regulatory PID loops for stability, and let slower supervisory and optimization layers set plantwide targets and schedules.
Define control objectives: explicit outcomes and implicit plantwide goals.
Select controlled and manipulated variables that support the explicit objectives and fit the plantwide philosophy.
Choose the control architecture: centralized or decentralized.
For decentralized (multi-loop PID) systems, decide controller pairings first to manage interactions, then design the controllers.
Plantwide control design is iterative
Choose initial controller pairings.
note: different pairings may require redesign of individual controllers.
Design and tune controllers.
Simulate and assess plantwide performance.
Use a full-plant simulation to evaluate the complete design.
If targets are not met, revise pairings and retune.
Repeat until objectives are satisfied.
Validate controller pairings with full-plant simulation; if KPIs fall short, revise pairings and retune until objectives are met.
Purpose: Define, prioritize, and measure what “good operation” means for the unit or plant.
Priority order (use as override order)
Typical objectives
Objective | Indicator variable (unit) | Typical limit or target | Primary MV(s) | Control notes |
---|---|---|---|---|
Avoid flooding/weeping in column | Tray dP, % flood [Constraint] | dP < limit, flood < 80% | Reflux, reboiler duty, feed rate | Add dP override selectors on reflux and duty. |
Protect pump (no cavitation) | NPSH margin (m) [Constraint] | Margin > required | Suction drum level, recycle valve | Use minimum flow recycle and tight level control. |
Keep reactor safe | Treactor (°C) [CV] | < Tmax, HH trip at Ttrip | Coolant flow, jacket duty | Cascade temperature to coolant valve, HH trip independent of PID. |
Minimize utilities | Steam per ton, kWh per ton [Economic] | ↓ vs baseline | Reboiler duty setpoint, compressor load | Supervisor trims setpoints, bounded by quality and safety. |
Achieve throughput | Feed rate (t/h) [Throughput] | ≥ plan | Feed valve, upstream schedule | Throughput held unless any constraint controller intervenes. |
Objective | Indicator variable (unit) | Typical limit or target | Primary MV(s) | Control notes |
---|---|---|---|---|
Avoid flooding/weeping in column | Tray dP, % flood [Constraint] | dP < limit, flood < 80% | Reflux, reboiler duty, feed rate | Add dP override selectors on reflux and duty. |
Protect pump (no cavitation) | NPSH margin (m) [Constraint] | Margin > required | Suction drum level, recycle valve | Use minimum flow recycle and tight level control. |
Keep reactor safe | Treactor (°C) [CV] | < Tmax, HH trip at Ttrip | Coolant flow, jacket duty | Cascade temperature to coolant valve, HH trip independent of PID. |
Minimize utilities | Steam per ton, kWh per ton [Economic] | ↓ vs baseline | Reboiler duty setpoint, compressor load | Supervisor trims setpoints, bounded by quality and safety. |
Achieve throughput | Feed rate (t/h) [Throughput] | ≥ plan | Feed valve, upstream schedule | Throughput held unless any constraint controller intervenes. |
Pick CVs and MVs that directly support each objective.
Put constraint controllers in place first (safety, equipment limits, environmental).
Add quality and inventory loops next, then throughput, then cost optimization.
Use override selectors so higher-priority loops take control when limits approach.
Provide simulation or digital twin checks for KPI impact before moving setpoints.
Document alarms and trips (setpoint, alarm, trip) for each safety-critical KPI.
Control strategy must achieve the entire set of objectives
One major task in decentralized control system design → to select controller pairings
Controller pairings are chosen based on 3 main factors:
Improper controller pairings can lead to severe process interaction → causes poor control performance
Factors can be conflicting with each other
🤔
Can we control the top composition using the steam flow, while the bottom composition using the reflux flow? Why ?
Reflux L holds the distillate composition yD; changing L also disturbs the bottoms composition xB.
The bottoms loop reacts: adjust steam/boilup S to bring xB back to its setpoint.
That change in S disturbs yD; the reflux loop trims L until yD returns to setpoint.
Λ=K∘(K−1)T
K is the steady-state gain matrix of linearized plant. Its entries are the open-loop gains
K−1 is the inverse of K
(⋅)T is transpose,
∘ is the Hadamard (element-wise) product.
The RGA element is thus λij=kij(K−1)ji.
Λ=[λ11λ21λ12λ22]
λ11=λ22=1−k11k22k12k21 λ12=λ21=k11k22k12k21
λ11=1 — no coupling.
0<λ11<1 — coupling in the same direction as the main effect; severity grows as λ11↓.
At λ11=0.5: very severe.
λ11>1 — coupling in the opposite direction; severity grows as λ11↑.
λ11<0 — sign reversal / very strong coupling; risk of closed-loop instability → avoid that pairing.
Choosing pairings for n×n:
Given a 2×2 transfer-function matrix (FOPTD elements):
G(s)=τ11s+1k11e−θ11sτ21s+1k21e−θ21sτ12s+1k12e−θ12sτ22s+1k22e−θ22s
Steady-state gain matrix:
K=[k11k21k12k22]
Relative Gain Array:
Λ=K∘(K−1)T=[λ11λ21λ12λ22]
Diagonal element:
λ11=maink11−couplingk22k12k21k11=1−k11k22k12k211
MATLAB:
Good for: assessing the steady-state coupling effect of a configuration.
Applicable when input/output relationships have the same general dynamic behaviors.
Pairing rules
Caution: can be misleading if transfer-function dynamics are significantly different.
Bottom line: RGA is a steady-state measure of process interaction.
G11(s)=100s+11.0,G12(s)=10s+10.3
G21(s)=10s+1−0.4,G22(s)=100s+12.0
K=[1.0−0.40.32.0]
λ11=1−K11K22K12K211=1−(1.0)(2.0)(0.3)(−0.4)1=0.94
Λ=[0.940.060.060.94]
When transfer function dynamics differ significantly, steady-state RGA can be misleading.
Dynamic RGA evaluates interaction strength as a function of frequency ω.
Helps identify correct pairings depending on operating frequency range.
λ11(ω)=1−∣G11(iω)∣∣G22(iω)∣∣G12(iω)∣∣G21(iω)∣1
∣G(iω)∣=τp2ω2+1Kp
λ11(ω)=1+1002ω2+116.7(1002ω2+1)1
Choose pairing between manipulated and controlled variables that results in the least process interactions.
Choose pairing that leads to quick response of controlled variable to manipulated variable (fast dynamic criterion).
Example:
U1Y1=10s+12e−s,U2Y1=12s+12e−3s
Prefer U1∼Y1 because U1 responds faster. U2 has longer deadtime, which reduces achievable control performance.
Choose pairing that is least sensitive to disturbance.
Key Insights
Each configuration has a different sensitivity to a disturbance.
Thick and thin line represent the results of different configurations.
Notice that, the configuration with thick line is less sensitive to disturbance than the one with thin line.
The one that is less sensitive to disturbance is a more efficient configuration (or pairings).
Less sensitive to disturbance is also good because it could lead to lower control action required.
Configuration | RGA (λ₁₁) | Comment |
---|---|---|
(L, B) | 0.94 | Least interactions |
(L, V) | 25.3 | Severe interactions – coupling effect opposite to main effect |
(L/D, V/B) | 1.70 | Mild interactions |
(D, V) | 0.06 | Mild interactions – coupling effect in same direction as main effect; main effect weaker than coupling effect |
L, L/D and V are the least sensitive to feed composition disturbances
L and V have the most immediate effect on the product compositions
L/D and V/B give an intermediate effect
D and B yield the slowest response
Each configuration involves conflicting factors
Therefore, simulation is required to evaluate configuration performance
Configuration | IAE for Overhead | IAE for Bottoms |
---|---|---|
(L, B) | 0.067 | 1.49 |
(L, V) | 0.250 | 13.3 |
(L/D, V/B) | 0.095 | 2.00 |
(D, V) | 0.098 | 1.91 |
There are six main categories of methods to design multi-loop PID control systems:
Each method offers a different balance of: - Simplicity vs. performance
- Handling of interactions
- Practical implementation effort
G=[16.7s+112.8e−s10.9s+16.6e−7s21s+1−18.9e−3s14.4s+1−19.4e−3s]
Λ=[2.0094−1.0094−1.00942.0094]
Apply Ziegler-Nichols tuning (Matlab Control System Designer) to design two PID controllers
Design PID 1 based on
g11=16.7s+112.8e−s
Gc1=1.2895(1+2s1+0.4602s),GM=5.02dB,PM=34.9∘
Design PID 2 based on
g22=14.4s+1−19.4e−3s
Gc2=−0.2548(1+5.6s1+1.4s),GM=4.88dB,PM=40.1∘
If F = 2
Gc1′=0.6448(1+2s1+0.4602s),Gc2′=−0.1274(1+5.6s1+1.4s)
If F = 5
Gc1′=0.2579(1+2s1+0.4602s),Gc2′=−0.0510(1+5.6s1+1.4s)
The order of loop closing is critical as it strongly influences overall control performance
Step 1: Identify which loop is faster by comparing open-loop step responses of g11 and g22
Use Matlab commands:
use skogestad imc (simc) tuning in matlab control system designer
design pid 2 using g22
gc2=−0.1423(1+16.5s1+1.3636s)
gm=9.71db,pm=74.8∘
apply a 1-unit step change in r1 and plot t against y1
from this step response, obtain the fopdt parameters (to be used in the next step)
linearized model for loop 1:
g11′=5.25s+16.53e−s
design pid 1 using the linearized model g11′
g11′=5.25s+16.53e−s
gc1=0.4405(1+5.7s1+0.456s)
gm=9.92db,pm=74.6∘
the plots show comparison between sql tuning and the previous detuning method
sql demonstrates substantial improvement in closed-loop performance compared to detuning
Independent tuning method relies on the Effective Open-Loop Transfer Function (EOTF)
For a 2×2 MIMO transfer function matrix:
G=[g11g21g12g22]
Reduce to decentralized form:
G=[ge1100ge22]
ge11=g11−g22g12g21,ge22=g22−g11g12g21
Controllers Gc1 and Gc2 are designed independently based on ge11 and ge22
Existing SISO tuning formulas can be used
Next, we illustrate application of independent tuning for the Wood and Berry column example
G=16.7s+112.8e−s10.9s+16.6e−7s21s+1−18.9e−3s14.4s+1−19.4e−3s
Effective Open-Loop Transfer Functions (EOTFs):
ge11=16.7s+112.8e−s−14.4s+1−19.4e−3s(21s+1−18.9e−3s)(10.9s+16.6e−7s)
ge11=16.7s+112.8e−s−(21s+1)(10.9s+1)6.43(14.4s+1)e−7s
Approximation is required to simplify the EOTF
Equalize delays of main and coupling transfer functions
Assume general formula:
g=(τ1s+1)(τ2s+1)kpe−(θ1+θ2)s≈(τ1s+1)(τ2s+1)(θ2s+1)kpe−θ1s
Applying to coupling transfer function:
ge11≈(21s+1)(10.9s+1)(6s+1)6.43(14.4s+1)e−s
Overall EOTF for loop 1:
ge11=[16.7s+112.8−(21s+1)(10.9s+1)(6s+1)6.43(14.4s+1)]e−s
This simplified transfer functions can be used in Matlab Control System Designer since they contain only a single delay term
The second EOTF can be derived in the same manner
Overall EOTF for loop 2:
ge22=[14.4s+1−19.4+(21s+1)(10.9s+1)(6s+1)9.745(16.7s+1)]e−3s
Controller Design using Skogestad IMC Tuning
Gc1=0.775(1+8.5s1+0.471s)
GM=8.96dB,PM=75.2∘
Gc2=−0.16(1+9.3s1+1.258s)
GM=9.27dB,PM=78.7∘
Decentralized or multi-loop PID control is widely applied in process industries
Multi-loop control is often implemented at the regulatory layer, crucial for achieving stability
Proper controller pairing is essential in decentralized design to handle process interactions
Relative Gain Array (RGA) is used to address the configuration issue
Use steady-state RGA when transfer function dynamics are comparable
Use dynamic RGA when transfer function dynamics differ significantly
Correct pairing and RGA analysis are critical for robust and stable multi-loop control
Advanced Modeling and Control