How to sort indivisuals

14 views
Skip to first unread message

Saeed Soltani Moghadam

unread,
Jul 12, 2017, 6:25:22 AM7/12/17
to pyevolve
Hi, 

Is there any way to sort individuals? Since they completely produce in a random way, i want to sort them before evolution. So for example:

pop[n] = list_of_individuals

 list_of_individuals[m] >=  list_of_individuals[m-1] >=  list_of_individuals[m-2] ... >=  list_of_individuals[0]

n = population size
m = individual size

Regards
Reply all
Reply to author
Forward
0 new messages