Swarm Intelligence Ant-based Algorithms Reference Various research - - PowerPoint PPT Presentation

swarm intelligence
SMART_READER_LITE
LIVE PREVIEW

Swarm Intelligence Ant-based Algorithms Reference Various research - - PowerPoint PPT Presentation

Swarm Intelligence Ant-based Algorithms Reference Various research papers & online material Ant Algorithms 1 Swarm Intelligence Originated from the study of colonies, swarms of social organism Studies of the social behaviour of


slide-1
SLIDE 1

Ant Algorithms 1

Swarm Intelligence

Ant-based Algorithms Reference Various research papers & online material

slide-2
SLIDE 2

Ant Algorithms

2

Swarm Intelligence

Originated from the study of colonies, swarms of social organism

Studies of the social behaviour of organisms (individuals) in swarms lead to the design of very efficient algorithms

the foraging behaviour of ants resulted in ant colony optimization algorithms

simulation studies of the graceful, but unpredictable, choreography of bird flocks results in Particle swarm optimization

A very young field in computer science, with much potential

..lots of possibilities to discover!

slide-3
SLIDE 3

Ant Algorithms

3

Ant System

Swarm Intelligence Algorithm

Based on real life animal swarms/groups

Exhibit efficient ways to solve problems

Ant System

Developed by Marco Dorigo, 1991

Modeled after real life ant colonies, based on results of experiment by Goss

slide-4
SLIDE 4

Ant Algorithms

4

Ant-based algorithms

 Ant-based systems are a population-based stochastic search

methods.

 Sound familiar- it is similar to genetic algorithms

 There is a population of ants, with each ant finding a solution

and then communicating with the other ants, how?

slide-5
SLIDE 5

Ant Algorithms

5

Ants!!

 Biological Inspiration  Trail between nest and food  Communicate via pheromone

slide-6
SLIDE 6

Ant Algorithms

6

Real Ant Optimization

slide-7
SLIDE 7

Ant Algorithms

7

Real Ant Optimization

slide-8
SLIDE 8

Ant Algorithms

8

Real Ant Optimization

slide-9
SLIDE 9

Ant Algorithms

9

Real Ant Optimization

slide-10
SLIDE 10

Ant Algorithms

10

Ant System

Experiment by Goss et al ’89

Ants started at nest

Food placed some distance away

Paths of different length between nest and food

Ants found shortest path!

slide-11
SLIDE 11

Ant Algorithms

11

Ant System

When ants travel they mark their path with substance called pheromone

Attracts other ants

When an ant reaches a fork in its path the direction it follows is based

  • n amount of pheromone it detects

Decision probabilistically made

This causes positive feedback situation (i.e. Choosing a path increases the probability it will be chosen)

slide-12
SLIDE 12

Ant Algorithms

12

Ant algorithms

We need to explore the search space, rather than simply mapping a route

  • Ants should be allowed to explore paths and follow the best paths with

some probability in proportion to the intensity of the pheromone on a given edge/trail.

If the ants simply follow the path with the highest amount of pheromone on it, our search will quickly likely settle on a very sub-

  • ptimal solution
slide-13
SLIDE 13

Ant Algorithms

13

Ant algorithms

  • The probability of an ant following a certain route is a function
  • f both the pheromone intensity, and of what the ant can see.
  • Furthermore, the pheromone trail must not build unbounded,

hence evaporation is needed.

slide-14
SLIDE 14

Ant Algorithms

14

Ant System

Group of ants start at home/nest

An initial amount of pheromone already placed on edges

Travel on edges

Edges contain pheromone amount

Visit nodes

Probability of Selecting next node

Based on distance between nodes and pheromone amount

slide-15
SLIDE 15

Ant Algorithms

15

Ant System

Ants travel from node to node until end

 decision based on transition probability (called state transition)

Once all ants finished

 Solutions compared  Pheromone evaporation applied to all edges  Pheromone increased along each edge of best/each ant’s path

 Original ant system: at each iteration, the pheromone values are

updated by all the ants that have build a solution in the iteration itself.

 Daemon activities can be run (like local search)

Redo until termination criteria met

slide-16
SLIDE 16

Ant Algorithms

16

Ant System

Set parameters, initialize pheromone trails SCHEDULE_ACTIVITIES ConstructAntSolutions DaemonActions {optional} UpdatePheromones END_SCHEDULE_ACTIVITIES

slide-17
SLIDE 17

Ant Algorithms

17

Requirements

 Problem being solved must be in graphical format

 Since algorithm is based on path finding behavior  Not always apparent

 Must be finite (must have a start and end)

slide-18
SLIDE 18

Ant Algorithms

18

Algorithm

 While ( termination not satisfied )

 create ants  Starting point depends on problem constraints  Initial pheromone is > 0, but very small  Find solutions  Pheromone update  Daemon activities {optional}

slide-19
SLIDE 19

Ant Algorithms

19

Algorithm

While ( termination not satisfied )

 create ants  Find solutions

 Transition probability:

 Pheromone update  Daemon activities {optional}

            

nodes allowed

