SlideShare a Scribd company logo
1 of 16
Whale Optimization Algorithm
DR. AHMED FOUAD ALI
FACULTY OF COMPUTERS AND INFORMATICS
SUEZ CANAL UNIVERSITY
Outline
 Whale Optimization Algorithm (WOA) (History and main idea)
 Inspiration and foraging behavior
 The basic concepts of the Whale optimization algorithm
 Encircling prey
 Exploitation phase: bubble-net attacking method
 Exploration phase: search for prey
 The WOA algorithm
 References
Whale Optimization Algorithm (WOA)
(History and main idea)
 The whale optimization algorithm
(WOA) is a novel meta- heuristics
algorithm proposed by Mirjalili at. el
 WOA is a population based method
 WOA simulate bubble-net attacking
method of the humpback whales when
they hunting their preys.
Inspiration and foraging behavior
 Whales are considered as the biggest mammals in
the world.
 They are intelligent due to the spindle cells in
their brain.
 The whales are living in groups and they are able
to develop their own dialect.
 There are 7 types of whales and the humpback
whale is one of these types.
Inspiration and foraging behavior (Cont.)
 It has a special hunting mechanism which is
called bubble-net feeding method.
 This foraging behavior is done by crating a
special bubbles in a spiral shape or (9 shape)
path.
The basic concepts of the Whale optimization
algorithm (Encircling prey)
 Humpback whales know the location of prey and
encircle them.
 They consider the current best candidate solution
is best obtained solution and near the optimal
solution.
 After assigning the best candidate solution, the
other agents try to update their positions towards
the best search agent as shown in the following
equation
The basic concepts of the Whale optimization
algorithm (Encircling prey) (Cont.)
Where t is the current iteration, A and C are
coefficient vectors, X* is the position vector of the
best solution, and X indicates the position vector of a
solution, | | is the absolute value.
The basic concepts of the Whale optimization
algorithm (Encircling prey) (Cont.)
The vectors A and C are calculated as follows:
Where components of a are linearly decreased from
2 to 0 over the course of iterations and r is random
vector in [0; 1]
Exploitation phase: bubble-net attacking method
 The humpback whales attack the prey with the
bubble-net mechanism.
 This mechanism is mathematical formulated as
