neg Method (XPRBexpr)
Negates the XPRB expression.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- l
-
Type:
BCLXPRBexpr
The XPRB expression to be negated.
Return Value
Type: XPRBexprThe negated XPRBexpr expression.

XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBexpr exp = new XPRBexpr(4.2*var + 3.6); ... exp = XPRBexpr.neg(lexp);
