max_if_not_None

(函数来自 pyomo.contrib.preprocessing.plugins.var_aggregator)

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

返回非空元素中的最大值。

当所有元素都为None时返回None。