-
Notifications
You must be signed in to change notification settings - Fork 248
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
Add demand elasticity to speed up optimization #1179
Labels
Comments
pz-max
changed the title
Add high elasticity gradient to each sector to speed up optimization
Add demand elasticity to speed up optimization
Jul 25, 2024
So far I haven't been able to find any performance gains for larger models. In fact, for a 40-node, 1000seg european-wide model I got the following:
Gurobi wasn't able to solve this model. ("willingness_to_pay" set to 50 EUR/kWh.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Formulating the PyPSA optimization as a QP problem and adding elasticity appears to significantly reduce the solving time. This has been observed by @fneum with a PyPSA electricity demo model. The exact reason for the performance improvement is still under discussion. Nevertheless, testing the new formulation within PyPSA-Eur seems worthwhile.
Idea
Let's incorporate the QP formulation and demand elasticity for the electricity sector, using typical realistic values. For other sectors, assuming a realistic demand elasticity value will be challenging. One possible approach to also include other sectors is to add a very steep gradient, which can enhance solver speed without altering the results' assumptions.
If someone is interested in making a paper out of that, ping on the PyPSA meets Earth discord.
The text was updated successfully, but these errors were encountered: