[R-sig-dyn-mod] problems with times parameter in Runge-Kutta solver

Thomas Petzoldt thomas.petzoldt at tu-dresden.de
Fri Feb 12 16:16:52 CET 2016


Dear Xavier,

thank you very much for spotting this. It will be fixed in the next 
version. For the moment, you can use either a variable time step solver 
or the workaround to set maxsteps to a reasonably large value:


sol = ode(y0, malthus, times=c(0, 100), parms=parms, hini=0.001,
   maxsteps=101/0.001, method="euler")

tail(sol)

... or to use one of the variable time step solvers

sol = ode(y0, malthus, times=c(0, 100), parms=parms, method="lsoda")
tail(sol)

Again, many thanks for the report,

Thomas


-- 
http://tu-dresden.de/Members/thomas.petzoldt



More information about the R-sig-dynamic-models mailing list