Petri.Mutation.Permutation (petri v0.2.0)

Copy Markdown View Source

Mutation operators for permutation chromosomes.

Summary

Functions

Moves a random element to a new position.

Reverses a random segment of the permutation.

Swaps two random positions.

Functions

insert(chromosome, config)

Moves a random element to a new position.

inversion(chromosome, config)

Reverses a random segment of the permutation.

swap(chromosome, config)

Swaps two random positions.