UnaryNegation Operator
Negate an XPRBvar.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- v
-
Type:
BCLXPRBvar
The XPRBvar to negate.
Return Value
Type: XPRBtermThe resultant XPRBterm (the negative of the variable is a term with coefficient minus 1).

XPRBvar var = new XPRBvar("Variable1"); XPRBterm term; ... term = -var;
