09.09.2014 Views

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

13th International Conference on Membrane Computing - MTA Sztaki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2D P col<strong>on</strong>ies<br />

Fig. 3. The c<strong>on</strong>figurati<strong>on</strong> of Π 2 with four ants and two paths from food to home cell<br />

displayed as a 2D grid to the user. The agent is located in this grid and has the<br />

ability to move or influence the c<strong>on</strong>tents of the envir<strong>on</strong>ment by using rewriting<br />

rules. The envir<strong>on</strong>ment may c<strong>on</strong>tain a special object #, which represents an obstacle<br />

or a positi<strong>on</strong> that is inaccessible for agents. The agent in the envir<strong>on</strong>ment<br />

activates <strong>on</strong>e of its applicable programs in each simulati<strong>on</strong> step. Each program<br />

has an assigned priority and the selecti<strong>on</strong> of applicable programs is based <strong>on</strong><br />

this priority. If there is a state when several programs can be activated with the<br />

same priority, we use pseudo-random selecti<strong>on</strong> to choose <strong>on</strong>ly <strong>on</strong>e of these programs.<br />

Multiple agents can be located <strong>on</strong> different or identical positi<strong>on</strong>s in the<br />

simulati<strong>on</strong> envir<strong>on</strong>ment. Collisi<strong>on</strong>s may occur in simulati<strong>on</strong>s of several agents in<br />

a comm<strong>on</strong> shared envir<strong>on</strong>ment which can cause simulati<strong>on</strong> errors. To avoid these<br />

problems, agents need to synchr<strong>on</strong>ize their access to the envir<strong>on</strong>ment and again<br />

using a pseudo-random selecti<strong>on</strong> to decide the order in which the agents will<br />

be <strong>on</strong> the same positi<strong>on</strong>s to activate their programs. Envir<strong>on</strong>ment changes are<br />

stored in the stack from which they are projected into the envir<strong>on</strong>ment. In this<br />

way we can avoid the situati<strong>on</strong> when <strong>on</strong>e agent in the simulati<strong>on</strong> step will affect<br />

the neighbourhood of another agent or objects in the positi<strong>on</strong> where there are<br />

more agents. In these cases it could lead to the use of previously unusable agent<br />

169

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!