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

Last change on this file since 1009 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
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 983 2016-05-27 00:50:02Z arge $
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
[917]36        S101.FlowRatios(1);
[22]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;
[983]46#       FeasiblePath = true;
[425]47        NLPSolver(#File = "complex",
48                          #File = "optpp_emso",
49                          File = "ipopt_emso",
50                          MaxIterations = 300,
[258]51                          RelativeAccuracy = 1e-6);
[22]52end
Note: See TracBrowser for help on using the repository browser.