Skip to content
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

Integrate Linopy #494

Open
pz-max opened this issue Oct 25, 2022 · 2 comments · May be fixed by #1172
Open

Integrate Linopy #494

pz-max opened this issue Oct 25, 2022 · 2 comments · May be fixed by #1172
Assignees
Labels
improvement New feature or request

Comments

@pz-max
Copy link
Member

pz-max commented Oct 25, 2022

Linopy was recently integrated into PyPSA --see PR here. With the new PyPSA release, we should make sure to get it into PyPSA-Earth/ PyPSA-Eur ASAP. One can already trial in a draft PR how we can use these upcoming functions. As one can see in the PR above, there is also excellent documentation on how to transition.

For context, Pyomo is the standard optimization interface for Python. For large linear programming/ MILP problems, however, Pyomo has quite poor performance. It made for years Python speed and memory-wise uncompetitive compared to other programming languages. Tom, Fabian and Jonas, worked on alternative called 'nomopyomo'. While this lead to a massive performance boost, the usability/flexibility was suffering a bit. Linopy was about the same speed boost as nomopyomo, better memory performance than 'nomopyomo' and is doing a fantastic job in comparison to other 'solver interfaces'. The benchmark with Linopy, Jump and Pyomo, only shows how important the move towards Linopy is.

@pz-max pz-max added the improvement New feature or request label Oct 25, 2022
@pz-max pz-max self-assigned this Dec 16, 2022
@pz-max
Copy link
Member Author

pz-max commented Mar 18, 2023

Integration available here: PyPSA/pypsa-eur#625
Could now be integrated in PyPSA-Earth

@Hazem-IEG do you use in PyPSA-Earth-Sec any of the solve_all_networks funtions?
Do you think we can integrate Linopy in PyPSA-Earth without breaking anything in the Sec version?

@davide-f
Copy link
Member

Integration available here: PyPSA/pypsa-eur#625 Could now be integrated in PyPSA-Earth

@Hazem-IEG do you use in PyPSA-Earth-Sec any of the solve_all_networks funtions? Do you think we can integrate Linopy in PyPSA-Earth without breaking anything in the Sec version?

Personally, I think we could think about this after we merge the repositories.
My feeling is that merging the repository may be of a priority and also syncing the developments to use linopy in both earth and sec versions while also doing the merge afterwards may make things more complex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement New feature or request
Projects
Status: Todo
2 participants