oemof / tespy

Thermal Engineering Systems in Python (TESPy). This package provides a powerful simulation toolkit for thermodynamic modeling of thermal engineering plants such as power plants, heat pumps or refrigeration machines.
https://tespy.readthedocs.io
MIT License
281 stars 86 forks source link

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

Open fwitte opened 6 months ago

fwitte commented 6 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