Hybrid Particle Swarm and Grey Wolf Optimization

(137 customer reviews)

$0.00

Total downloads: 639

This repository has the code for hybrid particle swarm optimization (PSO) and grey wolf optimization (GWO). Code is tested on benchmark functions and compared with GWO only. It has been found that hybrid PSOGWO performs better than PSO. The description is provided along with it.

Download Test
 Discuss Code

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.

  1. 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 
  1. 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.

  1. 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.

  1. 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       
  1. 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.

  1. 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  
  1. 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)
  1. 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

  1. 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.
  2. Ş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.
  3. Kamboj, V. K. (2016). A novel hybrid PSO–GWO approach for unit commitment problem. Neural Computing and Applications, 27(6), 1643-1655.
  4. 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.
  5. 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.

137 reviews for Hybrid Particle Swarm and Grey Wolf Optimization

  1. Venkatesan C (verified owner)

    I have to run and see

  2. Anonymous

    Excellent

  3. neeraj.arora (verified owner)

    zxx

  4. pourhaji (verified owner)

  5. nam.nguyen (verified owner)

    It is a good document

  6. k.sudheer (verified owner)

    Greatly useful thesis available

  7. k.sudheer (verified owner)

    very useful

  8. enireddy.vamsidhar (verified owner)

    good site for researchers

  9. mohsen.khatibinia (verified owner)

    Thanks

  10. eker (verified owner)

    I don’t just reading

  11. hejer.ghribi (verified owner)

    excellent content

  12. Fawad (verified owner)

    good

  13. venkat.reddy (verified owner)

    great

  14. venkat.reddy (verified owner)

    great

  15. joo hyun.moon (verified owner)

    d

  16. sdbhlxt (verified owner)

    good

  17. praveen.hipparge (verified owner)

    good

  18. shiffali.goyal (verified owner)

    Gr8

  19. ashutosh.makhariya (verified owner)

    average

  20. ramahk92 (verified owner)

    Thanks for Providing Code.

  21. pooja.garg (verified owner)

    kindly give code.I will be thankful to you.

  22. noble.lion (verified owner)

    help share knowledge, thanks

  23. alok.kumar (verified owner)

    Thanks for your support.

  24. francisco marcio.barboza (verified owner)

    Thank you

  25. e.narayanan (verified owner)

    thank you

  26. sameer.kumthekar (verified owner)

    best

  27. Niranjana (verified owner)

    SUPERB PLATFORM

  28. chikwendu.nzenwa (verified owner)

    great

  29. sameer.kumthekar (verified owner)

    best one

  30. preethi.g (verified owner)

    good

  31. mohammed.dhriyyef (verified owner)

    merci

  32. prashant.kulkarni (verified owner)

    excellent

  33. prashant.kulkarni (verified owner)

    excellent

  34. xuexi (verified owner)

    good

  35. sravan kumar.kotha (verified owner)

    good and excellent

  36. sravan kumar.kotha (verified owner)

    good and excellent

  37. mohsen.esmaeili (verified owner)

    thanks a lot of

  38. mohsen.esmaeili (verified owner)

    thanks

  39. jiahui.qu (verified owner)

    good

  40. habib.mehrabani (verified owner)

    wow

  41. richa.singh (verified owner)

    nice

  42. ratheesh.p m (verified owner)

    Very Useful

  43. ratheesh.p m (verified owner)

    Very USeful

  44. ratheesh.p m (verified owner)

    Useful

  45. ratheesh.p m (verified owner)

    Useful

  46. ratheesh.p m (verified owner)

    helpful

  47. ratheesh.p m (verified owner)

    useful

  48. raju.bhoyar (verified owner)

    helpful

  49. nn.nn (verified owner)

    ……………….. …………… gfh

  50. umit.cetinkaya (verified owner)

    It is so good

  51. vivek.singh (verified owner)

    happy

  52. otuo.acheampong (verified owner)

    very useful website

  53. otuo.acheampong (verified owner)

    very useful website

  54. daniela.irimia (verified owner)

    Usefull, I hope!

  55. akhilesh.barnwal (verified owner)

    Thanks

  56. thiyagarajan.n (verified owner)

    good

  57. thiyagarajan.n (verified owner)

    good

  58. thiyagarajan.n (verified owner)

    good

  59. thiyagarajan.n (verified owner)

    good

  60. reza.reza (verified owner)

    Excellent Very Good

  61. xyz.wzy (verified owner)

    pejs

  62. chou_aib (verified owner)

    Great

  63. wisamjr (verified owner)

    very good and quick

  64. alois kiogora.ak1569 (verified owner)

    .

  65. niharika.kardam (verified owner)

    i want matlab code opendss interface for ev integration

  66. vishnupriya.vijayan (verified owner)

    nice job!!!

  67. ftafta

    THANK

  68. ftafta

    THANKS

  69. ftafta

    THANKS

  70. sudhir.kumar (verified owner)

    NICE FACALITY

  71. satrughan.kumar (verified owner)

    thanks

  72. virakwan.kelian (verified owner)

    good

  73. durgendra kumar.kanigiri (verified owner)

    Good

  74. kanigiri.kumar (verified owner)

    f

  75. skeeter.mbeke (verified owner)

    n n

  76. JacobsYoung (verified owner)

    nice

  77. JacobsYoung (verified owner)

    good

  78. saranya.gunasekar (verified owner)

    good

  79. anuj.goel (verified owner)

    Thank you !

  80. john.seed (verified owner)

    Good

  81. thiyagarajan.n-1218 (verified owner)

    thankyou

  82. anupam.kumar (verified owner)

    good

  83. quynh.phan (verified owner)

    nothing to say

  84. hamdi.karim (verified owner)

    very good job

  85. hamdi.karim (verified owner)

    thanx

  86. sumeet (verified owner)

    hu

  87. sumeet (verified owner)

    bjbjnk

  88. sumeet (verified owner)

    bjbj

  89. nenisi.j (verified owner)

    heh

  90. mostafaham (verified owner)

    good

  91. mostafaham (verified owner)

    great

  92. mostafaham (verified owner)

    good

  93. shamsuddeen.adamu (verified owner)

    j

  94. panduranga.terlapu (verified owner)

    good analysis

  95. panduranga.terlapu (verified owner)

    good

  96. shamsuddeen.adamu (verified owner)

    ok

  97. chinna alluraiah.nallolla (verified owner)

    If I will get this I will be very happy.

  98. prashant.kulkarni-0716 (verified owner)

    excellent

  99. prashant.kulkarni-0716 (verified owner)

    excellent

  100. prashant.kulkarni (verified owner)

    excellent work

  101. Drwang151002 (verified owner)

    good

  102. sagar.verma (verified owner)

    good

  103. nn23 (verified owner)

    great

  104. nn23 (verified owner)

    great

  105. prashant.kulkarni-0716 (verified owner)

    EXCELLENT WORK

  106. mana009 (verified owner)

    thanks

  107. repshika.pradhan (verified owner)

    nice

  108. repshika.pradhan (verified owner)

    nice

  109. zda (verified owner)

    666

  110. das.sssa (verified owner)

    student need

  111. wafa.tayari (verified owner)

    ttt

  112. Sahebgoud (verified owner)

    good for resea5rch

  113. Sahebgoud (verified owner)

    good for resea5rch

  114. Sahebgoud (verified owner)

    good for resea5rch

  115. Sahebgoud (verified owner)

    good for resea5rch

  116. lyyannn (verified owner)

    Great!

  117. manishshukla8840 (verified owner)

    na

  118. manishshukla8840 (verified owner)

    na n

  119. manishshukla8840 (verified owner)

    na n

  120. manishshukla8840 (verified owner)

    ZGoog theme but all topics was not covered in this portal

  121. narles.lino (verified owner)

    Great code sharing

  122. jayati.vaish (verified owner)

    good

  123. jayati.vaish (verified owner)

    good

  124. jayati.vaish (verified owner)

    good

  125. vinay.shetty (verified owner)

    thank u

  126. anthony.dibia (verified owner)

    Great

  127. aditi (verified owner)

    thankyou for the help

  128. bijaydas123 (verified owner)

    i am working on pso

  129. ISSAM (verified owner)

    GOOD

  130. ftafta

    thank you so much

  131. clement kweku.arthur (verified owner)

    Thanks

  132. alois kiogora.ak1569 (verified owner)

    nmnnmn

  133. ibrahim.alnaib (verified owner)

    good

  134. ali can.cabuker (verified owner)

    Thanks

  135. sridevi.g (verified owner)

    4

  136. prabhat.kumar (verified owner)

    thanks a lot

  137. zheng.wang (verified owner)

    good

  138. Ahussein (verified owner)

    Thank you for your support

  139. Ahussein (verified owner)

    Thank you for your support

Only logged in customers who have purchased this product may leave a review.

No more offers for this product!