max_if_not_None

(function from pyomo.contrib.preprocessing.plugins.var_aggregator)

pyomo.contrib.preprocessing.plugins.var_aggregator.max_if_not_None(iterable)[source]

Returns the maximum among non-None elements.

Returns None when all elements are None.