SlideShare a Scribd company logo
3
Most read
7
Most read
17
Most read
Grasshopper Optimization Algorithm
DR. AHMED FOUAD ALI
FACULTY OF COMPUTERS AND INFORMATICS
SUEZ CANAL UNIVERSITY
Outline
 Grasshopper optimization algorithm (GOA) (History and main idea)
 Nature behavior of grasshopper.
 The main characteristic of the grasshopper swarm.
 Grasshopper optimization algorithm
 References
Grasshopper Optimization Algorithm (GOA)
(History and main idea)
 Grasshopper optimization algorithm is a
recent swarm intelligence algorithm
developed by Mirjalili at. el
 GOA is a population based method
 GOA mimicking the behavior of
grasshopper swarms and their social
interaction.
Nature behavior of grasshopper
 Grasshoppers are destructive insects according to
their damage to agriculture.
 They life has two phases, nymph and adulthood.
 The nymph grasshoppers have no wings so they
move slowly and eat all vegetation on their path.
 After period of time they grow up and become
adult with wings to form a swarm in the air and
move fast to large scale region.
Nature behavior of grasshopper (Cont.)
 Although grasshoppers are usually seen
individually in nature, they join in one of the
largest swarm of all creatures.
 The size of the swarm may be of continental scale
and a nightmare for farmers.
 The unique aspect of the grasshopper swarm is
that the swarming behavior is found in both
nymph and adulthood.
The main characteristic of the grasshopper
swarm.
 The main characteristic of the swarm in the larval
phase is slow movement and small steps of the
grasshoppers.
 Long-range and abrupt movement is the
essential feature of the swarm in adulthood.
 Food source seeking is another important
characteristic of the swarming of grasshoppers by
dividing the search process into two tendencies:
exploration and exploitation.
Grasshopper optimization algorithm
 Grasshopper optimization algorithm is a recent
population based algorithm, each grasshopper
represents a solution in the population.
 The position of each grasshopper in the swarm is
based on three forces.
 The social interaction between it and the other
grasshoppers Si, the gravity force on it Gi and the
wind advection Ai.
Grasshopper optimization algorithm (cont.)
 The final form of the three affected forces on each grasshopper can defined as
follow.
 The social interaction force between each grasshopper and the other
grasshopper can be defined as follow.
Where dij is the distance between the grasshopper i and grasshopper j
Grasshopper optimization algorithm (cont.)
 s is a function represents the strength of two social force, attraction and
repulsion between grasshoppers, it can be defined as follow.
 Where f, l are the intensity of the attraction and the attractive length scale.
 The social behavior is affected by the changing of the parameters f, l.
Grasshopper optimization algorithm (cont.)
 The repulsion force happen when the distance between two grasshoppers is
in the interval [0, 2.079], and if the distance between two grasshoppers is
2.079, there is neither attraction nor repulsion which form a comfortable zone.
 If the distance greater than 2.079 the attraction force increases then it
decreases gradually when it reach to 4.
 When the distance between two grasshopper greater than 10, the function s
fails to apply forces between grasshoppers.
 In order to solve this problem, the distance of grasshoppers is mapped in the
interval [1,4].
Grasshopper optimization algorithm (cont.)
 The second affected force on the position of the grasshopper is the gravity
force which calculated as follow.
Where g is the gravitational constant and is a center of earth unity victor.
Grasshopper optimization algorithm (cont.)
 The nymph grasshoppers movements correlated with wind direction because
they have no wings. The wind direction can be calculated as follow.
Where u is a constant drift and is a wind direction unity vector.
Grasshopper optimization algorithm (cont.)
 The position of the grasshopper can be calculated as follow.
 In order to solve optimization problems and prevent the grasshoppers to
reach the comfort zone quickly and the swarm does not converge to the target
(global optimum), the previous equation can be proposed as follow.
Grasshopper optimization algorithm (cont.)
Where ubd, lbd are the upper and lower bound in the dth dimension. is the
target value in the dth dimension.
The parameter c is called a decreasing coefficient and it is responsible for
reducing the comfort zone, repulsion zone and the attraction zone.
The coefficient c is decreased proportional to the iterations number to balance
exploration and exploitation in the grasshopper algorithm and it can be
calculated as follow.
Grasshopper optimization algorithm (cont.)
where cmax, cmin are the maximum and minimum values, l is the current
iteration and L is the maximum number of iterations.
The flowchart of the grasshopper optimization algorithm are shown in the
following slide.
Grasshopper optimization algorithm
• Initialization. The algorithm starts by setting the initial values of the maximum
and minimum values of the decreasing coefficient parameter, cmax, cmin
respectively, the parameters l, f and the maximum number of iterations maxitr.
•Initial population and evaluation. The initial population is generated randomly
and each solution in the population is evaluated by calculating its value by using
the objective function.
•Assigning the overall best solution. After evaluating all the solutions in the
initial population, the overall (global) best solution is assigned according to its
value.
•Updating the decreasing coefficient parameter. At each iteration, the coefficient
parameter c is updating in order to shrink the comfort, repulsion and attraction
zones as shown in Equation 13.
Steps of the grasshopper optimization algorithm (cont.)
Mapping the distance of grasshoppers. The function s as shown in Equation 8 is
responsible for dividing the search space into comfort, repulsion and attraction
zones, however its ability decreases to zero when the distance between two
grasshoppers is greater than 10.
In order to solve this problem the distance between the grasshopper mapped to
the interval [1,4].
Updating solution. Each solution in the population is updated based on the
distance between it and the other solutions, the decreasing coefficient parameter
c and the global best solution in the population as shown in Equation 12.
Steps of the grasshopper optimization algorithm (cont.)
• Solution boundaries violation. After updating the solution, if it violates its
upper and lower boundaries, it rests to its domain.
•Visiting all the solutions in population. The previous three steps are repeated
for all the solutions in the populations.
•Solutions evaluations. The solutions in the population are updated and
evaluated and the best global solution is assigned.
•Termination criteria. The overall operations are repeated until reaching to the
maximum number of iterations maxitr which is the termination criterion in our
work.
•Returning the best solution. The best globe solution T is returned when the
algorithm reaches to its maximum number of iteration.
Steps of the grasshopper optimization algorithm (cont.)
References
S. Saremi, S. Mirjalili, and A. Lewis. “Grasshopper
optimisation algorithm: Theory and application”.
Advances in Engineering Software, 105, 30-47, 2017

More Related Content

What's hot (20)

PPTX
Dolphin Echolocation Optimization Algorithm
Alireza Sabzalian
 
PPT
Ant Colony Optimization presentation
Partha Das
 
PPTX
Classification with ant colony optimization
kamalikanath89
 
PPTX
Medicinal value of vegetables in urdu A Lecture By Allah Dad Khan
Mr.Allah Dad Khan
 
PPTX
Crow search algorithm
Ahmed Fouad Ali
 
PPTX
Particle swarm optimization
anurag singh
 
PPTX
Bio-Inspired Techniques(Crow-search-algorithm).pptx
tahaelbadawy
 
PPTX
Cuckoo search
Prachi Gulihar
 
PDF
Particle Swarm Optimization
Stelios Petrakis
 
PDF
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
PPT
Ant colony optimization
vk1dadhich
 
PPT
Particle Swarm Optimization - PSO
Mohamed Talaat
 
PPT
Swarm intelligence pso and aco
satish561
 
PDF
Pso introduction
rutika12345
 
PPSX
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
jayatra
 
PPTX
Bat algorithm
Priya Kaushal
 
PPTX
Particle swarm optimization
Suman Chatterjee
 
PDF
Ant Colony Optimization: Routing
Adrian Wilke
 
PPTX
Particle swarm optimization
Hanya Mohammed
 
DOC
An introduction to land economics
SITI HASNIZA ROSMAN
 
Dolphin Echolocation Optimization Algorithm
Alireza Sabzalian
 
Ant Colony Optimization presentation
Partha Das
 
Classification with ant colony optimization
kamalikanath89
 
Medicinal value of vegetables in urdu A Lecture By Allah Dad Khan
Mr.Allah Dad Khan
 
Crow search algorithm
Ahmed Fouad Ali
 
Particle swarm optimization
anurag singh
 
Bio-Inspired Techniques(Crow-search-algorithm).pptx
tahaelbadawy
 
Cuckoo search
Prachi Gulihar
 
Particle Swarm Optimization
Stelios Petrakis
 
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
Ant colony optimization
vk1dadhich
 
Particle Swarm Optimization - PSO
Mohamed Talaat
 
Swarm intelligence pso and aco
satish561
 
Pso introduction
rutika12345
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
jayatra
 
Bat algorithm
Priya Kaushal
 
