Variables fixing in Gurobi's B&B
回答済みHello,
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
-
正式なコメント
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. -
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
投稿コメントは受け付けていません。
コメント
2件のコメント