Try our new documentation site (beta).
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 and arguments give the coordinates of the points,
respectively. The and arguments must be large enough to hold
the result. Call this method with NULL
values for
and if you just want the number of points.
Refer to this discussion for additional information on what the values in and mean.
int | getPWLObj ( | GRBVar | var, |
double[] | x, | ||
double[] | y ) |
Arguments:
var: The variable whose objective function is being retrieved.
x: The values for the points that define the piecewise-linear function. These will always be in non-decreasing order.
y: The values for the points that define the piecewise-linear function.
Return value:
The number of points that define the piecewise-linear objective function.