Ejemplo n.º 1
0
 void UpdateBest()
 {
     for (int i = 1; i < population.Length; i++)
     {
         best = best.Better(population[i]);
     }
 }
Ejemplo n.º 2
0
    Organism BestFromPopulation()
    {
        Organism best = population[0];

        for (int i = 1; i < population.Length; i++)
        {
            best = best.Better(population[i]);//             best = Organism.Better(best,population[i]);
        }

        return(best);
    }