xegaDfReplicationFactory {xegaDfGene}R Documentation

Configure the replication function of a genetic algorithm.

Description

ReplicationFactory implements the selection of a replication method.

Current support:

  1. "DE" returns ReplicateGeneDE.

Usage

xegaDfReplicationFactory(method = "DE")

Arguments

method

A string specifying the replication function.

Value

A replication function for genes.

See Also

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

Examples

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)

[Package xegaDfGene version 1.0.0.0 Index]