Ant Travelling Salesman Problem
Ant Travelling Salesman Problem
Optimization
Real ants
Stigmergy
Autocatalyzation
Ant System
Ant Colony System
Overview
Ant Colony Optimization (ACO) studies
artificial systems that take inspiration
from the behavior of real ant colonies
and which are used to solve discrete
optimization problems.
-Source: ACO website, http://iridia.ulb.ac.be/~mdorigo/ACO/about.html
pheromone pheromone
n ants n ants
x - distance x - distance
distance longer path distanceshorter path
Shorter path reinforced. time time
30 ants 30 ants
D 15 ants
D 10 ants
D
15 ants 20 ants
d=1 d = 0.5
= 15 = 30
H C H C H C
= 15 = 30
d=1 d = 0.5
15 ants 15 ants 10 ants 20 ants
B B B
30 ants 30 ants
A A A
Ant Colony
Ants as Agents
Each ant is a simple agent with the following
characteristics:
It chooses the town to go to with a probability that
is a function of the town distance and of the
amount of trail present on the connecting edge;
To force the ant to make legal tours, transitions to
already visited towns are disallowed until a tour is
complete (this is controlled by a tabu list);
When it completes a tour, it lays a substance called
trail on each edge (i, j) visited.
k 1
ij
(t )
ij
ij
if k allowed k
p t (t )
k
ij ij ij
kallowed k
0 otherwise
Step 1 is O(n2 + m)
Step 2 is O(m)
Step 3 is O(n2 m)
Step 4 is O(n2 m)
Step 5 is O(n2)
Step 6 is O(n m)
mn
Ant Colony
Optimization
The Ant Colony System (ACS)
AS ACS
Change to the probabilistic function: drop alpha
(t )
ij ij
if k allowed k
p t (t )
k
ij ij
ij
kallowed k
0 otherwise
s uJ k ( r )
arg max (r , u ) (r , u )
if q q0 (exploitation)
S otherwise (biased exploration)
(r , s ) 1 (r , s ) (r , s )
m = 10
Advanced Topics
Discrete Approaches to
ACO Improvement
& Implementation
Check out
http://www.conquerware.com/
dbabb/academics/research/aco
for supplementary materials.
Thank You