This is an advanced method.
The added user cut.
Important:
Advanced methods typically demand a profound understanding of the algorithms used by ILOG CPLEX. Thus they incur a higher risk of incorrect behavior in your application, behavior that can be difficult to debug. Therefore, ILOG encourages you to consider carefully whether you can accomplish the same task by means of other methods instead.
This method adds cut
as a user cut to the invoking Cplex
object. Unlike regular constraints that are added to the model, user cuts are by default left out of the optimization until they are violated. It is only after a node solution violates a user cut that the cut is added to the relaxation and will be used from then on. Unlike lazy constraints, user cuts must not reduce the feasible region of the problem; they can only strengthen the relaxation; otherwise, incorrect solutions can result.
When columns are deleted from the active model, all user cuts are deleted as well and need to be added again if they should be considered. Use clearUserCuts
to remove all user cuts from the invoking Cplex
object.
If you do not know what type your cut is, use the method addCut
rather than this method.