[R-sig-dyn-mod] dynamically changing the number of ODEs
Thomas Petzoldt
Thomas.Petzoldt at tu-dresden.de
Wed Mar 5 12:16:57 CET 2014
Dear Antoine,
I think I understand what you mean, but this is not possible by
definition, i.e. solving solve a "system" of differential equations.
The technical reason is, that the algorithm needs to know how much
memory is to be allocated for internal data structures and the
simulation results at the beginning.
You can, however, define "dummy" state variables that are dynamically
brought to life. Another option would be to chain deSolve models in
a simulation loop, e.g. to embed an ODE system in an event loop of
an individual-based model.
Thomas
--
Dr. Thomas Petzoldt
Technische Universitaet Dresden
Faculty of Environmental Sciences
Institute of Hydrobiology
01062 Dresden, Germany
http://tu-dresden.de/Members/thomas.petzoldt
More information about the R-sig-dynamic-models
mailing list