Nonlinear Test problem
{ mhw4d.mpl }
{ GAMS Model Library, http://www.gams.com/modlib/libhtml/mhw4d.htm }
{ Nonlinear Test Problem, NLP, Size: 0x2 }
{ CONOPT: obj = 27.872, X(-1.273,..,-1.571) }
TITLE
Mhw4d;
OPTIONS
ModelType=Nonlinear
ParserType=Extended
DATA
M := 1000;
VARIABLES
X1 INITIAL -1;
X2 INITIAL 2;
X3 INITIAL 1;
X4 INITIAL -2;
X5 INITIAL -2;
MODEL
MIN Obj = (X1-1)^2 + (X1-X2)^2 + (X2-X3)^3 + (X3-X4)^4 + (X4-X5)^4;
SUBJECT TO
Eq1: X1 + X2^2 + X3^3 = 3*(2^0.5) + 2;
Eq2: X2 - X3^2 + X4 = 2*(2^0.5) - 2;
Eq3: X1*X5 = 2;
BOUNDS
-M <= X1 <= M;
-M <= X2 <= M;
-M <= X3 <= M;
-M <= X4 <= M;
-M <= X5 <= M;
END
Back To Top
|
Maximal Home Page
|
List of Models |
Previous Page
|
Next Page