GRBModel::addGenConstrTan()

Add a new general constraint of type GRB_GENCONSTR_TAN to a model.

A tangent function constraint states that the relationship $y = tan(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 addGenConstrTan ( GRBVar xvar,
    GRBVar yvar,
    std::string name="",
    std::string options="" )