GRBModel::addGenConstrExpA()

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

An exponential function constraint states that the relationship $y = a^x$ should hold for variables $x$ and $y$, where $a > 0$ is the (constant) base.

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 addGenConstrExpA ( GRBVar xvar,
    GRBVar yvar,
    double a,
    std::string name="",
    std::string options="" )