EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE_OS

Memory error for transport model using scipy solver

Aperta
#389 13 commenti 0 reazioni 1 assegnatario Assegnata a @tsmbland Vedi su GitHub
Lingua principale
Python
Stelle
29
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.