Learn R Programming

xegaPermGene (version 1.0.0.1)

Operations on Permutation Genes

Description

An implementation of representation-dependent gene level operations for genetic algorithms with genes representing permutations: Initialization of genes, mutation, and crossover. The crossover operation provided is position-based crossover (Syswerda, G., Chap. 21 in Davis, L. (1991, ISBN:0-442-00173-8). For mutation, several variants are included: Order-based mutation (Syswerda, G., Chap. 21 in Davis, L. (1991, ISBN:0-442-00173-8), randomized Lin-Kernighan heuristics (Croes, G. A. (1958) and Lin, S. and Kernighan. B. W. (1973) ), and randomized greedy operators. A random mix operator for mutation selects a mutation variant randomly.

Copy Link

Version

Install

install.packages('xegaPermGene')

Monthly Downloads

196

Version

1.0.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Andreas Geyer-Schulz

Last Published

April 16th, 2025

Functions in xegaPermGene (1.0.0.1)

xegaPermMutateMix

Mutation by a random mutation function.
xegaPermMutateGeneGreedy

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

Configure the mutation function of a genetic algorithm.
xegaPermInitGene

Initialize a gene with a permutation of integers
without

Returns elements of vector x without elements in y.
xegaPermDecodeGene

Decode a permutation.
xegaPermGene

Package xegaPermGene.
lFxegaPermGene

Generate local functions and objects.
xegaPermCrossGene

Position-based crossover of 2 genes.
xegaPermCrossoverFactory

Configure the crossover function of a genetic algorithm.
xegaPermMutateGene2Opt

Mutate a gene (by a random 2-Opt move).
xegaPermCross2Gene

Position-based crossover of 2 genes.
Decay

Exponential decay.
xegaPermMutateGeneOrderBased

Mutate a gene (generalized order based mutation).
xegaPermMutateGeneBestGreedy

Mutate a gene (by inserting the best greedy path at a random start position with a random length of k).
xegaPermMutateGenekInversion

Mutate a gene (k random inversions).
xegaPermMutateGenekOptLK

Mutate a gene (by a random Lin-Kernighan k-OPT move).