(function from pyomo.contrib.cspline_external.cspline_parameters)
pyomo.contrib.cspline_external.cspline_parameters
If the objective form of the parameter calculation is used, the data and the spline don’t need to match exactly, and we can add constraints on the second derivatives that they are always negative.