
Ant colony optimization for continuous domains (ACO_R)
Source:R/Metaheuristics.R
AntColonyContinuous.RdThe archive keeps the n_pop best solutions, sorted; each ant picks a guide l with probability proportional to w_l = exp(-(l - 1)^2 / (2 q^2 k^2)) and samples every coordinate from N(s_li, sigma_i^2), sigma_i = xi times the mean absolute distance from s_l to the archive; the archive keeps the best k.
Usage
AntColonyContinuous(
f,
bounds,
n_ants = NULL,
q = 0.2,
xi = 0.85,
n_pop = 20,
max_iter = 200,
seed = 0
)