config_algo {EmiR} | R Documentation |
Configuration object for algorithms
Description
Create a configuration object for one of the algorithms available in EmiR. At minimum the id of the
algorithm (parameter algorithm_id
), the number of iterations (parameter iterations
) and the
number of individuals in the population (parameter population_size
) have to be provided.
Usage
config_algo(
algorithm_id,
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
...
)
Arguments
algorithm_id |
id of the algorithm to be used. See list_of_algorithms for the list of the available algorithms. |
iterations |
maximum number of iterations. |
population_size |
number of individuals in the population. |
iterations_same_cost |
maximum number of consecutive iterations with the same
(see the parameter |
absolute_tol |
absolute tolerance when comparing best costs from consecutive iterations.
If |
... |
algorithm specific parameters (see specific configuration functions for more details). |
Value
config_algo
returns a configuration object specific for the specified algorithm.
Examples
conf <- config_algo(algorithm_id = "PS", population_size = 200, iterations = 10000)