Initializing help system before first use

neg Method (XPRBterm)

Negate the coefficient of the XPRBterm.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public static XPRBterm neg(
	XPRBterm l
)

Parameters

l
Type:  BCLXPRBterm
The XPRMterm to negate.

Return Value

Type:  XPRBterm
The negated XPRMterm.
Examples
XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBterm term = new XPRBterm(4.2, var); ... XPRBterm.neg(term);
See Also