Skip to content

NFC: Fixing some docstrings in the core.lp_dual transformation#3842

Merged
blnicho merged 2 commits intoPyomo:mainfrom
emma58:lp-dual-fixes
Feb 11, 2026
Merged

NFC: Fixing some docstrings in the core.lp_dual transformation#3842
blnicho merged 2 commits intoPyomo:mainfrom
emma58:lp-dual-fixes

Conversation

@emma58
Copy link
Copy Markdown
Contributor

@emma58 emma58 commented Feb 11, 2026

Fixes #3839

Summary/Motivation:

The docstrings for the public API to map between primal and dual components from the core.lp_dual transformation were wrong. This fixes them. All the mappings actually take the dual model as the first argument, not the primal.

Changes proposed in this PR:

  • NFC: fixing docstrings.

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.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.61%. Comparing base (571bf68) to head (fe74632).
⚠️ Report is 163 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3842      +/-   ##
==========================================
- Coverage   89.65%   89.61%   -0.05%     
==========================================
  Files         902      902              
  Lines      105611   105611              
==========================================
- Hits        94688    94645      -43     
- Misses      10923    10966      +43     
Flag Coverage Δ
builders ?
default 83.76% <ø> (?)
expensive 35.51% <ø> (?)
linux 86.96% <ø> (-2.44%) ⬇️
linux_other 86.96% <ø> (-0.01%) ⬇️
oldsolvers 29.68% <ø> (+<0.01%) ⬆️
osx 83.12% <ø> (ø)
win 85.20% <ø> (ø)
win_other 85.20% <ø> (ø)

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.

@blnicho blnicho merged commit d366a1d into Pyomo:main Feb 11, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lp_dual transformation mapping functions appear to only work one way (from primal to dual).

3 participants