Sugarscape: Agent-Based Modeling

Agents move around on a map gathering food. Each move costs the agent an amount of food equal to the set metabolism. If the agent runs out of food it dies.
Fifty agents begin in random locations and make a move to one of the adjacent locations based upon which of the locations has the largest amount of food. Beginning with a stockpile of 2 units of food, the agents start by expending 2 units per move. The map has two locations of high food level in the top left and bottom right corners. The agents all gather in these locations or die and turn red.
Those pockets of high food have a level of 4 each. The other corners are set at a level of 0 food each. In between these pockets the food varies between these two values. The agents cannot sustain themselves in areas where the level of food is less than their metabolism. The agents can, however, build up a stockpile of surplus food for times when their metabolism requires more food than is available at a particular location. The maximum level of food on the map is 4. Therefore, if the agent's metabolism is higher than 4, then all the agents will die.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.