Description
The hybrid Particle Swarm Optimization and Grey Wolf Optimization algorithm is low level because we merge the functionalities of both of them. Both the algorithms  run in parallel.
- firstly make the statement of the PSOGWO function
[Best_score,Best_pos,GWO_cg_curve]=PSOGWO(SearchAgents_no,Max_iteration,lb,ub,dim,fobj)ÂÂ
In above statement the input parameter is mainly a benchmark function which is represented by a ‘fobj’ and others are lb=lower bound limit and ub=upper bound limit. There are three agents position is initialize Alpha position , Beta position and Delta position. Velocity and weight parameters are calculated by the formula given below
Velocity = .3*randn (SearchAgents_no,dim)             w=0.5+rand()/2ÂÂ
- Initialize position of search agents by calling the function
Positions=initialization(SearchAgents_no,dim,ub,lb); ÂÂ
In this statement the upper bound and lower bound limits are available. The search agents position is randomly search. The each search agents have different upper and lower bound limits. Calculate the initial position of the search variable. We initialize the parameters of algorithm, generate and also evaluate the initial position, and then determine the best solution in the position.
- Call the benchmark function
Benchmark function is represented by the ‘fobj’and find the initial best fitness value for benchmark objective function. The fobj function contains all the information about the benchmark function. It has 23 different benchmark function cases which have different dimension, upper bound and lower bound limits. We can randomly take any benchmark (F1 …..F23) objective function.
- Start the main while loop (t< max no. of iteration)
Then start the main loop for the maximum iterations. Then update the position of the search agents. After updating the position  the upper and lower bound limits are applied and update the position of search agents by using equation
Positions(i,:)=(Positions(i,:).*(~(Flag4ub+Flag4lb)))+ub.*Flag4ub+lb.*Flag4lb   ÂÂ
- Evaluate the fitness position of search agents by using the equation
fitness=fobj(Positions(i,:))  ÂÂ
The fitness value is obtained by using equation 4. Then update the three position which is describe by Alpha, Beta and Delta position
 If,  fitness<Alpha score && Alpha score=fitness
Then, Alpha Position=Positions (i,:)
If , fitness>Alpha score && fitness<Beta score && Beta score=fitness
Beta position=Positions (i,:)
If, fitness>Alpha score && fitness>Beta score && fitness<Delta score
 Delta score=fitness
Delta position=Positions (i,:)
These three positions are the new position of the Wolfs. We obtained three best fit position but now update these three position randomly.
- Update the positions of first three agents
Using equation number 7, 8 and 9 update the values and these values represented by X1, X2 and X3.
X1=Alpha position (j)-A1*D_alpha              X2=Beta position (j)-A2*D_beta                X3=Delta position (j)-A3*D_deltaÂÂ
- Update the velocity and position now as shown in equation 13 and 14 by using the
 ÂÂ
