SlideShare a Scribd company logo
Ant Colony Optimization (ACO)
Firefly Algorithm
Modified Firefly Algorithm
BAT Algorithm
Artificial Bee Colony (ABC)
Presented by
Dr. C.Gokul,AP(Sl.Gr)/EEE
Velalar College of Engg & Tech , Erode
Metaheuristic Methods
• Ant Colony Optimization (ACO)
• Modified Ant Colony Optimization (MACO)
• Firefly Algorithm
• Modified Firefly Algorithm
• BAT Algorithm
• Artificial Bee Colony (ABC)
• Modified Artificial Bee Colony (MABC)
Ant Colony Optimization (ACO)
• ACO is inspired by the behavior of real ants
• Ants find shortest path from their nest to the food
• Pheromone: Ant excrete a hormone
• Ants find a shortest path due to pheromone trails left by ants
from their nest to the food and back
ACO Rules
• Pheromone Trail τ𝑖𝑗 - Degree of favorability
• ACO combines pheromone information with heuristic values
to find solutions
• Pheromone trail Update
𝜌 −Evaporation factor (determines the pheromone speed)
𝛥𝜏 −Amount of pheromone deposited by the ant
𝛾 −Waiting number until global best ant solution used again
𝜏𝑖𝑗 = 𝜌. 𝜏𝑖𝑗 + 𝛥𝜏
• Ant density model: Pheromone trail quantity left by ant
through their paths is constant.
probij - Probability of ant
τij - Pheromone trail
β - Parameter used to enhance the heuristic value.
𝑝𝑟𝑜𝑏𝑖𝑗 =
𝜏𝑖𝑗 𝛽
෍
j=1
𝑤
𝜏𝑖𝑗 𝛽
Ant Colony Optimization (MACO)
ACO based Test Scheduling Procedure
• Compute heuristic information (wprefer)
• Set ACO parameters
• Initialize pheromone trails
• While (result unsatisfied)
While ( )
While ( )
{
Ant exploration process
}
Find Iteration best ant solution
Find Global best ant solution
𝑁𝑖𝑏∠𝛾
𝑖∠𝑁𝑐𝑜𝑙𝑜𝑛𝑦
Firefly Algorithm
• Firefly Algorithm is inspired by the behavior of fireflies
• Firefly movement contains two elements:
➢ Approach to better solutions
➢ Move randomly
• Main assumptions:
➢All fireflies are unisex
➢Brightness is determined by objective function
𝐴𝑡𝑡𝑟𝑎𝑐𝑡𝑖𝑣𝑒𝑛𝑒𝑠𝑠 𝛼 𝐵𝑟𝑖𝑔ℎ𝑡𝑛𝑒𝑠𝑠,
𝐴𝑡𝑡𝑟𝑎𝑐𝑡𝑖𝑣𝑒𝑛𝑒𝑠𝑠 𝛼
1
𝐷𝑖𝑠𝑡𝑎𝑛𝑐𝑒
Distance, Attractiveness and Movement
• Distance between i and j fireflies at 𝑥𝑖and 𝑥𝑗
Cartesian distance 𝑟𝑖𝑗 = || 𝑥𝑖 – 𝑥𝑗||
• Attractiveness 𝛽 varies with distance between two fireflies
[𝛽0=1, 𝛾=1]
• Firefly movement
𝑥𝑖 = 𝑥𝑖 + 𝛽 (𝑥𝑗 − 𝑥𝑖) + α(rand-0.5)
For scheduling: Random number (rand)= 0.2, Randomization
parameter (α)=0.3
𝛽 = 𝛽0 𝑒−𝛾𝑟2
Yes
No
No
Define absorption coefficient γ
Formulate light intensity I [I=f(x)]
Initialize Fireflies parameters, initial population Xi, where i =1,
2…n
Increment Gen by 1
For i = 1: n
For j = 1: n
f (Xj) > f (Xi)
Move firefly i towards firefly j
Best solution obtained
Terminate Process
Gen >
maxGen
Yes
Evaluate new solutions
Flow chart for Firefly Algorithm
Modified Firefly Algorithm
• Drawbacks of Firefly algorithm
➢Update of firefly movement is not faster
➢Direction of the fireflies movement depends on α
➢α is high for fireflies which are spread in large search
space region
➢For better locations, less randomness is beneficial
• Modified Firefly algorithm
➢α should be high initially and then decreases
➢Fireflies are encouraged to move in all directions of search
space initially and then converge in later stages
➢Fireflies should cover the maximum predefined area
➢Increases the speed of movement
Firefly Movement Update
• Firefly movement
𝑥𝑖 = 𝑥𝑖 + 𝛽 (𝑥𝑗 − 𝑥𝑖) + (rand-0.5)
where
• Firefly i attracted to the best solution if no local best solution
existed in the neighbourhood
𝛼 𝑢𝑝𝑑𝑎𝑡𝑒
൯𝛼 𝑢𝑝𝑑𝑎𝑡𝑒 = 𝛼 + 𝜆(𝑥𝑖 − 𝑔 𝑏𝑒𝑠𝑡
Yes
No
No
Define absorption coefficient γ
Formulate light intensity I [I=f(x)]
Initialize Fireflies parameters, initial population Xi, where i =1,
2…n
Increment Gen by 1
For i = 1: n
For j = 1: n
f (Xj) > f (Xi)
Best solution obtained
Terminate Process
Gen >
maxGen
Yes
Update Distance, Movement by updating the value of α
Evaluate new solutions
Move firefly i towards firefly j
Flow chart for Modified Firefly Algorithm
BAT Algorithm
• BAT Algorithm is based on echo location behaviour of bats
• Bat emit signals (with frequency ‘f’) to locate prey. This
signals bounce back if they hit an object.
• Eco signals are used to calculate the distance
• After hitting and reflecting, the bats transform their own pulse
into useful information to explore how far away the prey is.
• Rate of pulse emission r[0,1]
– 0 means there is no emission
– 1 means Bat emission is maximum
BAT Algorithm Rules
• All bats use echolocation to sense distance and they know the
difference between food/prey
• Bats fly randomly with
– Velocity vi
– Position xi
– with a fixed frequency fmin
– varying wavelength λ
– Loudness A0 to search the prey
• Loudness varies from positive large value 𝐴0 to minimum
value 𝐴 𝑚𝑖𝑛.
Bat Motion
• 𝑓𝑖 = 𝑓 𝑚𝑖𝑛 + 𝑓𝑚𝑎𝑥 − 𝑓 𝑚𝑖𝑛 𝛽
𝑓 𝑚𝑖𝑛 =1 kHz, 𝑓𝑚𝑎𝑥 = 90 kHz, 𝛽𝜖 (0, 1)
• 𝑣𝑖
𝑡
= 𝑣𝑖
𝑡−1
+ 𝑥𝑖
𝑡
− 𝑥∗ 𝑓𝑖
𝑥∗ − Current best location
• 𝑥𝑖
𝑡
= 𝑥𝑖
𝑡−1
+ 𝑣𝑖
𝑡
𝑡 − Number of iterations
BAT Algorithm Pseudocode
• Initialize bat population, position, velocity and frequency
• Initialize pulse rates , loudness
• while(t <Max iterations)
Generate new solutions by adjusting frequency, updating
velocity and location
➢ if ( rand > ri )
Select a solution among the best solutions
Generate a local solution from selected best solution
end if
𝑟𝑖 𝐴𝑖
BAT Algorithm Pseudocode
Generate new solutions by flying randomly
➢ if (test the fitness of new solution w.r.to r and A)
Accept the new solutions
Increase pulse rate , loudness
end if
Rank the bats and find the current best 𝑥∗
end while
𝑟𝑖 𝐴𝑖
Artificial Bee Colony (ABC) Algorithm
• ABC is based on the intelligent behavior of bees when they
search for honey
• Three essential components
– Food Source
– Employed Bees
– Unemployed Bees
• Two modes of behavior
– Recruitment to a food source
– Neglect of a source
• Bees can memorize, share, communicate and store the
information based on which decisions can be made
Bees evaluate the different path according to
• Quality of food
• Amount of energy usage
Agents in ABC:
• Employed Bee: They carry information about food source and
share with the neighborhood.
• Onlooker Bee: Wait in their nest and select a food source
through the information shared by employed bees.
• Scout: Responsible for finding new food, the new nectar
sources
Artificial Bee Colony (ABC) Algorithm
• Initiates the foraging in the neighborhood
• Employed bee produces new trial food position vi around xi
where 𝑥𝑖 - current food source position,
j ε { 1,2, …., D},
k ε { 1,2, …., SN} are randomly picked indices,
D - Number of search dimensions,
SN - Number of employed bees,
𝜑𝑖𝑗 - Uniform random value from [-1,1]
Employed Bee Stage
൯𝑣𝑖𝑗 = 𝑥𝑖𝑗 + 𝜑𝑖𝑗(𝑥 𝑘𝑗 − 𝑥𝑖𝑗
• In this phase employed bees share the fitness information
about updated solutions and information about their position
• Probability Pi that the employed bee with food source xi
would be picked by an onlooker bee is
Onlooker Bee Stage
𝑃𝑖 =
)𝑓𝑖𝑡(𝑥𝑖
෌ 𝑛=1
𝑆 𝑁
)𝑓𝑖𝑡(𝑥 𝑛
• In this phase the neglected food source associated bee becomes
a scout bee
• The randomly chosen food source replaces the food source
within the search space.
• The scout bee replaces the abandoned food source xi with new
food source xi as
𝑥𝑖
𝑗
= 𝑥 𝑚𝑖𝑛
𝑗
+ 𝑟𝑎𝑛𝑑 0,1 𝑥 𝑚𝑎𝑥
𝑗
− 𝑥 𝑚𝑖𝑛
𝑗
𝑥 𝑚𝑖𝑛
𝑗
and 𝑥 𝑚𝑎𝑥
𝑗
are bounds of 𝑥𝑖 in 𝑗th direction.
Scout Bee Phase
STEP 1: Initialization of nectar sources
STEP 2: Search for new nectar sources
STEP 3: Probability for the scouter to select employed foragers
STEP 4: Production of scouter
STEP 5: Production of new solution
STEP 6: Replace the original solution
STEP 7: Neglect a solution and replace it with new one
STEP 8: The best solution ever is recorded.
STEP 9: Termination
ABC Procedure

More Related Content

PPTX
Optimization and particle swarm optimization (O & PSO)
PPT
Ant colony optimization
PPTX
Particle swarm optimization
PDF
Metaheuristic Algorithms: A Critical Analysis
PPT
Robot motion planning
PPTX
Dh parameters robotics
PDF
Ant colony optimization
PPTX
Ant colony optimization (aco)
Optimization and particle swarm optimization (O & PSO)
Ant colony optimization
Particle swarm optimization
Metaheuristic Algorithms: A Critical Analysis
Robot motion planning
Dh parameters robotics
Ant colony optimization
Ant colony optimization (aco)

What's hot (20)

PDF
강화학습 해부학 교실: Rainbow 이론부터 구현까지 (2nd dlcat in Daejeon)
PPTX
Reinforcement Learning : A Beginners Tutorial
PPTX
Sliding Mode Controller
PPTX
Robotics of Quadruped Robot
PPSX
Particle Swarm optimization
PDF
An introduction to Autonomous mobile robots
PPT
Kalman filter
PDF
Solution to Inverse Kinematics
PDF
Particle Swarm Optimization Matlab code Using 50, 5000 Swarms
PDF
Machine Learning Algorithm - Logistic Regression
PPSX
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
PPT
Ant colony optimization
PDF
Heuristic search-in-artificial-intelligence
PPT
Cuckoo search final
PDF
Motion Planning
PPTX
Sliding mode control
PDF
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
PDF
Robotics Representing Position & Orientation 1
PPTX
Design issues in non linear control system
PPTX
Cuckoo Search & Firefly Algorithms
강화학습 해부학 교실: Rainbow 이론부터 구현까지 (2nd dlcat in Daejeon)
Reinforcement Learning : A Beginners Tutorial
Sliding Mode Controller
Robotics of Quadruped Robot
Particle Swarm optimization
An introduction to Autonomous mobile robots
Kalman filter
Solution to Inverse Kinematics
Particle Swarm Optimization Matlab code Using 50, 5000 Swarms
Machine Learning Algorithm - Logistic Regression
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Ant colony optimization
Heuristic search-in-artificial-intelligence
Cuckoo search final
Motion Planning
Sliding mode control
딥러닝과 강화 학습으로 나보다 잘하는 쿠키런 AI 구현하기 DEVIEW 2016
Robotics Representing Position & Orientation 1
Design issues in non linear control system
Cuckoo Search & Firefly Algorithms
Ad

Similar to ACO, Firefly, Modified Firefly, BAT, ABC algorithms (20)

PPTX
Whale optimizatio algorithm
PPTX
whaleoptimizatioalgorithm-161008153549.pptx
PPTX
PSO-ACO-Presentation.pptx
PPTX
B-PSO-ACO-Presentation .pptx
PDF
PDF
Enhanced abc algo for tsp
PPTX
Ant colony optimization
PPTX
11-Optimization algorithm with swarm.pptx
PPTX
Artificial Bee Colony (ABC) (Swarm Intelligence)
PPTX
Bat Algorithm
PPTX
Bee algorithm
PPT
53564379-Ant-Colony-Optimization.ppt
PPTX
ABC Algorithm.
PPT
PPT
Particle Swarm Optimization - PSO
PPTX
Particle Swarm Optimization
PDF
Comparative study of_hybrids_of_artificial_bee_colony_algorithm
PPTX
seminar HBMO
PDF
Swarm intelligence and particle swarm optimization
PDF
Swarm intelligence and particle swarm optimization
Whale optimizatio algorithm
whaleoptimizatioalgorithm-161008153549.pptx
PSO-ACO-Presentation.pptx
B-PSO-ACO-Presentation .pptx
Enhanced abc algo for tsp
Ant colony optimization
11-Optimization algorithm with swarm.pptx
Artificial Bee Colony (ABC) (Swarm Intelligence)
Bat Algorithm
Bee algorithm
53564379-Ant-Colony-Optimization.ppt
ABC Algorithm.
Particle Swarm Optimization - PSO
Particle Swarm Optimization
Comparative study of_hybrids_of_artificial_bee_colony_algorithm
seminar HBMO
Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
Ad

More from Velalar College of Engineering and Technology (18)

PDF
Electric Energy Generation, Utilization and Conservation PROBLEMS
PDF
EE6711 Power System Simulation Lab manual
PDF
EE6702 Protection and Switchgear notes R2013
PDF
Electrical machine Design problems with solutions
PDF
Design of Electrical Machines Problems & Solutions
PDF
PDF
Electrical machines 2 AC Machines
PDF
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
PDF
EE6502 Microprocessor & Microcontroller Regulation 2013
PDF
EE2356 Microprocessor and Microcontroller Lab Manuel
PPT
DOCX
Instruction set of 8086 Microprocessor
PPT
Timing diagram 8085 microprocessor
DOCX
Microprocessor interview questions
Electric Energy Generation, Utilization and Conservation PROBLEMS
EE6711 Power System Simulation Lab manual
EE6702 Protection and Switchgear notes R2013
Electrical machine Design problems with solutions
Design of Electrical Machines Problems & Solutions
Electrical machines 2 AC Machines
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
EE6502 Microprocessor & Microcontroller Regulation 2013
EE2356 Microprocessor and Microcontroller Lab Manuel
Instruction set of 8086 Microprocessor
Timing diagram 8085 microprocessor
Microprocessor interview questions

Recently uploaded (20)

PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
PPT on Performance Review to get promotions
PPTX
Artificial Intelligence
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Well-logging-methods_new................
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
Sustainable Sites - Green Building Construction
PPTX
additive manufacturing of ss316l using mig welding
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT on Performance Review to get promotions
Artificial Intelligence
CYBER-CRIMES AND SECURITY A guide to understanding
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
UNIT 4 Total Quality Management .pptx
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Well-logging-methods_new................
III.4.1.2_The_Space_Environment.p pdffdf
Sustainable Sites - Green Building Construction
additive manufacturing of ss316l using mig welding
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Fundamentals of Mechanical Engineering.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Foundation to blockchain - A guide to Blockchain Tech

ACO, Firefly, Modified Firefly, BAT, ABC algorithms

  • 1. Ant Colony Optimization (ACO) Firefly Algorithm Modified Firefly Algorithm BAT Algorithm Artificial Bee Colony (ABC) Presented by Dr. C.Gokul,AP(Sl.Gr)/EEE Velalar College of Engg & Tech , Erode
  • 2. Metaheuristic Methods • Ant Colony Optimization (ACO) • Modified Ant Colony Optimization (MACO) • Firefly Algorithm • Modified Firefly Algorithm • BAT Algorithm • Artificial Bee Colony (ABC) • Modified Artificial Bee Colony (MABC)
  • 3. Ant Colony Optimization (ACO) • ACO is inspired by the behavior of real ants • Ants find shortest path from their nest to the food • Pheromone: Ant excrete a hormone • Ants find a shortest path due to pheromone trails left by ants from their nest to the food and back
  • 4. ACO Rules • Pheromone Trail τ𝑖𝑗 - Degree of favorability • ACO combines pheromone information with heuristic values to find solutions • Pheromone trail Update 𝜌 −Evaporation factor (determines the pheromone speed) 𝛥𝜏 −Amount of pheromone deposited by the ant 𝛾 −Waiting number until global best ant solution used again 𝜏𝑖𝑗 = 𝜌. 𝜏𝑖𝑗 + 𝛥𝜏
  • 5. • Ant density model: Pheromone trail quantity left by ant through their paths is constant. probij - Probability of ant τij - Pheromone trail β - Parameter used to enhance the heuristic value. 𝑝𝑟𝑜𝑏𝑖𝑗 = 𝜏𝑖𝑗 𝛽 ෍ j=1 𝑤 𝜏𝑖𝑗 𝛽 Ant Colony Optimization (MACO)
  • 6. ACO based Test Scheduling Procedure • Compute heuristic information (wprefer) • Set ACO parameters • Initialize pheromone trails • While (result unsatisfied) While ( ) While ( ) { Ant exploration process } Find Iteration best ant solution Find Global best ant solution 𝑁𝑖𝑏∠𝛾 𝑖∠𝑁𝑐𝑜𝑙𝑜𝑛𝑦
  • 7. Firefly Algorithm • Firefly Algorithm is inspired by the behavior of fireflies • Firefly movement contains two elements: ➢ Approach to better solutions ➢ Move randomly • Main assumptions: ➢All fireflies are unisex ➢Brightness is determined by objective function 𝐴𝑡𝑡𝑟𝑎𝑐𝑡𝑖𝑣𝑒𝑛𝑒𝑠𝑠 𝛼 𝐵𝑟𝑖𝑔ℎ𝑡𝑛𝑒𝑠𝑠, 𝐴𝑡𝑡𝑟𝑎𝑐𝑡𝑖𝑣𝑒𝑛𝑒𝑠𝑠 𝛼 1 𝐷𝑖𝑠𝑡𝑎𝑛𝑐𝑒
  • 8. Distance, Attractiveness and Movement • Distance between i and j fireflies at 𝑥𝑖and 𝑥𝑗 Cartesian distance 𝑟𝑖𝑗 = || 𝑥𝑖 – 𝑥𝑗|| • Attractiveness 𝛽 varies with distance between two fireflies [𝛽0=1, 𝛾=1] • Firefly movement 𝑥𝑖 = 𝑥𝑖 + 𝛽 (𝑥𝑗 − 𝑥𝑖) + α(rand-0.5) For scheduling: Random number (rand)= 0.2, Randomization parameter (α)=0.3 𝛽 = 𝛽0 𝑒−𝛾𝑟2
  • 9. Yes No No Define absorption coefficient γ Formulate light intensity I [I=f(x)] Initialize Fireflies parameters, initial population Xi, where i =1, 2…n Increment Gen by 1 For i = 1: n For j = 1: n f (Xj) > f (Xi) Move firefly i towards firefly j Best solution obtained Terminate Process Gen > maxGen Yes Evaluate new solutions Flow chart for Firefly Algorithm
  • 10. Modified Firefly Algorithm • Drawbacks of Firefly algorithm ➢Update of firefly movement is not faster ➢Direction of the fireflies movement depends on α ➢α is high for fireflies which are spread in large search space region ➢For better locations, less randomness is beneficial • Modified Firefly algorithm ➢α should be high initially and then decreases ➢Fireflies are encouraged to move in all directions of search space initially and then converge in later stages ➢Fireflies should cover the maximum predefined area ➢Increases the speed of movement
  • 11. Firefly Movement Update • Firefly movement 𝑥𝑖 = 𝑥𝑖 + 𝛽 (𝑥𝑗 − 𝑥𝑖) + (rand-0.5) where • Firefly i attracted to the best solution if no local best solution existed in the neighbourhood 𝛼 𝑢𝑝𝑑𝑎𝑡𝑒 ൯𝛼 𝑢𝑝𝑑𝑎𝑡𝑒 = 𝛼 + 𝜆(𝑥𝑖 − 𝑔 𝑏𝑒𝑠𝑡
  • 12. Yes No No Define absorption coefficient γ Formulate light intensity I [I=f(x)] Initialize Fireflies parameters, initial population Xi, where i =1, 2…n Increment Gen by 1 For i = 1: n For j = 1: n f (Xj) > f (Xi) Best solution obtained Terminate Process Gen > maxGen Yes Update Distance, Movement by updating the value of α Evaluate new solutions Move firefly i towards firefly j Flow chart for Modified Firefly Algorithm
  • 13. BAT Algorithm • BAT Algorithm is based on echo location behaviour of bats • Bat emit signals (with frequency ‘f’) to locate prey. This signals bounce back if they hit an object. • Eco signals are used to calculate the distance • After hitting and reflecting, the bats transform their own pulse into useful information to explore how far away the prey is. • Rate of pulse emission r[0,1] – 0 means there is no emission – 1 means Bat emission is maximum
  • 14. BAT Algorithm Rules • All bats use echolocation to sense distance and they know the difference between food/prey • Bats fly randomly with – Velocity vi – Position xi – with a fixed frequency fmin – varying wavelength λ – Loudness A0 to search the prey • Loudness varies from positive large value 𝐴0 to minimum value 𝐴 𝑚𝑖𝑛.
  • 15. Bat Motion • 𝑓𝑖 = 𝑓 𝑚𝑖𝑛 + 𝑓𝑚𝑎𝑥 − 𝑓 𝑚𝑖𝑛 𝛽 𝑓 𝑚𝑖𝑛 =1 kHz, 𝑓𝑚𝑎𝑥 = 90 kHz, 𝛽𝜖 (0, 1) • 𝑣𝑖 𝑡 = 𝑣𝑖 𝑡−1 + 𝑥𝑖 𝑡 − 𝑥∗ 𝑓𝑖 𝑥∗ − Current best location • 𝑥𝑖 𝑡 = 𝑥𝑖 𝑡−1 + 𝑣𝑖 𝑡 𝑡 − Number of iterations
  • 16. BAT Algorithm Pseudocode • Initialize bat population, position, velocity and frequency • Initialize pulse rates , loudness • while(t <Max iterations) Generate new solutions by adjusting frequency, updating velocity and location ➢ if ( rand > ri ) Select a solution among the best solutions Generate a local solution from selected best solution end if 𝑟𝑖 𝐴𝑖
  • 17. BAT Algorithm Pseudocode Generate new solutions by flying randomly ➢ if (test the fitness of new solution w.r.to r and A) Accept the new solutions Increase pulse rate , loudness end if Rank the bats and find the current best 𝑥∗ end while 𝑟𝑖 𝐴𝑖
  • 18. Artificial Bee Colony (ABC) Algorithm • ABC is based on the intelligent behavior of bees when they search for honey • Three essential components – Food Source – Employed Bees – Unemployed Bees • Two modes of behavior – Recruitment to a food source – Neglect of a source • Bees can memorize, share, communicate and store the information based on which decisions can be made
  • 19. Bees evaluate the different path according to • Quality of food • Amount of energy usage Agents in ABC: • Employed Bee: They carry information about food source and share with the neighborhood. • Onlooker Bee: Wait in their nest and select a food source through the information shared by employed bees. • Scout: Responsible for finding new food, the new nectar sources Artificial Bee Colony (ABC) Algorithm
  • 20. • Initiates the foraging in the neighborhood • Employed bee produces new trial food position vi around xi where 𝑥𝑖 - current food source position, j ε { 1,2, …., D}, k ε { 1,2, …., SN} are randomly picked indices, D - Number of search dimensions, SN - Number of employed bees, 𝜑𝑖𝑗 - Uniform random value from [-1,1] Employed Bee Stage ൯𝑣𝑖𝑗 = 𝑥𝑖𝑗 + 𝜑𝑖𝑗(𝑥 𝑘𝑗 − 𝑥𝑖𝑗
  • 21. • In this phase employed bees share the fitness information about updated solutions and information about their position • Probability Pi that the employed bee with food source xi would be picked by an onlooker bee is Onlooker Bee Stage 𝑃𝑖 = )𝑓𝑖𝑡(𝑥𝑖 ෌ 𝑛=1 𝑆 𝑁 )𝑓𝑖𝑡(𝑥 𝑛
  • 22. • In this phase the neglected food source associated bee becomes a scout bee • The randomly chosen food source replaces the food source within the search space. • The scout bee replaces the abandoned food source xi with new food source xi as 𝑥𝑖 𝑗 = 𝑥 𝑚𝑖𝑛 𝑗 + 𝑟𝑎𝑛𝑑 0,1 𝑥 𝑚𝑎𝑥 𝑗 − 𝑥 𝑚𝑖𝑛 𝑗 𝑥 𝑚𝑖𝑛 𝑗 and 𝑥 𝑚𝑎𝑥 𝑗 are bounds of 𝑥𝑖 in 𝑗th direction. Scout Bee Phase
  • 23. STEP 1: Initialization of nectar sources STEP 2: Search for new nectar sources STEP 3: Probability for the scouter to select employed foragers STEP 4: Production of scouter STEP 5: Production of new solution STEP 6: Replace the original solution STEP 7: Neglect a solution and replace it with new one STEP 8: The best solution ever is recorded. STEP 9: Termination ABC Procedure