Skip to main content
2 votes
Accepted

Are there ways to assist Gurobi in finding good solutions?

You can use a callback to get each new Gurobi solution $x$ and tell Gurobi about your improved solution $g(x)$. This article illustrates it in the context of the Python API. (It might be a bit, um, ...
prubin's user avatar
  • 40.1k
2 votes
Accepted

Casting the truth value of an inequality to a boolean

Equivalently, you want to enforce the contrapositives \begin{align} b=0 &\implies d<0 \\ b=1 &\implies d\ge 0 \end{align} For $d<0$, rewrite as $d\le -\epsilon$ for some positive ...
RobPratt's user avatar
  • 33.6k
1 vote

Are there ways to assist Gurobi in finding good solutions?

I would suggest watching Faster MIPs Using Custom Heuristics by Gurobi's Greg Glockner.
Riley's user avatar
  • 175

Only top scored, non community-wiki answers of a minimum length are eligible