-
Notifications
You must be signed in to change notification settings - Fork 3
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
Linking compiled {odin} code with {epidemics} #223
Comments
Thanks @LloydChapman for the questions, I've tried to answer them here, but happy to have another go if something isn't clear. Also cc-ing @adamkucharski.
Indeed - we have a stochastic Ebola model that's in R, and we did have R versions of the ODE models as well (the ODE systems in R are still available in the repo).
Our ODE models use Boost odeint, but that doesn't restrict what other types of C++ models could be included, if I've understood the question correctly. Each model stands alone - so the ODE integration happens within each model function. The model functions also have two levels, a user-facing top level, and an internal lower level, so we can swap out the internals while (making sure that) the output of the user-facing functions doesn't change.
I think it should definitely be possible to include it in the package itself, but did you mean how well Boost would handle it? I'm not actually sure! Here's a minimal example from Epirecipes of how the underlying C++ code is structured. I think the first argument to
The {epidemics} models have pretty tight vertical integration (which makes them standalone), so there isn't a general integrator function per se to pass any compiled code (i.e., not a replacement for |
Closing this issue as current discussion is in #254 |
Questions come from @LloydChapman:
The text was updated successfully, but these errors were encountered: