activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

BayDAG Contribution #6: Joint Tour Participation Infinite Loop

Open dhensle opened this issue 1 year ago • 0 comments

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 avatar Dec 18 '23 18:12 dhensle