config_cs {EmiR}R Documentation

Configuration object for the Cuckoo Search Algorithm

Description

Create a configuration object for the Cuckoo Search Algorithm (CS). At minimum the number of iterations (parameter iterations) and the number of host nests (parameter population_size) have to be provided.

Usage

config_cs(
  iterations,
  population_size,
  iterations_same_cost = NULL,
  absolute_tol = NULL,
  discovery_rate = 0.25,
  step_size = 1
)

Arguments

iterations

maximum number of iterations.

population_size

number of host nests.

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.

discovery_rate

probability for the egg laid by a cuckoo to be discovered by the host bird. It should be between 0 and 1. Default is 0.25.

step_size

step size of the Levy flight. Default is 1.0.

Value

config_cs returns an object of class CSConfig.

References

Yang X, Deb S (2009). “Cuckoo Search via Lèvy flights.” In 2009 World Congress on Nature & Biologically Inspired Computing (NaBIC). doi:10.1109/nabic.2009.5393690.

Examples

conf <- config_cs(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, discovery_rate = 0.25, step_size = 1.0)



[Package EmiR version 1.0.4 Index]