mac-theobio / McMasterPandemic

SEIR+ model
GNU General Public License v3.0
20 stars 5 forks source link

Isolate the causes of small numerical discrepancies in vaccination+variant models #147

Closed stevencarlislewalker closed 2 years ago

stevencarlislewalker commented 2 years ago

Issue isolated to the initial state construction, in cases where 100 steps is not sufficient for the eigenvector exponential simulations to converge. This is good news for the TMB-engine/auto-Jacobian engine, because it implies that the issue was on the R-engine.

stevencarlislewalker commented 2 years ago

Fixed by adding MP_rexp_steps_default to the options. Will check in after more testing.

bbolker commented 2 years ago

surprising that >100 steps needed to converge (are these weird params or a weird structure?), but great to figure it out

stevencarlislewalker commented 2 years ago

The example was my (pretty close) approximation to the macpan_ontario workflow. And only somewhere between 140 and 150 steps were required, so at least it is not many more steps. And even after 100 steps the maximum relative difference between any state variable at any point in time was somewhere between 1e-5 and 1e-6, so again not that bad. I just wanted to make sure it wasn't a sign of something more sinister.