Count Agents in Grid Cell every time step

47 views
Skip to first unread message

Benjamin Mewes

unread,
Nov 4, 2015, 2:49:27 AM11/4/15
to GAMA
Hi all,

sorry for so many postings in the last time but I still have some questions.

I want to count my agents in every cell. If a given threshold is reached, I want to change the color of my grid cell. So far my code is working, but, if the agents leave the cell the count is not updating. Is there any way to clear that list at every tick?


moveAgents_STORAGE.gaml

Benjamin Mewes

unread,
Nov 4, 2015, 4:00:29 AM11/4/15
to GAMA

Got it working on my own :) Just had to add the remove command for the agent when it moves away.
Reply all
Reply to author
Forward
0 new messages