Degeneracy Hunter

Degeneracy Hunter#

class idaes.core.util.model_diagnostics.DegeneracyHunter2(model, **kwargs)[source]#

Degeneracy Hunter is a tool for identifying Irreducible Degenerate Sets (IDS) in Pyomo models.

Original implementation by Alex Dowling.

Parameters:

model – model to be diagnosed. The DegeneracyHunter does not support indexed Blocks.

Keyword Arguments:
  • solver (str, default='scip') – MILP solver to use for finding irreducible degenerate sets.

  • solver_options (optional) – Options to pass to MILP solver.

  • M (float, default=100000.0) – Maximum value for nu in MILP models.

  • m_small (float, default=1e-05) – Smallest value for nu to be considered non-zero in MILP models.

  • trivial_constraint_tolerance (float, default=1e-06) – Tolerance for identifying non-zero rows in Jacobian.

find_irreducible_degenerate_sets(tee=False)[source]#

Compute irreducible degenerate sets

Parameters:

tee – Print solver output logs to screen (default=False)

report_irreducible_degenerate_sets(stream=None, tee=False)[source]#

Print a report of all the Irreducible Degenerate Sets (IDS) identified in model.

Parameters:
  • stream – I/O object to write report to (default = stdout)

  • tee (bool) – whether to write solver output logs to screen

Returns:

None