[R-sig-dyn-mod] dynamically changing the number of ODEs
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