-
Notifications
You must be signed in to change notification settings - Fork 544
Add some pynumero-based sensitivity functions #3561
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
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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: