config_ps {EmiR} | R Documentation |
Configuration object for the Particle Swarm Algorithm
Description
Create a configuration object for the Particle Swarm Algorithm (PS). At minimum the number of iterations
(parameter iterations
) and the number of particles (parameter population_size
) have
to be provided.
Usage
config_ps(
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
alpha_vel = 0.5,
alpha_evolution = 1,
cognitive = 2,
social = 2,
inertia = 0.9
)
Arguments
iterations |
maximum number of iterations. |
population_size |
number of particles. |
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 |
alpha_vel |
maximum velocity of particles, defined as a fraction of the range on
each parameter. Default is |
alpha_evolution |
parameter to control the decreasing alpha_vel value with
the iterations. Default is |
cognitive |
parameter influencing the motion of the particle on
the basis of distance between its current and best positions. Default is |
social |
parameter influencing the motion of the particle on
the basis of distance between its current position and the best position in the swarm. Default is |
inertia |
parameter influencing the dependency of the velocity on
its value at the previous iteration. Default |
Value
config_ps
returns an object of class PSConfig
.
References
Eberhart R, Kennedy J (1995). “A new optimizer using particle swarm theory.” In MHS'95. Proceedings of the Sixth International Symposium on Micro Machine and Human Science, 39–43. Ieee.
Examples
conf <- config_ps(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL,alpha_vel = 0.5, alpha_evolution = 1.0, cognitive = 2.0,
social = 2.0, inertia = 0.9)