SlideShare a Scribd company logo
Artificial Bee Colony Algorithm
Presented By: Asma Sanam Larik
Contents
• Swarm Intelligence - an Introduction
• Behavior of Honey Bee Swarm
• ABC algorithm
• Simulation Results
• Conclusion
Introduction
• Bonabeau has defined swarm intelligence as
“any attempt to design algorithms or distributed problem-solving devices
inspired by the collective behaviour of social insect colonies and other
animal societies” [1]
• Term swarm in general refer to any restrained
collection of interacting agents or individuals
• Two fundamental concepts self-organization and
division of labour, are necessary and sufficient
properties to obtain swarm intelligent behaviour
• Self-organization : can be defined as a set of dynamical
mechanisms that establish basic rules for interactions
between the components of the system. The rules ensure
that the interactions are executed on the basis of purely
local information without any relation to the global pattern.
• Bonabeau et al. has characterized four basic properties on
which self organization relies:
– Positive feedback
– Negative feedback,
– Fluctuations and
– Multiple interactions [1]
• Division of Labor: In swarm behavior different
tasks are performed simultaneously by
specialized individuals which is referred to as
division of labor. It enables swarm to respond
to changed conditions in the search space.
Behavior of Honey Bee Swarm
Three essential components of forage selection:
• Food Sources: The value of a food source depends on many
factors such as its proximity to the nest, its richness or
concentration of its energy, and the ease of extracting this
energy.
• Employed Foragers: They are associated with a particular
food source which they are currently exploiting or are
“employed” at. They carry with them information about
this particular source, its distance and direction from the
nest, the profitability of the source and share this
information with a certain probability.
• Unemployed Foragers: They are continually at look out
for a food source to exploit. There are two types of
unemployed foragers: scouts, searching the
environment surrounding the nest for new food
sources and onlookers waiting in the nest and
establishing a food source through the information
shared by employed foragers.
• The model defines two leading modes of the behavior:
– recruitment to a nectar source
– the abandonment of a source.
Exchange of Information among bees
• The exchange of information among bees is the most
important occurrence in the formation of collective
knowledge.
• The most important part of the hive with respect to
exchanging information is the dancing area
• Communication among bees related to the quality of
food sources takes place in the dancing area.
• This dance is called a Waggle dance.
• Employed foragers share their information with a
probability proportional to the profitability of the food
source, and the sharing of this information through
waggle dancing is longer in duration.
• An onlooker on the dance floor, probably she can
watch numerous dances and decides to employ herself
at the most profitable source.
• There is a greater probability of onlookers choosing
more profitable sources since more information is
circulated about the more profitable sources.
Artificial bee colony algorithm
Basic Self Organization Properties
• Positive feedback: As the nectar amount of food sources
increases, the number of onlookers visiting them increases,
too.
• Negative feedback: The exploitation process of poor food
sources is stopped by bees.
• Fluctuations: The scouts carry out a random search process
for discovering new food sources.
• Multiple interactions: Bees share their information about
food sources with their nest mates on the dance area.
Artificial Bee Colony Algortihm
• Simulates behavior of real bees for solving multidimensional and
multimodal optimisation problems.
• The colony of artificial bees consists of three groups of bees:
employed bees, onlookers and scouts.
• The first half of the colony consists of the employed artificial bees
and the second half includes the onlookers.
• The number of employed bees is equal to the number of food
sources around the hive.
• The employed bee whose food source has been exhausted by the
bees becomes a scout.
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.
• A food source position represents a possible solution to the
problem to be optimized.
• The amount of nectar of a food source corresponds to the
quality of the solution
• Onlookers are placed on the food sources by using a
probability based selection process.
• As the nectar amount of a food source increases, the
probability value with which the food source is preferred by
onlookers increases, too.
• The scouts are characterized by low search costs and a low
average in food source quality. One bee is selected as the
scout bee.
• The selection is controlled by a control parameter called
"limit".
• If a solution representing a food source is not improved by a
predetermined number of trials, then that food source is
abandoned and the employed bee is converted to a scout.
Control Parameters of ABC Algorithm
• swarmsize
• Limit
• number of onlookers: 50% of the swarm
• number of employed bees: 50% of the swarm
• number of scouts: 1
Exploration vs Exploitation
• Onlookers and employed bees carry out the
exploitation process in the search space
• Scouts control the exploration process
Java source Code
for(run=0;run<bee.runtime;run++)
{
bee.initial();
bee.MemorizeBestSource();
for (iter=0;iter<bee.maxCycle;iter++)
{
bee.SendEmployedBees();
bee.CalculateProbabilities();
bee.SendOnlookerBees();
bee.MemorizeBestSource();
bee.SendScoutBees();
}
}
Explanation
• bee.initial(): Number of food sources are
initialized randomly and fitness of each food
source is computed. This task is performed by the
initial scout bee and hence supports exploration
• bee.Memorize(): The best food source is
memorized by the bee
• bee.SendEmployedBees(): In this function an
artificially employed bee generates a random
solution that is a mutant of the original solution.
• The formula for producing a candidate solution from
the existing is described below:
where k: {1,2,….. Number of Employed Bees}
j: {1,2,….D} are randomly chosen index
D: Number of parameters to optimize
k<> i : both are randomly chosen
φi,j: random number [-1,+1]
solution[param2change]=Foods[i][param2change]+(Foods[i][param2change]-
Foods[neighbour][param2change])*(r-0.5)*2;
• After each candidate source position vi,j is produced and
then evaluated by the artificial bee, its performance is
compared with that of xi,j. If the new food has equal or
better nectar than the old source, it is replaced with the old
one in the memory. Otherwise, the old one is retained. In
other words, a greedy selection mechanism is employed as
the selection operation between the old and the current
food sources.
• bee.CalculateProbabilities(): An onlooker bee chooses a
food source depending on the probability value
associatedwith that food source, pi, calculated by:
• Bee.SendScoutBees(): The trial parameter is
defined for those solutions that are exhausted
and not changing. This function determines
those food sources and abandons them
Simulation for Rosenbrock function
Conclusion
ABC algorithm in fact employs four different selection processes:
• A global selection process used by the artificial onlooker bees for
discovering promising regions as
• A local selection process carried out in a region by the artificial
employed bees and the onlookers depending on local information
• A local selection process called greedy selection process carried
out by all bees in that if the nectar amount of the candidate source
is better than that of the present one, thebee forgets the present
one and memorizes the candidate source. Otherwise the bee keeps
the present one in the memory.
• A random selection process carried out by scouts.
References
[1] E. Bonabeau, M. Dorigo, G. Theraulaz, “Swarm
Intelligence: From Natural to Artificial Systems”,
New York, NY: Oxford University Press, 1999.
[2] D. Karaboga , B. Basturk “A powerful and
efficient algorithm for numerical function
optimization: artificial bee colony (ABC)
algorithm, J Glob Optim (2007) 39:459–471
[3] D.Karaboga “An idea based on honey bee swarm
for numerical optimization” TR-06, October 2005

