SlideShare una empresa de Scribd logo
1 de 43
Descargar para leer sin conexión
Swarm Optimization Algorithms
 An optimization problem seeks to find the largest (the smallest)
value of a quantity (such as maximum revenue or minimum surface
area) given certain limits to a problem.
 An optimization problem can usually be expressed as “find the
maximum (or minimum) value of some quantity Q under a certain
set of given conditions”.
Definition of Optimization problems
Problems that can be modelled and solved by optimization
techniques
 Scheduling Problems (production, airline, etc.)
 Network Design Problems
 Facility Location Problems
 Inventory management
 Transportation Problems
 Minimum spanning tree problem
 Shortest path problem
 Maximum flow problem
 Min-cost flow problem
1. Classical Optimization
 Useful in finding the optimum solution or unconstrained maxima
or minima of continuous and differentiable functions.
 Analytical methods make use of differential calculus in locating
the optimum solution
cont.…
 Have limited scope in practical applications as some of them
involve objective functions which are not continuous and/or
differentiable.
 Basis for developing most of numerical techniques that involved
into advanced techniques more suitable to today’s practical
problem
Linear Program (LP)
 studies the case in which the objective function (f ) is linear and the set design
variable space (A) is specified Using only linear equalities and inequalities.
2. Numerical Methods
Optimization Problem Types
Non-Linear Program (NLP)
 studies the general case in which the objective function or the constraints or
both contain nonlinear parts.
 (P) Convex problems easy to solve
 Non-convex problems harder, not guaranteed to find global optimum
Optimization Problem Types
Integer Programs (IP)
 studies linear programs in which some or all variables are constrained to
take on integer values
Quadratic programming
 allows the objective functions to have quadratic terms, while the set (A) must be
specified with linear equalities and inequalities
Optimization Problem Types
Stochastic Programming
 studies the case in which some of the constraints depend on random variables
Dynamic programming
 studies the case in which the optimization strategy is based on splitting the
problem into smaller sub-problems.
3. Advanced Methods
 Swarm Intelligence Based Algorithms
 Bio-inspired (not SI-based) algorithms
 Physical and chemistry based algorithms
 others
Particle Swarm optimization
Introduction to Optimization
 The optimization can be defined as a mechanism through which the maximum or minimum value of a
given function or process can be found.
 The function that we try to minimize or maximize is called as objective function.
 Variable and parameters.
 Statement of optimization problem
Minimize f(x)
subject to g(x)<=0
h(x)=0.
Particle Swarm Optimization(PSO)
 Inspired from the nature social behavior and dynamic movements with communications of insects,
birds and fish.
Particle Swarm Optimization(PSO)
 Uses a number of agents (particles) that constitute a
swarm moving around in the search space looking for the
best solution
 Each particle in search space adjusts its “flying” according to its
own flying experience as well as the flying experience of other
particles.
 Each particle has three parameters position, velocity, and previous
best position, particle with best fitness value is called as global best
position.
Contd..
 Collection of flying particles (swarm) - Changing solutions
Search area - Possible solutions
 Movement towards a promising area to get the global optimum.
 Each particle adjusts its travelling speed dynamically corresponding to the flying
experiences of itself and its colleagues.
 Each particle keeps track:
its best solution, personal best, pbest.
the best value of any particle, global best, gbest.
 Each particle modifies its position according to:
