130 Agent-Based Modeling and Simulation with Swarm
TABLE 5.3: States and b e haviors of agents.
State Behavior
Search This is the initial condition of the ag e nt and it continues ra ndom
work until food is found. When food is found, there is a transition
to the Return sta te. Transition to the Altruism state is also p os-
sible under “certain” conditions. When pheromone is sensed, the
ants are drawn to the higher concentrations.
Return The food is r e turned to the nest. In this state the agent moves
toward the nest secreting pheromone. After reaching the nest, the
agent tr ansits to the Search s tate. An age nt in the Return state
knows the position of the nest.
Altruism A bridge is constructed acro ss the gully. While in this state, move-
ment is impossible for an agent. When certa in conditions are met,
the bridge is abandoned and the agents transit to the Search state.
TABLE 5.4: Properties used in Models 1 and 2.
Model 1 Model 2
Number of Steps 700 700
Time 10 150
Radius 2 -
Pheromone Thre shhold - 30
the differences were small and almost no difference in overall efficiency was
observed.
Exper imental results using the difficult map ar e shown in Fig. 5.18 and
Fig. 5.19. On the whole, Model 2 performed better in the difficult map. Fig-
ure 5.19 shows exp e rimental observations for the difficult map on a different
scale. Just as before, the horizontal axis represents the number of agents; how-
ever, the vertical axis represents the ratio of the total number of times agents
crossed bridges to the total number of times agents helped to form bridges.
This ratio indicates how useful the bridges formed were. From the data, it was
found that Model 2 yielded higher values than Model 1. For Model 1, the ra-
tio was usually about one. This means that even though a bridge was formed,
neighboring agents would not have used it efficiently. This was because in the
difficult map, unlike the simple map, gullies were present at various locations,
causing bridges to be formed at unnecessary sites with Model 1. With Model 2
higher ratios were found compared to that found with Model 1. Although it is
not evident from the g raph, in Model 2 the bridges were formed only at those
sites that were necessar y for bringing food to the nest. This was because the
pheromone was secreted along the way from the food source to the nest. The
concentration of pheromone indicated the optimal sites for bridge construc-