(function from pyomo.util.infeasible)
pyomo.util.infeasible
Find variables whose values are outside their bounds
Uses the current model state. Variables with no values are returned as if they were infeasible.
m (Block) – Pyomo block or model to check
tol (float) – absolute feasibility tolerance
var (VarData) – The variable that is outside its bounds
infeasible (int) – A bitmask indicating which bound was infeasible (1 for the lower bound or 2 for the upper bound; 4 indicates the variable had no value or a bound was undefined)