-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiagnosticsToolbox #1228
DiagnosticsToolbox #1228
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1228 +/- ##
==========================================
+ Coverage 76.59% 76.70% +0.11%
==========================================
Files 382 382
Lines 60822 61182 +360
Branches 11200 11289 +89
==========================================
+ Hits 46587 46932 +345
Misses 11818 11818
- Partials 2417 2432 +15
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks really good. Several minor comments, then I'd recommend printing out the independent diagonal blocks of the overconstrained/underconstrained subsystems individually, as this is often much easier to read if these sets decompose.
I want to register a complaint that
while this is what I got with
I suppose 2e-3 is above the cutoff for the default setting, so that isn't an issue. It did miss the issue with the dew point and the enormous, matrix-is-singular issue with the phase fractions. Also you need to make clear to the user that, whatever these methods return, they aren't going to be inerrant signs a variable or constraint is badly scaled, but just a sign you need to look at that variable or constraint to ensure it is well-scaled. |
@dallan-keylogic The poorly scaled variables check currently uses the |
@andrewlee94 , You don't need to do a full SVD in order to use the extreme columns/rows tools, you just need a representation of the Jacobian. Creating a Jacobian from the block takes a bit of time, but not nearly as much as doing a full SVD. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the docstring formatting, I think this is ready.
Fixes None
Summary/Motivation:
This PR adds the first iteration of the new
DiagnosticsToolbox
class. Documentation and tests are coming, but we need input and feedback on the API before it gets set in stone.A draft tutorial can be found here: https://app.box.com/folder/218647852677 (for those with access to the IDAES Box folder).
Changes proposed in this PR:
DiagnosticsToolbox
classLegal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: