Skip to main content

Heuristic solution for continuous and binary variables

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • David Torres Sanchez
    • Gurobi Staff

    Hi,

    Some heuristics can only run on certain types of variables (due to the assumptions made) or are more effective for certain types of variables.
    The same thing for other parts of the solution process such as presolve, you can see in the MIP case we are able to remove more variables (15 vs 1).

    There is no way of getting more information about the heuristics being run.
    You can experiment with some heuristic-related parameters see the MIP section under parameters.

    In any case, It seems that there is not much difference in solving time.

    Lastly, there is a convenient function to relax the problem: model.relax().

    Cheers, 
    David

    0

Post is closed for comments.