GRBModel.setPWLObj()

Set a piecewise-linear objective function for a variable.

The arguments to this method specify a list of points that define a piecewise-linear objective function for a single variable. Specifically, the $x$ and $y$ arguments give coordinates for the vertices of the function.

For additional details on piecewise-linear objective functions, refer to this discussion.

void setPWLObj ( GRBVar var,
    double[] x,
    double[] y )