参数

含义

distmat

30 × 30的距离矩阵

所有结点(包括仓库地址)之间的最短距离矩阵

numant*

45

蚂蚁数量

numcity

30

客户数量

alpha

1

信息素重要程度因子

beta

5

启发函数重要程度因子

rho

0.1

信息素的挥发速度

Q

1

信息素释放总量

iter

0

循环次数

Itermax*

500

最大循环次数

etatable

1.0/(distmat + np.diag([1e10] * numcity))

启发函数矩阵,表示蚂蚁从客户i转移到矩阵j的期望程度