Click or drag to resize

XPRBvarUnaryNegation Operator

Negate an XPRBvar.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public static XPRBterm operator -(
	XPRBvar v
)

Parameters

v  XPRBvar
The XPRBvar to negate.

Return Value

XPRBterm
The resultant XPRBterm (the negative of the variable is a term with coefficient minus 1).
Example
C#
XPRBvar var = new XPRBvar("Variable1");
XPRBterm term;
...
term = -var;
See Also