Commit Graph

23 Commits (main)

Author SHA1 Message Date
Michael Brehm 42acfa3e40 fix GLMakie window closing with main.jl. Add missing Dependency for optimize 2024-07-01 14:27:31 +02:00
Michael Brehm fb8e94a089 add some plots with big models 2024-06-27 11:15:15 +02:00
Michael Brehm 4d24b75f30 small bugfix. forgot to add optimize 2024-06-27 00:22:20 +02:00
Michael Brehm dae76c3305 add install instructions. rename notebook 2024-06-23 22:47:46 +02:00
Michael Brehm 759c78b433 change parameters back to stable ones 2024-06-23 22:16:32 +02:00
Michael Brehm e0de107bda fix small bug 2024-06-23 20:53:20 +02:00
Michael Brehm 28712d3a7c combine score into one. add some documentation. add energy_threshold to prevent overfeeding 2024-06-23 20:21:52 +02:00
Daniel Philipp 0e1f7e8a62 Readme changes 2024-06-23 19:07:30 +02:00
Daniel Philipp f88891f3e3 Flood improved
Scenarios created
Readme updated
2024-06-23 18:29:04 +02:00
Daniel Philipp c4a202d68b countdown replaced by growth to count up and fix grass colors
event winter added
events improved
2024-06-23 02:16:55 +02:00
Michael Brehm 5b6891bdd8 fixed updating model parameters with GLMakie 2024-06-20 21:14:37 +02:00
Michael Brehm 2906c96aa4 fix movement, but updating model parameters with GLMakie broken 2024-06-20 20:47:23 +02:00
Michael Brehm fbf2453ccd convert animal parameters to model parameters to make them adjustable in GLMakie 2024-06-20 15:04:24 +02:00
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