private void UpdateParticleFitness(SwarmParticle particle)
        {
            double currentFitness = FitnessStrategy.GetFitness(particle.GetPosition());
            double bestFitness = particle.GetOverallBestFitness();

            particle.SetCurrentFitness(currentFitness);

            if (currentFitness < bestFitness)
            {
                particle.UpdateFittestValues(currentFitness);
            }
        }
 private void UpdateParticleFitness(SwarmParticle particle)
 {
     double currentFitness = FitnessStrategy.GetFitness(particle.GetPosition());
     if (currentFitness < particle.GetCurrentFitness())
     {
         particle.SetCurrentLocationAsBest();
     }
     particle.SetCurrentFitness(currentFitness);
 }