Skip to main content

MIP-Heuristic as a MIP-start

Answered

Comments

1 comment

  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi,

    You can specify a MIP start vector by setting the Start variable attributes. An example of how this is done in Java can be found in the Facility.java example, part of the examples library.

    To be clear, the greedy heuristic function (greedy_heur) referenced in that PDF presentation is not an actual Gurobi function. It is meant to be a placeholder for a user-defined function which populates the greedy_x dictionary, which is then used to assign the Start values for the model variables. Thus, if you want to provide a MIP start to Gurobi using a greedy heuristic, you will have to implement the actual heuristic yourself.

    Thanks!

    Eli

    0

Please sign in to leave a comment.