delTerm Method (XPRBvar)
Removes terms of a specified XPRbvar from an XPRB expression.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- var
-
Type:
BCLXPRBvar
The XPRbvar to remove from the XPRBexpr.
Return Value
Type: XPRBexprThe XPRBexpr expression with the variable removed.

XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBvar var2 = new XPRBvar("Variable2"); XPRBexpr exp = new XPRBexpr(4.2*var + 3.6*var2 - 9.6); ... exp.delTerm(var2);
