Vicsek model (1995): N self-propelled agents move at constant speed v. Each step an agent adopts the average heading of all neighbours within radius r (itself included) plus random noise: θi(t+1) = arg∑j∈r eiθj + η·ξ, with ξ uniform in [-1/2, 1/2], then xi += v(cosθi, sinθi) with periodic boundaries.
The order parameter φ = |(1/N)∑eiθi| is ~1/√N for random headings and ~1 for a flock. As noise η grows (or density falls) the system undergoes a transition from collective motion to disorder; the sweep button measures it. Simplifications: no collision avoidance or attraction, uniform noise, finite-size effects (the sweep uses 300 agents).