GRBModel.AddGenConstrPoly()

A polynomial function constraint states that the relationship $y = p_0 x^d + p_1 x^{d-1} + ... + p_{d-1} x + p_{d}$ should hold between 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 AddGenConstrPoly ( GRBVar xvar,
    GRBVar yvar,
    double[] p,
    string name,
    string options )