1 ) ( 1 ) ( ) (

j ij ij ij ij i

d t d t t P j

   

 

Quantity of pheromone Heuristic distance α,β constants

slide-20
SLIDE 20

Ant Algorithms

20

   

) , (

) ( ) 1 ( ) 1 (

j i edge used that Colony k k ij ij

L Q t t   

Algorithm

 While ( termination not satisfied )

 create ants  Find solutions  Pheromone update  Daemon activities {optional}

Evaporation rate Pheromone laid by each ant that uses edge (i,j)

slide-21
SLIDE 21

Ant Algorithms

21

Algorithm

 While ( termination not satisfied )

 create ants  Find solutions  Pheromone evaporation  Daemon activities {optional}

 Usually, a local search algorithm is employed here  May also appear after “Find solutions” stage

slide-22
SLIDE 22

Ant Algorithms

22

Ant System

State Transition

Pheromone Evaporation

Pheromone Update

Where,

            

nodes allowed

1 ) ( 1 ) ( ) (

j ij ij ij ij i

d t d t t P j

   

 

) ( ) ( n t n t

ij ij ij

       

            

  • therwise

far so best f Q n t

evaluation ij

, ) _ _ ( ) ( 

parameters defined user , deposit to pheromone

  • f

quantity constant t coefficien n evaporatio j to i node from travel y to probabilit j and i nodes between distance j to i nodes from edge

  • n

pheromone

  • f

quantity           Q p d

ij ij ij

slide-23
SLIDE 23

Ant Algorithms

23

Problems

 Ant System tends to converge quickly

This means that its exploitation of the best solution found is too high, it should be exploring solution space more

 Pheromone evaporation/update rule (better rule may exist)

what is the evaporation rate?

 Led to extensions of the ant system

 MAX-MIN Ant system  Ant colony system  Foot-Stepping  Others (will not be discussed)

slide-24
SLIDE 24

Ant Algorithms

24

Ant Colony System

Most popular/interesting contribution of ACS is

introduction of a local pheromone update in addition to the pheromone update performed at the end of the construction process (known as offline pheromone update)

Local pheromone update is performed by all ants after each construction step

Each ant applies it only to the last edge traversed: where is the pheromone decay coefficient

฀  ij  (1). ij  . 0

฀   (0,1)

slide-25
SLIDE 25

Ant Algorithms

25

Ant Colony System (ACS)

 Pseudo-random proportional rule

 Best is chosen with probability q  Otherwise use regular Edge Selection rule

 Local pheromone update

 Amount of pheromone is reduced as ants use the edge   Minimum pheromone limit

 Pheromone update done only by best ant

) 1 (          

ij ij

slide-26
SLIDE 26

Ant Algorithms

26

Max-Min Ant System (MMAS)

 Only best ant add pheromone  Max and Min pheromone limits  Initially all pheromone is Max  System restart when approaching stagnation

slide-27
SLIDE 27

Ant Algorithms

27

ACO Meta-heuristic

Set parameters, initialize pheromone trails SCHEDULE_ACTIVITIES ConstructAntSolutions DaemonActions {optional} UpdatePheromones END_SCHEDULE_ACTIVITIES

slide-28
SLIDE 28

Ant Algorithms

28

ACO for TSP

 Input: set of cities given, and distance between each

city is known

 Goal: Find the shortest tour that allows each city to

visited exactly once.

 ACO algorithm

set parameters, initiliaze pheromone trails while termination condition not met do ConstructAntSolution ApplyLocal search (optional) UpdatePheromones EndWhile

slide-29
SLIDE 29

Ant Algorithms

29

ACO-TSP (Diagrams by A. Runka, Brock)

slide-30
SLIDE 30

Ant Algorithms

30

ACO-TSP

slide-31
SLIDE 31

Ant Algorithms

31

ACO-TSP

slide-32
SLIDE 32

Ant Algorithms

32

ACO-TSP

slide-33
SLIDE 33

Ant Algorithms

33

ACO-TSP

slide-34
SLIDE 34

Ant Algorithms

34

ACO-TSP

slide-35
SLIDE 35

Ant Algorithms

35

ACO-TSP

slide-36
SLIDE 36

Ant Algorithms

36

ACO-TSP

slide-37
SLIDE 37

Ant Algorithms

37

ACO-TSP

slide-38
SLIDE 38

Ant Algorithms

38

ACO-TSP

slide-39
SLIDE 39

Ant Algorithms

39

ACO-TSP

slide-40
SLIDE 40

Ant Algorithms

40

ACO-TSP

slide-41
SLIDE 41

Ant Algorithms

41

ACO-TSP

slide-42
SLIDE 42

Ant Algorithms

42

ACO-TSP

slide-43
SLIDE 43

Ant Algorithms

43

ACO-TSP

slide-44
SLIDE 44

Ant Algorithms

44

ACO-TSP

slide-45
SLIDE 45

Ant Algorithms

45

Ant Algorithms - Applications

  • Marco Dorigo, who did the seminal work on ant algorithms,

maintains a WWW page devoted to this subject

  • http://iridia.ulb.ac.be/~mdorigo/ACO/ACO.html

Check this site further information about ant algorithms, tutorial, software, applications and main publications.