Originally posted by: SystemAdmin
If the difference between the programs is add() vs. addLocal() then different optimal solutions are expected. The program that uses addLocal() instead of add() solves a problem that is less restricted and may therefore produce better solutions than the other one.
addLocal() adds a cut/lazy constraint that is valid only in the subtree rooted at the current node. That is, the added constraint does not apply to nodes that are not descendents of the current node.
add() instead adds a
global cut/lazy constraint that is valid for
all the nodes in the tree (it is as if you had added the constraint to the original model formulation).
As you can see, using addLocal() is less restrictive.
#CPLEXOptimizers#DecisionOptimization