xegaEvalPopulation: Evaluates a population of genes in a problem environment

View source: R/xegaEvalPopulation.R

xegaEvalPopulationR Documentation

Evaluates a population of genes in a problem environment

Description

xegaEvalPopulation() evaluates a population of genes in a problem environment.

Usage

xegaEvalPopulation(pop, lF)

Arguments

pop

Population of genes.

lF

Local function configuration.

Details

Parallelization of the evaluation of fitness functions is possible by defining lF$lapply.

Value

List of

  • $pop gene vector,

  • $fit fitness vector,

  • $evalFail number of failed evaluations.

See Also

Other Population Layer: xegaBestGeneInPopulation(), xegaBestInPopulation(), xegaInitPopulation(), xegaLogEvalsPopulation(), xegaNextPopulation(), xegaObservePopulation(), xegaRepEvalPopulation(), xegaSummaryPopulation()

Examples

pop5<-xegaInitPopulation(5, lFxegaGaGene)
lFxegaGaGene[["lapply"]]<-ApplyFactory(method="Sequential") 
result<-xegaEvalPopulation(pop5, lFxegaGaGene)
result
lFxegaGaGene$Pipeline<-function() {TRUE}
pop5c<-asPipeline(pop5, lFxegaGaGene)
pop5c
result<-xegaEvalPopulation(pop5c, lFxegaGaGene)
result

xegaPopulation documentation built on Aug. 22, 2025, 5:14 p.m.