Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Population replacement pyevolve

Looking for a way to reuse 50% of previous population best individuals in different GA iteration .

For example at the end of current iteration inside a process do "population = ga.getPopulation()".Next iteration initialize 50% of that pop.

Does anyone know how to handle the population results?

like image 513
Jack Avatar asked Jan 27 '26 11:01

Jack


1 Answers

You can use the method setElitismReplacement (see here) to define the number of individuals that the elitism will use.

like image 185
Tarantula Avatar answered Jan 29 '26 02:01

Tarantula



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!