xegaRepEvalPopulation {xegaPopulation} | R Documentation |
Evaluates a population of genes in a a problem environment repeatedly.
Description
xegaRepEvalPopulation()
evaluates a population
of genes in a problem environment lF$rep
times.
The results of repeatedly evaluating a gene are aggregated:
-
gene$fit
is the mean fitness, -
gene$var
is the fitness variance, -
gene$std
is the standard deviation of the fitness, and -
gene$obs
is the number of repetitions.
Usage
xegaRepEvalPopulation(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()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaNextPopulation()
,
xegaObservePopulation()
,
xegaSummaryPopulation()
Examples
parm<-function(x){function() {return(x)}}
pop10<-xegaInitPopulation(10, lFxegaGaGene)
lFxegaGaGene[["lapply"]]<-ApplyFactory(method="Sequential")
lFxegaGaGene[["rep"]]<-parm(3)
result<-xegaRepEvalPopulation(pop10, lFxegaGaGene)