find_infeasible_bounds
(function from pyomo.util.infeasible)
- pyomo.util.infeasible.find_infeasible_bounds(m, tol=1e-06)[source]
Find variables whose values are outside their bounds
Uses the current model state. Variables with no values are returned as if they were infeasible.
- Parameters:
- Yields:
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)