Skip to main content

Heuristic does not switch off

Answered

Comments

1 comment

  • Eli Towle
    Gurobi Staff Gurobi Staff

    There is no guaranteed way to prevent Gurobi from using all heuristic solutions. When you set the Heuristics parameter to 0, Gurobi spends no time looking for heuristic solutions. However, it could happen that Gurobi still encounters solutions as part of its solving process, even without devoting any additional meaningful work to finding them. These are reported as heuristic solutions.

    For this small model, if you really want Gurobi to ignore the heuristic solution, you could try setting the Threads parameter to 1. In general, limiting the number of threads does not necessarily prevent Gurobi from finding these "free" solutions. This small model is a special case, since Gurobi finds the heuristic solution in a secondary thread helping at the root node.

    Note that setting Threads to 1 typically has a negative effect on solver performance, because you are limiting the computing resources available to Gurobi.

    0

Please sign in to leave a comment.