source: trunk/sample/estimation/pv_est.mso @ 690

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

Updating samples.

File size: 788 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       1.5    -3     10;
28        B       1000   800    3000  'K';
29        C       50     20     200       'K';
30
31        EXPERIMENTS
32        # FILE                WEIGTH
33        "pv_est.dat"      1;
34
35        OPTIONS
36        NumJac = false;
37        Significance = 0.95;
38        BiLateral = true;       
39        Statistics(
40                Fit=true,
41                Parameter=true,
42                Prediction=false
43        );
44
45        NLPSolver(
46                File = "ipopt_emso"
47                #File = "complex"
48        );
49        Dynamic = false;
50end
Note: See TracBrowser for help on using the repository browser.