More Related Content

PPTX
Evolutionary computing - soft computing
PPT
Evolutionary-Algorithms.ppt
PPTX
Evolutionary Algorithms
PPT
Artificial bee colony (abc)
PPTX
ABC Algorithm.
PDF
Neural Networks: Least Mean Square (LSM) Algorithm
PDF
Ant colony opitimization numerical example
PDF
Bee algorithm
Evolutionary computing - soft computing
Evolutionary-Algorithms.ppt
Evolutionary Algorithms
Artificial bee colony (abc)
ABC Algorithm.
Neural Networks: Least Mean Square (LSM) Algorithm
Ant colony opitimization numerical example
Bee algorithm

What's hot (20)

PPTX
Artificial Bee Colony: An introduction
PPTX
Crow search algorithm
PDF
Particle Swarm Optimization
PPTX
Cuckoo Search Algorithm - Beyazıt Kölemen
PPTX
Particle swarm optimization
PPT
Ant colony optimization
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPSX
Particle Swarm optimization
PPTX
Flowchart of GA
PDF
Metaheuristic Algorithms: A Critical Analysis
PPT
Particle Swarm Optimization - PSO
PDF
Nature-Inspired Optimization Algorithms
PPTX
Swarm intelligence
PPTX
Swarm Intelligence - An Introduction
PPT
Ant Colony Optimization - ACO
PPTX
Particle swarm optimization
PPTX
Genetic algorithm raktim
PPT
Ant colony optimization
PPTX
Particle Swarm Optimization
PDF
Swarm intelligence
Artificial Bee Colony: An introduction
Crow search algorithm
Particle Swarm Optimization
Cuckoo Search Algorithm - Beyazıt Kölemen
Particle swarm optimization
Ant colony optimization
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm optimization
Flowchart of GA
Metaheuristic Algorithms: A Critical Analysis
Particle Swarm Optimization - PSO
Nature-Inspired Optimization Algorithms
Swarm intelligence
Swarm Intelligence - An Introduction
Ant Colony Optimization - ACO
Particle swarm optimization
Genetic algorithm raktim
Ant colony optimization
Particle Swarm Optimization
Swarm intelligence
Ad

Similar to Artificial bee colony algorithm (20)

