GRBModel::addGenConstrPWL()

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

A piecewise-linear (PWL) constraint states that the relationship $y =
f(x)$ must hold between variables $x$ and $y$, where $f$ is a piecewise-linear function. The breakpoints for $f$ are provided as arguments. Refer to the description of piecewise-linear objectives for details of how piecewise-linear functions are defined.

GRBGenConstr addGenConstrPWL ( GRBVar xvar,
    GRBVar yvar,
    int npts,
    const double* xpts,
    const double* ypts,
    std::string name="" )