1) A step test was performed on a simulated gas processing plant to generate data for building a dynamic model predictive controller (DMC).
2) An economic model was generated using the steady state gains from the plant test data to calculate the linear programming (LP) costs associated with changes in economic variables like duty rates.
3) Equal concern errors were calculated for controlled variables (CVs) like sales gas dew point and propane composition based on their relative importance, with a higher weight given to maintaining propane composition given its greater economic impact.
Industry solution presentation “Diesel generator monitoring"
IPC_project final
1. Project Report
Industrial Process Control
Fall-2014
LAMAR UNIVERSITY
Dan F. Smith
Department of Chemical Engineering
Submitted To
Dr. Payton Richmond
Submitted By
Ratul Das ( L20315495)
Asad Vora ( L20357679)
Jayur Mistry ( L20350957)
Sakshi Yadav ( L20349879)
3. Solution
Project Steps
1) Pretest- Approximation of time to steady state and Estimation of step testing time
2) Step Testing
3) Model Identification
4) Model Building
5) LP Cost Calculation
6) Equal Concern Error
MV, DV, CV, and Economic Variables data
Tag name Description Type
Cold-TC Cold gas temperature MV
STG9-TC Tray 9 temperature MV
F1-FL Feed 1 Flow DV
F2-FL Feed 2 Flow DV
DEW PT Sales gas temperature CV
COMP Composition of Liquid Product CV
Economic Variables
Sr. No Economic Variables
1 Chiller Duty
2 Heater Duty
3 Reboiler Duty
4 Condenser Duty
5 Sales Gas Production
6 Liquid Product Flow
7 Overhead Product Flow
4. 1. Pretest
The TTSS is determined by giving a step change in feed flowrate and looking for maximum
time required by CV’s to reach steady state. Total time required for step testing is
calculated below.
Step Test Time = TTSS * (No. of Independent Variables) * 8 = 100*4*8 = 3200 minutes
2. Step Testing
Allowable Step Changes
Independent Variables Maximum Allowable Step Change
Feed 1 Flow 2 MMSCFD
Feed 2 Flow 2 MMSCFD
Cold TC SP 3 F
Stage 9 TEMP SP 17 F
According to the step-test plan, a plant test schedule was made by HYSYS event scheduler. And this
plant test plan satisfies the following requirements in order to help us generated the plant test data
for further usage.
Step each MV multiple times at several times during the test
One minute data for all variables related to unit being tested
Data for cost factors are included
6. All the variables ( MV’s, DV’s, CV’s, Monitor, Economic) are included in the data logger so
that data for these variables will be recorded for full length of step testing. Logger size in
data logger is changed to the value so that it is large enough to record all data.
Total time interval of 800 minutes is given for each change in independent variable. For the
1st Cycle, 50(1/2 TTSS) minutes time interval is used and for all other cycles time interval
of 25 minutes (1/4th TTSS) is considered.
MPC Identification and Modeling
After the plant test plan carried out by the above step, we used the Step Model
Identification program to create a DMC model and obtain the coefficients for LPCost
calculation. The steps include:
Collect data in the HYSYS DataBook
Export data to Excel and calculate inferential variables
Import data to the Step Model Identification program to create DMC model files and
to generate steady-state gains for computing LPCosts.
Look for valve saturations. Times when valves are saturated should be marked as
bad data.
7. The faceplate of the step changes during 3200 min time interval
3. Model Identification
All the vector files are imported in step identification program. All the data is plotted to
check for any bad data. All the CV’s reach steady state for TTSS = 100. Thus it is selected as
a TTSS for given model.
8. Vector files are added in step model identification.
CLC plot representing all the variables considered
9. 4. Model Building
A model is built by using TTSS = 100 minutes.
The variables are distributed in MV, DV, and CV list.
10. A model is built considering all CV’s & Economic Varaibles.
11. 5. LP Cost Calculation
Raw gains obtained from the model identification program are corrected by using the mass balance. These corrected gains and
individual costs for items are used to calculate LP costs. (File Used: Original Model_economic.mdl)
Chiller Duty Condenser Duty Reboiler Duty Heater Duty Overhead Flow Sales Gas Flow Liquid Product Flow
0 0 -1.55E+05 1.19E+00 -4.65E+02 -7.92E-03 -3.54E+02
-4.88E+03 0 2.46E+03 -4.51E+03 -6.07E+00 7.71E+01 7.54E+00
Variables Price
Chiller Duty $1.5/Btu
Condensor Duty $1.5/Btu
Reboiler Duty $2.5/Btu
Heater Duty $2.5/Btu
Ovhd Prod (-)$1/lb
Sales Gas (-)$2/lb
Liq Prod (-)$3.5/lb
Chiller Duty Condenser Duty Reboiler Duty Heater Duty Overhead Flow Sales Gas Flow Liquid Product Flow LP Cost
0 0 -3.88E+05 2.98E+00 4.65E+02 1.58E-02 1.24E+03 -386197.876
-7.32E+03 0 6.15E+03 -1.13E+04 6.07E+00 -1.54E+02 -2.64E+01 -12611.5684
Economic Variables
MV'S
Stage 9 Temp
Cold TC SP
SS Gain of Economic Variables
Stage 9 Temp
Cold TC SP
Cost Assumptions
LP Cost Calculation
Economic Variables
MV'S
12. 6. Equal Concern Error :
Equal concern errors for CV’s are calculated depending on the relative weighting factor, wi.
Propane Composition in Liquid Product & Sales Gas Dew Point are considered as important
controlled variables for this particular system. Changes in these variables will ultimately
affect the economic output. For example small changes in Propane Composition will cause a
change in the price($/Lb) of the liquid product, even change in Dew Point would affect the
price of Sales gas but he market value of Liquid product is more than sales gas, therefore
weighting factor for the Propane Composition is selected higher than the weighting factor
for Sales Gas Dew Point. Weight of Dew Point is assumed to be half of Propane
Composition. Thus, assuming Wi = 20 for Propane Composition and Wi= 10 for Dew Point.
Equal Concern Error =
ECE values calculated are as below:
CV Wi ECE
Sales Gas Dew Point 10 0.1
Propane Composition in
Liquid Product
20 0.05
Conclusion
The Step Test is performed on a simulated plant and the data is used to
configure a DMC.
The LP Cost values are obtained from the Steady State Gains of Economically
Dependent Variables.
The Equal Concern Error depends upon the control objective. The weightage
is given more to the liquid product (Propane Composition). So while
considering a constraint between the two CV’s the MPC will consider the
liquid product and will compromise the Sales Gas Flow.