Re: [R] How to apply a system of ordinary differential equations to a cell grid?

2017-07-17 Thread Marine Regis
It seems that the method `iteration` in the function `ode` can be useful in my case: > Method "iteration" is special in that here the function func should > return the new value of the state variables rather than the rate of > change. This can be used for individual based models, for difference

Re: [R] How to apply a system of ordinary differential equations to a cell grid?

2017-06-21 Thread Marine Regis
Thank you very much for your answer. I'm not sure if I can use the function ode.2 because it's a solver for 2-D partial differential equation problems. My equations don't contain diffusion parameters. Thank you for your help Marine De : David Winsemius

Re: [R] How to apply a system of ordinary differential equations to a cell grid?

2017-06-21 Thread David Winsemius
> On Jun 21, 2017, at 12:48 PM, Marine Regis wrote: > > Hello, > > I am developing an agent-based model to simulate the spread of infectious > diseases in heterogeneous landscapes composed of habitat polygons (or clumps > of connected cells). To simplify the model, I

[R] How to apply a system of ordinary differential equations to a cell grid?

2017-06-21 Thread Marine Regis
Hello, I am developing an agent-based model to simulate the spread of infectious diseases in heterogeneous landscapes composed of habitat polygons (or clumps of connected cells). To simplify the model, I consider a habitat grid (or raster) containing the polygon ID of each cell. In addition, I