config_bat: Configuration object for the Bat Algorithm

View source: R/ALGO__BAT.R

config_batR Documentation

Configuration object for the Bat Algorithm

Description

Create a configuration object for the Bat Algorithm (BAT). At minimum the number of iterations (parameter iterations) and the number of bats (parameter population_size) have to be provided.

Usage

config_bat(
  iterations,
  population_size,
  iterations_same_cost = NULL,
  absolute_tol = NULL,
  initial_loudness = 1.5,
  alpha = 0.9,
  initial_pulse_rate = 0.5,
  gamma = 0.9,
  freq_min = 0,
  freq_max = 2
)

Arguments

iterations

maximum number of iterations.

population_size

number of bats.

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.

initial_loudness

initial loudness of emitted pulses. Typical values are in the range [1, 2]. Default is 1.5.

alpha

parameter to control the linearly decreasing loudness with the iterations. It should be between 0 and 1. Default is 0.9.

initial_pulse_rate

initial rate at which pulses are emitted. It should be between 0 and 1. Default is 0.5.

gamma

parameter to control the exponentially decreasing pulse rate with the iterations. Defatul is 0.9.

freq_min

minimum frequency value of pulses. Default is 0.

freq_max

maximum frequency value of pulses. Default is 2.0.

Value

config_bat returns an object of class BATConfig.

References

\insertRef

yang2010newEmiR

Examples

conf <- config_bat(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, initial_loudness = 1.5, alpha = 0.9,
initial_pulse_rate = 0.5, gamma = 0.9,
freq_min = 0., freq_max = 2.)



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