Documentation

GRBModel::getCoeff()


GRBModel::getCoeff()

Query the coefficient of variable var in linear constraint constr (note that the result can be zero).

double getCoeff ( GRBConstr constr,
    GRBVar var )
    Arguments:

    constr: The requested constraint.

    var: The requested variable.

    Return value:

    The current value of the requested coefficient.