APC - Part - 1 Concept
APC - Part - 1 Concept
An Overview
Sachin C. Patwardhan
Dept. of Chemical Engineering
I.I.T. Bombay
Email: sachinp@iitb.ac.in
1
Automation Lab
IIT Bombay
Plant Wide Control Framework
2
Automation Lab
IIT Bombay
Hierarchy of control system functions
3
Automation Lab
4
Automation Lab
On-line Optimization
IIT Bombay
Cleaned input
Output Data On-line Steady
State Optimization
Steady State Data
Reconciliation
Set Points
Updated
Inputs
Outputs
Operational
Goals
PLANT
5
Automation Lab
Conventional approach
Multi-loop PI: difficult to tune
Ad-hoc constraint handling using logic programming
(PLCs): lack of coordination
Nonlinearity handling by gain scheduling
6
Automation Lab
IIT Bombay
Example: Quadruple Tank System
dh1 a a3 k
1 2 gh1 2 gh3 1 1 v1
Tank3 Tank 4 dt A1 A1 A1
dh2 a a k
2 2 gh2 4 2 gh4 2 2 v 2
dt A2 A2 A2
dh3 a (1 2 )k2
3 2 gh3 v2
Tank 1 dt A3 A3
Tank
2 dh4 a4 (1 1 )k1
Pump 2 2 gh4 v1
dt A4 A4
Pump1
V2
V1
7
Automation Lab
Multi-loop Control
IIT Bombay
8
Automation Lab
10
Automation Lab
IIT Bombay
TE Problem: Operating Constraints
11
Automation Lab
12
Automation Lab
Advantages of MPC
IIT Bombay
Disturbances
Optimization Inputs Outputs
Process
Dynamic
Prediction Dynamic
Model Model
MPC
Plant-model mismatch
Set point Trajectory
Dynamic Model: used for on-line forecasting
over a moving time horizon (window)
14
Automation Lab
IIT Bombay
CSTR Example
Consider non-isothermal CSTR dynamics
dC A
f1 (C A , T , F , Fc , C A0 , Tcin ) feed flow rate
dt
coolant flow rate
dT
f 2 (C A , T , F , Fc , C A0 , Tcin )
dt
States (X ) C A T T Measured Output (Y ) T
Manipulated Inputs (U ) [F Fc ]T Feed conc.
Unmeasured Disturbances (Du ) C A 0
Cooling water
Measured Disturbances (Dm ) Tcin Temp.
0.35
T-F
0.3
0.25
Linear
0.2
0 5 10 15 20 25 Plant
Time (min) Simulation
400
k c1 6.34
Temp.(K)
395
I ,1 0.2
390 k c ,2 0.0028
I , 2 0.3
385
0 5 10 15 20 25
Time (min)
16
Automation Lab
IIT Bombay
CSTR: Multi-Loop PI Performance
Coolent Flow (m3/min) Manipulated Inputs and Disturbance
30
20
10
0 5 10 15 20 25
Time (min)
1.5
Linear
Inflow (m3/min)
1 Plant
Simulation
0.5
0 5 10 15 20 25
Time (min)
2.5
Inlet Conc. (mol/m3)
1.5
0 5 10 15 20 25
Time (min)
17
Automation Lab
Controlled Outputs
0.45
0.4
Conc.(mol/m3)
0.35
0.3 Linear
0.25 Plant
0.2 Simulation
0 5 10
Time (min)
15 20 25
(No Plant
Model
398
Mismatch
396 Case)
Temp.(K)
394
392
390
388
0 5 10 15 20 25
Time (min)
18
Automation Lab
20
10
0 5 10 15 20 25 Linear
Time (min) Plant
3
Inflow (m3/min)
Simulation
2
(No Plant
1 Model
0
0 5 10 15 20 25
Mismatch
Time (min) Case)
Inlet Conc. (mol/m3)
2.5
1.5
0 5 10 15 20 25
Time (min)
19
Automation Lab
IIT Bombay
Linear MPC Applications (2003)
20
Automation Lab
IIT Bombay
Industrial Application: Ammonia Plant
21
Automation Lab
IIT Bombay
State Feedback Controller Design
Aggregate Production
Layer 4
Rate Models
Mathematical Models
Qualitative
Qualitative Differential Equation
Qualitative signed and directed graphs
Expert Systems
Quantitative
Differential Algebraic systems
Mixed Logical and Dynamical Systems
Linear and Nonlinear time series models
Statistical correlation based (PCA/PLS)
Mixed
Fuzzy Logic based models
24
Automation Lab
IIT Bombay
White Box Models
25
Automation Lab
IIT Bombay
Example: Quadruple Tank System
dh1 a a3 k
1 2 gh1 2 gh3 1 1 v1
Tank3 Tank 4 dt A1 A1 A1
dh2 a a k
2 2 gh2 4 2 gh4 2 2 v 2
dt A2 A2 A2
dh3 a (1 2 )k2
3 2 gh3 v2
Tank 1 dt A3 A3
Tank
2 dh4 a4 (1 1 )k1
Pump 2 2 gh4 v1
dt A4 A4
Pump1
V2
V1
26
Automation Lab
IIT Bombay
2.8 3
2.7
2.8
Measured Output
2.6
Manipulated Input
2.6
Process
2.5
2.4 2.4
2.3
2.2
2.2
2
2.1
2 1.8
0 2 4 6 8 10 12 14 16 18 20 0 5 10 15 20
Sampling Instant Sampling Instant
Unmeasured
Input excitation for Disturbances Measured output
model identification response
28
Automation Lab
29
Automation Lab
Identification Experiments IIT Bombay
on 4 Tank Setup
Input 1 Input 2
Output 2
Output 1
30
Automation Lab
IIT Bombay
4 Tank Setup: Input Excitations
1
Input 1 (mA)
-1
1
Input 2 (mA)
-1
31
Automation Lab
Splitting Data for IIT Bombay
0
y1
-5
0 500 1000
1
0.5
u1
0
-0.5
0 500 1000
Samples
Identification Data Validation data
32
Automation Lab
ARMAX:State Realization
IIT Bombay
33
Automation Lab
OE Model: Validation
IIT Bombay
0
y1
-1
-2
oe221 Fits 87.07%
-3
Validation data
1100 1150 1200 1250 1300 1350 1400
Time
34
Automation Lab
IIT Bombay
State Estimation (Soft Sensing)
35
Automation Lab
IIT Bombay
36
Automation Lab
Dynamic Model
(ODEs/ PDEs)
37
Automation Lab
Soft Sensing
Techniques
38
Automation Lab
IIT Bombay
CSTR Example
Consider non-isothermal CSTR dynamics
dC A
f1 (C A , T , F , Fc , C A0 , Tcin ) feed flow rate
dt
coolant flow rate
dT
f 2 (C A , T , F , Fc , C A0 , Tcin )
dt
States (X ) C A T T Measured Output (Y ) T
Manipulated Inputs (U ) [F Fc ]T Feed conc.
Unmeasured Disturbances (Du ) C A 0
Cooling water
Measured Disturbances (Dm ) Tcin Temp.
Process +
u(k) Y(k) e(k )
Model -
yˆ (k )
Steam, Tjo
Tj-1, TR-1 Tj-2, TR-2
T T T Tj-5, TR-5
CA(1,t), CB(1,t)
CC(1,t), TR(1,t)
CAo, TRo
A B C
(Endothermic Reaction)
Tj(0,t)
Tj Tj
T T
U wj
u ……..Jacket Temp.
t z mjCpmj
r j
V j
42
Automation Lab
IIT Bombay
Simulation Result: Concentration profiles of product
B at different time instants
43
Automation Lab
Experiment: Combined State and IIT Bombay
3-15 psi
Cold Water Flow Input
CV-1
CV-2
Cold Water Flow
T Tank - 1
T
L
T
Tank - 2
Thyrister
4-20 mA Control
Input Unit
Signal
T
T
44
Automation Lab
IIT Bombay
45
Automation Lab
Experimental result: Tank 1 temperature IIT Bombay
46
Automation Lab
Controller Design
IIT Bombay
47
Automation Lab
Course Outline
IIT Bombay
48
Automation Lab
Course Outline
IIT Bombay
49