| randmut3 | R Documentation |
For each gene, if a random number is less than the mutation rate, the gene's mean value is zero and its standard deviation is |ub-lb| The random value selected from the normal distribution is changed by adding it (Yoon & Kim, 2012).
This operator is used for value encoded (integer or real number) chromosomes.
randmut3(y, lb, ub, mutpm, ...)
y |
A vector. Chromosome of the offspring |
lb |
A vector. Lower bounds of genes |
ub |
A vector. Upper bounds of genes |
mutpm |
Mutation rate |
... |
Further arguments passed to or from other methods. |
mutant |
A vector. Chromosome of the offspring |
mutgen |
The number of the mutated gene. |
Zeynel Cebeci & Erkut Tekeli
Yoon, Y. and Kim, Y.H. (2012). The roles of crossover and mutation in real-coded genetic algorithms. In Bioinspired Computational Algorithms and Their Applications (ed. S. Gao). London: INTECH Open Access Publisher. pp. 65-82.
mutate,
bitmut,
randmut,
randmut2,
randmut4,
unimut,
boundmut,
nunimut,
nunimut2,
powmut,
powmut2,
gaussmut,
gaussmut2,
gaussmut3,
bsearchmut1,
bsearchmut2,
swapmut,
invmut,
shufmut,
insmut,
dismut,
invswapmut,
insswapmut,
invdismut
lb = c(2, 1, 3, 1, 0, 4) ub = c(10, 15, 8, 5, 6, 9) offspring = c(8, 6, 4, 1, 3, 7) randmut3(offspring, lb=lb, ub=ub, mutpm=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.