Learn R Programming

xegaDfGene (version 1.0.0.9)

xegaDfReplicationFactory: Configure the replication function of a genetic algorithm.

Description

xegaDfReplicationFactory() implements the selection of a replication method.

Current support:

  1. "DE" returns xegaDfReplicateGeneDE().

  2. "DEPipeline" returns xegaDfReplicateGeneDEPipeline().

  3. "DEPipelineG" returns xegaDfReplicateGeneDEPipelineG().

Usage

xegaDfReplicationFactory(method = "DE")

Value

A replication function for genes.

Arguments

method

A string specifying the replication function.

See Also

Other Configuration: lFxegaDfGene, xegaDfCrossoverFactory(), xegaDfGeneMapFactory(), xegaDfMutationFactory(), xegaDfScaleFactorFactory()

Examples

Run this code
pop10<-lapply(rep(0,10), function(x) xegaDfInitGene(lFxegaDfGene))
epop10<-lapply(pop10, lFxegaDfGene$EvalGene, lF=lFxegaDfGene)
fit10<-unlist(lapply(epop10, function(x) {x$fit}))
Replicate<-xegaDfReplicationFactory("DE")
newgenes2<-Replicate(pop10, fit10, lFxegaDfGene)

Run the code above in your browser using DataLab