EntwurfsforschungKI Lab ← Frühe SimulationenEarly Simulations

Selbstorganisation bei Wegesystemen und Slime MoldSelf-organising path systems and slime mould

/

Start: die Agenten laufen los · linke Maustaste ziehen: Markierungen hinzufügen, rechte (oder Umschalt): löschen · „Fassung“ wechselt zwischen Path System 01 und Slime Mold · „Schritte je Bild“ hoch für tausende timestepsStart: the agents begin to walk · drag with the left button to add marks, with the right button (or Shift) to delete them · “version” switches between path system 01 and slime mold · raise “steps per frame” for thousands of timesteps

Eine bestimmte Anzahl M beweglicher Agenten wird auf zufällige Zellen eines Rasters verteilt. Zu Beginn bewegen sie sich in zufällig gewählten Richtungen (random walk); ihre Richtung (heading H) schwankt dabei nach links und rechts im Bereich des angle threshold Φ: H(t+1) = H(t) ± random(Φ). Je Zeitschritt kommt ein Agent eine Zelle der Moore-Nachbarschaft weit. Beim Überqueren einer Zelle hinterlässt er eine Markierung, vergleichbar mit den Pheromonspuren von Ameisen; im Lauf der Zeit verfallen die Markierungen langsam wieder.

Liegen im Sichtbereich eines Agenten – den Nachbarzellen innerhalb von ±Φ um seine Richtung – genug Markierungen (mehr als der sniff threshold), folgt er ihnen: Beim Hill Climbing wählt er die stärkste Markierung, beim Roulette Wheel eine Zelle mit einer Wahrscheinlichkeit nach der Stärke der Markierungen; der wiggle angle ω streut dann seine neue Richtung. Aufgrund des regelmäßigen Rasters sind die relevanten Werte für Φ 22,5°, 67,5°, 112,5° und 157,5°: Darüber kommen jeweils zwei Nachbarzellen ins Sichtfeld. Durch die Interaktion der Agenten mit den Zellen ergibt sich ein sich selbst organisierendes Wegesystem; die Grauwerte zeigen die Markierungen, das Diagramm die Zahl der markierten Zellen.

Für die Fassung „Slime Mold“ wurde das Programm erweitert, indem die Markierungswerte diffundiert werden: Pi(t+1) = μ · Σ Pk(t) / 8 über die acht Nachbarzellen k, mit μ = 1 − evaporate rate. Bei den voreingestellten Werten bilden sich nach kurzer Zeit Cluster, die sich langsam über das Feld bewegen und miteinander verschmelzen oder sich wieder trennen. Wird der angle threshold verringert, lösen sich die Cluster langsam auf; entscheidend ist außerdem eine ausreichende Dichte an Agenten. Siehe Schweitzer (2003): Brownian Agents and Active Particles, und Resnick (1994): Turtles, Termites and Traffic Jams.

Die App ist eine Neuumsetzung von 331_SelbstorgaWegeSys (gleicher Quellcode wie 36_pathSystem_01) und 37_slimeMold von Reinhard König. Was geändert wurde, steht in QUELLE.md.

A given number M of mobile agents is distributed over random cells of a grid. At first they move in randomly chosen directions (random walk); their heading H fluctuates to the left and right within the angle threshold Φ: H(t+1) = H(t) ± random(Φ). In each time step an agent moves one cell of the Moore neighbourhood. When crossing a cell it leaves a mark, comparable to the pheromone trails of ants; over time the marks slowly decay.

If there are enough marks in an agent’s field of view – the neighbouring cells within ±Φ of its heading – (more than the sniff threshold), it follows them: with hill climbing it chooses the strongest mark, with the roulette wheel a cell with a probability according to the strength of the marks; the wiggle angle ω then scatters its new heading. Because of the regular grid, the relevant values for Φ are 22.5°, 67.5°, 112.5° and 157.5°: beyond each of them two more neighbouring cells come into view. The interaction of the agents with the cells produces a self-organising path system; the grey values show the marks, the chart the number of marked cells.

For the version “slime mold” the program was extended by diffusing the mark values: Pi(t+1) = μ · Σ Pk(t) / 8 over the eight neighbouring cells k, with μ = 1 − evaporate rate. With the default values, clusters form after a short time, slowly move across the field and merge or split again. If the angle threshold is reduced, the clusters slowly dissolve; a sufficient density of agents is also decisive. See Schweitzer (2003): Brownian Agents and Active Particles, and Resnick (1994): Turtles, Termites and Traffic Jams.

The app re-implements 331_SelbstorgaWegeSys (the same source code as 36_pathSystem_01) and 37_slimeMold by Reinhard König. Changes are listed in QUELLE.md.