Skip to main content

Unexpected Behavior with Heuristic Solutions and Callbacks in Gurobi

Awaiting user input


1 comment

  • Mario Ruthmair
    Gurobi Staff Gurobi Staff

    Did you set the parameter LazyConstraints=1 to tell the solver that the callback should be called for each newly found solution? See also this article.

    If yes, can you create an MRE so that we can reproduce the behavior on our side?

    Disabling presolving can indeed help in some cases since it changes the model structure and the solver's solution path. Obtaining a weaker dual bound with presolving is, however, rare. Usually, it is the opposite. Could you post the relevant parts of the two solver logs?


Please sign in to leave a comment.