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

Last change on this file since 304 was 258, checked in by Argimiro Resende Secchi, 16 years ago

Fix optimization samples.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.3 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 258 2007-06-12 05:07:07Z arge $
21*--------------------------------------------------------------------*#
22
23using "ammonia";
24
25Optimization AmmoniaOPT as Ammonia
26        MINIMIZE
27       
28        abs(Q1) + abs(Q2)
29        #loose / 'lbmol/h'
30        # C102.Pot/'kW'*180
31        # + F101.Q/'kW'/10
32        ;
33       
34        FREE
35        #F101.OutletV.T
36        S101.frac;
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 = false;
46        NLPSolver(File = "complex", #"ipopt_emso",
47                          RelativeAccuracy = 1e-6);
48end
Note: See TracBrowser for help on using the repository browser.