10182

# 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.

### PERMANENT CITATION

 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 » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.