boundmut | R Documentation |
The Boundary Mutation operator is a mutation operator that changes the value of a randomly selected gene in the chromosome with the upper or lower limit value for that gene.
This operator is used for value encoded (integer or real number) chromosomes.
boundmut(y, lb, ub, ...)
y |
A vector. Chromosome of the offspring |
lb |
A vector. Lower bounds of genes |
ub |
A vector. Upper bounds of genes |
... |
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
mutate
,
bitmut
,
randmut
,
randmut2
,
randmut3
,
randmut4
,
unimut
,
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) boundmut(offspring, lb=lb, ub=ub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.