GRBModel.addGenConstrSin()

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

A sine function constraint states that the relationship $y = sin(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 addGenConstrSin ( GRBVar xvar,
    GRBVar yvar,
    String name,
    String options )