Zenmo / Holon-webapp

MIT License
2 stars 2 forks source link

ETM opschaling werkt niet met de share of electric vehicles #650

Open petertue opened 1 year ago

petertue commented 1 year ago

When upscaling the share of electric vehicles Anylogic output returns the share of EVs that is in the neighborhood. Based on that, we want to send an 'input' to ETM that adapts the share of EVs (with key: transport_car_using_electricity_share). The value the ETM should use is dictated by the scenario. However, apparently, ETM requires the balancing of all vehicle shares. So we cannot just change the ETM value: 'transport_car_using_electricity_share'. The below error message demonstrates the issue.

etm_service.etm_session.session.ETMConnectionError: "transport_car_tech" group does not balance: group sums to 89.0 using transport_car_using_compressed_natural_gas_share=0.0 transport_car_using_diesel_mix_share=19.3 transport_car_using_electricity_share=0.0 transport_car_using_gasoline_mix_share=67.6 transport_car_using_hydrogen_share=0.0 transport_car_using_lpg_share=2.1

thesethtruth commented 1 year ago

Issue zit in het feit dat we een vooraf-ingesteld scenario pakken (dus ook slider settings hebben voor andere sliders dan degene die we proberen aan te passen). Daarmee is het scenario samen met de nieuwe input (opschaling) overgedefinieerd en geeft de engine een error terug. Nora gaat er naar kijken; zie https://github.com/ZEnMo/HOLON-ETM/issues/23