-
Notifications
You must be signed in to change notification settings - Fork 118
Description
RSG is extending ActivitySim to consider autonomous vehicles (AVs) for consortium partners MWCOG and SANDAG. One implementation option is to treat AV's as an extension of body type in the vehicle type model. e.g. car would be split into car and car_av. This new body type would just have to be included in the vehicle type data file and would require minimal code changes.
When including a new body type in the vehicle type data file, there is a check to make sure the vehicle type data exists for every alternative. This was a design decision to make sure the user assembling the vehicle type data file didn't miss any alternatives, especially when extending to future years. However, this results in a set of alternatives in the base-year that is more than twice as big as it needs to be, because there are alternatives for vehicles that did not exist in previous years (Hybrids, PEVs, HEVs). Though these alternatives are unavailable they still more than double the amount of RAM required for running the model.
Extending the body type to include AVs would again double the number of alternatives required, resulting in 4x the amount of RAM required for the model in the base-year, and more than double the necessary amount of RAM for future year files since there are many combinations of AV and fuel type that are not necessary.
We propose either putting a switch in the model yaml to distinguish between two options:
- Strictly enforce that all alternatives have a matching row in the vehicle type data (which is how it currently works)
- Just remove alternatives from the model that are not supplied with vehicle type data
Or, simply remove the assert statement from the code.