Advertisement
Guest User

Untitled

a guest
May 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.15 KB | None | 0 0
  1. //Elitism
  2.             population.Sort((x,y) => y.Fitness.CompareTo(x.Fitness));
  3.  
  4.             for(int i = 0; i < elitism; i++){
  5.                 new_pop.Add(population[i]);
  6.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement