ILOG CPLEX .NET Reference Manual

Cplex.AddCuts Method (IConstraint[], Int32, Int32)

Adds num constraints given in cut as cuts to the invoking Cplex object, starting with element cut[start].

public virtual IConstraint[] AddCuts(
   IConstraint[] cut,
   int start,
   int num
);

Parameters

cut
An array of constraints to be added as cuts. All constraints must be linear.
start
The index of the first constraint in cut that is to be added as a cut.
num
The number of consecutive constraints in cut that are to be added as cuts.

Return Value

The array containing the constraints added as cuts. This is array 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