pesos: Calculate the weight of each ant based on the gaussian...

Description Usage Arguments Value

View source: R/fct_aco.R

Description

Calculate the weight of each ant based on the gaussian distribution

Usage

1
pesos(err, q)

Arguments

err

the calculated list of errors of the ants

q

meta-parameter, with a range of (0,1). If q is close to 0 it will give more relevance to better ants, on the other hand, if its closer to 1 it will distribute the weight between all the ants more equitatively

Value

a list with the ants' weights


FelixBehne/ant.colony.optimization documentation built on Dec. 17, 2021, 8:25 p.m.