EntwurfsforschungKI Lab ← Frühe SimulationenEarly Simulations

Agentenbasiertes Interaktionsmodell (Interaction Pattern)Agent-based interaction model (Interaction Pattern)

/

Start: die Agenten schwärmen aus · rot: erkundend, grün: auf dem Rückweg · „Zielorte“ wählt Zufall, Kreis oder Raster · hält bei Schritt 10.000Start: the agents swarm out · red: exploring, green: returning · “SetupMode” picks random, circle or raster destinations · stops at step 10,000

Zu Beginn befinden sich alle Agenten auf dem Ursprungsort in der Mitte des noch völlig unerkundeten Zellenfeldes (blau). Die Erkundung erfolgt anfangs durch zufälliges Umherwandern: Die Richtung schwankt um bis zu angle threshold, bis die ersten Zielorte (grün) gefunden werden – zehn zufällig verteilte, 25 im Raster oder der ganze Rand außerhalb eines Kreises.

Wer einen Zielort erreicht, kehrt zum Ursprungsort zurück, dessen Koordinaten er im Gedächtnis behält; seine Richtung weicht dabei zufällig um bis zu return noise ab. Auf dem Rückweg markiert er jede Zelle, die er verlässt (markB += 10). Erkundende Agenten betrachten die Zellen in ihrem Sichtfeld heading ± angle threshold und folgen per hill climbing der intensivsten Markierung, wenn sie in die Nähe markierter Zellen kommen; ein kleiner Zufallswert (minM + 1) · (random − 0,5) stört die Wahl.

Im Verlauf der Zeit entstehen so stark markierte Pfade zu den verschiedenen Zielorten, und die Agenten „lernen“ gewissermaßen, wo sich die Zielorte befinden, indem sie indirekt über die Landscape miteinander kommunizieren. Dadurch verkürzt sich die Zeit zum Auffinden eines Zielortes, und immer mehr Agenten bewegen sich auf den stark markierten Pfaden. Lediglich die zufälligen Fehlerwerte sorgen dafür, dass einige Agenten weiterhin die gesamte Landscape absuchen. Die Gravitationslinien zeigen, wie oft von jedem Zielort zurückgekehrt wurde.

Die App ist eine Neuumsetzung von 320_AgInteraktModell („Interaction Patterns“, gleicher Quellcode wie 42_interactionPatterns) von Reinhard König, nach Batty: Cities and Complexity, Kapitel 5. Was geändert wurde, steht in QUELLE.md.

At the start all agents are at the origin in the middle of the still unexplored cellular field (blue). At first they explore by wandering at random: their direction varies by up to angle threshold until the first destinations (green) are found – ten placed at random, 25 in a raster, or the whole margin outside a circle.

An agent that reaches a destination returns to the origin, whose coordinates it keeps in memory; its direction deviates at random by up to return noise. On the way back it marks every cell it leaves (markB += 10). Exploring agents look at the cells in their field of view heading ± angle threshold and follow the most intense mark by hill climbing once they come near marked cells; a small random value (minM + 1) · (random − 0.5) disturbs the choice.

Over time, heavily marked paths to the various destinations emerge and the agents in a sense “learn” where the destinations are by communicating indirectly through the landscape. The time needed to find a destination shrinks, and more and more agents move along the heavily marked paths. Only the random errors make some agents keep searching the whole landscape. The gravity lines show how often agents have returned from each destination.

The app re-implements 320_AgInteraktModell (“Interaction Patterns”, same source code as 42_interactionPatterns) by Reinhard König, after Batty: Cities and Complexity, chapter 5. Changes are listed in QUELLE.md.