Creates an expression node to represent a continuous or discontinuous piecewise linear function.
points
to use for the definition of the breakpoints of the piecewise linear function. points
. Thus num+1
elements of array slopes
are used. slopes
to use for the definition of the slopes of the piecewise linear function. A piecewise linear function of expr
.
The piecewise linear function is evaluated at expr
and is defined by the remaining arguments. The array points
contains breakpoints such that points[i-1]
is less than or equal to points[i]
. Only num
elements starting with element startPoints
are considered. The array slopes
contains the slope for each piece defined by the breakpoints. Only num+1
elements starting with element startSlopes
are considered. The element slopes[startSlopes]
specifies the slope of the piecewise linear function for values less than points[startPoints]
, and slopes[startSlopes+num]
specifies the slope of the piecewise linear function for values greater than points[startPoints+num-1]
. For elements in between, slopes[startSlopes+i]
specifies the slope between points[startPoints+i-1]
and points[startPoints+i]
.
By selecting points[startPoints+i-1] == points[startPoints+i]
, you can represent a discontinuous piecewise linear function. At points[startPoints+i]
, it will make a step of size slope[startSlopes+i-1]
.
The values a
and fa
define the x and y coordinates of one point of the piecewise linear function. This point is referred to as the anchor point.
IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.PiecewiseLinear Overload List