Replies: 1 comment 2 replies
-
I managed to figure out a workaround, but I'm not sure I'm entirely pleased with it-- I just iterated through each of the time steps, at each time beginning at the "current" configuration, set a parameter equal to a custom function at each time step (for some reason I can't set it equal to it at the beginning of the loop). (I'm using the SEIRb model for this.) I suppose I wish there were a way to store the current state of the model of every variable or something, it just seems a bit odd to just use initial_conditions = 'current.' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Very simple question and my apologies if this isn't the right forum, but I wanted to ask how to run a model a single time step (in order to implement an RL algorithm). I saw that .run() has arguments for final_time and initial_conditions, but I was confused how to specify the initial time using the latter.
Thanks!
Update: I tried just repeatedly using _euler_step(dt = TIMESTEP), but when I do that my model just stays in the initial conditions
Beta Was this translation helpful? Give feedback.
All reactions