Characterizes a piecewise linear function described by a
list of breakpoints and function values.
Note
The function characterization codes are
1: affine
2: convex
3: concave
4: step
5: other
If the function has step points, some of the slopes
may be None
.