Initializing help system before first use

addTerm Method (XPRBvar, XPRBvar, Double)

Add a term involving two XPRBvars and a double to the XPRB expression.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public XPRBexpr addTerm(
	XPRBvar var1,
	XPRBvar var2,
	double val
)

Parameters

var1
Type:  BCLXPRBvar
The XPRBvar which forms one part of the term.
var2
Type:  BCLXPRBvar
The XPRBvar which forms the other part of the term.
val
Type:  SystemDouble
The double coefficient of the term.

Return Value

Type:  XPRBexpr
The XPRBexpr with the relevant term added.
Examples
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(var, var2, 3.9);
See Also