xegaPermMutateGeneGreedy {xegaPermGene}R Documentation

Mutate a gene (by inserting a greedy path at start of random length k).

Description

xegaPermMutateGeneGreedy mutates a permutation by inserting a greedy path of length k at a random position start. The mutation rate for a gene is given by MutationRate().

Usage

xegaPermMutateGeneGreedy(gene, lF)

Arguments

gene

A Permutation.

lF

Local configuration of the genetic algorithm.

Details

The path length k is expontially decaying with exponential decay constant lambda.

Value

A Permutation.

See Also

Other Mutation: xegaPermMutateGene2Opt(), xegaPermMutateGeneBestGreedy(), xegaPermMutateGeneOrderBased(), xegaPermMutateGenekInversion(), xegaPermMutateGenekOptLK(), xegaPermMutateMix()

Examples

gene1<-xegaPermInitGene(lFxegaPermGene)
xegaPermDecodeGene(gene1, lFxegaPermGene)
gene<-xegaPermMutateGeneGreedy(gene1, lFxegaPermGene)
xegaPermDecodeGene(gene, lFxegaPermGene)

[Package xegaPermGene version 1.0.0.0 Index]