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

Optionally release memory during solving process #219

Open
FabianHofmann opened this issue Jan 18, 2024 · 1 comment
Open

Optionally release memory during solving process #219

FabianHofmann opened this issue Jan 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FabianHofmann
Copy link
Collaborator

FabianHofmann commented Jan 18, 2024

We could optionally write the model references to a NetCDF file just before the solving process and reassign afterwards. This could reduce the total memory usage by 30%. (Example: for a 112 GB peak memory example solving, 31 GB was held by linopy and 81 GB by gurobi.)

@FabianHofmann FabianHofmann added the enhancement New feature or request label Jan 18, 2024
@FabianHofmann FabianHofmann changed the title Release memory during solving process Optionally release memory during solving process Jan 18, 2024
@tgi-climact
Copy link
Contributor

I am testing #281 on larger problems of PyPSA-Eur with multiple planning horizons and scenarios. While waiting for a token, I have a lot of memory allocated for each waiting solve_sector_network_myopic. Could my problem be related to this issue ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants