I have two questions about Gurobi parameters.. I am using Gurobi C++ to solve a MIP_problem that I need to add CNTR from a previous optimization, each optimization has its own difficulties, but the first one is simple to get initial variable values, then put them into C++ variables do some calculations, and re-decide Gurobi variables, for this reason, I set time_limit for the first optimization. I just need this time limit at the first, the subsequent optimizations should not have time_limit. But once it is set, it remains, even if I change the Objective function or call another optimization process.
Is there a possibility the next opt process "turn off" the setting of time_limit?
Another question is about MIP_GAP, when I do not set this parameter, it is taking about 21417s to achieve the default GAP 0.01, once I set 0.01 as Gurobi Parameter MIP_GAP that takes 44s! How works this MIP_Gap set by the user or by Gurobi, because I read already
Why that difference happens ?! I am seeing that as a Cut to my optimization process to search for a solution, is that correct?
Thanks in advance!
Please sign in to leave a comment.