Initializing help system before first use

neg Method (XPRBexpr)

Negates the XPRB expression.

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

Parameters

l
Type:  BCLXPRBexpr
The XPRB expression to be negated.

Return Value

Type:  XPRBexpr
The negated XPRBexpr expression.
Examples
XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBexpr exp = new XPRBexpr(4.2*var + 3.6); ... exp = XPRBexpr.neg(lexp);
See Also