Initializing help system before first use

setTerm Method (Double, XPRBvar)

Set a cut term. This method sets the coefficient of a given variable to the value val.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public int setTerm(
	double val,
	XPRBvar var
)

Parameters

val
Type:  SystemDouble
The new double coefficient of the term.
var
Type:  BCLXPRBvar
The XPRBvar to alter the coefficient of.

Return Value

Type:  Int32
0 on success, 1 on failure.
Examples
XPRBprob prob = new XPRBprob("NewProb"); XPRBcut cut = new XPRBcut(); XPRBvar var = new XPRBvar("Variable"); cut.assign(2.6*var <= 2.5); ... cut.setTerm(3.5, var);
See Also