Skip to main content
Solved

How to change the Gap of a SolverSession by GMP Method?

  • March 24, 2025
  • 1 reply
  • 36 views

Forum|alt.badge.img+2

I have met such a problem: When I use “GMP::SolverSession::SetOptionValue(SCUCSolver,"Polishing_relative_MIP_gap",0.0001)” to Set the Gap of a MIP Mathematical Program, the solver returns a solution with gap of 0.99% which is larger than 0.0001. I have also tried to use “option MIP_relative_optimality_tolerance” but it still didn’t work. How do I so this? Thank you

Best answer by Marcel Hunting

Hi ​@denghaiying. You should use the Solvers General option 'MIP relative optimality tolerance' to set the relative MIP gap. This can be done using the statement

   option MIP_relative_optimality_tolerance := 0.0001;

Note that this statement should be called before you call GMP::Instance::Generate.

1 reply

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4
  • AIMMSian
  • 258 replies
  • Answer
  • March 25, 2025

Hi ​@denghaiying. You should use the Solvers General option 'MIP relative optimality tolerance' to set the relative MIP gap. This can be done using the statement

   option MIP_relative_optimality_tolerance := 0.0001;

Note that this statement should be called before you call GMP::Instance::Generate.



Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator