ILOG CPLEX .NET Reference Manual

Cplex.AddCut Method 

Adds the constraint cut as a cut to the invoking Cplex object.

public virtual IConstraint AddCut(
   IConstraint cut
);

Parameters

cut
The constraint to add as a cut. It must be linear.

Return Value

The constraint added as a cut.

Remarks

The added cut does not become part of the model; it is only copied when the method addCut is invoked. Thus, cut may be deleted or modified after addCut has been called, and the change will not affect the invoking Cplex object. You can and probably should call cut.End after addCut(cut). Unlike constraints that are part of the model, this call of cut.End will not remove the cut from the Cplex object.

Cuts are not part of the root problem; they are considered on an as-needed basis. A solution computed by Cplex is guaranteed to satisfy all cuts.

When columns are deleted from the active model, all cuts are deleted as well and need to be added again if they should be considered. Otherwise, use clearCuts to clear all cuts that have been added.

See Also

Cplex Class | ILOG.CPLEX Namespace