Or in case of matlab code the equations are written as
velocity(i,j)=w*(velocity(i,j)+C1*r1*(X1-Positions(i,j))+C2*r2*(X2-Positions(i,j))+C3*r3*(X3-Positions(i,j)))  Positions(i,j)=Positions(i,j)+velocity(i,j)
- Write another main script which perform the action on benchmark function
- Initialize the search agents, iterations and bench mark function
- Call the bench mark function detailed
- Call the PSOGWO function which initialize and figure out the fitness value for any particular function
- Call the function plot for graphs and convergence curve for the benchmark function. The best position and best fitness value obtained by using the hybrid PSOGWO algorithm is shown by the curve.
After update the position of the search agents and particle velocity the fitness value save in the Alpha score. Then plot a convergence curve according to the search space for any benchmark function. We obtained results which are better than the GWO. So the PSOGWO hybrid approach is good for low level algorithms.
Published Paper similar to this work
- Shaheen, M. A., Hasanien, H. M., & Alkuhayli, A. (2021). A novel hybrid GWO-PSO optimization technique for optimal reactive power dispatch problem solution. Ain Shams Engineering Journal, 12(1), 621-630.
- Şenel, F. A., Gökçe, F., Yüksel, A. S., & Yiğit, T. (2019). A novel hybrid PSO–GWO algorithm for optimization problems. Engineering with Computers, 35(4), 1359-1373.
- Kamboj, V. K. (2016). A novel hybrid PSO–GWO approach for unit commitment problem. Neural Computing and Applications, 27(6), 1643-1655.
- Abdelshafy, A. M., Hassan, H., & Jurasz, J. (2018). Optimal design of a grid-connected desalination plant powered by renewable energy resources using a hybrid PSO–GWO approach. Energy conversion and management, 173, 331-347.
- Chopra, N., Kumar, G., & Mehta, S. (2016). Hybrid GWO-PSO algorithm for solving convex economic load dispatch problem. Int J Res Adv Technol, 4(6), 37-41.
Venkatesan C (verified owner) –
I have to run and see
Anonymous –
Excellent
neeraj.arora (verified owner) –
zxx
pourhaji (verified owner) –
–
nam.nguyen (verified owner) –
It is a good document
k.sudheer (verified owner) –
Greatly useful thesis available
k.sudheer (verified owner) –
very useful
enireddy.vamsidhar (verified owner) –
good site for researchers
mohsen.khatibinia (verified owner) –
Thanks
eker (verified owner) –
I don’t just reading
hejer.ghribi (verified owner) –
excellent content
Fawad (verified owner) –
good
venkat.reddy (verified owner) –
great
venkat.reddy (verified owner) –
great
joo hyun.moon (verified owner) –
d
sdbhlxt (verified owner) –
good
praveen.hipparge (verified owner) –
good
shiffali.goyal (verified owner) –
Gr8
ashutosh.makhariya (verified owner) –
average
ramahk92 (verified owner) –
Thanks for Providing Code.
pooja.garg (verified owner) –
kindly give code.I will be thankful to you.
noble.lion (verified owner) –
help share knowledge, thanks
alok.kumar (verified owner) –
Thanks for your support.
francisco marcio.barboza (verified owner) –
Thank you
e.narayanan (verified owner) –
thank you
sameer.kumthekar (verified owner) –
best
Niranjana (verified owner) –
SUPERB PLATFORM
chikwendu.nzenwa (verified owner) –
great
sameer.kumthekar (verified owner) –
best one
preethi.g (verified owner) –
good
mohammed.dhriyyef (verified owner) –
merci
prashant.kulkarni (verified owner) –
excellent
prashant.kulkarni (verified owner) –
excellent
xuexi (verified owner) –
good
sravan kumar.kotha (verified owner) –
good and excellent
sravan kumar.kotha (verified owner) –
good and excellent
mohsen.esmaeili (verified owner) –
thanks a lot of
mohsen.esmaeili (verified owner) –
thanks
jiahui.qu (verified owner) –
good
habib.mehrabani (verified owner) –
wow
richa.singh (verified owner) –
nice
ratheesh.p m (verified owner) –
Very Useful
ratheesh.p m (verified owner) –
Very USeful
ratheesh.p m (verified owner) –
Useful
ratheesh.p m (verified owner) –
Useful
ratheesh.p m (verified owner) –
helpful
ratheesh.p m (verified owner) –
useful
raju.bhoyar (verified owner) –
helpful
nn.nn (verified owner) –
……………….. …………… gfh
umit.cetinkaya (verified owner) –
It is so good
vivek.singh (verified owner) –
happy
otuo.acheampong (verified owner) –
very useful website
otuo.acheampong (verified owner) –
very useful website
daniela.irimia (verified owner) –
Usefull, I hope!
akhilesh.barnwal (verified owner) –
Thanks
thiyagarajan.n (verified owner) –
good
thiyagarajan.n (verified owner) –
good
thiyagarajan.n (verified owner) –
good
thiyagarajan.n (verified owner) –
good
reza.reza (verified owner) –
Excellent Very Good
xyz.wzy (verified owner) –
pejs
chou_aib (verified owner) –
Great
wisamjr (verified owner) –
very good and quick
alois kiogora.ak1569 (verified owner) –
.
niharika.kardam (verified owner) –
i want matlab code opendss interface for ev integration
vishnupriya.vijayan (verified owner) –
nice job!!!
ftafta –
THANK
ftafta –
THANKS
ftafta –
THANKS
sudhir.kumar (verified owner) –
NICE FACALITY
satrughan.kumar (verified owner) –
thanks
virakwan.kelian (verified owner) –
good
durgendra kumar.kanigiri (verified owner) –
Good
kanigiri.kumar (verified owner) –
f
skeeter.mbeke (verified owner) –
n n
JacobsYoung (verified owner) –
nice
JacobsYoung (verified owner) –
good
saranya.gunasekar (verified owner) –
good
anuj.goel (verified owner) –
Thank you !
john.seed (verified owner) –
Good
thiyagarajan.n-1218 (verified owner) –
thankyou
anupam.kumar (verified owner) –
good
quynh.phan (verified owner) –
nothing to say
hamdi.karim (verified owner) –
very good job
hamdi.karim (verified owner) –
thanx
sumeet (verified owner) –
hu
sumeet (verified owner) –
bjbjnk
sumeet (verified owner) –
bjbj
nenisi.j (verified owner) –
heh
mostafaham (verified owner) –
good
mostafaham (verified owner) –
great
mostafaham (verified owner) –
good
shamsuddeen.adamu (verified owner) –
j
panduranga.terlapu (verified owner) –
good analysis
panduranga.terlapu (verified owner) –
good
shamsuddeen.adamu (verified owner) –
ok
chinna alluraiah.nallolla (verified owner) –
If I will get this I will be very happy.
prashant.kulkarni-0716 (verified owner) –
excellent
prashant.kulkarni-0716 (verified owner) –
excellent
prashant.kulkarni (verified owner) –
excellent work
Drwang151002 (verified owner) –
good
sagar.verma (verified owner) –
good
nn23 (verified owner) –
great
nn23 (verified owner) –
great
prashant.kulkarni-0716 (verified owner) –
EXCELLENT WORK
mana009 (verified owner) –
thanks
repshika.pradhan (verified owner) –
nice
repshika.pradhan (verified owner) –
nice
zda (verified owner) –
666
das.sssa (verified owner) –
student need
wafa.tayari (verified owner) –
ttt
Sahebgoud (verified owner) –
good for resea5rch
Sahebgoud (verified owner) –
good for resea5rch
Sahebgoud (verified owner) –
good for resea5rch
Sahebgoud (verified owner) –
good for resea5rch
lyyannn (verified owner) –
Great!
manishshukla8840 (verified owner) –
na
manishshukla8840 (verified owner) –
na n
manishshukla8840 (verified owner) –
na n
manishshukla8840 (verified owner) –
ZGoog theme but all topics was not covered in this portal
narles.lino (verified owner) –
Great code sharing
jayati.vaish (verified owner) –
good
jayati.vaish (verified owner) –
good
jayati.vaish (verified owner) –
good
vinay.shetty (verified owner) –
thank u
anthony.dibia (verified owner) –
Great
aditi (verified owner) –
thankyou for the help
bijaydas123 (verified owner) –
i am working on pso
ISSAM (verified owner) –
GOOD
ftafta –
thank you so much
clement kweku.arthur (verified owner) –
Thanks
alois kiogora.ak1569 (verified owner) –
nmnnmn
ibrahim.alnaib (verified owner) –
good
ali can.cabuker (verified owner) –
Thanks
sridevi.g (verified owner) –
4
prabhat.kumar (verified owner) –
thanks a lot
zheng.wang (verified owner) –
good
Ahussein (verified owner) –
Thank you for your support
Ahussein (verified owner) –
Thank you for your support