config_bat {EmiR} | R 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 |
absolute tolerance when comparing best costs from consecutive iterations.
If |
initial_loudness |
initial loudness of emitted pulses. Typical values are in the range [1, 2]. Default is |
alpha |
parameter to control the linearly decreasing loudness with
the iterations. It should be between 0 and 1. Default is |
initial_pulse_rate |
initial rate at which pulses are emitted. It should
be between 0 and 1. Default is |
gamma |
parameter to control the exponentially decreasing pulse rate with
the iterations. Defatul is |
freq_min |
minimum frequency value of pulses. Default is |
freq_max |
maximum frequency value of pulses. Default is |
Value
config_bat
returns an object of class BATConfig
.
References
Yang X (2010). “A new metaheuristic bat-inspired algorithm.” In Nature inspired cooperative strategies for optimization (NICSO 2010), 65–74. Springer.
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.)