mutation: support function: mutation()

Description Usage Arguments Examples

Description

This function mutate the chromosomes.

Usage

1
mutation(chromosome, probability = 0.01)

Arguments

chromosome

vector; one chromosome with genes 0/1

probability

numeric; below or equal to 1 and above or equal to 0; What is the probability of mutation? Defaults to 0.01

Examples

1

QinganZhao/GA documentation built on May 28, 2019, 6:41 a.m.