[R-sig-dyn-mod] lsoda FASTER than ode45
Yes, there are several approaches and packages for automatic code generation, e.g. package cOde: https://CRAN.R-project.org/package=cOde that compiles inline C code embedded in R and is very easy to use. A similar package is ccSolve (from R-Forge): https://r-forge.r-project.org/projects/ccsolve/ For bigger models, written in stoichiometry matrix formulation, you may consider package rodeo (r-ode-o-bjects): https://cran.r-project.org/package=rodeo https://github.com/dkneis/rodeo/blob/master/vignettes/rodeoVignette.pdf The package creates fast Fortran code and provides tools to embed this in applications. Multi-box and 1D applications are also supported. Additional publications, talks and other stuff is found online. I can send you more material on request. Thomas
On 22.11.2017 12:42, Maciek Jacek Swat wrote:
Thanks Andras, but I create the R code 'on the fly' as part of a workflow, is there a way to automatically create the C/FORTRAN code as well? Any pointers would be welcome,. M On Wed, Nov 22, 2017 at 11:34 AM, Andras Farkas <motyocska at yahoo.com> wrote:
As Thomas have mentioned implement it in C or Fortran, will do wonders to speed Andras