ILOG CPLEX .NET Reference Manual

Cplex.AddCuts Method (IConstraint[])

Adds the constraints given in cut as cuts to the invoking Cplex object.

public virtual IConstraint[] AddCuts(
   IConstraint[] cut
);

Parameters

cut
An array of constraints to be added as a cut.

Return Value

The array of constraints added as a cut.

Remarks

The cuts do not become part of the model; they are only copied when the method addCuts is invoked. Thus, the constraints may be deleted or modified after addCuts has been called, and the change will not affect the invoking 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 | Cplex.AddCuts Overload List