Learn R Programming

GABi (version 0.1)

mutation: Mutation

Description

Performs mutation genetic operator in GABi genetic algorithm.

Usage

mutation(pop, mfreq)

Arguments

pop
Numeric array representing a population of binary GA chromosomes.
mfreq
Numeric value defining probability with which each bit in pop will be flipped.

Value

pop but potentially altered by the mutation process.

Details

Mutation randomly flips each bit in the GA chromosome with some specified (low) probability.