Click or drag to resize

XPRBcutsetTerm(Double, XPRBvar) Method

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: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int setTerm(
	double val,
	XPRBvar var
)

Parameters

val  Double
The new double coefficient of the term.
var  XPRBvar
The XPRBvar to alter the coefficient of.

Return Value

Int32
0 on success, 1 on failure.
Example
C#
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