Swap mutator.
Chooses two positions at random and swaps the genes.
mutSwap(ind)
ind
: [integer
]
Permutation of integers, i.e., vector of integer values.
[integer
]
Other mutators: mutBitflip()
, mutGauss()
, mutInsertion()
, mutInversion()
, mutJump()
, mutPolynomial()
, mutScramble()
, mutUniform()