is_constant

(function from pyomo.core.expr.numvalue)

pyomo.core.expr.numvalue.is_constant(obj)[source]

A utility function that returns a boolean that indicates whether the object is a constant.