config_woa: Configuration object for the Whale Optimization Algorithm

View source: R/ALGO__WOA.R

config_woaR Documentation

Configuration object for the Whale Optimization Algorithm

Description

Create a configuration object for the Whale Optimization Algorithm (WOA). At minimum the number of iterations (parameter iterations) and the number of whales (parameter population_size) have to be provided.

Usage

config_woa(
  iterations,
  population_size,
  iterations_same_cost = NULL,
  absolute_tol = NULL
)

Arguments

iterations

maximum number of iterations.

population_size

number of whales.

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.

Value

config_woa returns an object of class WOAConfig.

References

\insertRef

MIRJALILI201651EmiR

Examples

conf <- config_woa(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL)


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