Description Usage Arguments Examples
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.
1 | breed(chromoSet, cross_cutNum = 1, mutation_prob = 0.01)
|
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 |
1 | breed()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.