the results become different after setting a timelimit
AnsweredHello,
I found in the community that when we set a timelimit in gurobi, the results might be different if the model does not fined an optimal result before reaching the timelimit. This happen to my model.
I am wondering that is there a way to make the result the same even if a timelimit is set?
Thank you very much!
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Siliang,
Setting a time limit often makes the solver behavior non-deterministic because of slight differences in the running times - even when running on the same machine with the same settings. This is mostly due to other processes running in parallel that might influence how the operating system manages the available computing resources (CPU, memory, cache, etc.).
To get a deterministic behavior, you should set a different termination criterion like a node or gap limit.
Cheers,
Matthias1 -
Hi Matthias,
NODE_LIMIT and MIPGap do give me a deterministic result.
Thank you for your help!
Best wishes,
Siliang
0
Post is closed for comments.
Comments
3 comments