xegaPermGene {xegaPermGene}R Documentation

Package xegaPermGene.

Description

Genetic operations for permutation genes.

Details

Permutation genes are a representation of a tour of a Traveling Salesman Problem (TSP).

For permutation genes, the xegaPermGene package provides

Permutation Gene Representation

A permutation gene is a named list with at least the following elements:

Abstract Interface of a Problem Environment for the TSP

A problem environment penv for the TSP must provide:

Abstract Interface of Mutation Functions

Each mutation function has the following function signature:

newGene<-Mutate(gene, lF)

All local parameters of the mutation function configured are expected in the local configuration lF.

Local Constants of Mutation Functions

The local constants of a mutation function determine the the behavior of the function.

Constant Default Used in
lF$BitMutationRate1() 0.005 xegaPermMutateGeneOrderBased
lF$Lambda() 0.05 xegaPermMutateGenekInversion
xegaPermMutateGenekGreedy
xegaPermMutateGeneBestGreedy
lF$max2Opt() 100 xegaPermMutateGene2Opt
xegaPermMutateGenekOptLK

Abstract Interface of Crossover Functions

The signatures of the abstract interface to the 2 families of crossover functions are:

ListOfTwoGenes<-Crossover2(gene1, gene2, lF)

newGene<-Crossover(gene1, gene2, lF)

The Architecture of the xegaX-Packages

The xegaX-packages are a family of R-packages which implement eXtended Evolutionary and Genetic Algorithms (xega). The architecture has 3 layers, namely the user interface layer, the population layer, and the gene layer:

Copyright

(c) 2023 Andreas Geyer-Schulz

License

MIT

URL

<https://github.com/ageyerschulz/xegaPermGene>

Installation

From CRAN by install.packages('xegaPermGene')

Author(s)

Andreas Geyer-Schulz


[Package xegaPermGene version 1.0.0.0 Index]