### Navigation

- index
- modules |
- next |
- previous |
- Pyevolve v0.6 final documentation »
- Modules »
- `pyevolve` – the main pyevolve namespace »

# `Crossovers` – crossover methods module

In this module we have the genetic operators of crossover (or recombination) for each chromosome representation.

`Crossovers.``G1DBinaryStringXSinglePoint`(genome, **args)

  The crossover of 1D Binary String, Single Point

  Warning

  You can’t use this crossover method for binary strings with length of 1.

`Crossovers.``G1DBinaryStringXTwoPoint`(genome, **args)

  The 1D Binary String crossover, Two Point

  Warning

  You can’t use this crossover method for binary strings with length of 1.

`Crossovers.``G1DBinaryStringXUniform`(genome, **args)

  The G1DList Uniform Crossover

`Crossovers.``G1DListCrossoverCutCrossfill`(genome, **args)

  The crossover of G1DList, Cut and crossfill, for permutations

`Crossovers.``G1DListCrossoverEdge`(genome, **args)

  THe Edge Recombination crossover for G1DList (widely used for TSP problem)

  See more information in the Edge Recombination Operator Wikipedia entry.

`Crossovers.``G1DListCrossoverOX`(genome, **args)

  The OX Crossover for G1DList (order crossover)

`Crossovers.``G1DListCrossoverRealSBX`(genome, **args)

  Experimental SBX Implementation - Follows the implementation in NSGA-II (Deb, et.al)

  Some implementation reference.

  Warning

  This crossover method is Data Type Dependent, which means that must be used for 1D genome of real values.

`Crossovers.``G1DListCrossoverSinglePoint`(genome, **args)

  The crossover of G1DList, Single Point

  Warning

  You can’t use this crossover method for lists with just one element.

`Crossovers.``G1DListCrossoverTwoPoint`(genome, **args)

  The G1DList crossover, Two Point

  Warning

  You can’t use this crossover method for lists with just one element.

`Crossovers.``G1DListCrossoverUniform`(genome, **args)

  The G1DList Uniform Crossover

`Crossovers.``G2DBinaryStringXSingleHPoint`(genome, **args)

  The crossover of G2DBinaryString, Single Horizontal Point

  New in version 0.6: The G2DBinaryStringXSingleHPoint function

`Crossovers.``G2DBinaryStringXSingleVPoint`(genome, **args)

  The crossover of G2DBinaryString, Single Vertical Point

  New in version 0.6: The G2DBinaryStringXSingleVPoint function

`Crossovers.``G2DBinaryStringXUniform`(genome, **args)

  The G2DBinaryString Uniform Crossover

  New in version 0.6: The G2DBinaryStringXUniform function

`Crossovers.``G2DListCrossoverSingleHPoint`(genome, **args)

  The crossover of G2DList, Single Horizontal Point

`Crossovers.``G2DListCrossoverSingleVPoint`(genome, **args)

  The crossover of G2DList, Single Vertical Point

`Crossovers.``G2DListCrossoverUniform`(genome, **args)

  The G2DList Uniform Crossover

`Crossovers.``GTreeCrossoverSinglePoint`(genome, **args)

  The crossover for GTree, Single Point

`Crossovers.``GTreeCrossoverSinglePointStrict`(genome, **args)

  The crossover of Tree, Strict Single Point

  ..note:: This crossover method creates offspring with restriction of the
    max_depth parameter.

  Accepts the max_attempt parameter, max_depth (required), and the distr_leaft (>= 0.0 and <= 1.0), which represents the probability of leaf selection when findin random nodes for crossover.

`Crossovers.``GTreeGPCrossoverSinglePoint`(genome, **args)

  The crossover of the GTreeGP, Single Point for Genetic Programming

  ..note:: This crossover method creates offspring with restriction of the
    max_depth parameter.

  Accepts the max_attempt parameter, max_depth (required).

`Crossovers.``rand_random`()

  random() -> x in the interval [0, 1).

### Navigation

- index
- modules |
- next |
- previous |
- Pyevolve v0.6 final documentation »
- Modules »
- `pyevolve` – the main pyevolve namespace »