1D Baglietto/Parisi model

1D variant of the pedestrian model from Baglietto & Parisi (2011). Initialize agents on lines with random $x$ coordinate, and random direction $\vec{e}_\text{target}$ (left/right). Agent color represents their intrinsic maximum speed $v_{d,\text{max}}^i$, which is fixed per agent at a value uniformly sampled between $v_{d,\text{max}}$ and $v_{d,\text{max}} + \Delta v$. Every step, we:

  1. Find contacts and compute ve:
  2. Update radii:
  3. Update positions:

Boundaries are wrapped in the x dimension.