Skip to content

Conversation

@dhensle
Copy link
Contributor

@dhensle dhensle commented Dec 18, 2023

The joint tour participation model will iterate when selecting participants until the composition is met. After a set number of iterations, the model will force anyone with a non-zero probability to be in the joint tour which can help for cases where the probabilities are very small for members that need to be on the joint tour to satisfy the composition requirements. However, there can be a case where all household members with non-zero probability are forced to be on the joint tour and the tour is still not satisfied. If this happens, the current model will keep iterating in the infinite loop. This PR adds code to error out if this scenario arises so that the user can either fix their input data or their specifications (I have only seen this happen due to inconsistent reporting in survey data when running in estimation mode).

Required for SANDAG ABM3 production? -- No

@dhensle dhensle self-assigned this Jan 30, 2024
@dhensle dhensle force-pushed the BayDAG_cont6_jtp_infinite_loop branch from 61292c3 to 5518ca4 Compare March 7, 2024 17:44
@jpn-- jpn-- merged commit 85615e4 into ActivitySim:main Mar 19, 2024
@dhensle dhensle deleted the BayDAG_cont6_jtp_infinite_loop branch April 23, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants