Package: odin 1.5.10

Rich FitzJohn

odin: ODE Generation and Integration

Generate systems of ordinary differential equations (ODE) and integrate them, using a domain specific language (DSL). The DSL uses R's syntax, but compiles to C in order to efficiently solve the system. A solver is not provided, but instead interfaces to the packages 'deSolve' and 'dde' are generated. With these, while solving the differential equations, no allocations are done and the calculations remain entirely in compiled code. Alternatively, a model can be transpiled to R for use in contexts where a C compiler is not present. After compilation, models can be inspected to return information about parameters and outputs, or intermediate values after calculations. 'odin' is not targeted at any particular domain and is suitable for any system that can be expressed primarily as mathematical expressions. Additional support is provided for working with delays (delay differential equations, DDE), using interpolated functions during interpolation, and for integrating quantities that represent arrays.

Authors:Rich FitzJohn [aut, cre], Thibaut Jombart [ctb], Imperial College of Science, Technology and Medicine [cph]

odin.pdf |odin.html
odin/json (API)

# Install odin in R:
install.packages('odin', repos = c('', ''))

Peer review:

Bug tracker:



13 exports 100 stars 4.58 score 8 dependencies 6 dependents

Last updated 4 months agofrom:333d4f0d066ddb771b7b2303c5892e255ea6cd4b




Rendered fromdebugging.Rmdusingknitr::rmarkdownon May 23 2024.

Last update: 2023-03-02
Started: 2023-03-02

Guide to odin docs

Rendered fromguide.Rmdusingknitr::rmarkdownon May 23 2024.

Last update: 2023-08-09
Started: 2023-08-09


Rendered fromodin.Rmdusingknitr::rmarkdownon May 23 2024.

Last update: 2023-05-03
Started: 2016-03-09

odin discrete models

Rendered fromdiscrete.Rmdusingknitr::rmarkdownon May 23 2024.

Last update: 2022-10-26
Started: 2018-03-01

odin functions

Rendered fromfunctions.Rmdusingknitr::rmarkdownon May 23 2024.

Last update: 2022-10-26
Started: 2020-05-26