andrefo27 / CI2024_lab2

0 stars 0 forks source link

Lab2 CI, review. #1

Open LorenzoUgo opened 1 week ago

LorenzoUgo commented 1 week ago

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

andrefo27 commented 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