96
X-Machines for Agent-Based Modeling: FLAME Perspectives
S u g a r
C i t i z e n A
M o v i n g d i s t a n c e
V i e w i n g d i s t a n c e
A n o t h e r c i t i z e n i n t h e a r e a
FIGURE 5.7: View of a citizen agent in FLAME Sugarscape.
TABLE 5.1: Global variables used in FLAME Sugarscape.
Viewing distance
200
Eating distance
5
Moving or run distance
5.5
Landscape
200 × 200
agents to see or find each other and post information to each other. Figure
5.8 displays the basic functions the agents perform in one iteration. The sugars have to post their location allowing citizens to find them. If the sugar is
eaten by citizens, these disappear from the landscape. Note that the iteration
timeline shown in Figure 5.8 does not consider citizen agents dying or trading
sugar.


Sugarscape Model
1
Mariam Kiran
300809


my_library_functions.c
citizen.c
sugar.c

Précédent

- 125/329

Suivant