godatadriven / evol

a python grammar for evolutionary algorithms and heuristics
https://evol.rtfd.io
MIT License
187 stars 12 forks source link

Remove generic combiners #143

Closed rogiervandergeer closed 5 years ago

rogiervandergeer commented 5 years ago

The generic combiners have a signature that does not match our expected signature for combiners. While we expect a combiner to accept a number of chromosomes, these combiners except individuals.

As I think that a combiner should solely combine two chromosomes, and all logic related to the fitness of individuals selected for combining should be handled by the picker, I've removed them.

koaning commented 5 years ago

I disagree with the notion that combiners always combine two parents. Asexual reproduction is something common both in literature as well as practice. I am open to searching for a standard but single parent reproduction should remain a feature.

rogiervandergeer commented 5 years ago

Sorry, I should have said solely combine any number of chromosomes. The point here is that a combiner combines chromosomes, not individuals.

koaning commented 5 years ago

Ah! My bad. In that case, yes.