Originally posted by: SystemAdmin
[machsleep said:]
Hi,
I have been trying to check my solution NumVars Z among a set of constraints C in the IncumbentCallback, branch in BranchCallback if there are queued cuts with MakeBranch(C,getObjValue()), and cut globally in CutCallback with add(C(i)) iteratively for all unsatisfied constraints and purge the set of constraints after added.
In doing so, it seems that the Incumbent Callback finds the same unsatisfied constraints, even after the branching and cutting. Either it's not adding the constraints... which it should be... or the Variable Z is not being updated.
I'll explain:
I think there is something wrong with my inputs in to Incumbent Callback.
cplex.use(MyIncCallback(env, Z));
Remember, Z is the variables being solved. Is this the right way to input the variables? If it isn't, then that would explain a lot because Z is not being updated or resolved after the branching/cutting has taken place.
B.T.W. Z is not my only input in to MyIncCallback, I only show Z here because it is the input in question. There are many inputs in to this Incumbent Callback, that is why I use the object instead of the Macro.
Could anyone Help Me?
Thanks
Justin
#CPLEXOptimizers#DecisionOptimization