oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermal engineering plants such as power plants, district heating systems or heat pumps.
https://tespy.readthedocs.io
MIT License
256 stars 80 forks source link

There should be a seed to select the generic starting value for mass flow reproducibly #509

Open fwitte opened 2 months ago

fwitte commented 2 months ago

With the random state being completely random, it might not be possible to replicate model runs. Sometimes a model run can crash while the same model rerun works. The first goto for randomness in TESPy would be the selection of mass flow with no better value at hand in: https://github.com/oemof/tespy/blob/f9757d090a038ed5cbf5e65a1c49ed5aa7209e15/src/tespy/networks/network.py#L1808