config_hs {EmiR} | R Documentation |
Configuration object for the Harmony Search Algorithm
Description
Create a configuration object for the Harmony Search Algorithm (HS). 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_hs(
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
considering_rate = 0.5,
adjusting_rate = 0.5,
distance_bandwidth = 0.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. |
adjusting_rate |
probability of the pitch adjustment in case of a component recalled from the harmony memory. |
distance_bandwidth |
amplitude of the random pitch adjustment. |
Value
config_hs
returns an object of class HSConfig
.
References
Lee KS, Geem ZW (2004). “A new structural optimization method based on the harmony search algorithm.” Computers & Structures, 82(9-10), 781–798. doi:10.1016/j.compstruc.2004.01.002.
Examples
conf <- config_hs(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, considering_rate = 0.5, adjusting_rate = 0.5,
distance_bandwidth = 0.1)