1D Vicsek model

1D variant of the Vicsek model. Initialize agents on lines with random x coordinate and random direction ei=(1,0) (right) or e=(1,0) (left). Agent color represents their intrinsic speed vi, which is fixed per agent at a value uniformly sampled between vmin and vmin+Δv. Every step:

  1. Update directions:
  2. Update positions: