-
Notifications
You must be signed in to change notification settings - Fork 223
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
Start Sim Midway Through Pandemic #145
Comments
@wpettine The easiest way to do it is to run the simulation, then save the results, then pick up where you left off. Here's some example code:
Does that do what you need? |
For a scenario then, would that be used as a basesim? Also, would it be an issue manipulating parameters within the "halfrun," such as runtime, or others that are not accessible as interventions? I've tried that, and it didn't work too well. If it should work in theory though, I can spend more time playing with the code. To expand a bit more on why this is important, I am trying to model a suite of policy choices ("scenarios") to be made on May 1st in Colorado. As it stands, I am simulating them from the start of the pandemic on February 1st. After building in the historical policy interventions, the margins of error become huge (see attached file). Thus, by the time we get to the actual policy choice, the margins are drowning out the difference between the interventions. It would be incredibly useful though if I could just start the different policy scenarios on May 1st with known numbers, and then explore the whole range of them. For policy-makers who want to use these results to project orders of medical supplies, that feature is a game-changer. |
Hi @wpettine yes, that should be possible by adapting the code above. |
Closing for now since seems possible with current version of code |
Sorry, for the delayed response! Only now getting back to the code to help calculate a PPE order. The code you provided simply runs the same simulation again. Thus, the results of s3 are exactly the same as s1. What I'm hoping to do is manipulate the parameters midway. For example, let's say I try to manipulate the 'n_days' param to extend it further.
This throws an error. Or, let's say I just try to add an intervention.
This also throws an error. Am I misunderstanding something? |
Can some simulation parameters be changed midway now? |
The dynamic change of parameters is also predefined before the simulation; it is only possible to define in advance on which day to change the parameters during the simulation. This is not the effect I want to achieve. However, I found that each intervention measure in the intervention file has a built-in initializable function. By applying this function, I can achieve the desired effect.
|
I would like to simulate forward from midway through a pandemic by specifying the starting number symptomatic, severe, etc. That way, we can simulate forward from an arbitrary time point, rather than starting from the very first day of the pandemic.
If this is low on the priority list, I'm happy to take a crack.
The text was updated successfully, but these errors were encountered: