epgap=0
Posted: Thu Aug 30, 2018 7:15 am
Hi
i have a three "MIP" model , i want to solve these model in one GAMS file ,i write equation for every model first, when i write
model my_model1/obj1,c1,c2/;
my_model1.Optfile =1;
file opts cplex option file/ cplex.opt /;
putclose opts /'epgap=0' /'epagap=0';
solve my_model1 using mip minimizing z;
and
model my_model2/obj2,c3,c4/;;
my_model2.Optfile =1;
file opts cplex option file/ cplex.opt /;
putclose opts /'epgap=0' /'epagap=0';
solve my_model2 using mip minimizing z1;
i have this errror "symbol redefined -a second data statement for the same symbol or data statement after an assignment ,
how can fix this problem ?
thanks
i have a three "MIP" model , i want to solve these model in one GAMS file ,i write equation for every model first, when i write
model my_model1/obj1,c1,c2/;
my_model1.Optfile =1;
file opts cplex option file/ cplex.opt /;
putclose opts /'epgap=0' /'epagap=0';
solve my_model1 using mip minimizing z;
and
model my_model2/obj2,c3,c4/;;
my_model2.Optfile =1;
file opts cplex option file/ cplex.opt /;
putclose opts /'epgap=0' /'epagap=0';
solve my_model2 using mip minimizing z1;
i have this errror "symbol redefined -a second data statement for the same symbol or data statement after an assignment ,
how can fix this problem ?
thanks