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!
-
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
Please sign in to leave a comment.
Comments
2 comments