-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFCCU.SIF
391 lines (368 loc) · 11.6 KB
/
FCCU.SIF
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
***************************
* SET UP THE INITIAL DATA *
***************************
NAME FCCU
* Problem :
* *********
* A simple data reconciliation for a fluid catalytic cracker.
* +--------------------------+
* | FCCU data reconciliation |
* +-----------+ +--------------------------+
* 1) | Flowsheet | Off_gas |------->
* +-----------+ |-----------> | Propane
* MF_ohd | |-------->F7
* |------>F4<-------| | |
* | | | |DC3_feed | Butane
* Feed Effluent ^ | | | |------->
* ------->F1-------->F2......>| |---------------->F5
* ^ v DC4_feed | |DC4_btms |------->
* | | | | | LCN
* | | |<-------F6-------->F8
* | | HCN Lean_oil C8spl_fd | MCN
* | |--------> |------->
* | | LCO
* | |-------->
* | | HCO
* | |-------->
* | | MF_btms
* | v
* |<----------------F3-------->
* Dec_recy Decant
*
*
* +--------------------+
* 2) | Objective function |
* +--------------------+
*
* Obj = sum 1->i [W_i*(C_flow_i - M_flow_i)**2]
*
*
* Where: W_i Weight on term i of objective function
* C_flow_i Computed flow i (a variable for this problem)
* M_flow_i Measrued flow i (a constant for this problem)
*
* +-------------+
* 3) | Constraints |
* +-------------+
*
* These represent the linear mass balances around each
* node, where a node (Fx) represents a single unit operation
* in a fluid catalytics cracker.
*
*
* +---------------+
* 4) | Initial point |
* +---------------+
*
* Feed 1.0
* Effluent 1.0
* MF_ohd 1.0
* HCN 1.0
* LCO 1.0
* HCO 1.0
* MF_btms 1.0
* Decant 1.0
* Dec_recy 1.0
* Off_gas 1.0
* DC4_feed 1.0
* DC3_feed 1.0
* DC4_btms 1.0
* Lean_oil 1.0
* Propane 1.0
* Butane 1.0
* C8spl_fd 1.0
* LCN 1.0
* MCN 1.0
*
* Obj 7.36259000271320D+03
*
* +------------------+
* 5) | Optimal solution |
* +------------------+
*
* Feed 3.11639D+01
* Effluent 3.53528D+01
* MF_ohd 1.94669D+01
* HCN 2.94255D+00
* LCO 4.94255D+00
* HCO 3.44255D+00
* MF_btms 4.55828D+00
* Decant 3.69371D-01
* Dec_recy 4.18891D+00
* Off_gas 2.56075D+00
* DC4_feed 2.41207D+01
* DC3_feed 5.15601D+00
* DC4_btms 1.89647D+01
* Lean_oil 7.21458D+00
* Propane 2.42801D+00
* Butane 2.72801D+00
* C8spl_fd 1.17501D+01
* LCN 5.87506D+00
* MCN 5.87506D+00
*
* Obj 1.11491D+01
*
* +-----------------------------------------------+
* 6) | SPEC.SPC (remove 1st * of every line to use). |
* +-----------------------------------------------+
*BEGIN
** maximizer-sought
** check-derivatives
* ignore-derivative-bugs
** use-scalings
** print-scalings
* finite-difference-gradients
** exact-second-derivatives-used
** bfgs-approximate-second-derivatives-used
** sr1-approximate-second-derivatives-used
* bandsolver-preconditioned-cg-solver-used 5
** diagonal-preconditioned-cg-solver-used
** gill-murray-ponceleon-saunders-preconditioned-cg-solver-used
** schnabel-eskow-preconditioned-cg-solver-used
** munksgaards-preconditioned-cg-solver-used
* exact-cauchy-point-required
** inexact-cauchy-point-required
** solve-bqp-accurately
** two-norm-trust-region
** gradient-tolerance 1.0D-5
** constraint-tolerance 1.0D-5
* trust-region-radius 1.0D+0
* maximum-number-of-iterations 1000
* print-level 1
* start-printing-at-iteration 0
* stop-printing-at-iteration 1000
*END
* Source:
* W. J. Korchinski, Profimatics, Inc,
* 325 Rolling Oaks Drive, Thousand Oaks, California, USA 91361-1200
* Telephone: 1-805 496 6661, Fax: 1-805 373 5108
* SIF input: W. Korchinski, Spring 1993.
* classification SLR2-MN-19-8
****************************************************************
*
* PROBLEM SPECIFICATION BEGINS HERE.
* **********************************
* **********************************
*
**************************************
* Define objective function weights. *
**************************************
RE W1 0.2
RE W2 1.
RE W3 1.
RE W4 0.33333333
RE W5 0.33333333
RE W6 0.33333333
RE W7 1.
RE W8 1.
RE W9 1.
RE W10 1.
RE W11 1.
RE W12 1.
RE W13 1.
RE W14 1.
RE W15 0.33333333
RE W16 0.33333333
RE W17 1.
RE W18 0.33333333
RE W19 0.33333333
*************************************************
* Define Measured flows for objective function. *
*************************************************
RE M1 31.
RE M2 36.
RE M3 20.
RE M4 3.
RE M5 5.
RE M6 3.5
RE M7 4.2
RE M8 0.9
RE M9 3.9
RE M10 2.2
RE M11 22.8
RE M12 6.8
RE M13 19.
RE M14 8.5
RE M15 2.2
RE M16 2.5
RE M17 10.8
RE M18 6.5
RE M19 6.5
********************
* Define variables *
********************
VARIABLES
Feed
Effluent
MF_ohd
HCN
LCO
HCO
MF_btms
Decant
Dec_recy
Off_gas
DC4_feed
DC3_feed
DC4_btms
Lean_oil
Propane
Butane
C8spl_fd
LCN
MCN
*********************
* Set up functions. *
*********************
GROUPS
*****************************
* Define material balances. *
*****************************
XE F1 Feed 1. Dec_recy 1.
XE F1 Effluent -1.
XE F2 Effluent 1. MF_ohd -1.
XE F2 HCN -1. LCO -1.
XE F2 HCO -1. MF_btms -1.
XE F3 MF_btms 1. Decant -1.
XE F3 Dec_recy -1.
XE F4 MF_ohd 1. Lean_oil 1.
XE F4 Off_gas -1. DC4_feed -1.
XE F5 DC4_feed 1. DC3_feed -1.
XE F5 DC4_btms -1.
XE F6 DC4_btms 1. Lean_oil -1.
XE F6 C8spl_fd -1.
XE F7 DC3_feed 1. Propane -1.
XE F7 Butane -1.
XE F8 C8spl_fd 1. LCN -1.
XE F8 MCN -1.
*****************************************************************************
* Objective function: 1 variable per term & each term scaled appropriately. *
*****************************************************************************
XN Obj1 Feed 1.
ZN Obj1 'SCALE' W1
XN Obj2 Effluent 1.
ZN Obj2 'SCALE' W2
XN Obj3 MF_ohd 1.
ZN Obj3 'SCALE' W3
XN Obj4 HCN 1.
ZN Obj4 'SCALE' W4
XN Obj5 LCO 1.
ZN Obj5 'SCALE' W5
XN Obj6 HCO 1.
ZN Obj6 'SCALE' W6
XN Obj7 MF_btms 1.
ZN Obj7 'SCALE' W7
XN Obj8 Decant 1.
ZN Obj8 'SCALE' W8
XN Obj9 Dec_recy 1.
ZN Obj9 'SCALE' W9
XN Obj10 Off_gas 1.
ZN Obj10 'SCALE' W10
XN Obj11 DC4_feed 1.
ZN Obj11 'SCALE' W11
XN Obj12 DC3_feed 1.
ZN Obj12 'SCALE' W12
XN Obj13 DC4_btms 1.
ZN Obj13 'SCALE' W13
XN Obj14 Lean_oil 1.
ZN Obj14 'SCALE' W14
XN Obj15 Propane 1.
ZN Obj15 'SCALE' W15
XN Obj16 Butane 1.
ZN Obj16 'SCALE' W16
XN Obj17 C8spl_fd 1.
ZN Obj17 'SCALE' W17
XN Obj18 LCN 1.
ZN Obj18 'SCALE' W18
XN Obj19 MCN 1.
ZN Obj19 'SCALE' W19
*************************************************
* Objective function: terms for measured flows. *
*************************************************
CONSTANTS
Z FCCU Obj1 M1
Z FCCU Obj2 M2
Z FCCU Obj3 M3
Z FCCU Obj4 M4
Z FCCU Obj5 M5
Z FCCU Obj6 M6
Z FCCU Obj7 M7
Z FCCU Obj8 M8
Z FCCU Obj9 M9
Z FCCU Obj10 M10
Z FCCU Obj11 M11
Z FCCU Obj12 M12
Z FCCU Obj13 M13
Z FCCU Obj14 M14
Z FCCU Obj15 M15
Z FCCU Obj16 M16
Z FCCU Obj17 M17
Z FCCU Obj18 M18
Z FCCU Obj19 M19
**********************************
* Define initial point to be 1.0 *
**********************************
START POINT
XV FCCU Feed 1.
XV FCCU Effluent 1.
XV FCCU MF_ohd 1.
XV FCCU HCN 1.
XV FCCU LCO 1.
XV FCCU HCO 1.
XV FCCU MF_btms 1.
XV FCCU Decant 1.
XV FCCU Dec_recy 1.
XV FCCU Off_gas 1.
XV FCCU DC4_feed 1.
XV FCCU DC3_feed 1.
XV FCCU DC4_btms 1.
XV FCCU Lean_oil 1.
XV FCCU Propane 1.
XV FCCU Butane 1.
XV FCCU C8spl_fd 1.
XV FCCU LCN 1.
XV FCCU MCN 1.
********************************
* Declare group type to be X^2 *
********************************
GROUP TYPE
GV SQUARE ALPHA
************************************
* Square objective function terms. *
************************************
GROUP USES
XT Obj1 SQUARE
XT Obj2 SQUARE
XT Obj3 SQUARE
XT Obj4 SQUARE
XT Obj5 SQUARE
XT Obj6 SQUARE
XT Obj7 SQUARE
XT Obj8 SQUARE
XT Obj9 SQUARE
XT Obj10 SQUARE
XT Obj11 SQUARE
XT Obj12 SQUARE
XT Obj13 SQUARE
XT Obj14 SQUARE
XT Obj15 SQUARE
XT Obj16 SQUARE
XT Obj17 SQUARE
XT Obj18 SQUARE
XT Obj19 SQUARE
ENDATA
*********************
* SET UP THE GROUPS *
* ROUTINE *
*********************
GROUPS FCCU
INDIVIDUALS
***************************
* Define function SQUARE. *
***************************
* Square of ALPHA.
T SQUARE
F ALPHA*ALPHA
G ALPHA+ALPHA
H 2.0
ENDATA