source: mso/sample/optimization/ammonia_opt.mso @ 22

Last change on this file since 22 was 22, checked in by Rafael de Pelegrini Soares, 16 years ago

Added optimization samples

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 457 bytes
Line 
1#* Arquivo de demonstração de otimização de processos
2* (baseado no arquivo disponível em www.vrtech.com.br)
3*#
4
5using "ammonia";
6
7Optimization AmmoniaOPT as Ammonia
8        MINIMIZE
9       
10        abs(Q1) + abs(Q2)
11        #loose / "lbmol/h"
12        # C102.Pot/"kW"*180
13        # + F101.Q/"kW"/10
14        ;
15       
16        FREE
17        #F101.OutletV.T
18        S101.frac;
19       
20        EQUATIONS
21        #F102.OutletL.z(5) > 0.95;
22        loose < 1 * "lbmol/h";
23        production > 90 * "lbmol/h";
24       
25        OPTIONS
26        outputLevel = "high";
27        relativeAccuracy = 1e-1;
28end
Note: See TracBrowser for help on using the repository browser.