Skip to content

fix (solvers): Add compatibility shim for xpress.Namespaces#521

Merged
FabianHofmann merged 3 commits intoPyPSA:masterfrom
coroa:fix/support-xpress-below-9-6
Nov 13, 2025
Merged

fix (solvers): Add compatibility shim for xpress.Namespaces#521
FabianHofmann merged 3 commits intoPyPSA:masterfrom
coroa:fix/support-xpress-below-9-6

Conversation

@coroa
Copy link
Member

@coroa coroa commented Nov 12, 2025

Changes proposed in this Pull Request

xpress.Namespaces was added in version 9.6, so for versions below it, we add a compatibility shim.

This fixes a regression introduced in #497 .

Refer also to documentation:
Current: https://www.fico.com/fico-xpress-optimization/docs/latest/solver/optimizer/python/HTML/xpress.Namespaces.html .
And getnamelist from version 9.5 (before namespaces in 2023):
https://www.fico.com/fico-xpress-optimization/docs/dms2023-03/solver/optimizer/python/HTML/problem.getnamelist.html

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@coroa coroa requested a review from lkstrp November 12, 2025 20:22
@coroa coroa requested a review from FabianHofmann November 13, 2025 10:38
@FabianHofmann FabianHofmann merged commit b3a4bfd into PyPSA:master Nov 13, 2025
21 of 23 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.

3 participants