"Random Choice" mutation operator for discrete parameters: with probability p chooses one of the available categories at random (this may be the original value!)

mutRandomChoice(ind, values, p = 0.1)

Arguments

ind

[character] individual to mutate.

values

[list of character] set of possible values for ind entries to take. May be a list of length 1, in which case it is recycled.

p

[numeric(1)] per-entry probability to perform mutation.

Value

[character]