Originally posted by: VKV7_Anulark_Naber
In my branchcallback (c++api), I added two branches like this:
IloConstraintArray cons1(env), cons2(env);
cons1.add(cutLhs <= cutRHS);
cons1.add(branchLhs >= reqQ+Epsilon_1e1);
cons2.add(branchLhs <= reqQ-Epsilon_1e1);
makeBranch(cons1, getObjValue());
makeBranch(cons2, getObjValue());
The constraints are added, but when it gets out of branchcallback, I got an error message 1006. What can be the causes of that error?
As you can see, I add branches with the continuous values on the RHS. Could that be the cause?
Thanks in advance.
#CPLEXOptimizers#DecisionOptimization