Skip to content
Prev 582 / 696 Next

[R-sig-dyn-mod] lsoda FASTER than ode45 (was: lsoda (deSolve) order of magnitude slower than ode45)

Hi,

Karline has once written a nice package called ccSolve for that, which you can 
find on r-forge (at least the source code=). However, it never made it to CRAN 
unfortunately.

I have used her code and thankfully had some help from her (as I am not used 
to working wich C) to implement automatic generation of C code for ODEs in my 
mkin package:

https://github.com/jranke/mkin/blob/master/R/mkinmod.R#L277

which has been working nicely for me, giving a performance improvement of a 
factor around 8.

https://pkgdown.jrwb.de/mkin/articles/compiled_models.html

I have also tried different approaches, one of them involving the package 
odeintr. But with that approach, compiling the models took so long that I got 
frustrated by it, so I went back to generating C code which is being compiled 
in no time.

Kind regards,

Johannes

Am Mittwoch, 22. November 2017, 12:05:41 CET schrieb Maciek Jacek Swat: