These Cplex options override GAMS option. So, these option always applies whether GAMS option (optcr and optca) write or not provided that reading option file is enabled (ModelName.OptFile = 1;). Read Cplex manual:
epagap (real)
Absolute tolerance on the gap between the best integer objective and the objective of the best node remaining. When
the value falls below the value of the epagap setting, the optimization is stopped. This option overrides GAMS OptCA
which provides its initial value.
(default = GAMS OptCA)
epgap (real)
Relative tolerance on the gap between the best integer objective and the objective of the best node remaining. When
the value falls below the value of the epgap setting, the mixed integer optimization is stopped. Note the difference in
the Cplex definition of the relative tolerance with the GAMS definition. This option overrides GAMS OptCR which
provides its initial value.
Range: [0,1]
(default = GAMS OptCR)
On Mon, Feb 2, 2015 at 10:11 AM, Hossein Sharifzadeh wrote:
Dear Saba
First, force Cplex to read the option file:
ModelName.OptFile = 1;
(Instructs Cplex to read the option file. The name of the option file is cplex.opt.)
Then, make the option file and put your desired options. You can use the following code. Just put your model name instead of " ModelName ".
ModelName.Optfile =1;
file opts cplex option file/ cplex.opt /;
putclose opts /‘epgap=0’ /‘epagap=0’;
You can study CPLEX manual for more details.
Regards;
Hossein
On Sun, Feb 1, 2015 at 8:05 PM, saba wrote:
hi
thanks dear hossein
but i have two questions : how i should code(write) epgap and epagap in model? and if i use epgap and epagap, its not necessary to use optcr and optca?!
regards
On Thursday, 29 January 2015 19:35:58 UTC+4:30, saba wrote:
Hi dear friends
How can i reduce absolute gap in solving MIP model?? In one of my reprts in gams I have MIP solution =5000 and Best solution=2500 and absolute gap=2500 although I add option optca=0 but it has not effect for reducttion named gap too. Can any one help me on this issue??
regards,
\
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.