xegaGpInitGeneFactory: Configure the initialization function of grammar-based...

View source: R/xegaGpInitGene.R

xegaGpInitGeneFactoryR Documentation

Configure the initialization function of grammar-based genetic programming.

Description

xegaGpInitGeneFactory() implements the creation of a complete derivation tree by one an algorithm selected by specifying a text string. The selection fails ungracefully (produces a runtime error), if the label does not match. The functions are specified locally.

Current support:

  1. "InitGene" returns xegaGpInitGene().

  2. "InitGeneGe" returns xegaGpInitGeneGe().

Usage

xegaGpInitGeneFactory(method = "InitGene")

Arguments

method

String specifying the mutation function.

Value

Initialization function for genes.

See Also

Other Configuration: xegaGpCrossoverFactory(), xegaGpMutationFactory()

Examples

InitGene<-xegaGpInitGeneFactory("InitGene")
gene1<-InitGene(lFxegaGpGene)
InitGene<-xegaGpInitGeneFactory("InitGeneGe")
gene2<-InitGene(lFxegaGpGene)


xegaGpGene documentation built on June 10, 2025, 9:14 a.m.