• its current position
• its current velocity
• the distance between its current position and pbest.
• the distance between its current position and gbest.
Algorithm - Parameters
f : Objective function
Xi: Position of the particle or agent.
Vi: Velocity of the particle or agent.
A: Population of agents.
W: Inertia weight.
C1: cognitive constant.
R1, R2: random numbers.
C2: social constant.
Algorithm - Steps
1. Create a ‘population’ of agents (particles) uniformly distributed over X
2. Evaluate each particle’s position according to the objective function( say
y=f(x)= -x^2+5x+20
1. If a particle’s current position is better than its previous best position, update it.
2. Determine the best particle (according to the particle’s previous best positions).
Y=F(x) = -x^2+5x+20
Contd..
5. Update particles’ velocities:
6. Move particles to their new positions:
7. Go to step 2 until stopping criteria are satisfied.
Contd…
Particle’s velocity
:
1. Inertia
2. Personal
Influence
3. Social
Influence
• Makes the particle move in the same direction and
with the same velocity
• Improves the individual
• Makes the particle return to a previous position,
better than the current
• Conservative
• Makes the particle follow the best neighbors
direction
Acceleration coefficients
• When , c1=c2=0 then all particles continue flying at their current speed until they hit the search space’s boundary.
Therefore, the velocity update equation is calculated as:
t
ij
t
ij v
v 
1
• When c1>0 and c2=0 , all particles are independent. The velocity update equation will be:
 
t
ij
i
best
t
t
j
t
ij
t
ij x
P
r
c
v
v 



,
1
1
1
• When c1>0 and c2=0 , all particles are attracted to a single point in the entire swarm and
the update velocity will become
 
t
ij
best
t
j
t
ij
t
ij x
g
r
c
v
v 



2
2
1
• When c1=c2, all particles are attracted towards the average of pbest and gbest.
Example:
Contd..
Contd..
Contd..
Flow chart of Algorithm
Iteration 1:
r1 0.9234
r2 0.9797 w 0.80
Particle No. fitness value fitness value v1 v2 x1_new x2_new
1 -11.00 -10.00 205.00 -11.00 -10.00 205.00 0.98 4.90 -10.02 -5.10
2 20.00 -10.00 298.00 20.00 -10.00 298.00 -29.39 4.90 -9.39 -5.10
3 -18.00 -4.00 450.00 -18.00 -4.00 450.00 7.84 -0.98 -10.16 -4.98
4 -10.00 -5.00 173.00 -10.00 -5.00 173.00 0.00 0.00 -10.00 -5.00
G_best -10.00 -5.00 173.00
Iteration 2:
r1 0.4302
r2 0.4389 w 0.80
Particle No. fitness value fitness value v1 v2 x1_new x2_new
1 -10.02 -5.10 173.13 -10.02 -5.10 173.13 1.06 3.92 -8.96 -1.18
2 -9.39 -5.10 157.14 -9.39 -5.10 157.14 -23.51 3.92 -32.90 -1.18
3 -10.16 -4.98 177.33 -10.16 -4.98 177.33 6.61 -0.84 -3.55 -5.82
4 -10.00 -5.00 173.00 -10.00 -5.00 173.00 0.27 -0.04 -9.73 -5.04
G_best -9.39 -5.10 157.14
X X_best
X X_best
Iteration 3:
r1 0.1848
r2 0.1111 w 0.80
Particle No. fitness value fitness value v1 v2 x1_new x2_new
1 -8.96 -1.18 176.89 -10.02 -5.10 173.13 1.25 1.90 -7.71 0.71
2 -20.00 -1.18 562.84 -9.39 -5.10 157.14 -15.02 1.90 -35.02 0.71
3 -3.55 -5.82 44.35 -3.55 -5.82 44.35 5.29 -0.67 1.73 -6.49
4 -9.73 -5.04 165.95 -9.73 -5.04 165.95 0.90 -0.12 -8.83 -5.17
G_best -3.55 -5.82 44.35
Iteration 4:
r1 0.9049
r2 0.2581 w 0.80
Particle No. fitness value
1 -7.71 0.71 174.15
2 -20.00 0.71 588.49
3 1.73 -6.49 1.87
4 -8.83 -5.17 143.37
X
The best solution is [1.73 -6.49]
X X_best
Grey wolf optimizer (GWO)
• The social hierarchy consists of four levels as
follow.
•The first level is called Alpha ( ). The alpha
wolves are the leaders of the pack and they are
a male and a female.
•They are responsible for making decisions
about hunting, time to walk, sleeping place and
so on.
Grey wolf optimizer (GWO)
• The alpha wolf is considered the dominant
wolf in the pack and all his/her orders should
be followed by the pack members.
Social hierarchy of grey wolf
Grey wolf optimizer (GWO)
•The second level is called Beta ( ).
•The betas are subordinate wolves, which help
the alpha in decision making.
•The beta wolf can be either male or female and
it consider the best candidate to be the alpha
when the alpha passes away or becomes very
old.
•The beta reinforce the alpha's commands
throughout the pack and gives the feedback to
alpha.
Grey wolf optimizer (GWO)
• The third level is called Delta ( )
• The delta wolves are not alpha or beta wolves
and they are called subordinates.
•Delta wolves have to submit to the alpha and
beta but they dominate the omega (the lowest
level in wolves social hierarchy).
Grey wolf optimizer (GWO)(History and main idea)
The fourth (lowest) level is called Omega ( )
•The omega wolves are considered the
scapegoat in the pack, they have to submit to
all the other dominant wolves.
•They may seem are not important individuals
in the pack and they are the last allowed
wolves to eat.
Social hierarchy of grey wolf
• In the grey wolf optimizer (GWO), we
consider the fittest solution as the alpha , and
the second and the third fittest solutions are
named beta and delta , respectively.
•The rest of the solutions are considered omega
•In GWO algorithm, the hunting is guided by
and
• The solutions follow these three wolves.
Grey wolf encircling prey
•During the hunting, the grey wolves encircle
prey.
•The mathematical model of the encircling
behavior is presented in the following
equations.
Grey wolf encircling prey (Cont.)
Where t is the current iteration, A and C are
coefficient vectors, Xp is the position vector of
the prey, and X indicates the position vector of
a grey wolf.
•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 r1,
r2 are random vectors in [0, 1]
Grey wolf Hunting
•The hunting operation is usually guided by
the alpha .
•The beta and delta might participate in
hunting occasionally.
•In the mathematical model of hunting
behavior of grey wolves, we assumed the alpha
, beta and delta have better knowledge about
the potential location of prey.
•The first three best solutions are saved and the
other agent are oblige to update their positions
according to the position of the best search
agents as shown in the following equations.
Grey wolf Hunting
Attacking prey (exploitation)
•The grey wolf finish the hunt by attacking the
prey when it stop moving.
•The vector A is a random value in interval
[-2a, 2a], where a is decreased from 2 to 0 over
the course of iterations.
When |A| < 1, the wolves attack towards the
prey, which represents an exploitation process.
Search for prey (exploration)
•The exploration process in GWO is applied
according to the position , and , that diverge
from each other to search for prey and
converge to attack prey.
•The exploration process modeled
mathematically by utilizing A with random
values greater than 1 or less than -1 to oblige
the search agent to diverge from the prey.
When |A| > 1, the wolves are forced to
diverge from the prey to fined a fitter prey.
Example (Unconstrained problem): Find the minimum of the function 𝑦 = (𝑥 − 3)2
By using GWO algorithm with the following parameters:
r1a: 0.273 r1b: 0.778 r1d: 0.222 MaxIter: 50
r2a: 0.718 r2b: 0.081 r2d: 0.204
Use initial positions [
6.6506
9.0463
−6.6383
−4.032
]
Solution :
𝒂 = 𝟐 (𝟏 −
𝒕
𝒎𝒂𝒙𝒊𝒕𝒆𝒓
) ,
r1a 0.273 r1b 0.778 r1d 0.222 MaxIter: 50
r2a 0.718 r2b 0.081 r2d 0.204
Iteration : 1
Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new
1 6.651 13.327 -0.888 2.905 9.231 1.090 5.183 3.398 -1.091 8.296 5.021 5.883
2 9.046 36.558 -0.888 0.509 7.103 1.090 7.579 0.787 -1.091 10.691 7.636 5.175
3 -6.638 92.897 -0.888 16.194 21.035 1.090 8.106 0.213 -1.091 4.993 1.417 7.555
4 -4.032 49.449 -0.888 13.588 18.720 1.090 5.499 3.053 -1.091 2.387 -1.427 6.782
a 1.960
Alpha 6.651
beta 9.046
delta -4.032
Iteration : 2
Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new
1 5.883 8.314 -0.870 1.552 6.526 1.068 4.929 0.621 -1.069 3.116 10.114 5.754
2 5.175 4.732 -0.888 2.261 7.183 1.068 4.221 1.377 -1.069 2.408 9.357 5.972
3 7.555 20.750 -0.888 0.119 5.281 1.068 6.601 -1.163 -1.069 4.788 11.901 5.340
4 6.782 14.304 -0.888 0.654 5.756 1.068 5.828 -0.338 -1.069 4.015 11.074 5.497
a 1.920
Alpha 5.175
beta 5.883
delta 6.782
Iteration : 3
Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new
1 5.754 7.583 -0.852 1.918 6.974 1.045 4.862 0.415 -1.047 3.406 9.319 5.570
2 5.972 8.835 -0.888 1.700 6.849 1.045 5.081 0.187 -1.047 3.625 9.548 5.528
3 5.340 5.474 -0.888 2.332 7.411 1.045 4.448 0.848 -1.047 2.992 8.886 5.715
4 5.497 6.237 -0.888 2.175 7.271 1.045 4.606 0.683 -1.047 3.150 9.051 5.668
a 1.880
Alpha 5.340
beta 5.497
delta 5.754
Iteration : 4
Particle No. X fitness value
1 5.570 6.602
2 5.528 6.391
3 5.715 7.372
4 5.668 7.121
Alpha 5.528
beta 5.570
delta 5.668
The best solution is 5.528

Más contenido relacionado

Similar a swarm pso and gray wolf Optimization.pdf

Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm OptimizationQasimRehman
 
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...Duy Tân Nguyễn
 
DriP PSO- A fast and inexpensive PSO for drifting problem spaces
DriP PSO- A fast and inexpensive PSO for drifting problem spacesDriP PSO- A fast and inexpensive PSO for drifting problem spaces
DriP PSO- A fast and inexpensive PSO for drifting problem spacesZubin Bhuyan
 
journal paper publication
journal paper publicationjournal paper publication
journal paper publicationchaitanya451336
 
imple and new optimization algorithm for solving constrained and unconstraine...
imple and new optimization algorithm for solving constrained and unconstraine...imple and new optimization algorithm for solving constrained and unconstraine...
imple and new optimization algorithm for solving constrained and unconstraine...salam_a
 
Batch mode reinforcement learning based on the synthesis of artificial trajec...
Batch mode reinforcement learning based on the synthesis of artificial trajec...Batch mode reinforcement learning based on the synthesis of artificial trajec...
Batch mode reinforcement learning based on the synthesis of artificial trajec...Université de Liège (ULg)
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural NetRatul Alahy
 
Beyond function approximators for batch mode reinforcement learning: rebuildi...
Beyond function approximators for batch mode reinforcement learning: rebuildi...Beyond function approximators for batch mode reinforcement learning: rebuildi...
Beyond function approximators for batch mode reinforcement learning: rebuildi...Université de Liège (ULg)
 
A Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential EvolutionA Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential Evolutionijsc
 
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONMln Phaneendra
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationSuman Chatterjee
 
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...Corey Clark, Ph.D.
 

Similar a swarm pso and gray wolf Optimization.pdf (20)

Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
 
Pso notes
Pso notesPso notes
Pso notes
 
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...
Duy Tan NGUYEN_Multi-objective optimization for inventory management systems ...
 
Glowworm Swarm Optimisation
Glowworm Swarm OptimisationGlowworm Swarm Optimisation
Glowworm Swarm Optimisation
 
DriP PSO- A fast and inexpensive PSO for drifting problem spaces
DriP PSO- A fast and inexpensive PSO for drifting problem spacesDriP PSO- A fast and inexpensive PSO for drifting problem spaces
DriP PSO- A fast and inexpensive PSO for drifting problem spaces
 
Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)
 
