Skip to main content

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

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.


Reply


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

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