initialVelocity

Produces an initial velocity for a particle.

Return

the initial velocity vector, the same length as position

Parameters

position

the particle's initial continuous position (problem input order)

vMax

the per-coordinate maximum speed (velocity clamp magnitude)

pso

the particle swarm solver requesting the initialization