220 Agent-Based Modeling and Simulation with Swarm
In particular, the following rule is known as the instantaneous growth
rule [33, p. 27].
Sugarsca pe growth rule G
∞
:
Sugar instantaneously grows to the maximum quantity for that position.
Two important agent features are their vision and metabolic rate. These
features are different for each agent a nd can be genetically transferred from
parent to child. Therefore, although the agents consume (burn) sugar at each
step, the consumption o f s ugar depends on the metabolic rate. In the following
exp e riment the metabolic rate for the population forms a uniform distribution
with a minimum value of 1 and a maximum of 4. The vision of the agents is
limited to the four directions of the lattice (up, down, left, and right), and
the agents a re unable to see across a diago nal. Furthermore, the distribution
of vision is uniform, with a minimum of 1 and a maximum of 6 , a nd an agent
with a v ision of 3 can se e up to three units away in each direction.
The agents thus accumulate sugar while moving around in the S ugarscape ,
and each agent is capable of s tockpiling an unlimited amount of sugar.
Agents move in accordance with the rule given below [33, p. 25], in which
they process local information (such as the current amount of sugar at each
position) within their field of view, and subsequently compute their order of
preference for relocation.
Agent movement rule M:
• Survey the lattice in all four directions (up, down, left, and right) and
search for positions within the field of vision containing the larges t quan-
tity of sugar and no other agents.
• If more than o ne such position ex ists, choose the nearest.
• Move to the new position.
• Collect all the sugar at the new position.
Agents can move only once at each step of the iteration, and the order in
which agents move is random. When they a rrive at the new position, their
sugar reserve is increased by the amount of sugar at the new position minus
the amount of metabo lized sugar. Metabolized sugar cannot be accumulated,
and if an agent’s reserve becomes zero or negative, the agent dies of starvation
and disappears from Sugarscape.
In the fo llowing discussion, if Sugarscape follows growth rule E and the
agents fo llow movement rule A, the set of experimental conditions is deno ted
(E,A). For example, if sugar is replenished by the instantaneous regeneration
rule and the ag e nts move in accordance with rule M, then the experimental
conditions are given by (G
∞
,M).
Let us conduct a simulation with the (G
1
, M) rule set. Applying these rules
to a group of agents distributed at random, agents located at p ositions with