Chooses two positions at random and swaps the genes.

mutSwap(ind)

Arguments

ind

[integer] Permutation of integers, i.e., vector of integer values.

Value

[integer]

See also

Other mutators: mutBitflip, mutGauss, mutInsertion, mutPolynomial, mutScramble, mutUniform