is_zero_product

(function from pyomo.repn.parameterized_quadratic)

pyomo.repn.parameterized_quadratic.is_zero_product(e1, e2)[source]

Return True if e1 is zero and e2 is not known to be an indeterminate (e.g., NaN, inf), or vice versa, False otherwise.