check_model_algebraic

(function from pyomo.gdp.util)

pyomo.gdp.util.check_model_algebraic(instance)[source]

Checks if there are any active Disjuncts or Disjunctions reachable via active Blocks. If there are not, it returns True. If there are, it issues a warning detailing where in the model there are remaining non-algebraic components, and returns False.

Parameters:

instance (a Model or Block)