EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE_OS

Memory error for transport model using scipy solver

Open
#389 13 comments 0 reactions 1 assignee Assigned to @tsmbland View on GitHub
Dominant language
Python
Stars
29
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I tried using the scipy solver with @sharwaridixit's transport model, and got this rather alarming error:

`numpy.core._exceptions._ArrayMemoryError: Unable to allocate 40.2 GiB for an array with shape (16, 16, 7, 7, 41, 41, 16, 16) and data type float64`

It's specifically being thrown by [this line](https://github.com/EnergySystemsModellingLab/MUSE_OS/blob/4c0b53dc4ca1857689d4a8c177f8b9c691843aad/src/muse/constraints.py#L853) in the calculation of the constraint matrix. I'm guessing there's a bug somewhere that's accidentally duplicating all the dimensions of an array, but I'd need to investigate further

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.