Open mabijkerk opened 11 months ago
This issue has had no activity for 60 days and will be closed in 7 days. Removing the "Stale" label or posting a comment will prevent it from being closed automatically. You can also add the "Pinned" label to ensure it isn't marked as stale in the future.
Some effort and discussion has been put into solving this issue (see https://github.com/quintel/etsource/pull/2970), however more effort is required than initially expected. The solutions consist of the following steps:
number_of_units
of cars, busses, trucks and vans are updated, minding to check / set priority correctlynumber_of_xxx
should be updated with the newly calculated number_of_unitsPart 1 is relatively easy, however implementing part 2 in the useful demand inputs specifically is more complicated due to its update_type = %y
. This results in strange numbers of updating the area attribute.
Proposed solution: we can write new GQL that works similar as the update_type = %y
functionality and use the new GQL to get rid of the update_type
functionality. An effort to create this GQL has been done here, however when writing new GQL there are other things to consider as well (new spec should be written, testing, other relevant actions(?), documentation).
Background For a cars, buses, vans and trucks we calculate the number of units. This is mainly done to determine the available storage volume for the electric variants. For example, for cars it works like this, the
transport_useful_demand_cars
node gets the number_of_units assigned in the start year:The
transport_car_using_electricity
the determines its number of units using the inheritable number of units group, which simply takes the share of electric cars and multiplies it with the number of units for all cars.If the share of electric cars in the mix of cars is changed, automatically the number of electric cars will change as well, through the interitable_nou group. You can query this:
Problem The problem is that if the modal split of cars in the total passenger transport is changed, the total number of cars does not change. This means that if I change
transport_cars_share
or if I change the total passenger demandtransport_useful_demand_passenger_kms
, the number of cars will stay at 8,531,000.0.Goal For cars and buses their number of units need to scale with the change in passenger transport demand and with their share in the modal split for passenger transport. For vans and trucks their number of units need to scale with the change in freight transport demand and with their share in the modal split for freight transport. This means that we need to adjust the following inputs to also update the relevant number of units: