Originally posted by: QiuFeng
Recently I'm doing some computation that needs to embed my cut-generating code in the branch and bound process.I read the manual about cut callback, but I'm not sure if I got it correctly, I would like to ask help here, Please correct me if I'm wrong, thank you all!
I need to add 2 type of cuts, I'm not sure which callbacks I should use for them.
A: The first type of cuts are added after a binary variable is fixed, so I want to know
1, which binaries are fixed at what value in this node, (I have no idea about this)
2, which callback I should use to add cut at this moment(before this node is solved) ?(should I use CPXsetnodecallbackfunc? )
B: The second type of cuts are added after a node LP is solved, I want to add a cut to this LP and solve it again. my question is that
1, which callback I should use to add cut? (should I use CPXgetsolvecallbackfunc? and in the callback, should I use CPXgetcallbacknodelp to get the node LP and add cut to it? )
2, after adding cut, should I just just call CPXlpopt to solve the LP obtained by CPXgetcallbacknodelp ? After solving, do I have to do anything to return the node LP to branch and bound process?
The above is my understanding. Please correct me if I didn't get it right, thank you very much!
#CPLEXOptimizers#DecisionOptimization