← Swarm Lab

TUNA Redux

Why do the agents return to a grid?

Four terminals sit at the corners of a cable ring. Each of the 32 agents starts at an assigned relay position. Watch the agents leave to repair a cable, then switch off their instruction to go home. Both replays use the same seed and failures. After tick 39, playback loops to the starting grid.

t=0

What brings the grid back?

Each agent stores its own home coordinates. When it has enough energy and no repair assignment, it moves toward home until it is within 0.4 world units. The four-sided cable ring stays fixed throughout. The local decision is which agents go to a fault.

In the original replay the network recovers at tick 32 with 22 agents home. By tick 39, 30 are home. Switching off the return rule leaves 20 home at tick 39. Both runs repair two cables and stay connected for 32 of 40 ticks.

Does the starting formation matter?

We ran 16 matched failure seeds for 180 ticks each. For each seed we tested the original grid and a scattered start, with the return rule on and off. Scattering moved the agents while preserving their assigned homes. Each row gives the mean over 16 runs.

StartReturn homeAgents home at endUptime
GridOn29.9 / 3286.0%
GridOff15.1 / 3290.5%
ScatteredOn24.6 / 3285.8%
ScatteredOff0 / 3280.6%

Returning home re-formed much of the grid even from scattered starts. Its effect on service depended on where the agents began. These runs cover one cable layout and one fault generator. They leave open which relay arrangement would work best under different failures.

Download the 64 run results (CSV)