\$offlisting * * Equation counts * Total E G L N X C B * 2 1 0 1 0 0 0 0 * * Variable counts * x b i s1s s2s sc si * Total cont binary integer sos1 sos2 scont sint * 11 1 0 10 0 0 0 0 * FX 0 * * Nonzero counts * Total const NL DLL * 21 11 10 0 * * Solve m using MINLP minimizing objvar; Variables objvar,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11; Integer Variables i2,i3,i4,i5,i6,i7,i8,i9,i10,i11; Equations e1,e2; e1.. objvar - 9*i2 - 8*i3 - 7*i4 - 6*i5 - 5*i6 - 4*i7 - 3*i8 - 2*i9 - i10 - 10*i11 =E= 0; e2.. 100*sqr(i10) - 98*i10 + 100*sqr(i9) - 98*i9 + 100*sqr(i8) - 98*i8 + 100* sqr(i7) - 98*i7 + 100*sqr(i6) - 98*i6 + 100*sqr(i5) - 98*i5 + 100*sqr(i4) - 98*i4 + 100*sqr(i3) - 98*i3 + 100*sqr(i2) - 98*i2 + 100*sqr(i11) - 98* i11 - 2*i10*i9 - 2*i10*i9 - 2*i8*i7 - 2*i8*i7 - 2*i6*i5 - 2*i6*i5 - 2*i4* i3 - 2*i4*i3 - 2*i2*i11 - 2*i2*i11 =L= -1; * set non-default bounds i2.lo = -100; i3.lo = -100; i4.lo = -100; i5.lo = -100; i6.lo = -100; i7.lo = -100; i8.lo = -100; i9.lo = -100; i10.lo = -100; i11.lo = -100; Model m / all /; m.limrow=0; m.limcol=0; m.tolproj=0.0; \$if gamsversion 242 option intvarup = 0; \$if NOT '%gams.u1%' == '' \$include '%gams.u1%' \$if not set MINLP \$set MINLP MINLP Solve m using %MINLP% minimizing objvar;