find_infeasible_constraints

(function from pyomo.util.infeasible)

pyomo.util.infeasible.find_infeasible_constraints(m, tol=1e-06)[source]

Find the infeasible constraints in the model.

Uses the current model state.

Parameters:
  • m (Block) – Pyomo block or model to check

  • tol (float) – absolute feasibility tolerance

Yields:
  • constr (ConstraintData) – The infeasible constraint object

  • body_value (float or None) – The numeric value of the constraint body (or None if there was an error evaluating the expression)

  • infeasible (int) – A bitmask indicating which bound was infeasible (1 for the lower bound, 2 for the upper bound, or 4 if the body or bound was undefined)