Skip to main content

the results become different after setting a timelimit

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    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?.
  • Matthias Miltenberger
    • Gurobi Staff Gurobi Staff

    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,
    Matthias

    1
  • Siliang Wei
    • Gurobi-versary
    • First Comment
    • First Question

    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.