Simulating the evolution of aggression using Python.
Simulation of N agents for a survival resource.
Iterate over X number of generations:
- Each agent goes to a random location.
- The
foodis shared according to the agent strategy. - The agent survives, dies or reproduces depending on the food quantity consumed in each interation.
The Simulation includes two strategies:
-
Dovestrategy - Passive -
Hawkstrategy - Aggressive -
Doveshares the food if against aDove. -
Hawksteals both pieces of food if against aDove. -
No agent gets any food if both the agents are
Hawks
In each iteration of Simulation:
- Each location has two pieces of
food. - Consumption of a single piece of
foodleads to surival of the agent. - Consumption of a two pieces of
foodleads to reproduction of the agent. - No consumption of
foodleads to the death of the agent.
This simulation is based on Simulating the Evolution of Aggression by Primer