View source: R/xegaOperatorPipelines.R
newPipeline | R Documentation |
The pipeline is evaluate(gene)
.
newPipeline(g, lF)
g |
A gene. |
lF |
The local function configuration. |
newPipeline
is a constructor of a function closure which
contains the evaluation of a gene.
Closure of genetic operator pipeline
without mutation and crossover.
The argument of the closure lF
configures the behavior of the pipeline.
Other Genetic Operator Pipelines:
newCross2Mut1Pipeline()
,
newCross2Mut2Pipeline()
,
newCross2Pipeline()
,
newCrossMut2Pipeline()
,
newCrossMutPipeline()
,
newCrossPipeline()
,
newMutPipeline()
lFxegaGaGene$CrossGene<-xegaGaCrossGene
lFxegaGaGene$MutationRate<-function(fit, lF) {0.5}
lFxegaGaGene$CrossRate<-function(fit, lF) {0.5}
lFxegaGaGene$Accept<-function(OperatorPipeline, gene, lF) {gene}
g<-xegaGaInitGene(lFxegaGaGene)
a<-newPipeline(g, lFxegaGaGene)
print(a)
a(lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.