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.
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
)
config_bat
returns an object of class BATConfig
.
maximum number of iterations.
number of bats.
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 tolerance when comparing best costs from consecutive iterations.
If NULL
the machine epsilon is used. Default is NULL
.
initial loudness of emitted pulses. Typical values are in the range [1, 2]. Default is 1.5
.
parameter to control the linearly decreasing loudness with
the iterations. It should be between 0 and 1. Default is 0.9
.
initial rate at which pulses are emitted. It should
be between 0 and 1. Default is 0.5
.
parameter to control the exponentially decreasing pulse rate with
the iterations. Defatul is 0.9
.
minimum frequency value of pulses. Default is 0
.
maximum frequency value of pulses. Default is 2.0
.
yang2010newEmiR
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.)
Run the code above in your browser using DataLab