Click or drag to resize

XPRBctrgetCoefficient(XPRBvar) Method

Get the coefficient of a linear constraint term.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public double getCoefficient(
	XPRBvar var
)

Parameters

var  XPRBvar
variable of type
C#
XPRBvar

Return Value

Double
Example
C#
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