Can I add enforce cblazy at MIPNODE?
AnsweredHi
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
where
value on the callback function isGRB.Callback.MIPNODE
orGRB.Callback.MIPSOL
(see the Callback Codes section for more information).The callback examples will also help with your implementation.
- Riley
0
Please sign in to leave a comment.
Comments
1 comment