$offlisting * * Equation counts * Total E G L N X C B * 10 10 0 0 0 0 0 0 * * Variable counts * x b i s1s s2s sc si * Total cont binary integer sos1 sos2 scont sint * 13 13 0 0 0 0 0 0 * FX 0 * * Nonzero counts * Total const NL * 26 22 4 * Solve m using NLP minimizing objvar; Variables objvar,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13; Equations e1,e2,e3,e4,e5,e6,e7,e8,e9,e10; e1.. 91.91176470588235 * x10 / x2 + objvar =E= 0; e2.. -tanh(x12) + x8 =E= 0; e3.. -tanh(x13) + x9 =E= 0; e4.. -0.0949474332688833 * x8 + 0.968637250639063 * x9 + x11 =E= 0.002499597315649; e5.. x10 - 86.324 * x11 =E= 92.74; e6.. -0.025 * x2 + x5 =E= -3.5; e7.. -x3 + x6 =E= -2; e8.. -0.04 * x4 + x7 =E= -1.4; e9.. -24.4380718077469 * x5 - 22.0304402344789 * x6 + 147.921509281049 * x7 + x12 =E= 101.235018055261; e10.. 1.48567642304727 * x5 - 0.0532843142008436 * x6 + 0.910590580134437 * x7 + x13 =E= 0.18771256886977; * set non-default bounds x2.lo = 100; x2.up = 180; x3.lo = 1; x3.up = 3; x4.lo = 10; x4.up = 60; Model m / all /; m.limrow = 0; m.tolproj=0.0; m.limcol = 0; $if NOT '%gams.u1%' == '' $include '%gams.u1%' $if not set NLP $set NLP NLP Solve m using %NLP% minimizing objvar;