GRBModel.AddGenConstrLog()

Add a new general constraint of type GRB.GENCONSTR_LOG to a model.

A natural logarithmic function constraint states that the relationship $y = log(x)$ should hold for variables $x$ and $y$.

A piecewise-linear approximation of the function is added to the model. The details of the approximation are controlled using the following four attributes (or using the parameters with the same names): FuncPieces, FuncPieceError, FuncPiecesLength, and FuncPieceRatio. For details, consult the General Constraint discussion.

GRBGenConstr AddGenConstrLog ( GRBVar xvar,
    GRBVar yvar,
    string name,
    string options )