IDAES/idaes-pse

Erroneous sorting in DiagnosticToolbox methods

Opened this issue · 3 comments

Sorting does not work as expected for methods such as display_constraints_with_extreme_jacobians and display_variables with_extreme_jacobians.

Here is a snapshot of output from display_constraints_with_extreme_jacobians:

image

@adam-a-a would you be able to provide an example (code snippet) to reproduce this behavior?

@lbianchi-lbl After attempting to solve a model, m, which has extreme jacobian elements, and assuming you created the following instance of the DiagnosticToolbox ( dt = DiagnosticToolbox(m)), you could then check the following:

# This would report numerical issues and hint at checking extreme jacobian elements
dt.report_numerical_issues()
# Then check the extreme jac elements:
dt.display_constraints_with_extreme_jacobians()

@adam-a-a What we need is an example of a model that exhibits the behaviour. Right now we have no idea why the ordering is not working nor any way to test that we have fixed it.