XPRBctrgetCoefficient(XPRBvar) Method |
Get the coefficient of a linear constraint term.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic double getCoefficient(
XPRBvar var
)
Public Function getCoefficient (
var As XPRBvar
) As Double
Parameters
- var XPRBvar
- variable of type
Return Value
Double
ExampleXPRBprob 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