Deprecation in xpress Python interface
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start in linopy/solvers.py at the linked uses around lines 1599 and 1605, then check the Xpress Python Interface deprecation guidance for the replacement attributes. Update both deprecated calls while preserving the existing objective-value and status handling, and verify the Xpress solver path still reports the same results.
Written by the indexing model from the issue text.
Description
Deprecation for getObjVal
According to the FICO Xpress Python Interface available here, the method problem.getObjVal will be deprecated. The documentation suggests to perform the following substitution.
problem.getObjVal()
with
problem.attributes.objval
We use the method in linopy here.
Deprecation for getProbStatusString
According to the FICO Xpress Python Interface available here, the method problem.getProbStatusString will be deprecated. The documentation suggests to perform the following substitution.
problem.getProbStatusString()
with
roblem.attributes.solvestatus and problem.attributes.solstatus
We use the method in linopy here.
- Dominant language
- Python
- Stars
- 257
- Forks
- 87
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 32
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PyPSA/linopy
-
bug solver interface
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
documentation sparse
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement sparse
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Make the sparse path observable and controllable (.is_sparse, densify warning, per-call sparse=) Openenhancement sparse
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
enhancement performance sparse
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/skills#1811 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
datalayer/mcp-compose#42 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2523 ·