EntwurfsforschungKI Lab ← Frühe SimulationenEarly Simulations

FACS – Free Agents in Cellular SpaceFACS – Free Agents in Cellular Space

/

Maus über das Feld führen (Finger: ziehen): Agenten im Mausradius werden abgestoßen oder angezogen · Create Pts: weitere Agenten · Fassung wählen: 01, 02, 03Move the mouse over the field (finger: drag): agents within the mouse radius are repelled or attracted · Create Pts: more agents · choose a version: 01, 02, 03

FACS steht für Free Agents in Cellular Space, ein Begriff von Juval Portugali (Self-Organization and the City, 2000): freie Agenten bewegen sich über einem Zellenraster, verändern die Zellen und nutzen das Raster als Speicher. Die drei Programme aus dem Mai 2005 sind aufeinanderfolgende Fassungen desselben Delphi-Projekts; hier sind sie in einer App zusammengefasst und über „Fassung“ wählbar.

01 FACS: 500 Agenten starten in einem waagerechten Band und ändern ihren Bewegungsvektor in jedem Schritt zufällig um (random(3) − 1) · 0,11 je Achse; am Rand prallen sie ab. Die Zelle unter einem Agenten färbt sich blau, ihre Moore-Nachbarn hellblau. Die Maus stößt Agenten in ihrem Radius ab: Step = Dir · round((Position − Maus) · 0,1), mit „Attract/Repel“ ziehen sie an.

02 Einfaches Schwarmverhalten: Jeder Agent übernimmt zur Hälfte den mittleren Bewegungsvektor der Agenten in seinem Interaktionsradius, Step = 0,5 · (Step + Mittel der Nachbarn); ist der nächste Nachbar näher als 5 px, weicht er zufällig aus. Das Feld ist nun randlos (Torus), rote Linien verbinden jeden Agenten mit seinem nächsten Nachbarn. Aus der Zufallsbewegung entstehen gleich ausgerichtete Schwärme. 03 Schwarmverhalten fügt Sichtfeld und Mindestabstand als Regler hinzu, mischt behutsamer (1,0035 · (0,9 · Step + 0,1 · Mittel)) und lässt die Zellen die Häufigkeit der „Begehung“ aufzeichnen: Sie werden mit jedem Agenten heller, bis die Wege der Schwärme als weiße Spuren stehen bleiben.

Das „Sichtfeld“ vergleicht im Original die Bewegungsrichtungen mit dem Arkussinus statt dem Arkuskosinus; gezählt werden darum Nachbarn, deren Richtung um mehr als 20° und weniger als 160° abweicht. Diese Eigenheit prägt das Verhalten von 03 und bleibt die Voreinstellung; der Schalter „Winkel mit ArcCos“ zeigt die vermutlich gemeinte Regel. Neu ist eine Höchstgeschwindigkeit – in 03 beschleunigen die Agenten sonst ohne Ende. Die App ist eine Neuumsetzung der Programme von Reinhard König; was geändert wurde, steht in QUELLE.md.

FACS stands for Free Agents in Cellular Space, a term coined by Juval Portugali (Self-Organization and the City, 2000): free agents move across a grid of cells, change the cells and use the grid as a memory. The three programs from May 2005 are successive versions of the same Delphi project; here they are combined in one app and can be chosen under “Version”.

01 FACS: 500 agents start in a horizontal band and change their motion vector randomly by (random(3) − 1) · 0.11 per axis in every step; they bounce off the edges. The cell under an agent turns blue, its Moore neighbours light blue. The mouse repels agents within its radius: step = dir · round((position − mouse) · 0.1); with “Attract/Repel” it attracts them.

02 Simple swarming: each agent adopts half of the mean motion vector of the agents within its interaction radius, step = 0.5 · (step + mean of neighbours); if the nearest neighbour is closer than 5 px, it swerves at random. The field now wraps around (torus), and red lines connect each agent with its nearest neighbour. Swarms with a common direction emerge from the random motion. 03 Swarming adds field of view and minimum distance as sliders, mixes more gently (1.0035 · (0.9 · step + 0.1 · mean)) and lets the cells record how often they are “walked over”: they grow brighter with every agent until the paths of the swarms remain as white trails.

In the original the “field of view” compares the directions of motion with the arcsine instead of the arccosine; hence it counts neighbours whose direction differs by more than 20° and less than 160°. This quirk shapes the behaviour of version 03 and remains the default; the switch “Angle with arccos” shows the rule that was probably intended. A maximum speed is new – otherwise the agents in 03 accelerate without limit. The app re-implements the programs by Reinhard König; changes are listed in QUELLE.md.