source: branches/newlanguage/sample/miscellaneous/sample_optimization.mso @ 183

Last change on this file since 183 was 183, checked in by Rafael de Pelegrini Soares, 16 years ago

Merged some changes from trunk

File size: 371 bytes
Line 
1Optimization hs71
2        VARIABLES
3        x1 as Real(Default=2, Lower=1, Upper=5);
4        x2 as Real(Default=5, Lower=1, Upper=5);
5        x3 as Real(Default=5, Lower=1, Upper=5);
6        x4 as Real(Default=1, Lower=1, Upper=5);
7
8        MINIMIZE
9        x1*x4*(x1+x2+x3) + x3;
10       
11        EQUATIONS
12        x1*x2*x3*x4 > 25;
13       
14        x1*x1 + x2*x2 + x3*x3 + x4*x4 = 40;
15       
16        OPTIONS
17        NLPSolver = "ipopt_emso";
18        RelativeAccuracy = 1e-6;
19end
Note: See TracBrowser for help on using the repository browser.