Skip to main content

the results become different after setting a timelimit

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.