alogos.systems.pige.crossover
¶
Crossover functions for piGE.
Functions¶
|
Generate new piGE genotypes by exchanging sequence parts. |
Detailed object descriptions¶
- alogos.systems.pige.crossover.two_point_length_preserving(grammar, genotype1, genotype2, parameters=None)[source]¶
Generate new piGE genotypes by exchanging sequence parts.
Select two random, but equally long subsequences in the two piGE genotypes and exchange them.
- Parameters:
grammar (
Grammar
)genotype1 (
Genotype
) – Genotype of the first parent.genotype2 (
Genotype
) – Genotype of the second parent.parameters (
dict
orParameterCollection
, optional) – No keyword-value pairs are considered by this function. This argument is only available to have a consistent interface.
- Returns: