AureumChaos / LEAP

A general purpose Library for Evolutionary Algorithms in Python.
Academic Free License v3.0
83 stars 19 forks source link

Support elitism in multi_population_ea #323

Open sujeet100 opened 5 months ago

sujeet100 commented 5 months ago

Currently multi_population_ea() doesn't support elitism. One cannot just pass in the elitism operator since it needs access to the parents, which the caller doesn't have.

We can fix this by adding an elites parameter that specifies how many elites we want. If it's zero, we just fall back on the current behavior. similar to #112

Happy to raise PR.