Can I add enforce cblazy at MIPNODE?
回答済みHi
I just want to ask, if I am allowed to check the relaxzation solution of a MIP and enforce a lazy constraint there that would cut off some feasible solution. Because I am trying to remove some non-optimal feasible region and check at the relaxzation part.
0
-
Hi Kaijiang,
Can I add enforce cblazy at MIPNODE?
Yes you can. From the cbLazy docs:
Add a new lazy constraint to a MIP model from within a callback function. Note that this method can only be invoked when the
wherevalue on the callback function isGRB.Callback.MIPNODEorGRB.Callback.MIPSOL(see the Callback Codes section for more information).The callback examples will also help with your implementation.
- Riley
0
サインインしてコメントを残してください。
コメント
1件のコメント