config_ihs {EmiR} | R Documentation |
Configuration object for the Improved Harmony Search Algorithm
Description
Create a configuration object for the Improved Harmony Search Algorithm (IHS).
At minimum the number of iterations (parameter iterations
) and the number of
solutions in the harmony memory (parameter population_size
) have to be provided.
Usage
config_ihs(
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
considering_rate = 0.5,
min_adjusting_rate = 0.3,
max_adjusting_rate = 0.99,
min_distance_bandwidth = 1e-04,
max_distance_bandwidth = 1
)
Arguments
iterations |
maximum number of iterations. |
population_size |
number of solutions in the harmony memory. |
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 |
considering_rate |
probability for each component of a newly generated solution to be recalled from the harmony memory. |
min_adjusting_rate |
minimum value of the pitch adjustment probability. |
max_adjusting_rate |
maximum value of the pitch adjustment probability. |
min_distance_bandwidth |
minimum amplitude of the random pitch adjustment. |
max_distance_bandwidth |
maximum amplitude of the random pitch adjustment. |
Value
config_ihs
returns an object of class IHSConfig
.
References
Mahdavi M, Fesanghary M, Damangir E (2007). “An improved harmony search algorithm for solving optimization problems.” Applied Mathematics and Computation, 188(2), 1567–1579. doi:10.1016/j.amc.2006.11.033.
Examples
conf <- config_ihs(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL,considering_rate = 0.5, min_adjusting_rate = 0.3,
max_adjusting_rate = 0.99, min_distance_bandwidth = 0.0001, max_distance_bandwidth = 1)