Particle swarm optimization
Suman Chatterjee
 
Ant Colony Optimization: Routing
Adrian Wilke
 
Particle swarm optimization
Hanya Mohammed
 
An introduction to land economics
SITI HASNIZA ROSMAN
 

Similar to Grasshopper optimization algorithm (20)

PDF
The optimization of running queries in relational databases using ant colony ...
IJDMS
 
PDF
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
cscpconf
 
PPTX
Sunflower optimization algorithm
Ahmed Fouad Ali
 
PDF
A Hybrid Bat Algorithm
Xin-She Yang
 
PDF
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
csandit
 
PDF
A beamforming comparative study of least mean square, genetic algorithm and g...
TELKOMNIKA JOURNAL
 
PDF
An improved ant colony algorithm based on
IJCI JOURNAL
 
PDF
A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...
irjes
 
PDF
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
PDF
Glowworm Swarm Optimisation
Arijeet Satapathy
 
PDF
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
PDF
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
TELKOMNIKA JOURNAL
 
PPTX
Robotic arm
kartikeya Agarwal
 
PDF
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
ijaia
 
PDF
Gy3312241229
IJERA Editor
 
PDF
Firefly Algorithm: Recent Advances and Applications
Xin-She Yang
 
PDF
Bat Algorithm: A Novel Approach for Global Engineering Optimization
Xin-She Yang
 
PPTX
Bio-inspired computing Algorithms.pptx
pawansher2002
 
PDF
1308.3898 1
vin_bha1984
 
The optimization of running queries in relational databases using ant colony ...
IJDMS
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
cscpconf
 
Sunflower optimization algorithm
Ahmed Fouad Ali
 
A Hybrid Bat Algorithm
Xin-She Yang
 
COMPARISON BETWEEN ARTIFICIAL BEE COLONY ALGORITHM, SHUFFLED FROG LEAPING ALG...
csandit
 
A beamforming comparative study of least mean square, genetic algorithm and g...
TELKOMNIKA JOURNAL
 
An improved ant colony algorithm based on
IJCI JOURNAL
 
A Firefly Algorithm for Optimizing Spur Gear Parameters Under Non-Lubricated ...
irjes
 
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
Glowworm Swarm Optimisation
Arijeet Satapathy
 
A New Metaheuristic Bat-Inspired Algorithm
Xin-She Yang
 
Research on Chaotic Firefly Algorithm and the Application in Optimal Reactive...
TELKOMNIKA JOURNAL
 
Robotic arm
kartikeya Agarwal
 
AN IMPROVED MULTIMODAL PSO METHOD BASED ON ELECTROSTATIC INTERACTION USING NN...
ijaia
 
Gy3312241229
IJERA Editor
 
Firefly Algorithm: Recent Advances and Applications
Xin-She Yang
 
Bat Algorithm: A Novel Approach for Global Engineering Optimization
Xin-She Yang
 
Bio-inspired computing Algorithms.pptx
pawansher2002
 
1308.3898 1
vin_bha1984
 
Ad

More from Ahmed Fouad Ali (20)

PPTX
Zebra Optimization Algorithm (ZOA)).pptx
Ahmed Fouad Ali
 
PPTX
Variable neighborhood search (Meta-heuristics).pptx
Ahmed Fouad Ali
 
PPTX
Tabu search algorithm (Meta-heuristics).pptx
Ahmed Fouad Ali
 
PPTX
Simulated Annealing (Meta-heuristics).pptx
Ahmed Fouad Ali
 
PPTX
Social Spider optimization (SSO ).pptx
Ahmed Fouad Ali
 
PPTX
Partical swarm optimization (PSO).pptx
Ahmed Fouad Ali
 
PPTX
Introduction to Latex symbols and commands
Ahmed Fouad Ali
 
PPTX
Group Search Optimizer (GSO) (Population base algorithm)
Ahmed Fouad Ali
 
PPTX
Grey Wolf Optimizer (GWO) (Swarm Intelligence)
Ahmed Fouad Ali
 
PPTX
Gravitational Search Algorithm(GSA).pptx
Ahmed Fouad Ali
 
PPTX
Flower pollination algorithm (Population based algorithm)
Ahmed Fouad Ali
 
PPTX
Cuckoo Search Algorithm (CSA) (Swarm Intelligence)
Ahmed Fouad Ali
 
PPTX
Backtracking Search Optimization Algorithm (BSA)
Ahmed Fouad Ali
 
