Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Model.getCoeff()
getCoeff ( constr, var )
Query the coefficient of variable var
in linear constraint
constr
(note that the result can be zero).
Arguments:
constr: The requested constraint.
var: The requested variable.
Return value:
The current value of the requested coefficient.
Example usage:
print(model.getCoeff(constr, var))