setProbabilities: Set mutation operator probabilities.

Description Usage Arguments Value

View source: R/collection.R

Description

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.

Usage

1
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.


jakobbossek/tspgen documentation built on July 3, 2021, 12:01 p.m.