Skip to main content

Dear All,

Is possible to retrieve MIP optimalilty gap and Solving Time for each solve in to a parameter?

If so, how to do this?

Thank you very much.

Hi @deannezhang,

Thanks a lot….


Yes, you can use the “SolutionTime” suffix. For other suffix and callback functions, you can refer to the AIMMS Language reference, part “Suffices and Callbacks”.


Hello @deannezhang,

Thank you for the method to calculate the gap. For solving time, is there a way to retrieve it?

Thank you.


You can use the “Incumbent” and “Incumbent” suffix to retrieve the best known solution and the  LP bound, then use them to calculate the GAP and assign it to a parameter.

MpGap :=(abs(MathProgram.Incumbent - MathProgram.bestbound)/$abs(MathProgram.Incumbent)) * 100;

 


Reply


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

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