pympcc.degeneracy_report

pympcc.degeneracy_report(result, problem, *, tol=1e-06, zero_tol=1e-10)[source]

Combined degeneracy summary at result.x.

Aggregates signals already produced by active_sets(), jac_norms(), and merit_cross_check() into a single structured dict for one-glance health assessment.

Returns:

Result dict with keys:

  • n_biactive — biactive-pair count |I_00|.

  • n_zero_rows — rows of the active Jacobian at norm ≤ zero_tol.

  • n_zero_cols — columns at norm ≤ zero_tol.

  • min_singular_value — smallest singular value of the active Jacobian (None when the active matrix is empty / not converged).

  • merit_disagreement_ratio — see merit_cross_check().

Return type:

dict

Parameters: