I have a MIP model with name "MyModel", i used these commands too( before the solve statement).
file opts cplex option file/ cplex.opt /;
MyModel.Optfile =1;
putclose opts /'epgap=0' /'epagap=0';
after solving it with CPLEX, the status model was 8,(INTEGER SOLUTION : A feasible solution to a problem with discrete variables has been found).
How can I get the difference between upper and lower bounds for this feasible solution? In other words, I want to have the gap.
Thanks