source: trunk/sample/estimation/sample_est.mso @ 446

Last change on this file since 446 was 440, checked in by Argimiro Resende Secchi, 15 years ago

Adding new options in samples for estimation.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 683 bytes
Line 
1using "types";
2
3FlowSheet PV_Flow
4        VARIABLES
5        T as temperature;
6        PV as pressure;
7
8        PARAMETERS
9        A as Real(Default=1.5);
10        B as temperature(Default=1000);
11        C as temperature(Default=50);
12
13        SPECIFY
14        T = 350 * 'K';
15       
16        EQUATIONS
17        PV = exp(A - B/(T-C)) * 'atm';
18       
19        OPTIONS
20        Dynamic = false;
21end
22
23Estimation PV_Est as PV_Flow
24
25        ESTIMATE
26        # PAR   START  LOWER  UPPER  UNIT
27        A       4.5    -3     10;
28        B       1000   800    3000    'K';
29        C       50     20     200     'K';
30
31        EXPERIMENTS
32        # FILE                WEIGTH
33        "sample_est.dat"      1;
34
35        OPTIONS
36        NLPSolver(
37                File = "ipopt_emso",
38#               File = "complex",
39                ObjTol = 1e-6
40        );
41
42        Statistics = "complete"; # "simplified";
43        Dynamic = false;
44end
Note: See TracBrowser for help on using the repository browser.