desdeo_emo.recombination.biogp_xover
Module Contents
Classes
Functions
|
Perform BioGP crossover functions. Produce two offsprings by swapping genetic |
- desdeo_emo.recombination.biogp_xover.mate(mating_pop, individuals: list, params)[source]
Perform BioGP crossover functions. Produce two offsprings by swapping genetic material of the two parents.
Standard crossover: Swap two random subtrees between the parents.
Height-fair crossover: Swap two random subtrees between the parents at the selected depth.
- Parameters:
mating_pop (list) – List of indices of individuals to mate. If None, choose from population randomly. Each entry should contain two indices, one for each parent.
individuals (list) – List of all individuals.
params (dict) – Parameters for evolution. If None, use defaults.
- Returns:
offspring – The offsprings produced as a result of crossover.
- Return type:
list