addTerm Method (Double, XPRBvar)
Add a term involving an XPRBvar and double to the XPRB expression.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- val
-
Type:
SystemDouble
The double which forms the other part of the term. - var
-
Type:
BCLXPRBvar
The XPRBvar which forms one part of the term.
Return Value
Type: XPRBexprThe XPRBexpr with the relevant term added.

XPRBprob prob = new XPRBprob("NewProb"); XPRBvar var = new XPRBvar("Variable"); XPRBvar var2 = new XPRBvar("Variable2"); XPRBvar var3 = new XPRBvar("Variable3"); XPRBexpr exp = new XPRBexpr(4.2*var*var2 + 3.4*var*var3); ... exp.addTerm(3.9, var9);
