add_concave_constraints

(function from pyomo.contrib.cspline_external.cspline_parameters)

pyomo.contrib.cspline_external.cspline_parameters.add_concave_constraints(m, tol=0)[source]

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.