Perimeter Update Patch

It’s time for the Perimeter Church Annual Membership Update. We need each member to participate in the 2018 Membership Update. Please be on the lookout for an email. Kpg 119dm2 Software Update Ine Ccie Dc Workbook Movies. there.

I'm modeling territory selection in NetLogo, and would like my turtles to calculate the perimeter of their territory once established. I've been trying to come up with ideas for how to do this, but haven't found a good means yet. Patches-own [ owner ];; patches know who owns them turtles-own [ territory;; agentset of patches I own food;; food acquired in my territory threshold ];; food required, will build territory until meet this to go tick ask turtles [ build-territory ] end to build-territory if food >threshold [ calculate-perimeter ];; stop building when enough food pick-patch;; keep picking patches until meet threshold. End to calculate-perimeter;; what could I use to add up the perimeter of the territory? End Thanks in advance for any suggestions! A modification of my last answer to you: to setup ca ask patches with [pxcor >0 ] [ set pcolor white ] crt 1 end to go ask turtles [ let blacklist patches with [ pcolor = black ] let northpatches patches with [ pycor >0 ] let northred ( northpatches with [ member? Self blacklist = false ] ) ask northred [ set pcolor red ] let border northred with [ any?

Neighbors4 with [ pcolor!= red ] ] ask border [ set pcolor blue ] print count border ] end You can designate border/perimeter patches as any of you territory patches with neighbors that are not territory. For you it might look something like: ask turtles [ print count territory with [ any? Neighbors4 with [owner!= myself ] ] ] Again, I can't test it without your setup so you would have to modify. Edited below To count the edges of patches that are on the border, you could have them count their neighbors4 that belong to another turtle. Then, they can add them to that turtle's perimeter length. For example: to assess-perimeter;;; must be called by a turtle print ('Assessing perimeter') let current-turtle who let temp-per-len 0 let border-patches patches with [ owner = current-turtle and any?

Perimeter Update Patch