Find the difference between upper and lower bounds

Archive of Gamsworld Google Group
Post Reply
richard
User
User
Posts: 27
Joined: 5 years ago

Find the difference between upper and lower bounds

Post by richard »

Hi everyone
I have a MIP model with name "MyModel" , after solving it with CPLEX, the status model was 8,(INTEGER SOLUTION : A feasible solution to a problem with discrete variables has been found).

i use the following command too ,( before the solve statement)

Code: Select all

 file opts cplex option file/ cplex.opt /;

 MyModel.Optfile =1;
 putclose opts /'epgap=0' /'epagap=0';


How can I get the difference between upper and lower bounds for this feasible solution?
In other words, I want to have the gap.

Thank you
Post Reply