EnergySystemsModellingLab / MUSE_OS

Welcome to the MUSE-OS repository
https://muse-os.readthedocs.io/en/latest/
GNU General Public License v3.0
22 stars 9 forks source link

Minimum service factor is applied incorrectly #375

Closed alexdewar closed 2 months ago

alexdewar commented 3 months ago

Currently, we seem to be multiplying utilisation factor by minimum service factor, which is not the correct calculation. (I guess this means that the minimum is treated as being a proportion of utilisation factor?)

See: https://github.com/EnergySystemsModellingLab/MUSE_OS/blob/a2a1b4f3d8bf4166ee57056b569584234a454883/src/muse/constraints.py#L533

@dalonsoa I may have misremembered, but did you say that there were other places in the code where we're using this value incorrectly?

dalonsoa commented 3 months ago

It is being implemented somewhere else in #368. But it is not clear if that PR is actually needed - based on the discussions taking place in #335 - and even if it is, I will obviously fix that PR directly.

dalonsoa commented 3 months ago

In summary, I think that's the only place where it is used the wrong way.

tsmbland commented 2 months ago

See also #382

tsmbland commented 2 months ago

Closed by #388