xegaDfReplicationFactory: Configure the replication function of a genetic algorithm.

View source: R/xegaDfReplicate.R

xegaDfReplicationFactoryR Documentation

Configure the replication function of a genetic algorithm.

Description

xegaDfReplicationFactory() implements the selection of a replication method.

Current support:

  1. "DE" returns xegaDfReplicateGeneDE().

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)

xegaDfGene documentation built on Aug. 22, 2025, 5:12 p.m.