code: def _pwl1_to_poly(self, generators):
          
          for g in generators:
              if (g.pcost_model == PW_LINEAR) and (len(g.p_cost) == 2):
                  g.pwl_to_poly()
  
          return generators
docs: Converts single-block piecewise-linear costs into linear
          polynomial.