Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BayDAG Contribution #16: Parking Locations in Trip Matrices #840

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

dhensle
Copy link
Contributor

@dhensle dhensle commented Mar 29, 2024

The current version of the code would overwrite the trip origin and destination with the parking location zone in write_trip_matrices. This PR changes that to leave trip origins and destinations unchanged and just has trip tables read from parking location for trips originating at a parking location.

This is done by adjusted the origin TAZ for trips following those that ended at a parking destination other than the trip destination so that the origin of the next trip was the zone where the vehicle was parked in in order to make traffic assignment more accurate. (This prevents vehicles from teleporting from the parking location to the trip origin). However, you also need to check to see if the subsequent trip was also made by auto, resulting in non-auto trips that being at the previous trip's parking location, which will have a slight impact on transit assignment. This pull request thus also requires an AUTO_MODES setting and only adjust the origin TAZ if the trip is made by an auto mode. It should be noted that there will still be "teleporting vehicles" if a person uses a parking location other than their destination and then goes on an atwork subtour using a non-auto mode, but that is expected to be less common and have only a minor impact on model results.

There are also a couple of additional lines so that the origin and destination TAZs reported in final_trips always match the origin and destination MAZs.

Required for SANDAG ABM3 -- yes.

Linking to original PRs SANDAG#64 and SANDAG#65.
cc'ing original author @JoeJimFlood

@dhensle dhensle requested a review from JoeJimFlood March 29, 2024 16:48
@jpn-- jpn-- merged commit c5bab95 into ActivitySim:main Apr 18, 2024
17 checks passed
@dhensle dhensle deleted the BayDAG_cont16_parking_locations branch April 23, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants