pwrs.core.poly2pwl# pwrs.core.poly2pwl.poly2pwl(polycost, Pmin, Pmax, npts)[source]# Convert polynomial costs to piecewise-linear costs at evenly spaced points.