0

How can the optimality gap (relative and absolute) be obtained using CPLEX C++ API? Is there any function such as that would give the optimality gap?

IBM: accessing the MIP relative optimality gap

Found the above information but not able to use it.

Prarup
  • 7
  • 3

1 Answers1

0

You could use

Cplex.getMIPRelativeGap()

If Cplex is yout Cplex object

Alex Fleischer
  • 9,276
  • 2
  • 12
  • 15