(function from pyomo.core.expr.numvalue)
pyomo.core.expr.numvalue
A function that creates a NumericConstant object that wraps Python numeric values.
This function also manages a cache of constants.
data is added to a component.
obj – The numeric value that may be wrapped.
native_numeric_types
Returns: A NumericConstant object or the original object.