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

Contents of /trunk/models/simple_fs_cost.a4s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download)
Fri Oct 29 20:54:12 2004 UTC (19 years, 10 months ago) by aw0a
File size: 2515 byte(s)
Setting up web subdirectory in repository
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 simple_fs_cost.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 "simple_fs_cost.a4c";
11
12 COMPILE tfc OF flowsheet_cost;
13 BROWSE {tfc};
14 RUN {tfc.values};
15 RUN {tfc.reset};
16 SOLVE {tfc} WITH QRSlv;
17
18 PROBE current {tfc.annual_profit} {};
19 PROBE current {tfc.tc.conv} {};
20 PROBE current {tfc.tc.fs.sp1.split[1]} {};
21 PROBE current {tfc.tc.fs.fl1.vap_to_feed_ratio} {};
22 PROBE current {tfc.tc.fs.fl1.liq.w} {};
23 BROWSE {tfc.tc.fs.fl1.vap_to_feed_ratio};
24 ASSIGN {tfc.tc.fs.fl1.vap_to_feed_ratio.fixed} FALSE {};
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 ########## simple_fs_cost.a4s ends here ##########
42 #
43 # simple_fs_cost.a4s
44 # by Arthur W. Westerberg
45 # Part of the ASCEND Library
46 # $Date: 1998/06/17 20:08:44 $
47 # $Revision: 1.3 $
48 # $Author: mthomas $
49 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/models/simple_fs_cost.a4s,v $
50 #
51 # This file is part of the ASCEND Modeling Library.
52 #
53 # Copyright (C) 1994 - 1998 Carnegie Mellon University
54 #
55 # The ASCEND Modeling Library is free software. You can redistribute
56 # it and/or modify it under the terms of the GNU General Public
57 # License as published by the Free Software Foundation---either
58 # version 2 of the License, or (at your option) any later version.
59 #
60 # The ASCEND Modeling Library is distributed in hope that it
61 # will be useful, but WITHOUT ANY WARRANTY--without even the implied
62 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
63 # See the GNU General Public License for more details.
64 #
65 # You should have received a copy of the GNU General Public License
66 # along with the program. If not, write to the Free Software
67 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check
68 # the file named COPYING.

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