Add some pynumero-based sensitivity functions#3561
Conversation
|
Adding a note for me to look at this! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3561 +/- ##
========================================
Coverage 88.72% 88.72%
========================================
Files 889 891 +2
Lines 102145 102448 +303
========================================
+ Hits 90626 90902 +276
- Misses 11519 11546 +27
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| from pyomo.common.collections import ComponentSet, ComponentMap | ||
|
|
||
|
|
||
| def _coo_reorder_cols(mat, remap): |
There was a problem hiding this comment.
Note to self: I found this can cause Python to just quit without an error message if you try to remap columns outside the matrix (like if the matrix has 4 columns and you try to move a column to the 6th column or move the 6th column that doesn't exist). At least probably should add a shape check. May want to rethink this.
|
@eslickj - There are some unguarded uses of scipy that need to be addressed in the tests. That's the reason behind the slim/pypy failures. |
Fixes None
Add a couple pynumero-based sensitivity functions to the sensitivity toolbox function.
Summary/Motivation:
This provides some alternative sensitivity calculations based on pynumero
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: