source: trunk/sample/optimization/ammonia_opt.mso @ 983

Last change on this file since 983 was 983, checked in by Argimiro Resende Secchi, 7 years ago
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#*-------------------------------------------------------------------
2* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC.
3*
4* This LIBRARY is free software; you can distribute it and/or modify
5* it under the therms of the ALSOC FREE LICENSE as available at
6* http://www.enq.ufrgs.br/alsoc.
7*
8* EMSO Copyright (C) 2004 - 2007 ALSOC, original code
9* from http://www.rps.eng.br Copyright (C) 2002-2004.
10* All rights reserved.
11*
12* EMSO is distributed under the therms of the ALSOC LICENSE as
13* available at http://www.enq.ufrgs.br/alsoc.
14*
15*--------------------------------------------------------------------
16*  Arquivo de demonstração de otimização de processos
17* (baseado no arquivo disponível em www.vrtech.com.br)
18*--------------------------------------------------------------------
19* Author: Rafael de Pelegrini Soares
20* $Id: ammonia_opt.mso 983 2016-05-27 00:50:02Z arge $
21*--------------------------------------------------------------------*#
22
23using "ammonia";
24
25Optimization AmmoniaOPT as Ammonia
26        MINIMIZE
27       
28        (abs(Q1.OutletQ) + abs(Q2.OutletQ))*1e-6
29        #loose / 'lbmol/h'
30        # C102.Pot/'kW'*180
31        # + F101.Q/'kW'/10
32        ;
33       
34        FREE
35        #F101.OutletV.T
36        S101.FlowRatios(1);
37       
38        EQUATIONS
39        #F102.OutletL.z(5) > 0.95;
40        loose < 1 * 'lbmol/h';
41        production > 90 * 'lbmol/h';
42
43        OPTIONS
44        Dynamic = false;
45        NLPSolveNLA = true;
46#       FeasiblePath = true;
47        NLPSolver(#File = "complex",
48                          #File = "optpp_emso",
49                          File = "ipopt_emso",
50                          MaxIterations = 300,
51                          RelativeAccuracy = 1e-6);
52end
Note: See TracBrowser for help on using the repository browser.