Skip to content

Conversation

@dhensle
Copy link

@dhensle dhensle commented Mar 21, 2023

The joint tour participation model works by assigning probabilities for each person in the household as to whether they participate in a joint tour. The model then tries to satisfy the composition of the joint tour by iteratively drawing random numbers and seeing if each person participates. Sometimes the probabilities are very small, and the joint tour participation model runs out of iterations. The user has an option to specify to force participation after the specified number of iterations for anyone with a non-zero probability.

However, if forced participation still does not satisfy tour composition, the model is stuck in an infinite loop trying to force satisfaction even though its impossible. (Only ran into this in fringe cases in estimation mode.)

This PR will throw a runtime error if the forced participation is still unsuccessful at satisfying all joint tours.

@dhensle
Copy link
Author

dhensle commented Mar 30, 2023

@i-am-sijia, ready for your review. Thanks!

Copy link

@i-am-sijia i-am-sijia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the added runtime error occurs, is the solution that user needs to revisit specs and input data? What if we just discard those tours if there is not a large number of them?

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.

3 participants