PPTX
Artificial Fish Swarm Algorithm (Swarm Intelligence)
Ahmed Fouad Ali
 
PPTX
Artificial Bee Colony (ABC) (Swarm Intelligence)
Ahmed Fouad Ali
 
PPTX
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
Ahmed Fouad Ali
 
PPTX
Reptile search algorithm (RSA) (Swarm intelligence)
Ahmed Fouad Ali
 
PPTX
Manta Ray Optimization.pptx
Ahmed Fouad Ali
 
PPTX
Harris hawks optimization
Ahmed Fouad Ali
 
PPTX
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 
Zebra Optimization Algorithm (ZOA)).pptx
Ahmed Fouad Ali
 
Variable neighborhood search (Meta-heuristics).pptx
Ahmed Fouad Ali
 
Tabu search algorithm (Meta-heuristics).pptx
Ahmed Fouad Ali
 
Simulated Annealing (Meta-heuristics).pptx
Ahmed Fouad Ali
 
Social Spider optimization (SSO ).pptx
Ahmed Fouad Ali
 
Partical swarm optimization (PSO).pptx
Ahmed Fouad Ali
 
Introduction to Latex symbols and commands
Ahmed Fouad Ali
 
Group Search Optimizer (GSO) (Population base algorithm)
Ahmed Fouad Ali
 
Grey Wolf Optimizer (GWO) (Swarm Intelligence)
Ahmed Fouad Ali
 
Gravitational Search Algorithm(GSA).pptx
Ahmed Fouad Ali
 
Flower pollination algorithm (Population based algorithm)
Ahmed Fouad Ali
 
Cuckoo Search Algorithm (CSA) (Swarm Intelligence)
Ahmed Fouad Ali
 
Backtracking Search Optimization Algorithm (BSA)
Ahmed Fouad Ali
 
Artificial Fish Swarm Algorithm (Swarm Intelligence)
Ahmed Fouad Ali
 
Artificial Bee Colony (ABC) (Swarm Intelligence)
Ahmed Fouad Ali
 
Ant Colony Optimization(ACO) (Swarm intelligence)pptx
Ahmed Fouad Ali
 
Reptile search algorithm (RSA) (Swarm intelligence)
Ahmed Fouad Ali
 
Manta Ray Optimization.pptx
Ahmed Fouad Ali
 
Harris hawks optimization
Ahmed Fouad Ali
 
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 
Ad

Recently uploaded (20)

PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 

