Open LorenzoUgo opened 1 week ago
The math provided should always keep the same population in each generation
let's do some simple math: population size: 10 offspring: 10 * 1.5 = 15 elite population: 10% of 10 --> 1 survivors: 60% of 15 --> 9 new population: 1 + 9 = 10
Hi @andrefo27, While checking your code i found nothing wrong, in fact it seemed very clean and understandable. Good to integrate simulated annealing to maintain some degree of diversity within the population, for the slow solution.
I'm just wondering if the population size from one era to the next is maintained according to your rule: 10% original parent and 60% of the offsping.
Keep working