architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
196 stars 62 forks source link

Memory Error in Optimisation Script #3524

Closed MatNif closed 5 months ago

MatNif commented 6 months ago

Describe the bug In large use cases (200 buildings and above, depending on the PC's specs.), the optimisation script runs into a memory error towards the very end.

Planned fix The memory issue is due to the 'deepcopy()' method of the copy library, which is very memory inefficient when it comes to big objects. A more custom copy() method for each of the classes created under the the optimisation script should form an efficient alternative to the deepcopy() method.