[DO NOT MERGE] Investigate issue with GLPK solver on LP files generated by PyPSA #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PyPSA Version Testing
I generated LP files by running:
Tested PyPSA Versions
Tested versions (PyPSA release history: https://pypi.org/project/pypsa/#history):
Results with
pypsa-gas+wind+sol+ely-ucgas-1-1h.py
Additional Test with
pypsa-gas+wind+sol+ely-1-1h.py
To further investigate, I also tested the file
pypsa-gas+wind+sol+ely-1-1h.py
with PyPSA versions:Results with
pypsa-gas+wind+sol+ely-1-1h.py
Summary
Using PyPSA version 0.31.* appears to introduce an issue, resulting in a
warning
status and anunknown
termination condition with NaN as the objective value. This issue does not occur with earlier versions (0.30.*), where the files are processed successfully without any errors.In summary:
ok
status and optimal results.<= +inf
in LP files, leading towarning
andunknown
conditions when solved by GLPK.