SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
29/04/1434




             Bee Algorithm
             Direct Bee Colony Algorithm




1
29/04/1434




             Njoud Maitah   and Lila Bdour




                                             Copyright ©




2
29/04/1434




             The Goal


             • We will present an optimization algorithm
               that inspired by decision-making process of
               honey bees .




3
29/04/1434




                      Bee Algorithm




             Presented by : Njoud Maitah and Lila bdour




4
29/04/1434




                      Outline
             •Introduction
             •Bee in nature
             •Bee algorithm
             •Example
             •Applications




5
29/04/1434




         Introduction
             • Honeybee search for the best nest site
               between many sites with taking care of both
               speed and accuracy .
             • This analogues to finding the optimal solution
               (optimality) in an optimization process.




6
29/04/1434




             Bee in nature
             • The group decision making process used by
               bees for searching out the best food resources
               among various solutions is a robust example
               of swarm-based decision method.

             • This group decision-making process can be
               mimicked for finding out solutions of
               optimization problems.




7
29/04/1434




             Bee in nature cont..
             • Bee use a waggle dance to communicate
             • What is the waggle dance ?!
               It is a dance that performed by scout bees to
               inform other foraging bees about nectar site.
             • What are the scout and foraging ?!
             Scout bee : the navigator
                        Forging bee : the collector of food from




8
29/04/1434




             Bee in nature cont..
      • The waggle dance is showed in the following video .




9
‫4341/40/92‬




                    ‫?? ‪A moment of thinking‬‬
                               ‫بـســـم هللا الـرحـمـــن الـرحـيــــم‬
                   ‫" وأَوحى ربك إِلى النحل أَن اتخذِي مِنَ الجبال بيوتا ومِنَ‬
                       ‫ْ َِ ِ ُُ ً َ‬                   ‫َّ ْ ِ ِ َّ ِ‬     ‫َ ْ َ َ ُّ َ َ‬
                  ‫ُ َّ َ َ ِ َ ْ‬                  ‫ُ َّ ُ‬
             ‫الشجر ومما يعرشونَ (86) ثم كلِي مِنْ كلِّ الثمرات فاسلُكِي‬
                                                                     ‫َّ َ ِ َ ِ َّ َ ْ ِ ُ‬
               ‫سبلَ ربكِ ذلُال يخرج مِنْ بطونها شراب مختلِف أ َْلوانه فِيه‬
                ‫ُ ُ ِ َ ََ ٌ ُ َْ ٌ َ ُُ ِ‬                        ‫ُ ُ َ ِّ ُ َ ْ ُ ُ‬
                                      ‫َ َ َ ً َ ْ ٍ َ َ َ َّ ُ‬               ‫َ ٌ َّ ِ‬
                       ‫شِ فاء لِلناس إِنَّ فِي ذلِك آلية لِقوم يتفكرونَ (96) ”‬




‫01‬
29/04/1434




                Bee in nature >>
             • Waggle dance is a communication method used
               by bees to inform other bees about food
               resources and location of nest site .

             • Figure-eight running 8 .

             • Number of runs represents the distance .

             • The angle of run indicates the direction.




11
29/04/1434




                  Bee in nature >>
             • Waggle dance in decision-making

             • Waggle dance gives precise information about
               quality ,distance and direction of flower patch.




12
29/04/1434




                  Bee in nature >>
             • Decision 1 : Quiescent bees evaluate the patch
               and decide to recruit or explore for other
               patches. “decision”
              If the patch still good ,increase the number of
               foraging bees.




13
29/04/1434




                Bee in nature >>
             • Decision 2 : decide the number of bees
               recruited to the patch based on the quality.




14
29/04/1434




                  Bee in nature >>
             • Decision 3 : Nest-site selection.

             Two activity to reach to the decision :
             • Consensus : agreement among the group of
               quiescent.
             • Quorum : threshold value.




15
29/04/1434




                 Bee Algorithm (BA)
             • The Bees Algorithm is an optimisation
               algorithm inspired by the natural foraging
               behaviour of honey bees to find the
               optimal solution.