PDF
A Novel Approach of Image Ranking based on Enhanced Artificial Bee Colony Alg...
PDF
An improved memetic search in artificial bee colony algorithm
PDF
Improved onlooker bee phase in artificial bee colony algorithm
PDF
A novel hybrid crossover based abc algorithm
PDF
PDF
Comparative study of_hybrids_of_artificial_bee_colony_algorithm
PPTX
Artificial Bee Colony (ABC) (Swarm Intelligence)
PDF
IRJET- A Comprehensive Study of Artificial Bee Colony (ABC) Algorithms and it...
PPT
Swarm intelligence algorithms
PDF
Enhanced local search in artificial bee colony algorithm
PPTX
Bee algorithm
PDF
IRJET- Modified BEE Swarming Algoritm to Emission Constrained Economic Dispat...
PDF
Hybrid Artificial Bee Colony Algorithm with Simulated Annealing for Numerical...
PDF
Optimal k-means clustering using artificial bee colony algorithm with variab...
PDF
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
PDF
Enhanced abc algo for tsp
PDF
Design of pss using bees colony intelligence
PDF
Rate adaptive resource allocation in ofdma using bees algorithm
PDF
IRJET- A Study in Wireless Sensor Network (WSN) using Artificial Bee Colony (...
A Novel Approach of Image Ranking based on Enhanced Artificial Bee Colony Alg...
An improved memetic search in artificial bee colony algorithm
Improved onlooker bee phase in artificial bee colony algorithm
A novel hybrid crossover based abc algorithm
Comparative study of_hybrids_of_artificial_bee_colony_algorithm
Artificial Bee Colony (ABC) (Swarm Intelligence)
IRJET- A Comprehensive Study of Artificial Bee Colony (ABC) Algorithms and it...
Swarm intelligence algorithms
Enhanced local search in artificial bee colony algorithm
Bee algorithm
IRJET- Modified BEE Swarming Algoritm to Emission Constrained Economic Dispat...
Hybrid Artificial Bee Colony Algorithm with Simulated Annealing for Numerical...
Optimal k-means clustering using artificial bee colony algorithm with variab...
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
Enhanced abc algo for tsp
Design of pss using bees colony intelligence
Rate adaptive resource allocation in ofdma using bees algorithm
IRJET- A Study in Wireless Sensor Network (WSN) using Artificial Bee Colony (...
Ad

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
web development for engineering and engineering
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Mechanical Engineering MATERIALS Selection
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Construction Project Organization Group 2.pptx
PPT
introduction to datamining and warehousing
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
composite construction of structures.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Geodesy 1.pptx...............................................
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
OOP with Java - Java Introduction (Basics)
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CYBER-CRIMES AND SECURITY A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
web development for engineering and engineering
Safety Seminar civil to be ensured for safe working.
Mechanical Engineering MATERIALS Selection
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Construction Project Organization Group 2.pptx
introduction to datamining and warehousing
Automation-in-Manufacturing-Chapter-Introduction.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
composite construction of structures.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Geodesy 1.pptx...............................................
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
UNIT 4 Total Quality Management .pptx
additive manufacturing of ss316l using mig welding
OOP with Java - Java Introduction (Basics)

Artificial bee colony algorithm

  • 1. Artificial Bee Colony Algorithm Presented By: Asma Sanam Larik
  • 2. Contents • Swarm Intelligence - an Introduction • Behavior of Honey Bee Swarm • ABC algorithm • Simulation Results • Conclusion
  • 3. Introduction • Bonabeau has defined swarm intelligence as “any attempt to design algorithms or distributed problem-solving devices inspired by the collective behaviour of social insect colonies and other animal societies” [1] • Term swarm in general refer to any restrained collection of interacting agents or individuals • Two fundamental concepts self-organization and division of labour, are necessary and sufficient properties to obtain swarm intelligent behaviour
  • 4. • Self-organization : can be defined as a set of dynamical mechanisms that establish basic rules for interactions between the components of the system. The rules ensure that the interactions are executed on the basis of purely local information without any relation to the global pattern. • Bonabeau et al. has characterized four basic properties on which self organization relies: – Positive feedback – Negative feedback, – Fluctuations and – Multiple interactions [1]
  • 5. • Division of Labor: In swarm behavior different tasks are performed simultaneously by specialized individuals which is referred to as division of labor. It enables swarm to respond to changed conditions in the search space.
  • 6. Behavior of Honey Bee Swarm Three essential components of forage selection: • Food Sources: The value of a food source depends on many factors such as its proximity to the nest, its richness or concentration of its energy, and the ease of extracting this energy. • Employed Foragers: They are associated with a particular food source which they are currently exploiting or are “employed” at. They carry with them information about this particular source, its distance and direction from the nest, the profitability of the source and share this information with a certain probability.
  • 7. • Unemployed Foragers: They are continually at look out for a food source to exploit. There are two types of unemployed foragers: scouts, searching the environment surrounding the nest for new food sources and onlookers waiting in the nest and establishing a food source through the information shared by employed foragers. • The model defines two leading modes of the behavior: – recruitment to a nectar source – the abandonment of a source.
  • 8. Exchange of Information among bees • The exchange of information among bees is the most important occurrence in the formation of collective knowledge. • The most important part of the hive with respect to exchanging information is the dancing area • Communication among bees related to the quality of food sources takes place in the dancing area. • This dance is called a Waggle dance.
  • 9. • Employed foragers share their information with a probability proportional to the profitability of the food source, and the sharing of this information through waggle dancing is longer in duration. • An onlooker on the dance floor, probably she can watch numerous dances and decides to employ herself at the most profitable source. • There is a greater probability of onlookers choosing more profitable sources since more information is circulated about the more profitable sources.
  • 11. Basic Self Organization Properties • Positive feedback: As the nectar amount of food sources increases, the number of onlookers visiting them increases, too. • Negative feedback: The exploitation process of poor food sources is stopped by bees. • Fluctuations: The scouts carry out a random search process for discovering new food sources. • Multiple interactions: Bees share their information about food sources with their nest mates on the dance area.
  • 12. Artificial Bee Colony Algortihm • Simulates behavior of real bees for solving multidimensional and multimodal optimisation problems. • The colony of artificial bees consists of three groups of bees: employed bees, onlookers and scouts. • The first half of the colony consists of the employed artificial bees and the second half includes the onlookers. • The number of employed bees is equal to the number of food sources around the hive. • The employed bee whose food source has been exhausted by the bees becomes a scout.
  • 14. 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. • A food source position represents a possible solution to the problem to be optimized. • The amount of nectar of a food source corresponds to the quality of the solution • Onlookers are placed on the food sources by using a probability based selection process.
  • 15. • As the nectar amount of a food source increases, the probability value with which the food source is preferred by onlookers increases, too. • The scouts are characterized by low search costs and a low average in food source quality. One bee is selected as the scout bee. • The selection is controlled by a control parameter called "limit". • If a solution representing a food source is not improved by a predetermined number of trials, then that food source is abandoned and the employed bee is converted to a scout.
  • 16. Control Parameters of ABC Algorithm • swarmsize • Limit • number of onlookers: 50% of the swarm • number of employed bees: 50% of the swarm • number of scouts: 1
  • 17. Exploration vs Exploitation • Onlookers and employed bees carry out the exploitation process in the search space • Scouts control the exploration process
  • 18. Java source Code for(run=0;run<bee.runtime;run++) { bee.initial(); bee.MemorizeBestSource(); for (iter=0;iter<bee.maxCycle;iter++) { bee.SendEmployedBees(); bee.CalculateProbabilities(); bee.SendOnlookerBees(); bee.MemorizeBestSource(); bee.SendScoutBees(); } }
  • 19. Explanation • bee.initial(): Number of food sources are initialized randomly and fitness of each food source is computed. This task is performed by the initial scout bee and hence supports exploration • bee.Memorize(): The best food source is memorized by the bee • bee.SendEmployedBees(): In this function an artificially employed bee generates a random solution that is a mutant of the original solution.
  • 20. • The formula for producing a candidate solution from the existing is described below: where k: {1,2,….. Number of Employed Bees} j: {1,2,….D} are randomly chosen index D: Number of parameters to optimize k<> i : both are randomly chosen φi,j: random number [-1,+1] solution[param2change]=Foods[i][param2change]+(Foods[i][param2change]- Foods[neighbour][param2change])*(r-0.5)*2;
  • 21. • After each candidate source position vi,j is produced and then evaluated by the artificial bee, its performance is compared with that of xi,j. If the new food has equal or better nectar than the old source, it is replaced with the old one in the memory. Otherwise, the old one is retained. In other words, a greedy selection mechanism is employed as the selection operation between the old and the current food sources. • bee.CalculateProbabilities(): An onlooker bee chooses a food source depending on the probability value associatedwith that food source, pi, calculated by:
  • 22. • Bee.SendScoutBees(): The trial parameter is defined for those solutions that are exhausted and not changing. This function determines those food sources and abandons them
  • 24. Conclusion ABC algorithm in fact employs four different selection processes: • A global selection process used by the artificial onlooker bees for discovering promising regions as • A local selection process carried out in a region by the artificial employed bees and the onlookers depending on local information • A local selection process called greedy selection process carried out by all bees in that if the nectar amount of the candidate source is better than that of the present one, thebee forgets the present one and memorizes the candidate source. Otherwise the bee keeps the present one in the memory. • A random selection process carried out by scouts.
  • 25. References [1] E. Bonabeau, M. Dorigo, G. Theraulaz, “Swarm Intelligence: From Natural to Artificial Systems”, New York, NY: Oxford University Press, 1999. [2] D. Karaboga , B. Basturk “A powerful and efficient algorithm for numerical function optimization: artificial bee colony (ABC) algorithm, J Glob Optim (2007) 39:459–471 [3] D.Karaboga “An idea based on honey bee swarm for numerical optimization” TR-06, October 2005