Check Model Diagnostics

Often, models have numerical problems, are infeasible or have other issues. The module diagnostics helps to identify some of these problems. Before deploying the tools, you need to initialize a logger.

get_infeasible_constraints(m, tolerance=0.001)

Gets violated constraints of a pyomo model and send them to the logger

Parameters:
  • m – pyomo model

  • save_path (Path) – path to save

  • tolerance – tolerance of constraint violation

Returns:

None