powered by
SM is inserted back in a different place into the chromosome by removing a randomly selected gene from the chromosome.
This operator is used in problems with permutation encoding.
insmut(y, ...)
A vector. Chromosome of the offspring
Further arguments passed to or from other methods.
The number of the mutated gene.
The number of inserted location of the mutated gene.
mutate, bitmut, randmut, randmut2, randmut3, randmut4, unimut, boundmut, nunimut, nunimut2, powmut, powmut2, gaussmut, gaussmut2, gaussmut3, bsearchmut1, bsearchmut2, swapmut, invmut, shufmut, dismut, invswapmut, insswapmut, invdismut
mutate
bitmut
randmut
randmut2
randmut3
randmut4
unimut
boundmut
nunimut
nunimut2
powmut
powmut2
gaussmut
gaussmut2
gaussmut3
bsearchmut1
bsearchmut2
swapmut
invmut
shufmut
dismut
invswapmut
insswapmut
invdismut
# NOT RUN { offspring = c(1, 2, 3, 4, 5, 6, 7, 8, 9) insmut(offspring) # }
Run the code above in your browser using DataLab