Learn R Programming

ecr (version 2.1.1)

mutInversion: Inversion mutator.

Description

The Inversion mutation operator selects two positions within the chromosome at random and inverts the elements inbetween.

Usage

mutInversion(ind)

Value

[integer]

Arguments

ind

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

See Also

Other mutators: mutBitflip(), mutGauss(), mutInsertion(), mutJump(), mutPolynomial(), mutScramble(), mutSwap(), mutUniform()