follow:
 {Shrinking encircling mechanism:
In this mechanism, the value of A is a random
value in interval [-a, a] and the value of a is
decreased from 2 to 0 over the course of iterations
as shown in Eq. 9.
Exploitation phase: bubble-net attacking method
(Cont.)
 Spiral updating position mechanism
In this mechanism, the distance between the
whale location and the prey location is calculated
then the helix-shaped movement of humpback is
created as shown in the following equation
Where D’ =| X*(t) - X(t) | is the distance between
the prey (best solution) and the ith whale, b is a
constant, l is a random number in [-1; 1].
Exploitation phase: bubble-net attacking method
(Cont.)
 The humpback whales used the mentioned two
mechanisms when they swim around the prey.
 We set the mathematical model of these two
mechanisms, we assume that there is a
probability of 50% to chose between these two
mechanisms to update the position of whales as
follow
Where p is a random number in [0; 1]
Exploration phase: search for prey
In the exploration phase, the humpback whales
(search agents) search for prey (best solution)
randomly and change their positions according the
position of other whales.
In order to force the search agent to move far a way
from reference whale, we use the A with values > 1
or < 1
The mathematical model of the exploration phase is
as follows
Where Xrand is a random position vector chosen
from the current population.
The WOA algorithm
The WOA algorithm (Cont.)
Step 1. The standard whale optimization algorithm starts by setting the
initial values of the population size n, the parameter a, coefficients A and
C and the maximum number of iterations max_itr. line 1.
Step 2. Initialize the iteration counter t. lines 2.
Step 3. The initial population n is generated randomly and each search
agent Xi in the population is evaluated by calculating its fitness
function f(Xi). lines 3-6.
Step 4. Assign the best search agent X. line 7
Step 5. The following steps are repeated until the termination criterion
Satisfied. lines 9-30
The WOA algorithm (Cont.)
Step 5.1. The iteration counter is increasing t = t + 1. line 9
Step 5.2. All the parameters a,A, C, l and P are updated. line 11
Step 5.3. The exploration and exploitations are applied according to the
values of p and | A | line 12-27
Step 6. The best search agent X is updated. line 28
Step 7.The overall process is repeated until termination criteria satisfied.
line 29
Step8. Produce the best found search agent (solution) so far X. line 30
References
S. Mirjalili and A. Lewis, The Whale Optimization
Algorithm. Advances in Engineering Software, 95, (2016),
pp.51-67

More Related Content

What's hot

Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
ESCOM
 
Feature Extraction
Feature ExtractionFeature Extraction
Feature Extraction
skylian
 
Soft computing (ANN and Fuzzy Logic) : Dr. Purnima Pandit
Soft computing (ANN and Fuzzy Logic)  : Dr. Purnima PanditSoft computing (ANN and Fuzzy Logic)  : Dr. Purnima Pandit
Soft computing (ANN and Fuzzy Logic) : Dr. Purnima Pandit
Purnima Pandit
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
Hanya Mohammed
 

What's hot (20)

Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
bat algorithm
bat algorithmbat algorithm
bat algorithm
 
Particle swarm optimization
Particle swarm optimization Particle swarm optimization
Particle swarm optimization
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.
 
Feature Extraction
Feature ExtractionFeature Extraction
Feature Extraction
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Genetic algorithm ppt
Genetic algorithm pptGenetic algorithm ppt
Genetic algorithm ppt
 
Particle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its ApplicationsParticle Swarm Optimization: The Algorithm and Its Applications
Particle Swarm Optimization: The Algorithm and Its Applications
 
Soft computing (ANN and Fuzzy Logic) : Dr. Purnima Pandit
Soft computing (ANN and Fuzzy Logic)  : Dr. Purnima PanditSoft computing (ANN and Fuzzy Logic)  : Dr. Purnima Pandit
Soft computing (ANN and Fuzzy Logic) : Dr. Purnima Pandit
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Perceptron
PerceptronPerceptron
Perceptron
 
Bat algorithm
Bat algorithmBat algorithm
Bat algorithm
 
BAT Algorithm
BAT AlgorithmBAT Algorithm
BAT Algorithm
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Metaheuristic Optimization: Algorithm Analysis and Open Problems
Metaheuristic Optimization: Algorithm Analysis and Open ProblemsMetaheuristic Optimization: Algorithm Analysis and Open Problems
Metaheuristic Optimization: Algorithm Analysis and Open Problems
 
Particle Swarm Optimization - PSO
Particle Swarm Optimization - PSOParticle Swarm Optimization - PSO
Particle Swarm Optimization - PSO
 

Similar to Whale optimizatio algorithm

LAFinalDraftJoshuaTrack
LAFinalDraftJoshuaTrackLAFinalDraftJoshuaTrack
LAFinalDraftJoshuaTrack
Joshua Track
 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
Uday Wankar
 

Similar to Whale optimizatio algorithm (20)

Bat Algorithm
Bat AlgorithmBat Algorithm
Bat Algorithm
 
Two bio-inspired algorithms for solving optimal reactive power problem
Two bio-inspired algorithms for solving optimal reactive power problemTwo bio-inspired algorithms for solving optimal reactive power problem
Two bio-inspired algorithms for solving optimal reactive power problem
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
 
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
ACO, Firefly, Modified Firefly, BAT, ABC algorithmsACO, Firefly, Modified Firefly, BAT, ABC algorithms
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
Enhanced abc algo for tsp
Enhanced abc algo for tspEnhanced abc algo for tsp
Enhanced abc algo for tsp
 
Microstrip coupler design using bat
Microstrip coupler design using batMicrostrip coupler design using bat
Microstrip coupler design using bat
 
LAFinalDraftJoshuaTrack
LAFinalDraftJoshuaTrackLAFinalDraftJoshuaTrack
LAFinalDraftJoshuaTrack
 
An improved ant colony algorithm based on
An improved ant colony algorithm based onAn improved ant colony algorithm based on
An improved ant colony algorithm based on
 
Qualitative Analysis of Prey Predator System With Immigrant Prey
Qualitative Analysis of Prey Predator System With Immigrant PreyQualitative Analysis of Prey Predator System With Immigrant Prey
Qualitative Analysis of Prey Predator System With Immigrant Prey
 
ABC.pdf
ABC.pdfABC.pdf
ABC.pdf
 
Evaluation the efficiency of cuckoo
Evaluation the efficiency of cuckooEvaluation the efficiency of cuckoo
Evaluation the efficiency of cuckoo
 
PSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptxPSO-ACO-Presentation.pptx
PSO-ACO-Presentation.pptx
 
Analysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization AlgorithmsAnalysis of Nature-Inspried Optimization Algorithms
Analysis of Nature-Inspried Optimization Algorithms
 
Microscopic Image Analysis of Nanoparticles by Edge Detection Using Ant Colon...
Microscopic Image Analysis of Nanoparticles by Edge Detection Using Ant Colon...Microscopic Image Analysis of Nanoparticles by Edge Detection Using Ant Colon...
Microscopic Image Analysis of Nanoparticles by Edge Detection Using Ant Colon...
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
 
A New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired AlgorithmA New Metaheuristic Bat-Inspired Algorithm
A New Metaheuristic Bat-Inspired Algorithm
 
Innovative computational intelligence ai techniques - Ahmed Yousry
Innovative computational intelligence ai techniques - Ahmed YousryInnovative computational intelligence ai techniques - Ahmed Yousry
Innovative computational intelligence ai techniques - Ahmed Yousry
 
Optimal Load Dispatch Using Ant Lion Optimization
Optimal Load Dispatch Using Ant Lion OptimizationOptimal Load Dispatch Using Ant Lion Optimization
Optimal Load Dispatch Using Ant Lion Optimization
 

More from Ahmed Fouad Ali

More from Ahmed Fouad Ali (19)

Manta Ray Optimization.pptx
Manta Ray Optimization.pptxManta Ray Optimization.pptx
Manta Ray Optimization.pptx
 
Harris hawks optimization
Harris hawks optimizationHarris hawks optimization
Harris hawks optimization
 
Sunflower optimization algorithm
Sunflower optimization algorithmSunflower optimization algorithm
Sunflower optimization algorithm
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Salp swarm algorithm
Salp swarm algorithmSalp swarm algorithm
Salp swarm algorithm
 
Grasshopper optimization algorithm
Grasshopper optimization algorithmGrasshopper optimization algorithm
Grasshopper optimization algorithm
 
Spider Monkey Optimization Algorithm
Spider Monkey Optimization AlgorithmSpider Monkey Optimization Algorithm
Spider Monkey Optimization Algorithm
 
Backtraking optimziation algorithm
Backtraking optimziation algorithmBacktraking optimziation algorithm
Backtraking optimziation algorithm
 
Social spider optimization
Social spider optimizationSocial spider optimization
Social spider optimization
 
Gravitational search algorithm
Gravitational search algorithmGravitational search algorithm
Gravitational search algorithm
 
Flower pollination
Flower pollinationFlower pollination
Flower pollination
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Latex symbols and commands
Latex symbols  and commandsLatex symbols  and commands
Latex symbols and commands
 
Tabu search
Tabu searchTabu search
Tabu search
 
Simulated annealing
Simulated annealingSimulated annealing
Simulated annealing
 
Variable neighborhood search
Variable neighborhood searchVariable neighborhood search
Variable neighborhood search
 
Group search optimizer
Group search optimizerGroup search optimizer
Group search optimizer
 
Ant colony algorithm
Ant colony algorithm Ant colony algorithm
Ant colony algorithm
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Whale optimizatio algorithm

  • 1. Whale Optimization Algorithm DR. AHMED FOUAD ALI FACULTY OF COMPUTERS AND INFORMATICS SUEZ CANAL UNIVERSITY
  • 2. Outline  Whale Optimization Algorithm (WOA) (History and main idea)  Inspiration and foraging behavior  The basic concepts of the Whale optimization algorithm  Encircling prey  Exploitation phase: bubble-net attacking method  Exploration phase: search for prey  The WOA algorithm  References
  • 3. Whale Optimization Algorithm (WOA) (History and main idea)  The whale optimization algorithm (WOA) is a novel meta- heuristics algorithm proposed by Mirjalili at. el  WOA is a population based method  WOA simulate bubble-net attacking method of the humpback whales when they hunting their preys.
  • 4. Inspiration and foraging behavior  Whales are considered as the biggest mammals in the world.  They are intelligent due to the spindle cells in their brain.  The whales are living in groups and they are able to develop their own dialect.  There are 7 types of whales and the humpback whale is one of these types.
  • 5. Inspiration and foraging behavior (Cont.)  It has a special hunting mechanism which is called bubble-net feeding method.  This foraging behavior is done by crating a special bubbles in a spiral shape or (9 shape) path.
  • 6. The basic concepts of the Whale optimization algorithm (Encircling prey)  Humpback whales know the location of prey and encircle them.  They consider the current best candidate solution is best obtained solution and near the optimal solution.  After assigning the best candidate solution, the other agents try to update their positions towards the best search agent as shown in the following equation
  • 7. The basic concepts of the Whale optimization algorithm (Encircling prey) (Cont.) Where t is the current iteration, A and C are coefficient vectors, X* is the position vector of the best solution, and X indicates the position vector of a solution, | | is the absolute value.
  • 8. The basic concepts of the Whale optimization algorithm (Encircling prey) (Cont.) The vectors A and C are calculated as follows: Where components of a are linearly decreased from 2 to 0 over the course of iterations and r is random vector in [0; 1]
  • 9. Exploitation phase: bubble-net attacking method  The humpback whales attack the prey with the bubble-net mechanism.  This mechanism is mathematical formulated as follow:  {Shrinking encircling mechanism: In this mechanism, the value of A is a random value in interval [-a, a] and the value of a is decreased from 2 to 0 over the course of iterations as shown in Eq. 9.
  • 10. Exploitation phase: bubble-net attacking method (Cont.)  Spiral updating position mechanism In this mechanism, the distance between the whale location and the prey location is calculated then the helix-shaped movement of humpback is created as shown in the following equation Where D’ =| X*(t) - X(t) | is the distance between the prey (best solution) and the ith whale, b is a constant, l is a random number in [-1; 1].
  • 11. Exploitation phase: bubble-net attacking method (Cont.)  The humpback whales used the mentioned two mechanisms when they swim around the prey.  We set the mathematical model of these two mechanisms, we assume that there is a probability of 50% to chose between these two mechanisms to update the position of whales as follow Where p is a random number in [0; 1]
  • 12. Exploration phase: search for prey In the exploration phase, the humpback whales (search agents) search for prey (best solution) randomly and change their positions according the position of other whales. In order to force the search agent to move far a way from reference whale, we use the A with values > 1 or < 1 The mathematical model of the exploration phase is as follows Where Xrand is a random position vector chosen from the current population.
  • 14. The WOA algorithm (Cont.) Step 1. The standard whale optimization algorithm starts by setting the initial values of the population size n, the parameter a, coefficients A and C and the maximum number of iterations max_itr. line 1. Step 2. Initialize the iteration counter t. lines 2. Step 3. The initial population n is generated randomly and each search agent Xi in the population is evaluated by calculating its fitness function f(Xi). lines 3-6. Step 4. Assign the best search agent X. line 7 Step 5. The following steps are repeated until the termination criterion Satisfied. lines 9-30
  • 15. The WOA algorithm (Cont.) Step 5.1. The iteration counter is increasing t = t + 1. line 9 Step 5.2. All the parameters a,A, C, l and P are updated. line 11 Step 5.3. The exploration and exploitations are applied according to the values of p and | A | line 12-27 Step 6. The best search agent X is updated. line 28 Step 7.The overall process is repeated until termination criteria satisfied. line 29 Step8. Produce the best found search agent (solution) so far X. line 30
  • 16. References S. Mirjalili and A. Lewis, The Whale Optimization Algorithm. Advances in Engineering Software, 95, (2016), pp.51-67