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,
    string name,
    string options )