log_infeasible_constraints

(function from pyomo.util.infeasible)

pyomo.util.infeasible.log_infeasible_constraints(m, tol=1e-06, logger=<Logger pyomo.util.infeasible (WARNING)>, log_expression=False, log_variables=False)[source]

Logs the infeasible constraints in the model.

Uses the current model state. Messages are logged at the INFO level.

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

  • tol (float) – absolute feasibility tolerance

  • logger (logging.Logger) – Logger to output to; defaults to pyomo.util.infeasible.

  • log_expression (bool) – If true, prints the constraint expression

  • log_variables (bool) – If true, prints the constraint variable names and values