Lewuathe / COVID19-SIR

COVID-19 SIR model estimation
https://www.lewuathe.com/covid-19-dynamics-with-sir-model.html
Apache License 2.0
131 stars 75 forks source link

Solve IVP doesn't response #29

Open javierrodenas opened 4 years ago

javierrodenas commented 4 years ago

Hello,

I have been having troubles with the following line:

solution = solve_ivp(SIR, [0, size], [s_0,i_0,r_0], t_eval=np.arange(0, size, 1), vectorized=True)

At fourth iteration, it never ends processing. Should I let it more time? How long does it take? I have let the process until 20-30 min and it doesn't response

Thank you in advance!

gasilva commented 4 years ago

Use odeint it is much faster because is FORTRAN compiled!

Enviado do meu iPhone

Em 17 de abr de 2020, à(s) 06:44, Javier Ródenas notifications@github.com escreveu:

 Hello,

I have been having troubles with the following line:

solution = solve_ivp(SIR, [0, size], [s_0,i_0,r_0], t_eval=np.arange(0, size, 1), vectorized=True)

At fourth iteration, it never ends processing. Should I let it more time? How long does it take? I have let the process until 20-30 min and it doesn't response

Thank you in advance!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.