breed-here 等同于代理集?
breed-here equivalent for agentsets?
我想制作一个只有特定代理集的海龟的补丁代理集。这对品种来说很容易,但对我来说不适用于代理集。
我所有的乌龟都是同一个品种。
let moveAgents n-of (count turtles * 0.1) turtles
let availablePlots patches with [any? moveAgents-here] ;does not work
只需反向搜索:
let availablePlots patch-set [patch-here] of moveAgents
我想制作一个只有特定代理集的海龟的补丁代理集。这对品种来说很容易,但对我来说不适用于代理集。
我所有的乌龟都是同一个品种。
let moveAgents n-of (count turtles * 0.1) turtles
let availablePlots patches with [any? moveAgents-here] ;does not work
只需反向搜索:
let availablePlots patch-set [patch-here] of moveAgents