journal paper publication
journal paper publicationjournal paper publication
journal paper publication
 
CH1.ppt
CH1.pptCH1.ppt
CH1.ppt
 
imple and new optimization algorithm for solving constrained and unconstraine...
imple and new optimization algorithm for solving constrained and unconstraine...imple and new optimization algorithm for solving constrained and unconstraine...
imple and new optimization algorithm for solving constrained and unconstraine...
 
Batch mode reinforcement learning based on the synthesis of artificial trajec...
Batch mode reinforcement learning based on the synthesis of artificial trajec...Batch mode reinforcement learning based on the synthesis of artificial trajec...
Batch mode reinforcement learning based on the synthesis of artificial trajec...
 
Particle Swarm Optimization Application In Power System
Particle Swarm Optimization Application In Power SystemParticle Swarm Optimization Application In Power System
Particle Swarm Optimization Application In Power System
 
Regression vs Neural Net
Regression vs Neural NetRegression vs Neural Net
Regression vs Neural Net
 
Beyond function approximators for batch mode reinforcement learning: rebuildi...
Beyond function approximators for batch mode reinforcement learning: rebuildi...Beyond function approximators for batch mode reinforcement learning: rebuildi...
Beyond function approximators for batch mode reinforcement learning: rebuildi...
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
 
A Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential EvolutionA Comparison of Particle Swarm Optimization and Differential Evolution
A Comparison of Particle Swarm Optimization and Differential Evolution
 
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATIONECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
ECONOMIC LOAD DISPATCH USING PARTICLE SWARM OPTIMIZATION
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...
Distributed Parallel Process Particle Swarm Optimization on Fixed Charge Netw...
 
Unit 4
Unit 4Unit 4
Unit 4
 
Unit 4
Unit 4Unit 4
Unit 4
 

Más de abbas miry

optimization methods by using matlab.pptx
optimization methods by using matlab.pptxoptimization methods by using matlab.pptx
optimization methods by using matlab.pptxabbas miry
 
TLEN-5830-Wireless-Systems-Lecture-01.pptx
TLEN-5830-Wireless-Systems-Lecture-01.pptxTLEN-5830-Wireless-Systems-Lecture-01.pptx
TLEN-5830-Wireless-Systems-Lecture-01.pptxabbas miry
 
UNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .pptUNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .pptabbas miry
 
lec_2 - Copy lyponve stability of system .pptx
lec_2 - Copy lyponve stability of system .pptxlec_2 - Copy lyponve stability of system .pptx
lec_2 - Copy lyponve stability of system .pptxabbas miry
 
lec_2 for stability of control system .pptx
lec_2 for stability of control system .pptxlec_2 for stability of control system .pptx
lec_2 for stability of control system .pptxabbas miry
 
