Netlogo: Creating subsets of agentsets of a particular breed -



Netlogo: Creating subsets of agentsets of a particular breed -

i still new netlogo, can not find explanation in documentation.

i trying create subset of agentset contains 1 type of breed. seem utilize "with" perform this, reason not work.

this code works:

ask link-neighbors [shape = "person"][ set pmt (pmt + dist) ]

but code not:

ask link-neighbors [breed = "psngrs"][ set pmt (pmt + dist) ]

how can create subset of agentset particular breed?

thanks!

this question showing unanswered, though alan gave right reply in comment. so, stop clicking on thinking unanswered, i'm going reiterate said answer. alan, if add together comment answer, i'll happily delete mine.

anyway, rid of quotes around breed name, so:

link-neighbors [breed = psngrs]

subset netlogo

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -