popuation are the total number of particles and speed is animation speed for visualization genertation show's how many attempts it took to reach goal.