Skip to main content

Questions regarding the heuristic parameter in Gurobi

Answered

Comments

1 comment

  • Simranjit Kaur
    • Gurobi Staff Gurobi Staff

    Hi Joonmo,

    The Heuristics parameter in Gurobi controls how aggressively the solver applies heuristic methods to find feasible solutions during the optimization process. This parameter has a value range between 0 and 1, where the value represents the fraction of total runtime that the solver will allocate to heuristics. By default, the solver spends 5% of its runtime on heuristics.

    Setting the Heuristics parameter to 1 means that the solver will heavily focus on finding feasible solutions using various heuristics. However, this does not turn off other aspects of the solver, such as the branch-and-bound process. The solver continues to track bounds and can prove no better solution exists, thus claiming a solution to be optimal.

    Gurobi uses several heuristics. Some of them are:

    We hope this helps.

    Best regards,
    Simran

    1

Please sign in to leave a comment.