GRBModel.addGenConstrPoly()

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

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 )