/[ascend]/trunk/models/simpleflowsheet01cost.a4s
ViewVC logotype

Contents of /trunk/models/simpleflowsheet01cost.a4s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 793 - (show annotations) (download)
Thu Jul 27 14:14:47 2006 UTC (13 years, 11 months ago) by johnpye
File size: 2368 byte(s)
Updated simpleflowsheet01cost for easy running/testing with PyGTK interface.
1 # This file is part of the ASCEND Modeling Library and is released
2 # under the GNU Public License as described at the end of this file.
3 #
4 # This file demonstrates the use of simpleflowsheet01cost.a4c
5
6 DELETE TYPES;
7 # The following read statement will cause lots OF warnings,
8 # because the modeling style is NOT particularly clean. The
9 # models work, however.
10 READ FILE "simpleflowsheet01cost.a4c";
11
12 COMPILE tfc OF simpleflowsheet01cost;
13 BROWSE {tfc};
14
15 RUN {tfc.values};
16 RUN {tfc.reset};
17 SOLVE {tfc} WITH QRSlv;
18
19 PROBE current {tfc.annual_profit} {};
20 PROBE current {tfc.tc.conv} {};
21 PROBE current {tfc.tc.fs.sp1.split[1]} {};
22 PROBE current {tfc.tc.fs.fl1.vap_to_feed_ratio} {};
23 PROBE current {tfc.tc.fs.fl1.liq.w} {};
24 BROWSE {tfc.tc.fs.fl1.vap_to_feed_ratio};
25
26 # Now run some case studies
27 STUDY {annual_profit} {tc.conv} {tc.fs.fl1.vap_to_feed_ratio} \
28 IN tfc VARYING {tc.fs.sp1.split[1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7} \
29 USING {QRSlv} OUTFILE study.data ERROR stop;
30
31 # If your version OF ascend doesn't have conopt OR another optimizer
32 # loaded, you cannot RUN the next part OF this script.
33
34 SOLVE {tfc} WITH CONOPT;
35 BROWSE {tfc.tc.fs.sp1.split[1]};
36 ASSIGN {tfc.tc.fs.sp1.split[1].fixed} FALSE {};
37 BROWSE {tfc.tc.fs.fl1.vap_to_feed_ratio};
38 ASSIGN {tfc.tc.fs.fl1.vap_to_feed_ratio.fixed} TRUE {};
39 SOLVE {tfc} WITH CONOPT;
40
41 ########## simpleflowsheet01cost.a4s ends here ##########
42 #
43 # simpleflowsheet01cost.a4s
44 # by Arthur W. Westerberg
45 # Part of the ASCEND Library
46 # $Date: 2006/03/03 10:42:53 $
47 #
48 # This file is part of the ASCEND Modeling Library.
49 #
50 # Copyright (C) 1994 - 1998 Carnegie Mellon University
51 #
52 # The ASCEND Modeling Library is free software. You can redistribute
53 # it and/or modify it under the terms of the GNU General Public
54 # License as published by the Free Software Foundation---either
55 # version 2 of the License, or (at your option) any later version.
56 #
57 # The ASCEND Modeling Library is distributed in hope that it
58 # will be useful, but WITHOUT ANY WARRANTY--without even the implied
59 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
60 # See the GNU General Public License for more details.
61 #
62 # You should have received a copy of the GNU General Public License
63 # along with the program. If not, write to the Free Software
64 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check
65 # the file named COPYING.

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22