Initializing help system before first use

getCoefficient Method (XPRBvar)

Get the coefficient of a linear constraint term.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 4.8.14.0
Syntax
C#
VB
public double getCoefficient(
	XPRBvar var
)

Parameters

var
Type:  BCLXPRBvar
variable of type
XPRBvar

Return Value

Type:  Double
Examples
XPRBprob expl2; XPRBctr ctr1; XPRBvar x1; double val; expl2 = new XPRBprob("example2"); x1 = expl2.newVar("abc3", BCLconstant.XPRB_UI, 1, 100); ctr1 = expl2.newCtr("r1"); ctr1.setTerm(x1, 5.4); val = ctr1.getCoefficient(x1);
See Also