Esempio n. 1
0
        public override OptimizationSolution GetBestSolution()
        {
            IParticle best = TopologyHelper.GetBestParticle(Particles);

            return(new OptimizationSolution(best.BestPosition, best.BestFitness));
        }
Esempio n. 2
0
 public Vector GetCenter(List <IParticle> particles)
 {
     return(TopologyHelper.GetBestParticle(particles).BestPosition); //TODO: should this be best position or position?
 }