cesaraustralia / DynamicGrids.jl

Grid-based simulations in Julia
Other
226 stars 7 forks source link

Predator Prey Model? #79

Open idontgetoutmuch opened 3 years ago

idontgetoutmuch commented 3 years ago

There are tantalising references to predator and prey but I can't find an actual model to run. Does such a model exist? I'd love it if there something similar to this: https://juliadynamics.github.io/Agents.jl/stable/examples/predator_prey/.

Yes I could try to write my own but I am new to Julia and to ABMs.

rafaqz commented 3 years ago

This isn't really an agent based modelling framework - grid cells (and their contents) are the focal point, not individuals. It is more often used for modelling populations of things or it could do size-structured populations.

But I'm putting together a predator-prey model currently! It's designed to work with heterogeneous intrinsic population growth rates as produces by GrowthMaps.jl. It doesn't model individual predation events, but population level interactions of predator and prey species, and environmental drivers.

It will be in the docs and hopefully a paper at some stage in the next few months.

rafaqz commented 3 years ago

@idontgetoutmuch there is a complete spatial predator-prey model defined here https://github.com/cesaraustralia/SpatialMechanisticModellingInJulia. The rules are in rules.jl, the plots.jl script will run it and plot the output and save a gif. You can run it live in the outputs.jl file.

I'll move it into the docs here after review.