xegaDfCrossGene {xegaDfGene}R Documentation

One point crossover of 2 genes.

Description

CrossGene randomly determines a cut point. It combines the parameters before the cut point of the first gene with the parameters after the cut point from the second gene (kid 1).

Usage

xegaDfCrossGene(gg1, gg2, lF)

Arguments

gg1

Real-coded gene.

gg2

Real-coded gene.

lF

Local configuration of the genetic algorithm.

Value

Real-coded gene.

See Also

Other Crossover (1): xegaDfUCrossGene(), xegaDfUPCrossGene()

Examples

gene1<-xegaDfInitGene(lFxegaDfGene)
gene2<-xegaDfInitGene(lFxegaDfGene)
gene3<-xegaDfCrossGene(gene1, gene2, lFxegaDfGene)

[Package xegaDfGene version 1.0.0.0 Index]