This function defines the mutation operator probabilities. I.e., a vector of probabilities with the i-th component being the probability of applying the i-th mutation operator in a single step of the instance generation process.

setProbabilities(collection, probs)

Arguments

collection

[tspgen_collection]
Collection of mutation operators.

probs

[numeric]
Numeric vector of probabilities. Needs to have the length of the mutation operator collection, i.e., the number of mutation operators in the collection.

Value

[tspgen_collection] Augmented mutation operator collection.