-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in .lp output leads to infeasibility #378
Comments
mmh, not so good, I am wondering what is happening. In the meanwhile, I saw that the |
got it! the selection on the dimensions that are allowed to be sliced was not correctly processed. the slicing always happens on the largest dimension and in this case it mistakenly sliced the constraint on the |
Great! Glad this was solved in less time than it took me to triage the issue to the linopy io API :) Might I suggest making a new point release with the fix rather immediately? As far as I can tell, any users of pypsa-eur that happen to install linopy=0.4.0 will run into problems. |
closing this, v0.4.1 includes the bugfix :) |
I have a model which is "infeasible" when the
"lp"
or"lp-polars"
io APIs are used, but is feasible when using the"direct"
API. I'm pretty sure that the "correct" answer is that the model is feasible. See this example:Here is a link to the model so you can replicate this: https://drive.google.com/file/d/1ih0Eh3KwJuDZko_zuADl88VXtzHyhF8Z/view?usp=sharing. Unfortunately it's on the large side (~630MB).
The model comes from pypsa-eur (master) with the following (very much default) configuration:
Unfortunately I cannot replicate the infeasibility on a smaller model (say, with only a subset of countries), it seems like the full spatial extent of pypsa-eur is needed. But the infeasibility is "robust" in pypsa-eur in that I really cannot get any serious instance of pypsa-eur to solve right now unless I set
io_api="direct"
.It took me a while to figure out that this might be a linopy problem, and while I now know it's linopy, I still don't have any idea how exactly this happens. Hopefully this can be figured out before too long so not too many pypsa-eur users have to struggle with inexplicable infeasibilities.
(I'm using linopy 4.0.0.)
The text was updated successfully, but these errors were encountered: