Commit Graph

10 Commits (78552bb04461836586cab1799c3b91142b208d0a)

Author SHA1 Message Date
Michael Brehm 78552bb044 implement AnimalDefinitions in new model
* animals can be defined through AnimalDefinitions. So multiple prey/predator types are possible
* Δenergy now decides how much energy the predator gets when the animal is preyed on. It does nothing on predators that have no enemies
* added some metrics through death_cause field to see how much prey dies through starvation/predation
* predator and prey now use the same functions
* currently its not possible to change the animal parameters through the interactive app
* implemented an energy_threshold so animals only reproduce when they have enough energy. Leads to less animals starving
* implemented new movement logic. Now animals score each neighboring cell based on distance to food and danger. Prevents prey from running into predators

TODO:
generate the parameter dict for the model so animal parameters can be changed during simulation
combine danger and foodscore into one
check for occupied cells so they are not scored/chosen
2024-06-20 11:51:20 +02:00
Daniel Philipp 41e3a4caad Szenarien implementiert 2024-06-18 09:06:43 +02:00
Daniel Philipp 1a881adc30 Szenarien 2024-06-12 19:56:03 +02:00
Daniel Philipp 221f490d12 Szenarien todos 2024-06-12 17:29:09 +02:00
Michael Brehm 34cbdc7304 adjust for easy installation of env 2024-06-08 14:02:45 +02:00
Michael Brehm 1b59ad2fc9 use GLMakie to make it interactive.
set values, which are same for every agent as model parameters, so they can be changed in interactive app
2024-05-29 15:59:09 +02:00
Michael Brehm 42f79b0026 add perception to wolf and sheep. Adjust movement logic 2024-05-27 13:36:41 +02:00
Michael Brehm f0bfe3cb87 move some logic into their own funcs(move,eat,reproduce) 2024-05-16 14:30:45 +02:00
Michael Brehm 0165c839cd add example from Agents.jl
https://github.com/JuliaDynamics/Agents.jl/blob/main/examples/predator_prey.jl
2024-05-13 11:07:38 +02:00
Michael Brehm 7370f02427 Initial commit 2024-05-13 10:59:40 +02:00