11-Optimization algorithm with swarm.pptx
11-Optimization algorithm with swarm.pptx11-Optimization algorithm with swarm.pptx
11-Optimization algorithm with swarm.pptxabbas miry
 
Neuron Modeling for Artificial Neural Systems 3
Neuron Modeling for Artificial Neural Systems 3Neuron Modeling for Artificial Neural Systems 3
Neuron Modeling for Artificial Neural Systems 3abbas miry
 
Neuron Modeling for Artificial Neural Systems
Neuron Modeling for Artificial Neural SystemsNeuron Modeling for Artificial Neural Systems
Neuron Modeling for Artificial Neural Systemsabbas miry
 
Control Signal Flow Graphs lecture notes
Control Signal Flow Graphs  lecture notesControl Signal Flow Graphs  lecture notes
Control Signal Flow Graphs lecture notesabbas miry
 

Más de abbas miry (14)

optimization methods by using matlab.pptx
optimization methods by using matlab.pptxoptimization methods by using matlab.pptx
optimization methods by using matlab.pptx
 
TLEN-5830-Wireless-Systems-Lecture-01.pptx
TLEN-5830-Wireless-Systems-Lecture-01.pptxTLEN-5830-Wireless-Systems-Lecture-01.pptx
TLEN-5830-Wireless-Systems-Lecture-01.pptx
 
UNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .pptUNIT-V-PPT state space of system model .ppt
UNIT-V-PPT state space of system model .ppt
 
lec_2 - Copy lyponve stability of system .pptx
lec_2 - Copy lyponve stability of system .pptxlec_2 - Copy lyponve stability of system .pptx
lec_2 - Copy lyponve stability of system .pptx
 
lec_2 for stability of control system .pptx
lec_2 for stability of control system .pptxlec_2 for stability of control system .pptx
lec_2 for stability of control system .pptx
 
11-Optimization algorithm with swarm.pptx
11-Optimization algorithm with swarm.pptx11-Optimization algorithm with swarm.pptx
11-Optimization algorithm with swarm.pptx
 
Neuron Modeling for Artificial Neural Systems 3
Neuron Modeling for Artificial Neural Systems 3Neuron Modeling for Artificial Neural Systems 3
Neuron Modeling for Artificial Neural Systems 3
 
Neuron Modeling for Artificial Neural Systems
Neuron Modeling for Artificial Neural SystemsNeuron Modeling for Artificial Neural Systems
Neuron Modeling for Artificial Neural Systems
 
Control Signal Flow Graphs lecture notes
Control Signal Flow Graphs  lecture notesControl Signal Flow Graphs  lecture notes
Control Signal Flow Graphs lecture notes
 
SFG.pptx
SFG.pptxSFG.pptx
SFG.pptx
 
bode.pptx
bode.pptxbode.pptx
bode.pptx
 
bode.pdf
bode.pdfbode.pdf
bode.pdf
 
Lec_13.pdf
Lec_13.pdfLec_13.pdf
Lec_13.pdf
 
Lec_12.pdf
Lec_12.pdfLec_12.pdf
Lec_12.pdf
 

Último

The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...Roi Lipman
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Lovely Professional University
 
BURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdfBURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdfKamal Acharya
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)NareenAsad
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoAbhimanyu Sangale
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfAshrafRagab14
 
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationEMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationAmayJaiswal4
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdfKamal Acharya
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsKineticEngineeringCo
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfMadan Karki
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Prakhyath Rai
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisDr.Costas Sachpazis
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdfKamal Acharya
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsSheetal Jain
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdfKamal Acharya
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5T.D. Shashikala
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualBalamuruganV28
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..MaherOthman7
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesRashidFaridChishti
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...archanaece3
 

Último (20)

The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
Activity Planning: Objectives, Project Schedule, Network Planning Model. Time...
 
BURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdfBURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdf
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)
 
Introduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of ArduinoIntroduction to Arduino Programming: Features of Arduino
Introduction to Arduino Programming: Features of Arduino
 
Piping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdfPiping and instrumentation diagram p.pdf
Piping and instrumentation diagram p.pdf
 
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentationEMPLOYEE MANAGEMENT SYSTEM FINAL presentation
EMPLOYEE MANAGEMENT SYSTEM FINAL presentation
 
