config_sa {EmiR} | R Documentation |
Configuration object for the Simulated Annealing Algorithm
Description
Create a configuration object for the Simulated Annealing algorithm (SA). At minimum the number of iterations
(parameter iterations
) and the number of particles (parameter population_size
) have
to be provided.
Usage
config_sa(
iterations,
population_size,
iterations_same_cost = NULL,
absolute_tol = NULL,
T0 = 50,
Ns = 3,
Nt = 3,
c_step = 2,
Rt = 0.85,
Wmin = 0.25,
Wmax = 1.25
)
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 |
T0 |
initial temperature. Default is |
Ns |
number of iterations before changing velocity. Default is |
Nt |
number of iterations before changing the temperature. Default is |
c_step |
parameter involved in the velocity update. Default is |
Rt |
scaling factor for the temperature. Default is |
Wmin |
parameter involved in the generation of the starting point. Default is |
Wmax |
parameter involved in the generation of the starting point. Default is |
Value
config_sa
returns an object of class SAConfig
.
References
Kirkpatrick S, Gelatt CD, Vecchi MP (1983). “Optimization by Simulated Annealing.” Science, 220(4598), 671–680. doi:10.1126/science.220.4598.671.
Examples
conf <- config_sa(iterations = 100, population_size = 50, iterations_same_cost = NULL,
absolute_tol = NULL, T0 = 50., Ns = 3., Nt = 3., c_step = 2., Rt = 0.85, Wmin = 0.25,
Wmax = 1.25)