Click or drag to resize

XPRBcutsetTerm(Double) Method

Set the constant term (= RHS value) of a cut. The RHS of the cut is set to the given constant.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int setTerm(
	double val
)

Parameters

val  Double
The double value to use as the RHS term.

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(5.2);
See Also