GRBModel::getPWLObj()

Retrieve the piecewise-linear objective function for a variable. The return value gives the number of points that define the function, and the $x$ and $y$ arguments give the coordinates of the points, respectively. The $x$ and $y$ arguments must be large enough to hold the result. Call this method with NULL values for $x$ and $y$ if you just want the number of points.

Refer to the description of setPWLObj for additional information on what the values in $x$ and $y$ mean.

int getPWLObj ( GRBVar var,
    double[] x,
    double[] y )