architecture-building-systems / CityEnergyAnalyst

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

Optimisation: Making base DES part of initial population #3621

Open MatNif opened 1 week ago

MatNif commented 1 week ago

Conversion of the optimisation algorithm is still a bit slow. Consequently, it can happen that the identified 'optimal' solutions are sometimes worse than the initial district energy system in a district. (Especially when the number of generations is set at a very low number).

To avoid that in the future, this change makes the original DES part of the initial population for the genetic algorithm. This guarantees, that all of the identified 'optimal' solutions are at least as good as the original system. This improved starting point should hopefully also accelerate conversion of the algorithm as a whole.

To test:

If the current district energy system lies in or above the Pareto-front, the change likely works as intended (you can run a second case to double-check)

ShiZhongming commented 1 week ago

Hi @MatNif

Thanks for the PR! I am in the process of testing it. I have some questions and let's chat during the monthly assembly.