Apply a random mutation from a collection.

applyRandomMutation(collection, coords, bound.handling = "boundary")

Arguments

collection

[tspgen_collection]
Collection of mutation operators.

coords

[matrix(n, 2)]
Coordinate matrix.

bound.handling

[character(1)]
Occasionally during instance generation points are moved outside the boundaries of the point space. The parameter bound.handling determines how to deal with these points. Option “uniform” places outliers uniform at random within . the boundaries while option “boundary” places them on the corresponding violates boundary/boundaries. Default is “uniform”.

Value

[matrix(n, 2)] Mutated coordinate matrix.