نوشته اصلی توسط
dr-data
دوستان تاپيك خوبيه لطفاً شركت كنيد يه كم كاربردي تر بشه....
چششششششم
شبه کد الگوریتم کرم شب تاب
Firefly algorithm
:Initialize algorithm parameters
MaxGen: the maximum number of generations
Objective function of f(x), where x=(x ,........,xd)T
(Generate initial population of fireflies or xi (i= , ,..., n
(Define light intensity of Ii at xi via f (xi
(While (t<MaxGen
;(For i = to n (all n fireflies)
(For j= to n (all n fireflies
If (Ij > Ii), move firefly i towards j; end if
;[Attractiveness varies with distance r via Exp [-γr ]
;Evaluate new solutions and update light intensity
;End for j
;End for i
;Rank the fireflies and find the current best
;End while
;Post process results and visualization
;End procedure
به زودی توضیحاتی هم در مورد این الگوریتم قرار میدم .
موفق باشید .
علاقه مندی ها (Bookmarks)