identify_inconsistent_units

(function from pyomo.util.check_units)

pyomo.util.check_units.identify_inconsistent_units(block)[source]

This function generates a ComponentSet of all Constraints, Expressions, and Objectives in a Block or model which have inconsistent units.

Parameters:

block (Pyomo Block or Model to test)

Returns:

ComponentSet – identified as having unit consistency issues

Return type:

contains all Constraints, Expressions or Objectives which were