config_abc: Configuration object for the Artificial Bee Colony Algorithm

View source: R/ALGO__ABC.R

config_abcR 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

\insertRef

Karaboga2007EmiR

Examples

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


EmiR documentation built on Dec. 10, 2022, 1:12 a.m.