| 1 |
g0 0 0 0 # toy problem - the 'g' indicates the file here is in ascii (other numbers (0,0,0,0) ignored) |
| 2 |
4 3 1 0 0 # num vars, num constraints, num objectives, 0,0 |
| 3 |
1 0 # number nonlinear constraints, num nonlinear objectives |
| 4 |
0 0 # num nonlinear network constraints, num linear network constraints, |
| 5 |
2 0 0 # num nonlinear vars in constraints, objectives, both |
| 6 |
0 0 0 1 # num linear network variables; functions; arith, flags |
| 7 |
1 1 0 0 0 # discrete variables: binary, integer, nonlinear (b,c,o) |
| 8 |
7 3 # number nonzeros in Jacobian, number nonzeros in linear part of objectives |
| 9 |
0 0 # 0,0 |
| 10 |
0 0 0 0 0 # 0,0,0,0,0 // Note that the variables are in order y[1],y[2],x,z |
| 11 |
C0 # Here starts the nonlinear part of constraint-0 |
| 12 |
o0 # = add |
| 13 |
o5 # = raise-to-power |
| 14 |
o0 # = add |
| 15 |
n-0.5 # = constant -0.5 |
| 16 |
v0 # = the continuous variable y[1] |
| 17 |
n2 # = constant 2 |
| 18 |
o5 # = raise-to-power |
| 19 |
o0 # = add |
| 20 |
n-0.5 # = constant -0.5 |
| 21 |
v1 # = the continuous variable y[2] |
| 22 |
n2 # = constant 2 ....Here ends the nonlinear part of constraint-0 |
| 23 |
C1 # Here starts the nonlinear part of constraint-1 |
| 24 |
n0 # Here ends the nonlinear part of constraint-1 |
| 25 |
C2 # Here starts the nonlinear part of constraint-2 |
| 26 |
n0 # Here ends the nonlinear part of constraint-2 |
| 27 |
O0 0 # Here starts the nonlinear part of objective(-0) |
| 28 |
n0 # Here ends the nonlinear part of objective(-0) |
| 29 |
r # Here starts the right-hand side section |
| 30 |
1 0.25 # constraint-0 body <= 0.25 |
| 31 |
1 0 # constraint-1 body <=0 |
| 32 |
1 2 # constraint-2 body <= 2 |
| 33 |
b # Here starts the bounds on variables section |
| 34 |
2 0 # var-0 >= 0 |
| 35 |
2 0 # var-1 >= 0 |
| 36 |
0 0 1 # 0 <= var-2 <= 1 |
| 37 |
0 0 5 # 0 <= var-3 <= 5 |
| 38 |
k3 # INFO FOR JACOBIAN COLUMN COUNTS. THIS RECORD IS ALWAYS 'k' FOLLOWED BY NUMBER OF VARIABLES MINUS 1 |
| 39 |
2 # the number of nonzeros in the column2 0..0 of the jacobian |
| 40 |
4 # the number of nonzeros in the columns 0..1 of the jacobian |
| 41 |
6 # the number of nonzeros in the columns 0..2 of the jacobian |
| 42 |
J0 2 # Two coefficients for the row-0 of the (explicitly) linear part of the constraints |
| 43 |
0 0 # var-0, linear coefficient 0 |
| 44 |
1 0 # var-1, linear coefficient 0 |
| 45 |
J1 2 # Two coefficients for the row-1 of the linear part of the constraints |
| 46 |
0 -1 # var-0, linear coefficient -1 |
| 47 |
2 1 # var-2, linear coefficient 1 |
| 48 |
J2 3 # Three coefficients for the row-2 of the linear part of the constraints |
| 49 |
1 1 # var-1, linear coefficient 1 |
| 50 |
2 1 # var-2, linear coefficient 1 |
| 51 |
3 1 # var-3, linear coefficient 1 |
| 52 |
G0 3 # Three coefficients for the linear part of objective(-0) |
| 53 |
0 -1 # var-0, linear coefficient -1 |
| 54 |
1 -1 # var-1, linear coefficient -1 |
| 55 |
2 -1 # var-2, linear coefficient -1 |