assert_units_consistent
(function from pyomo.util.check_units)
- pyomo.util.check_units.assert_units_consistent(obj)[source]
This method raises an exception if the units are not consistent on the passed in object. Argument obj can be one of the following components: Pyomo Block (or Model), Constraint, Objective, Expression, or it can be a Pyomo expression object
- Parameters:
obj (Pyomo component (e.g., Block, Model, Constraint, Objective, or Expression) or Pyomo expression) – The object or expression to test
- Raises: