--
You received this message because you are subscribed to the Google Groups "gamsworld" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.
--
Hi dear friends
Hi
--
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
--
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)