1D variant of the Vicsek model. Initialize agents on lines with random coordinate and
random direction (right) or (left).
Agent color represents their intrinsic speed , which
is fixed per agent at a value uniformly sampled between and .
Every step:
Update directions:
New direction of agent is the average direction of
(same-line) neighbors within distance .
Update positions:
Displacement is the direction multiplied by the agents' speed .
1D addition: When the new position would place the agent inside the exclusion zone of a
neighbor (and closer than the old position), it does not move during this step
and has to wait for the neighbor to make space.