mutationPermutationInsert: Insert Mutation for Permutations

View source: R/permutationOperators.R

mutationPermutationInsertR Documentation

Insert Mutation for Permutations

Description

Given a population of permutations, this function mutates all individuals by randomly selecting two indices. The element at index1 is moved to positition index2, other elements

Usage

mutationPermutationInsert(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 reversals performed, relative to the permutation length (N). 0 means none. 1 means N reversals. The default is 1/N.

Value

mutated population


CEGO documentation built on May 29, 2024, 3:35 a.m.