Closed sdwfrost closed 3 years ago
Hi @sdwfrost, thanks for the issue!
The first error you get was due to a bug I overlooked in the code, should be fixed now. The second error you got is due to a variable map being passed to deterministic_IC
: only a simple vector of initial values is supported, e.g. u0 = [990.0, 10.0, 0.0]
. The function itself should be enforcing this constraint correctly now. Please let me know if you run into any other problems!
Thanks! Runs great now. Updated gist too to do some plotting - not great plotting mean +/- 2se for these parameter sets, but I'll work on some further updates before committing to my repository.
Hi, I'm trying to write an example for my SIR epidemiological model repository:
https://gist.github.com/sdwfrost/8394921f50fd6b4da0e77a72ac3f96b5
I've written the model with both polynomial and nonpolynomial rates, but I get the following errors:
For the polynomial model:
For the non-polynomial model: