mutation: mutation()

View source: R/Mutation.R

mutationR Documentation

mutation()

Description

This function receives input from the output of crossover function, and do mutation on offsprings. By default, Mutation_rate is set to 1/C where C is the gene length.

Usage

mutation(genes, mutation_rate = NULL)

Arguments

genes

n by P matrix; P columns of genes with length n (composed of 1s and 0s)

mutation_rate

double; indicate the mutation rate

Author(s)

Fernando Machado, Jiayang Nie


jnieser/GeneticAlgorithmRPackage documentation built on March 19, 2022, 5:35 a.m.