netlogo - Groups agents on the basis of particular value in the agenset -


GIVEN: Given an agent of turtles where each turtle has a patch, the next Bar step (tick)

Problems: Two or more turtles can have a single patch set which they

resolve on: I decide on the basis of the other turtle parameters, for which someone will move that patch and the rest will still be

CONSTRAINT: Thus, only one in each patch Only Turtle is allowed

How do I give it, the agent does not have to remove the required functionality like duplicate etc.

Use tables extensions to turtles Looping with ask , make coordinates for a list of turtles wishing to move a table mapping patch there. Write a resolution-conflict reporter who raises a turtle from such a list. Walk through the table using resolution-conflict to select a turtle for each goal, and take it to a target patch.

I should add a group primitive in the table extension. This requirement is very common.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -