XPRBexprmul(XPRBexpr, Double) Method |
Multiplies an XPRB expression by a coefficient d.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic XPRBexpr mul(
XPRBexpr l,
double d
)
Public Function mul (
l As XPRBexpr,
d As Double
) As XPRBexpr
Parameters
- l XPRBexpr
- The XPRBexpr to multiply.
- d Double
- The double with which to mulitply the XPRBexpr.
Return Value
XPRBexprThe resultant XPRBexpr expression.
ExampleXPRBprob prob = new XPRBprob("NewProb");
XPRBvar var = new XPRBvar("Variable");
XPRBvar var2 = new XPRBvar("Variable2");
XPRBexpr exp = new XPRBexpr(4.2*var + 3.6*var2 - 9.6);
...
XPRBexpr.mul(exp, 2.5);
See Also