xegaConfiguration {xegaPopulation}R Documentation

Remembers R command command with which algorithm has been called.

Description

xegaConfiguration() returns the command with which the genetic algorithm has been called. For replicating computational experiments with genetic algorithms.

Usage

xegaConfiguration(GAname, penv, grammar, env)

Arguments

GAname

Name of genetic algorithm's main function. (Currently: "Run").

penv

The expression for the problem environment penv. Use: substitute(penv).

grammar

The grammar grammar. Use: substitute(grammar).

env

Environment with variable value bindings. Use: environment().

Value

A named list with the following elements:

Warning

See Also

Other Configuration: AcceptFactory(), ApplyFactory(), CoolingFactory(), CrossRateFactory(), MutationRateFactory()

Examples

GA<-function(pe, grammar=NULL, nope=1.5, sle="test", ok=TRUE) 
{xegaConfiguration("GA", substitute(pe), substitute(grammar), environment())}
Para<-5
GA(Para)
Cube<-7
GA(Cube, 2, 3, 4)


[Package xegaPopulation version 1.0.0.0 Index]