xegaNextPopulation {xegaPopulation} | R Documentation |
Computes the next population of genes.
Description
xegaNextPopulation()
builds the next population by repeatedly
calling ReplicateGene()
.
Usage
xegaNextPopulation(pop, fit, lF)
Arguments
pop |
Population of genes. |
fit |
Fitness. |
lF |
Local configuration. |
Details
The current version is sequential.
For parallelization, a restructuring of the
main loop with an integration of xegaNextPopulation
and xegaEvalPopulation
is planned, because
this allows the parallelization of a large part of
the genetic operations which are sequential in the
current version.
Value
Population of genes.
See Also
Other Population Layer:
xegaBestGeneInPopulation()
,
xegaBestInPopulation()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaObservePopulation()
,
xegaSummaryPopulation()
Examples
lFxegaGaGene$MutationRate<-MutationRateFactory(method="Const")
lFxegaGaGene$ReplicateGene<-ReplicateGene
lFxegaGaGene$Accept<-AcceptFactory(method="All")
pop10<-xegaInitPopulation(10, lFxegaGaGene)
epop10<-xegaEvalPopulation(pop10, lFxegaGaGene)
newpop<-xegaNextPopulation(epop10$pop, epop10$fit, lFxegaGaGene)
[Package xegaPopulation version 1.0.0.0 Index]