ILOG CPLEX .NET Reference Manual

ILinearNumExpr.Remove Method (INumVar)

Removes a variable from the invoking ILinearNumExpr expression.

void Remove(
   INumVar var
);

Parameters

var
The variable to be removed.

Remarks

All terms in the invoking linear expression with the specified variable are removed from the invoking ILinearNumExpr object. If variable var occurs more than once in the invoking ILinearNumExpr, all occurrences are removed. The ILinearNumExpr.Enumerator can be used to remove individual terms regardless of duplicates.

See Also

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