And here is what I meant: <br><a href="http://cran.r-project.org/web/packages/Rsundials/index.html">http://cran.r-project.org/web/packages/Rsundials/index.html</a><br>Sadly, the package has not been updated for a long time and like I said before, it only covers basic functionality like solving an ODE. If that is all you want to do, it might still work for you though. What I needed when I looked into it was the sensitivity generation functionality of Sundials, which is not implemented for R as far as I can see. So I did that &quot;by hand&quot; with deSolve and it&#39;s working fine. <br>

Other solvers I know of in C++ are the ode-initval2 solver included in the GSL and various implementations of Runge-Kutta methods that you can find in code-snippets around the web, mostly without error estimation or stepsize control. <br>

But, since most integration schemes were developed in the 70&#39;s and 80&#39;s, there are a lot of solvers that are only available in Fortran versions. ;-(<br>Jonas<br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 12:18 AM, Dirk Eddelbuettel <span dir="ltr">&lt;<a href="mailto:edd@debian.org">edd@debian.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
On 5 October 2011 at 16:59, Douglas Bates wrote:<br>
| On Wed, Oct 5, 2011 at 2:45 PM, Dirk Eddelbuettel &lt;<a href="mailto:edd@debian.org">edd@debian.org</a>&gt; wrote:<br>
| &gt;<br>
| &gt; On 5 October 2011 at 14:07, Douglas Bates wrote:<br>
| &gt; | On Wed, Oct 5, 2011 at 1:31 PM, Jonas Rauch &lt;<a href="mailto:jonas.rauch@googlemail.com">jonas.rauch@googlemail.com</a>&gt; wrote:<br>
| &gt; | &gt; I am using the deSolve package successfully and I think it is probably your<br>
| &gt; | &gt; best option if you want to do things in R.<br>
| &gt; | &gt; The most widespread solver in C++ is the Sundials Suite as far as I know:<br>
| &gt; | &gt; <a href="https://computation.llnl.gov/casc/sundials/main.html" target="_blank">https://computation.llnl.gov/casc/sundials/main.html</a><br>
| &gt; | &gt; I think someone starting writing an interface to R, but it only covers the<br>
| &gt; | &gt; really basic functions.<br>
| &gt; | &gt; Regards,<br>
| &gt; | &gt; Jonas<br>
| &gt; |<br>
| &gt; | Thanks for the suggestion.  Because downloading the Sundials source<br>
| &gt; | code requires registration I don&#39;t think it would be suitable to<br>
| &gt; | include it in an R package on CRAN.<br>
| &gt;<br>
| &gt; Tst tst tst: You&#39;re loosing your Debian/Ubuntu instincts:<br>
| &gt;<br>
| &gt; edd@max:~$ wajig search sundials<br>
| &gt; libsundials-cvode1 - ordinary differentialequation solver (SUNDIALS library)<br>
| &gt; libsundials-cvodes2 - ODE solver with sensistivity analysis (SUNDIALS library)<br>
| &gt; libsundials-ida2 - differential-algebraic system solver (SUNDIALS library)<br>
| &gt; libsundials-idas0 - IDA solver with sensitivity capabilities (SUNDIALS library)<br>
| &gt; libsundials-kinsol1 - KINSOL solver (SUNDIALS library)<br>
| &gt; libsundials-nvecserial0 - vector operations library (SUNDIALS library)<br>
| &gt; libsundials-serial - SUit of Nonlinear and DIfferential/ALgebraic equation Solvers<br>
| &gt; libsundials-serial-dev - SUNDIALS development files<br>
| &gt; edd@max:~$<br>
|<br>
| For someone who wants to wrestle with C code that generates all its<br>
| own linear algebra calls and uses malloc, free, printf, etc.<br>
| liberally.<br>
|<br>
| Been there, done that, got the t-shirt.<br>
<br>
</div></div>I see.  And the scars, but those usually stay beneath the t-shirt.<br>
<div><div></div><div class="h5"><br>
Dirk<br>
<br>
<br>
--<br>
New Rcpp master class for R and C++ integration is scheduled for<br>
San Francisco (Oct 8), more details / <a href="http://reg.info" target="_blank">reg.info</a> available at<br>
<a href="http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php" target="_blank">http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php</a><br>
</div></div></blockquote></div><br>