mutationPermutationSwap: Swap Mutation for Permutations

Description Usage Arguments Value

View source: R/permutationOperators.R

Description

Given a population of permutations, this function mutates all individuals by randomly interchanging two adjacent elements of the permutation.

Usage

1
mutationPermutationSwap(population, parameters = list())

Arguments

population

List of permutations

parameters

list of parameters, currently only uses parameters$mutationRate, which should be between 0 and 1 (but can be larger than 1). The mutation rate determines the number of swaps performed, relative to the permutation length (N). 0 means none. 1 means N swaps. The default is 1/N.

Value

mutated population


CEGO documentation built on July 13, 2017, 1:03 a.m.

Search within the CEGO package
Search all R packages, documentation and source code