config_abc {EmiR}R Documentation

Configuration object for the Artificial Bee Colony Algorithm

Description

Create a configuration object for the Artificial Bee Colony Algorithm (ABC). At minimum the number of iterations (parameter iterations) and the number of bees (parameter population_size) have to be provided.

Usage

config_abc(
  iterations,
  population_size,
  iterations_same_cost = NULL,
  absolute_tol = NULL,
  employed_frac = 0.5,
  n_scout = 1
)

Arguments

iterations

maximum number of iterations.

population_size

number of bees.

iterations_same_cost

maximum number of consecutive iterations with the same (see the parameter absolute_tol) best cost before ending the minimization. If NULL the minimization continues for the number of iterations specified by the parameter iterations. Default is NULL.

absolute_tol

absolute tolerance when comparing best costs from consecutive iterations. If NULL the machine epsilon is used. Default is NULL.

employed_frac

fraction employed bees. Default is 0.5.

n_scout

number of scout bees. Default is 1.

Value

config_abc returns an object of class ABCConfig.

References

Karaboga D, Basturk B (2007). “A powerful and efficient algorithm for numerical function optimization: artificial bee colony (ABC) algorithm.” Journal of Global Optimization, 39(3), 459–471. doi:10.1007/s10898-007-9149-x.

Examples

conf <- config_abc(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, employed_frac = 0.5, n_scout = 1)


[Package EmiR version 1.0.4 Index]