16
29/04/1434




                Bee Algorithm (BA)
             1. Initialise population with random solutions.
             2. Evaluate fitness of the population.
             3. While (stopping criterion not met)
                 //Forming new population.
             4. Select sites for neighbourhood search.
             5. Recruit bees for selected sites (more bees for
                     best e sites) and evaluate fitnesses.
             6. Select the fittest bee from each patch.
             7. Assign remaining bees to search randomly
                 and evaluate their fitnesses.
             8. End While.




17
29/04/1434




                                          Initialise a Population of n Scout Bees


                                          Evaluate the Fitness of the Population


                                         Select m Sites for Neighbourhood Search
             Neighbourhood Search




                                          Determine the Size of Neighbourhood
                                                    (Patch Size ngh)

                                             Recruit Bees for Selected Sites
                                            (more Bees for the Best e Sites)

                                           Select the Fittest Bee from Each Site


                                    Assign the (n–m) Remaining Bees to Random Search


                                              New Population of Scout Bees


                                          Flowchart of the Basic BA




18
29/04/1434




                    Simple Example: Function
                          Optimisation
             •   Here are a simple example about how Bee
                 algorithm works
             • The example explains the use of bee
               algorithm to get the best value representing
               a mathematical function (functional optimal)




19
29/04/1434




                         Simple Example
             • The following figure shows the mathematical
               function




20
29/04/1434




                           Simple Example
             • 1- The first step is to initiate the population
               with any 10 scout bees with random search
               and evaluate the fitness. (n=10)




21
29/04/1434




                               Simple Example

             y




                                                 *
                                      *                   *
                                          *                          *
                 *
         *           *                                     *                     *
                                                                                     x


                         Graph 1. Initialise a Population of (n=10) Scout Bees
                            with random Search and evaluate the fitness.




22
29/04/1434




             2- Population evaluation fitness:
             • An array of 10 values is constructed and
               ordered in ascending way from the highest
               value of y to the lowest value of y depending
               on the previous mathematical function




23
29/04/1434




             3- The best m site is chosen ( the best evaluation to
             m scout bee) from n
             m=5, e=2, m-e=3




24
29/04/1434




             y




                                                 e
                                                     ▪
                                         ▪                  ▫
                                                                       m


                                             ▫                          ▫
                 *
         *           *                                      *                    *
                                                                                      x


                         Graph 2. Select best (m=5) Sites for Neighbourhood Search:
                           (e=2) elite bees “▪” and (m-e=3) other selected bees“▫”




25
29/04/1434




             4- Select a neighborhood search site upon ngh size:


             y




                                                ▪
                                      ▪                 ▫
                                          ▫                       ▫

                                                                                    x



                    Graph 3. Determine the Size of Neighbourhood (Patch Size ngh)




26
29/04/1434




             •   5- recruits bees to the selected sites and
                 evaluate the fitness to the sites:
                  – Sending bees to e sites (rich sites) and m-e sites
                    (poor sites).
                  – More bees will be sent to the e site.
                          • n2 = 4   (rich)
                          • n1 = 2   (poor)




27
29/04/1434




                 **
                 **
             y                                                     **



                                           *
                            *
                                       ▪**
                             ▪
                             *
                              *
                                       *        *
                                                ▫*
                               *

                                 ▫
                                *

                                                           ▫
                                                               *

                                 *                       *


                                                                        x


                      Graph 4. Recruit Bees for Selected Sites
                        (more Bees for the e=2 Elite Sites)




28
29/04/1434




             6- Select the best bee from each location (higher
             fitness) to form the new bees population.
             Choosing the best bee from every m site as follow:




29
29/04/1434




                       Simple Example

              y




                                           *
                            *          ▪*
                                       *
                             ▪
                             *
                              *
                                       *        *
                                                ▫
                                                *
                               *
                                *
                                 ▫                         ▫
                                                               *

                                 *                       *


                                                                     x



                  Graph 5. Select the Fittest Bee * from Each Site


             30




