Zenmo / HOLON-ETM

MIT License
0 stars 0 forks source link

Balancing seems hardcoded or disabled? #23

Open thesethtruth opened 1 year ago

thesethtruth commented 1 year ago

Based on the issues at https://github.com/ZEnMo/Holon-webapp/issues/650

Balancer only works for the groups that are hardcoded? https://github.com/ZEnMo/HOLON-ETM/blob/f53cb79694f75784c0688686a2bccb1733a5655d/src/etm_service/balancer.py#L5-L15

Seems like balancing on the engine is disabled? https://github.com/ZEnMo/HOLON-ETM/blob/f53cb79694f75784c0688686a2bccb1733a5655d/src/etm_service/__init__.py#L141-L143

noracato commented 1 year ago

https://github.com/ZEnMo/HOLON-ETM/blob/f53cb79694f75784c0688686a2bccb1733a5655d/src/etm_service/etm_session/inputs.py#L29

The autobalancing param should be in place already. What you mention is the old way of balancing I disabled on purpose in favour of ETEngine balancing. I'll check the engine...

noracato commented 1 year ago

Engine looks happy. If I make a PUT request with only the input: 'transport_truck_using_diesel_mix_share': 10 The engine returns

'balanced_values': {'transport_truck_using_compressed_natural_gas_share': 17.97978131868683, 'transport_truck_using_electricity_share': 18.080874725252688, 'transport_truck_using_gasoline_mix_share': 17.97978131868683, 'transport_truck_using_hydrogen_share': 17.97978131868683, 'transport_truck_using_lng_mix_share': 17.97978131868683},

Only thing I can think of is that the other shares might have been set already, and that they are thus not elegible for autobalancing?