Skip to content

Add independent variable rows to sensitivity toolbox Pynumero-based sensitivity calcs#3655

Merged
blnicho merged 5 commits intoPyomo:mainfrom
eslickj:pynum_sens
Jul 24, 2025
Merged

Add independent variable rows to sensitivity toolbox Pynumero-based sensitivity calcs#3655
blnicho merged 5 commits intoPyomo:mainfrom
eslickj:pynum_sens

Conversation

@eslickj
Copy link
Copy Markdown
Contributor

@eslickj eslickj commented Jul 8, 2025

Summary/Motivation:

Add rows for independent variables to the Pynumero-based sensitivity ds/dp matrix calculation. Although the rows are trivial (just tacking an identity matrix on the end) they are convenient for some calculations.

Changes proposed in this PR:

  • Include rows for dp/dp at the end of the ds/dp matrix in the pynumero-based calculation in the sensitivity toolbox.

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:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@mrmundt
Copy link
Copy Markdown
Contributor

mrmundt commented Jul 8, 2025

FYI that GHA is being wonky this morning.

@mrmundt
Copy link
Copy Markdown
Contributor

mrmundt commented Jul 8, 2025

@eslickj - Please run black -S -C on your code with the newest version of black.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.05%. Comparing base (10d6acc) to head (d771a60).
⚠️ Report is 1371 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3655   +/-   ##
=======================================
  Coverage   89.05%   89.05%           
=======================================
  Files         890      890           
  Lines      102617   102621    +4     
=======================================
+ Hits        91384    91393    +9     
+ Misses      11233    11228    -5     
Flag Coverage Δ
builders 26.65% <0.00%> (-0.01%) ⬇️
default 85.65% <100.00%> (?)
expensive 34.01% <0.00%> (?)
linux 86.78% <100.00%> (-2.03%) ⬇️
linux_other 86.78% <100.00%> (+<0.01%) ⬆️
osx 83.08% <100.00%> (-0.02%) ⬇️
win 84.99% <100.00%> (+0.01%) ⬆️
win_other 84.99% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-project-automation github-project-automation bot moved this from Todo to Reviewer Approved in August 2025 Release Jul 22, 2025
@blnicho blnicho self-requested a review July 22, 2025 18:37
@blnicho blnicho merged commit 61ac876 into Pyomo:main Jul 24, 2025
64 of 65 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in August 2025 Release Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

4 participants