30
29/04/1434




                               Simple Example
         7- initializes a new population:
                  Taking the old values (5) and assigning random values
                   (5) to the remaining values n-m




             31




31
29/04/1434




                                 Simple Example

              y


                                                               e

                                                 *     o
                                     *                  *
                                                               m
                  o                      *                          *      o
                         o
                                             o
                                                                                  x



                      Graph 6. Assign the (n–m) Remaining Bees to Random Search


             32




32
29/04/1434




                               Simple Example
         8- the loop counter will be reduced and the steps
             from two to seven will be repeated until reaching
             the stopping condition (ending the number of
             repetitions imax)
         •        At the end we reach the best solution as shown in
                  the following figure
                   • This best value (best bees from m) will represent
                     the optimum answer to the mathematical function



             33




33
29/04/1434




                 Simple Example

             y
                                     *

                                         *
                                 *
                                *        *




                                                       x



                 Graph 7. Find The Global Best point




34
29/04/1434




                          BA- Applications
             Function Optimisation
             BA for TSP
             Training NN classifiers like MLP, LVQ, RBF and
             SNNs
                Control Chart Pattern Recognitions
                Wood Defect Classification
                ECG Classification
             Electronic Design




35
29/04/1434




              Honeybee foraging algorithm for load
                 balancing in cloud computing

             • Servers are bees
             • Web applications are flower patches
             • And an advert board is used to simulate a waggle
               dance.
             • Each server is either a forager or a scout
             • The advert board is where servers, successfully
               fulfilling a request or may place adverts




36
29/04/1434




             Flow chart of Honeybee Foraging Algorithm in load
                      balancing for cloud computing




37

Weitere ähnliche Inhalte

Was ist angesagt?

Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACOMohamed Talaat
 
Cuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt KölemenCuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt KölemenBeyazıt Kölemen
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationvk1dadhich
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationMeenakshi Devi
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimizationAhmed Fouad Ali
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligenceEslam Hamed
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithmAhmed Fouad Ali
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony OptimizationPratik Poddar
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSOMohamed Talaat
 
Cuckoo search final
Cuckoo search finalCuckoo search final
Cuckoo search finalNepalAdz
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationJoy Dutta
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimizationmidhulavijayan
 
Computational intelligence an introduction
Computational intelligence an introductionComputational intelligence an introduction
Computational intelligence an introductionCairo University
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceSahil Kumar
 

Was ist angesagt? (20)

Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Ant Colony Optimization - ACO
Ant Colony Optimization - ACOAnt Colony Optimization - ACO
Ant Colony Optimization - ACO
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)
 
Cuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt KölemenCuckoo Search Algorithm - Beyazıt Kölemen
Cuckoo Search Algorithm - Beyazıt Kölemen
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
 
Ant Colony Optimization
Ant Colony OptimizationAnt Colony Optimization
Ant Colony Optimization
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Cuckoo search final
Cuckoo search finalCuckoo search final
Cuckoo search final
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
 
Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Particle Swarm optimization
Particle Swarm optimizationParticle Swarm optimization
Particle Swarm optimization
 
Computational intelligence an introduction
Computational intelligence an introductionComputational intelligence an introduction
Computational intelligence an introduction
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Genetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial IntelligenceGenetic Algorithms - Artificial Intelligence
Genetic Algorithms - Artificial Intelligence
 

