68
X-Machines for Agent-Based Modeling: FLAME Perspectives
functions are traversed successfully, at the end the x-machine structures are
freed.
Synchronization is handled by the sync code such as
MB_SyncStart(messagename) and MB_SyncComplete(b_messagename)
The iterator for the message board is created and randomized as follows:
MB_Iterator_Create(b_messangename,&i_messagename)
In the end, the iterators are deleted (MB Iterator Delete(messagename)) and
agents are freed to transit to the next state. At the end, all message boards
are cleared (MB Clear(b messagename)), write data in files, move agents to
their start states and clean up. It is important to randomize iterators here,
to ensure that agents reading the data will eventually not be biased towards
the first few messages in the board, especially if agents make decisions on the
first few messages received.
Further details on the message board can be found at http://www.
softeng.cse.clrc.ac.uk/wiki/EURACE/MessageBoards/
mplementationNotes/API, where messages can be customized to allow
quicker processing and reduce overhead in simulations. These customizations
are of three types:
1. Immediate messages: Messages are read and then deleted. Examples
such as a rabbit is eaten or job filled, where message is read, perform
functions and then delete it.
2. Counter messages: Messages which exist for some time, such as cost or
price message, read by all agents.
3. Handshake: Messages generate new message by reading an old message,
such as a hired message, read by one agent in response to a previous
message.
Customizing messages to ensure quicker processing are subject to further
research in parallel computing, to see how models can be made more efficient
over various machines.
4.5 Using Grids
FLAME was compiled to be executed on the High Performance Computing
(HPC) grid Iceberg (http://shef.ac.uk/wrgrid). The steps involved were
1. Connect to Iceberg grid via a username and password using a terminal
window.
2. Copy files to Iceberg which include xparser and libmboard files.
X-Machines for Agent-Based Modeling: FLAME Perspectives
functions are traversed successfully, at the end the x-machine structures are
freed.
Synchronization is handled by the sync code such as
MB_SyncStart(messagename) and MB_SyncComplete(b_messagename)
The iterator for the message board is created and randomized as follows:
MB_Iterator_Create(b_messangename,&i_messagename)
In the end, the iterators are deleted (MB Iterator Delete(messagename)) and
agents are freed to transit to the next state. At the end, all message boards
are cleared (MB Clear(b messagename)), write data in files, move agents to
their start states and clean up. It is important to randomize iterators here,
to ensure that agents reading the data will eventually not be biased towards
the first few messages in the board, especially if agents make decisions on the
first few messages received.
Further details on the message board can be found at http://www.
softeng.cse.clrc.ac.uk/wiki/EURACE/MessageBoards/
mplementationNotes/API, where messages can be customized to allow
quicker processing and reduce overhead in simulations. These customizations
are of three types:
1. Immediate messages: Messages are read and then deleted. Examples
such as a rabbit is eaten or job filled, where message is read, perform
functions and then delete it.
2. Counter messages: Messages which exist for some time, such as cost or
price message, read by all agents.
3. Handshake: Messages generate new message by reading an old message,
such as a hired message, read by one agent in response to a previous
message.
Customizing messages to ensure quicker processing are subject to further
research in parallel computing, to see how models can be made more efficient
over various machines.
4.5 Using Grids
FLAME was compiled to be executed on the High Performance Computing
(HPC) grid Iceberg (http://shef.ac.uk/wrgrid). The steps involved were
1. Connect to Iceberg grid via a username and password using a terminal
window.
2. Copy files to Iceberg which include xparser and libmboard files.
