ActivitySim / activitysim

An Open Platform for Activity-Based Travel Modeling
https://activitysim.github.io
BSD 3-Clause "New" or "Revised" License
191 stars 98 forks source link

Feature: Model workers that work in the model, but live outside like DaySim today #700

Open lmz opened 11 months ago

lmz commented 11 months ago

This feature is intended to address regional in-commuting and out-commuting. Some number of jobs in a region are "consumed" by workers who commute into the region. This varies by geography, typically with more jobs close to inter-regional borders taken by in-commuters. In Daysim, when shadow pricing work location choices, the number of jobs "available" to regional employed residents is decremented to reflect that some of the jobs in these edge zones (as well as in many other areas throughout the region) are taken by workers who don't live in the region. Conversely, some regional employed residents commute to outside the region for work, so some number of regional employed residents should be constrained from selecting usual work locations within the region. In Daysim, there's a TAZ-level attribute of shares of jobs taken by in-commuters, and shares of employed residents who out-commute that is used to implement these constraints. These shares are derived from national datasets (LEHD, JTW(?))

Additional description

Added from ActivitySim Budget Phase 9.xslx

lmz commented 11 months ago

Comments from prior discussions:

jfdman commented 11 months ago

A number of ActivitySim implementations (MWCOG, CMAP, maybe others) address the external-internal worker commute issue without any code changes. New employment data vectors are created in the land use data preprocessor by multiplying input employment by a factor derived from Census journey-to-work data that accounts for in-commuting. That factored data is used for calculation of work location choice size terms instead of the input employment data. That way the only affected model is work location choice; other models see the full amount of input employment. The solution is described in https://github.com/ActivitySim/activitysim/issues/609.

The SANDAG ActivitySim model has addressed out-commuting workers (and other external tours) explicitly in the model, There are two components to the model; an external worker identification model and an external workplace location choice model. The former model is based on worker attributes and distance to the closest external station. The latter model selects the external station that the worker uses to travel to their external job. If a work tour is generated by the worker, they are sent to the external station instead of an internal zone. The work tour is scheduled just like any other tour. A similar set of models handles non-work travel.