السلام عليكم
ممكن يااخوان تعطوني كود بسيط يوضح ويبين لي كيف
ننشيء ونوجد الحلول من خلال خوار زمية particle swarm
السلام عليكم
ممكن يااخوان تعطوني كود بسيط يوضح ويبين لي كيف
ننشيء ونوجد الحلول من خلال خوار زمية particle swarm
[code]
For each particle:
Initialize particle
II) Do:
a) For each particle:
1) Calculate fitness value
2) If the fitness value is better than the best fitness value (pBest) in history
3) Set current value as the new pBest
End
b) For each particle:
1) Find in the particle neighborhood, the particle with the best fitness
2) Calculate particle velocity according to the velocity equation (1)
3) Apply the velocity constriction
4) Update particle position according to the position equation (2)
5) Apply the position constriction
End
While maximum iterations or minimum error criteria is not attainedهل هذا ينفع ؟
( HASSAN ) كتب:[code] For each particle: Initialize particle II) Do: a) For each particle: 1) Calculate fitness value 2) If the fitness value is better than the best fitness value (pBest) in history 3) Set current value as the new pBest End b) For each particle: 1) Find in the particle neighborhood, the particle with the best fitness 2) Calculate particle velocity according to the velocity equation (1) 3) Apply the velocity constriction 4) Update particle position according to the position equation (2) 5) Apply the position constriction End While maximum iterations or minimum error criteria is not attainedهل هذا ينفع ؟
والله للاسف مافهمت هل المتغير الطلوب البحث عنه نرمز له ب particle
ولماذا هناك position & velocity
ياليت تسرد لنا كود ماث لاب بسيط
eng9999 كتب:والله للاسف مافهمت هل المتغير الطلوب البحث عنه نرمز له ب particle
ولماذا هناك position & velocity
ياليت تسرد لنا كود ماث لاب بسيط
ممكن تسمحلي في سؤال ؟ حتى تستفيد اكثر ونبتعد عن اسلوب التلقين , لكي تحصل على المعلومه افضل وتفيدك اكثر ,,
ماهي فائدة ال PSO ؟ او في ماذا تستخدم ؟
ممكن تشرح الذي تفهمه منها ؟ وان شاء الله اساعدك في سد الثغرات التي لم تفهمها
اذا فهمت الخوارزميه لا يلزمك كود ماتلاب ولا غيره , فقط يبقى عليك تنفيذها برمجيا ..
i need the PSO to find optimal solutionand what i understand that you create particles and each particle has solution
eng9999 كتب:i need the PSO to find optimal solutionand what i understand that you create particles and each particle has solution
:blink: :blink:
-------
عربي بارك الله فيك ,
اقرأ الملف المرفق بتمعن وبعدها اسأل .