desdeo_emo.recombination.biogp_xover

Module Contents

Classes

BioGP_xover

Functions

mate(mating_pop, individuals, params)

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

class desdeo_emo.recombination.biogp_xover.BioGP_xover(probability_crossover: float = 0.9, probability_standard: float = 0.5)[source]
do(pop, mating_pop_ids)[source]