source: trunk/sample/estimation/DynEstimation.mso @ 957

Last change on this file since 957 was 846, checked in by Rafael de Pelegrini Soares, 13 years ago

Added another dynamic estimation example.

File size: 739 bytes
Line 
1#*
2 * Example 5: DYNOPT User's Guide version 4.1.0
3 * M. Cizniar, M. Fikar, M. A. Latifi, MATLAB Dynamic Optimisation Code DYNOPT.
4 * User's Guide, Technical Report, KIRP FCHPT STU Bratislava, Slovak Republic, 2006.
5 *
6 * EMSO version by Rafael de P. Soares
7 *#
8FlowSheet DynModel
9        PARAMETERS
10        p1 as Real;
11        p2 as Real;
12       
13        VARIABLES
14        x1 as Real;
15        x2 as Real;
16
17        EQUATIONS
18        diff(x1) * 's' = x2;
19
20        diff(x2) * 's' = 1 - 2*x2 - x1;
21       
22        INITIAL
23        x1 = p1;
24        x2 = p2;
25       
26end
27
28Estimation DynEst as DynModel
29        ESTIMATE
30        # PARAMETER  START     LOWER     UPPER
31        p1           0                  -1.5            1.5;
32        p2           0                  -1.5            1.5;
33
34        EXPERIMENTS
35        "DynEstimation.dat";
36       
37        OPTIONS
38       
39        NLPSolver(
40                File = "complex"
41        );
42end
Note: See TracBrowser for help on using the repository browser.