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.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+