source: branches/gui/sample/optimization/ammonia_opt.mso @ 693

Last change on this file since 693 was 578, checked in by gerson bicca, 15 years ago

starting to update the EML (new gui)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.4 KB
RevLine 
[85]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
[22]17* (baseado no arquivo disponível em www.vrtech.com.br)
[85]18*--------------------------------------------------------------------
19* Author: Rafael de Pelegrini Soares
20* $Id: ammonia_opt.mso 578 2008-07-25 22:24:26Z bicca $
21*--------------------------------------------------------------------*#
[22]22
23using "ammonia";
24
25Optimization AmmoniaOPT as Ammonia
26        MINIMIZE
27       
[578]28        (abs(Q1.OutletQ) + abs(Q2.OutletQ))*1e-6
[202]29        #loose / 'lbmol/h'
30        # C102.Pot/'kW'*180
31        # + F101.Q/'kW'/10
[22]32        ;
33       
34        FREE
35        #F101.OutletV.T
36        S101.frac;
37       
38        EQUATIONS
39        #F102.OutletL.z(5) > 0.95;
[202]40        loose < 1 * 'lbmol/h';
41        production > 90 * 'lbmol/h';
[258]42
43        OPTIONS
44        Dynamic = false;
[392]45        NLPSolveNLA = true;
[425]46        NLPSolver(#File = "complex",
47                          #File = "optpp_emso",
48                          File = "ipopt_emso",
49                          MaxIterations = 300,
[258]50                          RelativeAccuracy = 1e-6);
[22]51end
Note: See TracBrowser for help on using the repository browser.