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

Add global option to skip households in simulation when failed #892

Open
i-am-sijia opened this issue Sep 26, 2024 · 0 comments
Open

Add global option to skip households in simulation when failed #892

i-am-sijia opened this issue Sep 26, 2024 · 0 comments
Labels
Feature New feature or request Usability Changes that improve usability

Comments

@i-am-sijia
Copy link
Contributor

Is your feature request related to a problem? Please describe.

In production runs, sometimes ActivitySim crashes because one or two choosers cannot make a choice in the simulation. The common error message when this happens is e.g., no choice is available.

As a user of ActivitySim, agency X would like to have the option to skip households if they fail in any components, without crashing the entire ActivitySim run. This is extremely useful in production runs, especially when the agency is under time crunch to get RTP runs done and does not have time / resource to find out why the simulation fails for just a handful of households.

See original comment by @i-am-sijia #821 (comment)

Describe the solution you'd like

This is implemented in CT-RAMP2 models (perhaps also in DaySim?) - When a household is failing in the simulation, skip it and exclude it in the subsequent components and exclude it in the output. Keep a list of such households that failed and write them out in the end, give the user a warning in the end with the number of households that failed. If it's just a small number of households, then it's probably an edge case and user can choose to ignore them and trust the model result. But if it's a large number of households that failed, then it suggests bigger issues like inputs error or specification error, then user can investigate.

This solution allows the model run to complete, at the same time gives user information on the scale of potential issues behind the scene.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@i-am-sijia i-am-sijia added the Feature New feature or request label Sep 26, 2024
@dhensle dhensle added this to Phase 10A Oct 1, 2024
@dhensle dhensle added the Usability Changes that improve usability label Oct 1, 2024
@jpn-- jpn-- moved this to Punt in Phase 10A Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Usability Changes that improve usability
Projects
Status: Punt
Development

No branches or pull requests

2 participants