Hello, I have a problem solving problem 149. I,ve already add “all” for the equation, but i still have the problem.
$OFFSYMXREF
$OFFSYMLIST
option limrow=0;
option limcol=0;
option solprint=on;
option sysout=off;
option LP=CPLEX;
option MIP=CPLEX;
option NLP=CONOPT;
option MINLP=DICOPT;
option OPTCR=0;
$TITLE VMI
$ONTEXT
EJEMPLO VMI
$OFFTEXT
SETS
j periodos /a1*a5/
i compradores /b1*b10/;
VARIABLE F1;
Variable x(i,j);
TABLE d1(i,j) por periodos
a1 a2 a3 a4 a5
b1 20 19 18 21 18
b2 .003 .005 .008 .003 .006
b3 7 7 7 7 7
b4 .004 .006 .008 .005 .007
b5 9 9 9 9 9
b6 7 8 9 7 9
b7 12 10 11 11 12
b8 15 15 15 15 15;
EQUATIONS funobj, rest1, rest2,rest4;
funobj.. F1 =E= {(d1(i,j)*(x(i,j))-(d1(i,j))*sqrt((x(i,j)))-(d1(i,j)*(x(i,j)))-0.5*d1(i,j)*sqrt((x(i,j)))-(2*sqrt((d1(i,j)+d1(i,j))*(d1(i,j)+d1(i,j))*(x(i,j))))};
rest1.. x(i,j)=G=250;
rest2.. x(i,j)=L=4000;
rest4.. (d1("b",j))=L=14476;
model problema1 /al/;
solve problema1 using LP maximizing F1;
Funcion objetivo GAMS.txt (1.04 KB)