add Method (XPRBexpr, Double)
Adds a double to an XPRB expression.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 37.1.1.0

Parameters
- l1
-
Type:
BCLXPRBexpr
The XPRBexpr to be added to. - d2
-
Type:
SystemDouble
The double to add to l1.
Return Value
Type: XPRBexprThe new XPRBexpr expression.

XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBexpr exp = new XPRBexpr(4.2*var + 3.6); ... exp = XPRBexpr.add(exp, 0.7);
