Variables fixing in Gurobi's B&B
AnsweredHello,
I am working on a MIQP, let's call its binary variables 'u'. I have a method to compute very good heuristic solutions at each node of Gurobi's B&B and I want to use callbacks to do so. The only thing is that I need to know which components of u are fixed (to 0 or 1) in that node. Is it possible to retrieve this information?
Thanks,
Federico
0
-
Hi Federico,
You can use the Model.cbGetNodeRel() method in a MIPNODE callback to get the node relaxation solution at a node. If your heuristic needs a feasible solution as a starting point, you can use the Model.cbGetSolution() method in an MIPSOL callback to get a solution.
Best regards,
Simran0
Please sign in to leave a comment.
Comments
1 comment