sgXCrossoverFactory: Factory for configuring a gene-dependent Crossover function.

View source: R/sgXCrossoverFactory.R

sgXCrossoverFactoryR Documentation

Factory for configuring a gene-dependent Crossover function.

Description

sgXCrossoverFactory() selects

  1. the algorithm-specific crossover factory and

  2. the method in this factory.

Usage

sgXCrossoverFactory(algorithm = "sga", method = "CrossGene")

Arguments

algorithm

Specifies algorithm. Available: "sga", "sgde", "sgperm", "sge", sgp". Default: "sga".

method

Crossover method. Algorithm (gene representation) dependent. Default: CrossGene(). Must be available in the gene-specific crossover factories.

Details

The available methods for each algorithm are:

  • "sga": "Cross2Gene", "UCross2Gene", "UPCross2Gene", "CrossGene", "UCrossGene", "UPCrossGene".

  • "sge": "Cross2Gene", "UCross2Gene", "UPCross2Gene", "CrossGene", "UCrossGene", "UPCrossGene".

  • "sgede": "CrossGene", "UCrossGene", "UPCrossGene".

  • "sgp": "Cross2Gene", "AllCrossGene", "AllCross2Gene", "FilterCrossGene", "FilterCross2Gene".

  • "sgde": "CrossGene", "UCrossGene", "UPCrossGene".

  • "sgperm": "CrossGene", "Cross2Gene".

Value

Crossover function from the crossover factory of the selected package.

See Also

Other Configuration: sgXDecodeGeneFactory(), sgXGeneMapFactory(), sgXInitGeneFactory(), sgXMutationFactory(), sgXReplicationFactory()

Examples

sgXCrossoverFactory(algorithm="sga", method="CrossGene")


xega documentation built on Feb. 17, 2026, 5:07 p.m.