config_gsa {EmiR} | R Documentation |
Configuration object for the Gravitational Search Algorithm
Description
Create a configuration object for the Gravitational Search Algorithm (GSA). At minimum the number of iterations
(parameter iterations
) and the number of planets (parameter population_size
) have
to be provided.
Usage
config_gsa(
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
grav = 1000,
grav_evolution = 20
)
Arguments
iterations |
maximum number of iterations. |
population_size |
number of planets. |
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 |
grav |
gravitational constant, involved in the acceleration of planets.
Default is |
grav_evolution |
parameter to control the exponentially decreasing gravitational constant with
the iterations. Default is |
Value
config_gsa
returns an object of class GSAConfig
.
References
Rashedi E, Nezamabadi-pour H, Saryazdi S (2009). “GSA: A Gravitational Search Algorithm.” Information Sciences, 179(13), 2232–2248. doi:10.1016/j.ins.2009.03.004.
Examples
conf <- config_gsa(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, grav = 1000, grav_evolution = 20.)