Grasshopper optimization algorithm

  • 1. Grasshopper Optimization Algorithm DR. AHMED FOUAD ALI FACULTY OF COMPUTERS AND INFORMATICS SUEZ CANAL UNIVERSITY
  • 2. Outline  Grasshopper optimization algorithm (GOA) (History and main idea)  Nature behavior of grasshopper.  The main characteristic of the grasshopper swarm.  Grasshopper optimization algorithm  References
  • 3. Grasshopper Optimization Algorithm (GOA) (History and main idea)  Grasshopper optimization algorithm is a recent swarm intelligence algorithm developed by Mirjalili at. el  GOA is a population based method  GOA mimicking the behavior of grasshopper swarms and their social interaction.
  • 4. Nature behavior of grasshopper  Grasshoppers are destructive insects according to their damage to agriculture.  They life has two phases, nymph and adulthood.  The nymph grasshoppers have no wings so they move slowly and eat all vegetation on their path.  After period of time they grow up and become adult with wings to form a swarm in the air and move fast to large scale region.
  • 5. Nature behavior of grasshopper (Cont.)  Although grasshoppers are usually seen individually in nature, they join in one of the largest swarm of all creatures.  The size of the swarm may be of continental scale and a nightmare for farmers.  The unique aspect of the grasshopper swarm is that the swarming behavior is found in both nymph and adulthood.
  • 6. The main characteristic of the grasshopper swarm.  The main characteristic of the swarm in the larval phase is slow movement and small steps of the grasshoppers.  Long-range and abrupt movement is the essential feature of the swarm in adulthood.  Food source seeking is another important characteristic of the swarming of grasshoppers by dividing the search process into two tendencies: exploration and exploitation.
  • 7. Grasshopper optimization algorithm  Grasshopper optimization algorithm is a recent population based algorithm, each grasshopper represents a solution in the population.  The position of each grasshopper in the swarm is based on three forces.  The social interaction between it and the other grasshoppers Si, the gravity force on it Gi and the wind advection Ai.
  • 8. Grasshopper optimization algorithm (cont.)  The final form of the three affected forces on each grasshopper can defined as follow.  The social interaction force between each grasshopper and the other grasshopper can be defined as follow. Where dij is the distance between the grasshopper i and grasshopper j
  • 9. Grasshopper optimization algorithm (cont.)  s is a function represents the strength of two social force, attraction and repulsion between grasshoppers, it can be defined as follow.  Where f, l are the intensity of the attraction and the attractive length scale.  The social behavior is affected by the changing of the parameters f, l.
  • 10. Grasshopper optimization algorithm (cont.)  The repulsion force happen when the distance between two grasshoppers is in the interval [0, 2.079], and if the distance between two grasshoppers is 2.079, there is neither attraction nor repulsion which form a comfortable zone.  If the distance greater than 2.079 the attraction force increases then it decreases gradually when it reach to 4.  When the distance between two grasshopper greater than 10, the function s fails to apply forces between grasshoppers.  In order to solve this problem, the distance of grasshoppers is mapped in the interval [1,4].
  • 11. Grasshopper optimization algorithm (cont.)  The second affected force on the position of the grasshopper is the gravity force which calculated as follow. Where g is the gravitational constant and is a center of earth unity victor.
  • 12. Grasshopper optimization algorithm (cont.)  The nymph grasshoppers movements correlated with wind direction because they have no wings. The wind direction can be calculated as follow. Where u is a constant drift and is a wind direction unity vector.
  • 13. Grasshopper optimization algorithm (cont.)  The position of the grasshopper can be calculated as follow.  In order to solve optimization problems and prevent the grasshoppers to reach the comfort zone quickly and the swarm does not converge to the target (global optimum), the previous equation can be proposed as follow.
  • 14. Grasshopper optimization algorithm (cont.) Where ubd, lbd are the upper and lower bound in the dth dimension. is the target value in the dth dimension. The parameter c is called a decreasing coefficient and it is responsible for reducing the comfort zone, repulsion zone and the attraction zone. The coefficient c is decreased proportional to the iterations number to balance exploration and exploitation in the grasshopper algorithm and it can be calculated as follow.
  • 15. Grasshopper optimization algorithm (cont.) where cmax, cmin are the maximum and minimum values, l is the current iteration and L is the maximum number of iterations. The flowchart of the grasshopper optimization algorithm are shown in the following slide.
  • 17. • Initialization. The algorithm starts by setting the initial values of the maximum and minimum values of the decreasing coefficient parameter, cmax, cmin respectively, the parameters l, f and the maximum number of iterations maxitr. •Initial population and evaluation. The initial population is generated randomly and each solution in the population is evaluated by calculating its value by using the objective function. •Assigning the overall best solution. After evaluating all the solutions in the initial population, the overall (global) best solution is assigned according to its value. •Updating the decreasing coefficient parameter. At each iteration, the coefficient parameter c is updating in order to shrink the comfort, repulsion and attraction zones as shown in Equation 13. Steps of the grasshopper optimization algorithm (cont.)
  • 18. Mapping the distance of grasshoppers. The function s as shown in Equation 8 is responsible for dividing the search space into comfort, repulsion and attraction zones, however its ability decreases to zero when the distance between two grasshoppers is greater than 10. In order to solve this problem the distance between the grasshopper mapped to the interval [1,4]. Updating solution. Each solution in the population is updated based on the distance between it and the other solutions, the decreasing coefficient parameter c and the global best solution in the population as shown in Equation 12. Steps of the grasshopper optimization algorithm (cont.)
  • 19. • Solution boundaries violation. After updating the solution, if it violates its upper and lower boundaries, it rests to its domain. •Visiting all the solutions in population. The previous three steps are repeated for all the solutions in the populations. •Solutions evaluations. The solutions in the population are updated and evaluated and the best global solution is assigned. •Termination criteria. The overall operations are repeated until reaching to the maximum number of iterations maxitr which is the termination criterion in our work. •Returning the best solution. The best globe solution T is returned when the algorithm reaches to its maximum number of iteration. Steps of the grasshopper optimization algorithm (cont.)
  • 20. References S. Saremi, S. Mirjalili, and A. Lewis. “Grasshopper optimisation algorithm: Theory and application”. Advances in Engineering Software, 105, 30-47, 2017