Kürzlich hochgeladen

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Kürzlich hochgeladen (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Bee algorithm

  • 1. 29/04/1434 Bee Algorithm Direct Bee Colony Algorithm 1
  • 2. 29/04/1434 Njoud Maitah and Lila Bdour Copyright © 2
  • 3. 29/04/1434 The Goal • We will present an optimization algorithm that inspired by decision-making process of honey bees . 3
  • 4. 29/04/1434 Bee Algorithm Presented by : Njoud Maitah and Lila bdour 4
  • 5. 29/04/1434 Outline •Introduction •Bee in nature •Bee algorithm •Example •Applications 5
  • 6. 29/04/1434 Introduction • Honeybee search for the best nest site between many sites with taking care of both speed and accuracy . • This analogues to finding the optimal solution (optimality) in an optimization process. 6
  • 7. 29/04/1434 Bee in nature • The group decision making process used by bees for searching out the best food resources among various solutions is a robust example of swarm-based decision method. • This group decision-making process can be mimicked for finding out solutions of optimization problems. 7
  • 8. 29/04/1434 Bee in nature cont.. • Bee use a waggle dance to communicate • What is the waggle dance ?! It is a dance that performed by scout bees to inform other foraging bees about nectar site. • What are the scout and foraging ?! Scout bee : the navigator Forging bee : the collector of food from 8
  • 9. 29/04/1434 Bee in nature cont.. • The waggle dance is showed in the following video . 9
  • 10. ‫4341/40/92‬ ‫?? ‪A moment of thinking‬‬ ‫بـســـم هللا الـرحـمـــن الـرحـيــــم‬ ‫" وأَوحى ربك إِلى النحل أَن اتخذِي مِنَ الجبال بيوتا ومِنَ‬ ‫ْ َِ ِ ُُ ً َ‬ ‫َّ ْ ِ ِ َّ ِ‬ ‫َ ْ َ َ ُّ َ َ‬ ‫ُ َّ َ َ ِ َ ْ‬ ‫ُ َّ ُ‬ ‫الشجر ومما يعرشونَ (86) ثم كلِي مِنْ كلِّ الثمرات فاسلُكِي‬ ‫َّ َ ِ َ ِ َّ َ ْ ِ ُ‬ ‫سبلَ ربكِ ذلُال يخرج مِنْ بطونها شراب مختلِف أ َْلوانه فِيه‬ ‫ُ ُ ِ َ ََ ٌ ُ َْ ٌ َ ُُ ِ‬ ‫ُ ُ َ ِّ ُ َ ْ ُ ُ‬ ‫َ َ َ ً َ ْ ٍ َ َ َ َّ ُ‬ ‫َ ٌ َّ ِ‬ ‫شِ فاء لِلناس إِنَّ فِي ذلِك آلية لِقوم يتفكرونَ (96) ”‬ ‫01‬
  • 11. 29/04/1434 Bee in nature >> • Waggle dance is a communication method used by bees to inform other bees about food resources and location of nest site . • Figure-eight running 8 . • Number of runs represents the distance . • The angle of run indicates the direction. 11
  • 12. 29/04/1434 Bee in nature >> • Waggle dance in decision-making • Waggle dance gives precise information about quality ,distance and direction of flower patch. 12
  • 13. 29/04/1434 Bee in nature >> • Decision 1 : Quiescent bees evaluate the patch and decide to recruit or explore for other patches. “decision”  If the patch still good ,increase the number of foraging bees. 13
  • 14. 29/04/1434 Bee in nature >> • Decision 2 : decide the number of bees recruited to the patch based on the quality. 14
  • 15. 29/04/1434 Bee in nature >> • Decision 3 : Nest-site selection. Two activity to reach to the decision : • Consensus : agreement among the group of quiescent. • Quorum : threshold value. 15
  • 16. 29/04/1434 Bee Algorithm (BA) • The Bees Algorithm is an optimisation algorithm inspired by the natural foraging behaviour of honey bees to find the optimal solution. 16
  • 17. 29/04/1434 Bee Algorithm (BA) 1. Initialise population with random solutions. 2. Evaluate fitness of the population. 3. While (stopping criterion not met) //Forming new population. 4. Select sites for neighbourhood search. 5. Recruit bees for selected sites (more bees for best e sites) and evaluate fitnesses. 6. Select the fittest bee from each patch. 7. Assign remaining bees to search randomly and evaluate their fitnesses. 8. End While. 17
  • 18. 29/04/1434 Initialise a Population of n Scout Bees Evaluate the Fitness of the Population Select m Sites for Neighbourhood Search Neighbourhood Search Determine the Size of Neighbourhood (Patch Size ngh) Recruit Bees for Selected Sites (more Bees for the Best e Sites) Select the Fittest Bee from Each Site Assign the (n–m) Remaining Bees to Random Search New Population of Scout Bees Flowchart of the Basic BA 18
  • 19. 29/04/1434 Simple Example: Function Optimisation • Here are a simple example about how Bee algorithm works • The example explains the use of bee algorithm to get the best value representing a mathematical function (functional optimal) 19
  • 20. 29/04/1434 Simple Example • The following figure shows the mathematical function 20
  • 21. 29/04/1434 Simple Example • 1- The first step is to initiate the population with any 10 scout bees with random search and evaluate the fitness. (n=10) 21
  • 22. 29/04/1434 Simple Example y * * * * * * * * * * x Graph 1. Initialise a Population of (n=10) Scout Bees with random Search and evaluate the fitness. 22
  • 23. 29/04/1434 2- Population evaluation fitness: • An array of 10 values is constructed and ordered in ascending way from the highest value of y to the lowest value of y depending on the previous mathematical function 23
  • 24. 29/04/1434 3- The best m site is chosen ( the best evaluation to m scout bee) from n m=5, e=2, m-e=3 24
  • 25. 29/04/1434 y e ▪ ▪ ▫ m ▫ ▫ * * * * * x Graph 2. Select best (m=5) Sites for Neighbourhood Search: (e=2) elite bees “▪” and (m-e=3) other selected bees“▫” 25
  • 26. 29/04/1434 4- Select a neighborhood search site upon ngh size: y ▪ ▪ ▫ ▫ ▫ x Graph 3. Determine the Size of Neighbourhood (Patch Size ngh) 26
  • 27. 29/04/1434 • 5- recruits bees to the selected sites and evaluate the fitness to the sites: – Sending bees to e sites (rich sites) and m-e sites (poor sites). – More bees will be sent to the e site. • n2 = 4 (rich) • n1 = 2 (poor) 27
  • 28. 29/04/1434 ** ** y ** * * ▪** ▪ * * * * ▫* * ▫ * ▫ * * * x Graph 4. Recruit Bees for Selected Sites (more Bees for the e=2 Elite Sites) 28
  • 29. 29/04/1434 6- Select the best bee from each location (higher fitness) to form the new bees population. Choosing the best bee from every m site as follow: 29
  • 30. 29/04/1434 Simple Example y * * ▪* * ▪ * * * * ▫ * * * ▫ ▫ * * * x Graph 5. Select the Fittest Bee * from Each Site 30 30
  • 31. 29/04/1434 Simple Example 7- initializes a new population: Taking the old values (5) and assigning random values (5) to the remaining values n-m 31 31
  • 32. 29/04/1434 Simple Example y e * o * * m o * * o o o x Graph 6. Assign the (n–m) Remaining Bees to Random Search 32 32
  • 33. 29/04/1434 Simple Example 8- the loop counter will be reduced and the steps from two to seven will be repeated until reaching the stopping condition (ending the number of repetitions imax) • At the end we reach the best solution as shown in the following figure • This best value (best bees from m) will represent the optimum answer to the mathematical function 33 33
  • 34. 29/04/1434 Simple Example y * * * * * x Graph 7. Find The Global Best point 34
  • 35. 29/04/1434 BA- Applications Function Optimisation BA for TSP Training NN classifiers like MLP, LVQ, RBF and SNNs Control Chart Pattern Recognitions Wood Defect Classification ECG Classification Electronic Design 35
  • 36. 29/04/1434 Honeybee foraging algorithm for load balancing in cloud computing • Servers are bees • Web applications are flower patches • And an advert board is used to simulate a waggle dance. • Each server is either a forager or a scout • The advert board is where servers, successfully fulfilling a request or may place adverts 36
  • 37. 29/04/1434 Flow chart of Honeybee Foraging Algorithm in load balancing for cloud computing 37