[R-sig-dyn-mod] ode with variable parameters
Johannes Ranke
johannes.ranke at jrwb.de
Thu Feb 9 12:17:34 CET 2017
Hi Thomas,
if you use method = "lsoda" (the default for ode.1D), if you pass "dllname"
(pointing to a precompiled version of your model) you can specify "forcings".
See chapter 6 of the vignette "compiledCode" of the deSolve package.
Kind regards,
Johannes
Am Montag, 6. Februar 2017, 11:09:42 schrieb Thomas.Hoffmann at bafg.de:
> Dear all,
>
> I would like to solve a simple diffusion-advection equation: dC/dt = v * C +
> gamma dC/dx
>
> In which v and gamma changes through time. Basically I have a dataframe,
> which gives v and gamma at the time-steps that I use to solve the above
> equation with ode.1d.
>
> How do I solve this problem dynamically with variable parameters.
>
>
> Thanks for your help
> Kind regards
> Thomas
>
> _______________________________________________
> R-sig-dynamic-models mailing list
> R-sig-dynamic-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models
More information about the R-sig-dynamic-models
mailing list