0

I would like to implement an agent-based model, and for that, I need a function that allows me to place an agent in a grid according to a specific condition, otherwise, according to a condition (x) I decide the number of neighbors of an agent, the function must be checked for all the agents of the grid. Thank you in advance

I define a SingleGrid with N agent and their characteristic, but I need how to specify the numbers of neighbors for each agent according a certain condition

0 Answers0