breed: support function: breed()

Description Usage Arguments Examples

Description

This function put the crossover and mutation parts together. Aslo aims to make sure the alignment of the data type in each part applies the crossover() and mutation() functions to all chromosomes.

Usage

1
breed(chromoSet, cross_cutNum = 1, mutation_prob = 0.01)

Arguments

chromoSet

dataframe; both column corresponding to chromosomes; Each row of this data frame shows both parents

cross_cutNum

integer; How many cuts do you want for the crossover? Defaults to 1

mutation_prob

numeric; What is the probability of mutation? Defaults to 0.01

Examples

1

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