$offlisting * * Equation counts * Total E G L N X C B * 14 6 0 8 0 0 0 0 * * Variable counts * x b i s1s s2s sc si * Total cont binary integer sos1 sos2 scont sint * 11 11 0 0 0 0 0 0 * FX 0 * * Nonzero counts * Total const NL DLL * 43 35 8 0 * * Solve m using NLP minimizing objvar; Variables objvar,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11; Positive Variables x2,x3,x4,x5,x6,x7,x8,x9,x10,x11; Equations e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14; e1.. objvar + 3*x4 + 9*x5 - 4*x6 + 2*x7 - x10 + 5*x11 =E= 0; e2.. x4 + x5 =L= 300; e3.. x6 + x7 =L= 300; e4.. x10 + x11 =L= 300; e5.. x4 + x5 + x6 + x7 =L= 300; e6.. x4 + x6 + x10 =L= 100; e7.. x5 + x7 + x11 =L= 200; e8.. 0.5*x4 - 1.5*x6 - 0.5*x10 =L= 0; e9.. 1.5*x5 - 0.5*x7 + 0.5*x11 =L= 0; e10.. x2 + x3 =E= 1; e11.. -x2*x8 + x4 =E= 0; e12.. -x3*x8 + x5 =E= 0; e13.. -x2*x9 + x6 =E= 0; e14.. -x3*x9 + x7 =E= 0; * set non-default bounds x2.up = 1; x3.up = 1; x4.up = 100; x5.up = 200; x6.up = 100; x7.up = 200; x8.up = 300; x9.up = 300; x10.up = 100; x11.up = 200; Model m / all /; m.limrow=0; m.limcol=0; m.tolproj=0.0; $if NOT '%gams.u1%' == '' $include '%gams.u1%' $if not set NLP $set NLP NLP Solve m using %NLP% minimizing objvar;