Slide 3
Slide 3 text
ACO in TSP
Important procedures & formulas
5
Basic ACO
1
5
3
4
2
Probability of state transfer
n City which number is n
Route between 2 cities
In TSP, it indicates the probability for ant K to moving
from city i to city j. (在TSP中,每一代的每個螞蟻從 i 轉移到 j
的機率都是相同的,所以可以暫時忽略 k )
P𝒊𝒋
=
(𝝉𝒊𝒋
)𝜶(𝜼𝒊𝒋
)𝜷
σ
𝒎∈𝒂𝒍𝒍𝒐𝒘𝒆𝒅
(𝝉𝒊𝒎
)𝜶(𝜼𝒊𝒎
)𝜷
𝝉𝒊𝒋 is the amount (density) of pheromone between city i and city j
𝜼𝒊𝒋 is the proximity between city i and city j . 𝜼𝒊𝒋
= ൗ
𝑸
𝒅𝒊𝒋
( 常數Q / 路徑長𝒅𝒊𝒋
)
由左圖解析,a、b、c、d分別表示各自路徑的𝝉𝜶𝜼𝜷
𝑷𝟏,𝟐
=
𝒂
𝒂 + 𝒃 + 𝒄 + 𝒅
, 𝑷𝟏,𝟑
=
𝒃
𝒂 + 𝒃 + 𝒄 + 𝒅
,
𝑷𝟏,𝟒
=
𝒄
𝒂 + 𝒃 + 𝒄 + 𝒅
, 𝑷𝟏,𝟓
=
𝒅
𝒂 + 𝒃 + 𝒄 + 𝒅
𝑷𝟏,𝟐
+ 𝑷𝟏,𝟑
+ 𝑷𝟏,𝟒
+ 𝑷𝟏,𝟓
= 1
a
b
c
d