Last chance! 50% off unlimited learning
Sale ends in
The Random Resetting Mutation operator replaces the value of a randomly selected gene with a randomly selected value between the allowed limits for that gene (Michalewicz, 1994).
This operator is used for value encoded (integer or real number) chromosomes.
unimut(y, lb, ub, ...)
A vector. Chromosome of the offspring
A vector. Lower bounds of genes
A vector. Upper bounds of genes
Further arguments passed to or from other methods.
A vector. Chromosome of the offspring
The number of the mutated gene.
Michalewicz, . (1994).
mutate
,
bitmut
,
randmut
,
randmut2
,
randmut3
,
randmut4
,
boundmut
,
nunimut
,
nunimut2
,
powmut
,
powmut2
,
gaussmut
,
gaussmut2
,
gaussmut3
,
bsearchmut1
,
bsearchmut2
,
swapmut
,
invmut
,
shufmut
,
insmut
,
dismut
,
invswapmut
,
insswapmut
,
invdismut
# NOT RUN {
lb = c(2, 1, 3, 1, 0, 4)
ub = c(10, 15, 8, 5, 6, 9)
offspring = c(8, 6, 4, 1, 3, 7)
unimut(offspring, lb, ub)
# }
Run the code above in your browser using DataLab