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.
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.
Best answer by deannezhang
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;
Already have an account? Login
Please use your business or academic e-mail address to register
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.