Initializing help system before first use

UnaryNegation Operator

Negate an XPRBvar.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public static XPRBterm operator -(
	XPRBvar v
)

Parameters

v
Type:  BCLXPRBvar
The XPRBvar to negate.

Return Value

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