The Python module morie.fn.pswrm is the seeded stochastic
version of this method. It cannot be checked across languages: its
numbers come from Python's native generator stream and this tree's
Philox produces a different sequence from the same seed, so numeric
parity between the arms is impossible by construction. This is the
deterministic sibling – the same algorithm driven by a van der Corput
sequence with a distinct prime base per coordinate, so both language
arms visit the same points in the same order.
Details
Formula: v <- w v + c1 r1 (p_best - x) + c2 r2 (g_best - x),
x <- clip(x + v, lo, hi), with r1, r2 from the
low-discrepancy stream instead of a uniform generator.
References
Kennedy, J. & Eberhart, R. (1995). Particle swarm optimization. Proceedings of ICNN'95, volume 4, pages 1942-1948. doi:10.1109/ICNN.1995.488968 .
