Unit 3
Unit 3
Introduction
Artificial Bee Colony (ABC) Algorithm
Foraging Behavior
ABC Algorithm
1
Introduction
Swarm Intelligence employs the collective
behaviors in the animal societies to design
algorithms.
2
Artificial Bee Colony (ABC)
ABC is developed based on inspecting the
behaviors of real bees on finding nectar and
sharing the information of food sources to the
bees in the hive.
Agents in ABC:
The Employed Bee
The Onlooker Bee
The Scout
3
Artificial Bee Colony (ABC) (2)
The Employed Bee:
It stays on a food source and provides the
neighborhood of the source in its memory.
The Onlooker Bee:
It gets the information of food sources from
the employed bees in the hive and select one
of the food source to gathers the nectar.
The Scout:
It is responsible for finding new food, the new
nectar, sources.
4
Artificial Bee Colony (ABC) (3)
Procedures of ABC:
Initialize (Move the scouts).
Move the onlookers.
Move the scouts only if the counters of the
employed bees hit the limit.
Update the memory
Check the terminational condition
5
Movement of the Onlookers
Probability of Selecting a nectar source:
F i
Pi S
(1)
F k
k 1
7
Movement of the Scouts
The movement of the scout bees follows
equation (3).
ij j min r j max j min (3)
8
Foraging Behavior
Unemployed bees
Scout
Onlooker bees
9
Picture form www.acclaimclipart.com
Foraging Behavior (Cont.)
Hive
Dancing
area for A
Dancing
area for B
10
17
18
Example
Basic Self Organization Properties
Positive feedback: As the nectar amount of food
sources increases, the number of onlookers visiting
them increases, too.
21
ABC Algorithm
Explanation
Each cycle of search consists of three steps: moving the
employed and onlooker bees onto the food sources and
calculating their nectar amounts; and determining the
scout bees and directing them onto possible food sources.
Foraging bee
employed bee
onlookers
Scout
Initial Solutions
Where
i = 1,2,…,n
n = Food source
j = Dimension
Employed bee Phase
Send to each solutions (Can be done with Initial phase)
Number of solutions = Employed bees
Calculate fitness
f ( x1 )
f ( x2 )
f ( x3 )
f ( x4 )
f ( x5 )
Employed bee Phase (Cont.)
Evolve Solution to neighborhood Where
vij xij ij ( xij xkj ) ij = rand(-1,1)
i = 1,2,…,n
Evolved
n = Food source
Solution Solution j = Dimension
Xi Vi k = rand(1,n)!=i
j=6
Select better solution
Onlookers Phase
Calculate probability for each solution
f ( xi )
P{xi } n
f (x )
i 1
i
Employed bee 1 2 3 4 5
No i) ?
Ri<P(x
1 2 3 4 5 Ri =rand(0,1)
Onlooker
Onlookers Phase (cont.)
Evolve Solution to neighborhood
vij xij ij ( xij xkj ) Where
ij= rand(-1,1)
i = 1,2,…,n
n = Food source
j = Dimension
k = rand(1,n)!=i
Select better solution
(Same as Employed bee phase)
Send scout
37