linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Optionally release memory during solving process

Open FabianHofmann opened this issue 1 year ago • 1 comments

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 avatar Jan 18 '24 09:01 FabianHofmann

I am testing https://github.com/PyPSA/linopy/pull/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

tgi-climact avatar Jun 01 '24 07:06 tgi-climact