ILOG CPLEX .NET Reference Manual

ILinearIntExpr.Remove Method (IIntVar[], Int32, Int32)

Removes a set of variables from the invoking ILinearIntExpr expression.

void Remove(
   IIntVar[] var,
   int start,
   int num
);

Parameters

var
The array containing the variables to be removed.
start
The index of the first variable in var to be removed.
num
The number of variables in var to be removed.

Remarks

All terms in the invoking linear expression having any variable in var[start], ..., var[start+num-1] are removed. If variable var occurs more than once in the invoking ILinearIntExpr, all occurrences are removed. The ILinearIntExpr.Enumerator can be used to remove individual terms regardless of duplicates.

See Also

ILinearIntExpr Interface | ILOG.Concert Namespace | ILinearIntExpr.Remove Overload List