Online crime reporting system project.pdf
Online crime reporting system project.pdfOnline crime reporting system project.pdf
Online crime reporting system project.pdf
 
Introduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and ApplicationsIntroduction to Heat Exchangers: Principle, Types and Applications
Introduction to Heat Exchangers: Principle, Types and Applications
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
RM&IPR M5 notes.pdfResearch Methodolgy & Intellectual Property Rights Series 5
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 

swarm pso and gray wolf Optimization.pdf

  • 2.  An optimization problem seeks to find the largest (the smallest) value of a quantity (such as maximum revenue or minimum surface area) given certain limits to a problem.  An optimization problem can usually be expressed as “find the maximum (or minimum) value of some quantity Q under a certain set of given conditions”. Definition of Optimization problems
  • 3. Problems that can be modelled and solved by optimization techniques  Scheduling Problems (production, airline, etc.)  Network Design Problems  Facility Location Problems  Inventory management  Transportation Problems  Minimum spanning tree problem  Shortest path problem  Maximum flow problem  Min-cost flow problem
  • 4. 1. Classical Optimization  Useful in finding the optimum solution or unconstrained maxima or minima of continuous and differentiable functions.  Analytical methods make use of differential calculus in locating the optimum solution
  • 5. cont.…  Have limited scope in practical applications as some of them involve objective functions which are not continuous and/or differentiable.  Basis for developing most of numerical techniques that involved into advanced techniques more suitable to today’s practical problem
  • 6. Linear Program (LP)  studies the case in which the objective function (f ) is linear and the set design variable space (A) is specified Using only linear equalities and inequalities. 2. Numerical Methods
  • 7. Optimization Problem Types Non-Linear Program (NLP)  studies the general case in which the objective function or the constraints or both contain nonlinear parts.  (P) Convex problems easy to solve  Non-convex problems harder, not guaranteed to find global optimum
  • 8. Optimization Problem Types Integer Programs (IP)  studies linear programs in which some or all variables are constrained to take on integer values Quadratic programming  allows the objective functions to have quadratic terms, while the set (A) must be specified with linear equalities and inequalities
  • 9. Optimization Problem Types Stochastic Programming  studies the case in which some of the constraints depend on random variables Dynamic programming  studies the case in which the optimization strategy is based on splitting the problem into smaller sub-problems.
  • 10. 3. Advanced Methods  Swarm Intelligence Based Algorithms  Bio-inspired (not SI-based) algorithms  Physical and chemistry based algorithms  others
  • 12. Introduction to Optimization  The optimization can be defined as a mechanism through which the maximum or minimum value of a given function or process can be found.  The function that we try to minimize or maximize is called as objective function.  Variable and parameters.  Statement of optimization problem Minimize f(x) subject to g(x)<=0 h(x)=0.
  • 13. Particle Swarm Optimization(PSO)  Inspired from the nature social behavior and dynamic movements with communications of insects, birds and fish.
  • 14. Particle Swarm Optimization(PSO)  Uses a number of agents (particles) that constitute a swarm moving around in the search space looking for the best solution  Each particle in search space adjusts its “flying” according to its own flying experience as well as the flying experience of other particles.  Each particle has three parameters position, velocity, and previous best position, particle with best fitness value is called as global best position.
  • 15. Contd..  Collection of flying particles (swarm) - Changing solutions Search area - Possible solutions  Movement towards a promising area to get the global optimum.  Each particle adjusts its travelling speed dynamically corresponding to the flying experiences of itself and its colleagues.  Each particle keeps track: its best solution, personal best, pbest. the best value of any particle, global best, gbest.  Each particle modifies its position according to: • its current position • its current velocity • the distance between its current position and pbest. • the distance between its current position and gbest.
  • 16. Algorithm - Parameters f : Objective function Xi: Position of the particle or agent. Vi: Velocity of the particle or agent. A: Population of agents. W: Inertia weight. C1: cognitive constant. R1, R2: random numbers. C2: social constant.
  • 17. Algorithm - Steps 1. Create a ‘population’ of agents (particles) uniformly distributed over X 2. Evaluate each particle’s position according to the objective function( say y=f(x)= -x^2+5x+20 1. If a particle’s current position is better than its previous best position, update it. 2. Determine the best particle (according to the particle’s previous best positions). Y=F(x) = -x^2+5x+20
  • 18. Contd.. 5. Update particles’ velocities: 6. Move particles to their new positions: 7. Go to step 2 until stopping criteria are satisfied.
  • 19. Contd… Particle’s velocity : 1. Inertia 2. Personal Influence 3. Social Influence • Makes the particle move in the same direction and with the same velocity • Improves the individual • Makes the particle return to a previous position, better than the current • Conservative • Makes the particle follow the best neighbors direction
  • 20. Acceleration coefficients • When , c1=c2=0 then all particles continue flying at their current speed until they hit the search space’s boundary. Therefore, the velocity update equation is calculated as: t ij t ij v v  1 • When c1>0 and c2=0 , all particles are independent. The velocity update equation will be:   t ij i best t t j t ij t ij x P r c v v     , 1 1 1 • When c1>0 and c2=0 , all particles are attracted to a single point in the entire swarm and the update velocity will become   t ij best t j t ij t ij x g r c v v     2 2 1 • When c1=c2, all particles are attracted towards the average of pbest and gbest.
  • 25. Flow chart of Algorithm
  • 26.
  • 27. Iteration 1: r1 0.9234 r2 0.9797 w 0.80 Particle No. fitness value fitness value v1 v2 x1_new x2_new 1 -11.00 -10.00 205.00 -11.00 -10.00 205.00 0.98 4.90 -10.02 -5.10 2 20.00 -10.00 298.00 20.00 -10.00 298.00 -29.39 4.90 -9.39 -5.10 3 -18.00 -4.00 450.00 -18.00 -4.00 450.00 7.84 -0.98 -10.16 -4.98 4 -10.00 -5.00 173.00 -10.00 -5.00 173.00 0.00 0.00 -10.00 -5.00 G_best -10.00 -5.00 173.00 Iteration 2: r1 0.4302 r2 0.4389 w 0.80 Particle No. fitness value fitness value v1 v2 x1_new x2_new 1 -10.02 -5.10 173.13 -10.02 -5.10 173.13 1.06 3.92 -8.96 -1.18 2 -9.39 -5.10 157.14 -9.39 -5.10 157.14 -23.51 3.92 -32.90 -1.18 3 -10.16 -4.98 177.33 -10.16 -4.98 177.33 6.61 -0.84 -3.55 -5.82 4 -10.00 -5.00 173.00 -10.00 -5.00 173.00 0.27 -0.04 -9.73 -5.04 G_best -9.39 -5.10 157.14 X X_best X X_best
  • 28. Iteration 3: r1 0.1848 r2 0.1111 w 0.80 Particle No. fitness value fitness value v1 v2 x1_new x2_new 1 -8.96 -1.18 176.89 -10.02 -5.10 173.13 1.25 1.90 -7.71 0.71 2 -20.00 -1.18 562.84 -9.39 -5.10 157.14 -15.02 1.90 -35.02 0.71 3 -3.55 -5.82 44.35 -3.55 -5.82 44.35 5.29 -0.67 1.73 -6.49 4 -9.73 -5.04 165.95 -9.73 -5.04 165.95 0.90 -0.12 -8.83 -5.17 G_best -3.55 -5.82 44.35 Iteration 4: r1 0.9049 r2 0.2581 w 0.80 Particle No. fitness value 1 -7.71 0.71 174.15 2 -20.00 0.71 588.49 3 1.73 -6.49 1.87 4 -8.83 -5.17 143.37 X The best solution is [1.73 -6.49] X X_best
  • 29. Grey wolf optimizer (GWO) • The social hierarchy consists of four levels as follow. •The first level is called Alpha ( ). The alpha wolves are the leaders of the pack and they are a male and a female. •They are responsible for making decisions about hunting, time to walk, sleeping place and so on.
  • 30. Grey wolf optimizer (GWO) • The alpha wolf is considered the dominant wolf in the pack and all his/her orders should be followed by the pack members. Social hierarchy of grey wolf
  • 31. Grey wolf optimizer (GWO) •The second level is called Beta ( ). •The betas are subordinate wolves, which help the alpha in decision making. •The beta wolf can be either male or female and it consider the best candidate to be the alpha when the alpha passes away or becomes very old. •The beta reinforce the alpha's commands throughout the pack and gives the feedback to alpha.
  • 32. Grey wolf optimizer (GWO) • The third level is called Delta ( ) • The delta wolves are not alpha or beta wolves and they are called subordinates. •Delta wolves have to submit to the alpha and beta but they dominate the omega (the lowest level in wolves social hierarchy).
  • 33. Grey wolf optimizer (GWO)(History and main idea) The fourth (lowest) level is called Omega ( ) •The omega wolves are considered the scapegoat in the pack, they have to submit to all the other dominant wolves. •They may seem are not important individuals in the pack and they are the last allowed wolves to eat.
  • 34. Social hierarchy of grey wolf • In the grey wolf optimizer (GWO), we consider the fittest solution as the alpha , and the second and the third fittest solutions are named beta and delta , respectively. •The rest of the solutions are considered omega •In GWO algorithm, the hunting is guided by and • The solutions follow these three wolves.
  • 35. Grey wolf encircling prey •During the hunting, the grey wolves encircle prey. •The mathematical model of the encircling behavior is presented in the following equations.
  • 36. Grey wolf encircling prey (Cont.) Where t is the current iteration, A and C are coefficient vectors, Xp is the position vector of the prey, and X indicates the position vector of a grey wolf. •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 r1, r2 are random vectors in [0, 1]
  • 37. Grey wolf Hunting •The hunting operation is usually guided by the alpha . •The beta and delta might participate in hunting occasionally. •In the mathematical model of hunting behavior of grey wolves, we assumed the alpha , beta and delta have better knowledge about the potential location of prey. •The first three best solutions are saved and the other agent are oblige to update their positions according to the position of the best search agents as shown in the following equations.
  • 39. Attacking prey (exploitation) •The grey wolf finish the hunt by attacking the prey when it stop moving. •The vector A is a random value in interval [-2a, 2a], where a is decreased from 2 to 0 over the course of iterations. When |A| < 1, the wolves attack towards the prey, which represents an exploitation process.
  • 40. Search for prey (exploration) •The exploration process in GWO is applied according to the position , and , that diverge from each other to search for prey and converge to attack prey. •The exploration process modeled mathematically by utilizing A with random values greater than 1 or less than -1 to oblige the search agent to diverge from the prey. When |A| > 1, the wolves are forced to diverge from the prey to fined a fitter prey.
  • 41. Example (Unconstrained problem): Find the minimum of the function 𝑦 = (𝑥 − 3)2 By using GWO algorithm with the following parameters: r1a: 0.273 r1b: 0.778 r1d: 0.222 MaxIter: 50 r2a: 0.718 r2b: 0.081 r2d: 0.204 Use initial positions [ 6.6506 9.0463 −6.6383 −4.032 ] Solution : 𝒂 = 𝟐 (𝟏 − 𝒕 𝒎𝒂𝒙𝒊𝒕𝒆𝒓 ) ,
  • 42. r1a 0.273 r1b 0.778 r1d 0.222 MaxIter: 50 r2a 0.718 r2b 0.081 r2d 0.204 Iteration : 1 Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new 1 6.651 13.327 -0.888 2.905 9.231 1.090 5.183 3.398 -1.091 8.296 5.021 5.883 2 9.046 36.558 -0.888 0.509 7.103 1.090 7.579 0.787 -1.091 10.691 7.636 5.175 3 -6.638 92.897 -0.888 16.194 21.035 1.090 8.106 0.213 -1.091 4.993 1.417 7.555 4 -4.032 49.449 -0.888 13.588 18.720 1.090 5.499 3.053 -1.091 2.387 -1.427 6.782 a 1.960 Alpha 6.651 beta 9.046 delta -4.032 Iteration : 2 Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new 1 5.883 8.314 -0.870 1.552 6.526 1.068 4.929 0.621 -1.069 3.116 10.114 5.754 2 5.175 4.732 -0.888 2.261 7.183 1.068 4.221 1.377 -1.069 2.408 9.357 5.972 3 7.555 20.750 -0.888 0.119 5.281 1.068 6.601 -1.163 -1.069 4.788 11.901 5.340 4 6.782 14.304 -0.888 0.654 5.756 1.068 5.828 -0.338 -1.069 4.015 11.074 5.497 a 1.920 Alpha 5.175 beta 5.883 delta 6.782
  • 43. Iteration : 3 Particle No. X fitness value A1 D_alpha X1 A2 D_beta X2 A3 D_delta X3 X_new 1 5.754 7.583 -0.852 1.918 6.974 1.045 4.862 0.415 -1.047 3.406 9.319 5.570 2 5.972 8.835 -0.888 1.700 6.849 1.045 5.081 0.187 -1.047 3.625 9.548 5.528 3 5.340 5.474 -0.888 2.332 7.411 1.045 4.448 0.848 -1.047 2.992 8.886 5.715 4 5.497 6.237 -0.888 2.175 7.271 1.045 4.606 0.683 -1.047 3.150 9.051 5.668 a 1.880 Alpha 5.340 beta 5.497 delta 5.754 Iteration : 4 Particle No. X fitness value 1 5.570 6.602 2 5.528 6.391 3 5.715 7.372 4 5.668 7.121 Alpha 5.528 beta 5.570 delta 5.668 The best solution is 5.528