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

18-mo hackathon scenario 5 model #70

Open
sabinala opened this issue Mar 7, 2024 · 0 comments
Open

18-mo hackathon scenario 5 model #70

sabinala opened this issue Mar 7, 2024 · 0 comments

Comments

@sabinala
Copy link
Contributor

sabinala commented Mar 7, 2024

The stock-and-flow-type model for scenario 5 of the 18-month hackathon (found here: https://github.com/gyorilab/mira/blob/main/notebooks/hackathon_2024.02/scenario5/scenario_5_stockflow.json) has two features which cannot be simulated with TA3 tools. These are (1) delay3i and (2) piecewise (see examples below). These should be implemented using interventions instead. Note that Min and Max are fine.

(1) Rate expression with delay3i:

"rate_expression": "net_fr_fatality*delay3i(into_inf_sym_icu_overflow, delay_for_death, 0)",

(2) Rate expression with piecewise:
"rate_expression": "piecewise((0.0, time >= 0.0), (2.0, time >= 1.0), (1.0, time >= 2.0), (0.0, time >= 3.0), (2.0, time >= 4.0), (1.0, time >= 5.0), (2.0, time >= 6.0), (3.0, time >= 7.0), (6.0, time >= 8.0), (2.0, time >= 9.0), (7.0, time >= 10.0), (10.0, time >= 11.0), (4.0, time >= 12.0), (10.0, time >= 13.0), (5.0, time >= 14.0), (11.0, time >= 15.0), (14.0, time >= 16.0), (14.0, time >= 17.0), (26.0, time >= 18.0), (34.0, time >= 19.0), (35.0, time >= 20.0), (45.0, time >= 21.0), (55.0, time >= 22.0), (38.0, time >= 23.0), (34.0, time >= 24.0), (24.0, time >= 25.0), (40.0, time >= 26.0), (16.0, time >= 27.0), (20.0, time >= 28.0), (12.0, time >= 29.0), (23.0, time >= 30.0), (14.0, time >= 31.0), (8.0, time >= 32.0), (14.0, time >= 33.0), (12.0, time >= 34.0), (5.0, time >= 35.0), (9.0, time >= 36.0), (6.0, time >= 37.0), (0.0, time >= 38.0), (0.0, time >= 39.0), (0.0, time >= 40.0), (0.0, time >= 1000.0))",

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

No branches or pull requests

1 participant