الگوریتم کرم شبتاب
در بهینهسازی ریاضی، الگوریتم کرم شب تاب یک الگوریتم فراابتکاری میباشد که توسط شین-یانگ و با الهام از رفتار چشمک زن کرم شب تاب ارائه شدهاست.[۱]
الگوریتم ویرایش
شبه کد الگوریتم کرم شب تاب به صورت زیر میباشد:
Begin 1) Objective function: ; 2) Generate an initial population of fireflies ;. 3) Formulate light intensity I so that it is associated with (for example, for maximization problems, or simply ;) 4) Define absorption coefficient γ
While (t < MaxGeneration) for i = 1: n (all n fireflies) for j = 1: i (n fireflies) if ( ), Vary attractiveness with distance r via ; move firefly i towards j; Evaluate new solutions and update light intensity; end if end for j end for i Rank fireflies and find the current best; end while
Post-processing the results and visualization;
end
توجه داشته باشید که تعداد ارزیابی تابع هدف در هر تکرار، یک ارزیابی برای هر کرم شب تاب است، و همانطور که شبه کد بالا نشان میدهد n × n نیست. (بر اساس کد متلب یانگ) بنابراین تعداد کل ارزیابی تابع هدف (تعداد نسل) × (تعداد کرم شب تاب) است.
فرمول اصلی بروزرسانی برای هر جفت کرم شب تاب و به صورت زیر است
جایی که پارامتر کنترل اندازه مرحله میباشد، در حالی که برداری تصادفی تولید شده بر ساس توزیع گاوسی یا توزیع دیگر میباشد.
میتوان نشان داد که مورد محدود کننده است مطابق با استاندارد بهینهسازی ذرات ذره (PSO) است. در حقیقت، اگر حلقه داخلی (برای j) برداشته شود و روشنایی با بهترین جواب عمومی جایگزین شود، آنگاه FA اساساً تبدیل به PSO استاندارد میشود.
نقد ویرایش
بهطور کلی الگوریتمهای فراابتکاری الهام گرفته شده از طبیعت در جامعه پژوهشگران همواره با انتقاداتی همراه بودهاند، و در مورد الگوریتم کرم شب تاب نیز انتقاد شدهاست که از بهینهسازی ذرات الهام گرفته شده و تفاوت ناچیزی با توده ذرت دارد.[۲][۳][۴]
منابع ویرایش
- ↑ Yang, X. S. (2008). Nature-Inspired Metaheuristic Algorithms. Luniver Press. ISBN 978-1-905986-10-1.
- ↑ Almasi, Omid N.; Rouhani, Modjtaba (2016). "A new fuzzy membership assignment and model selection approach based on dynamic class centers for fuzzy SVM family using the firefly algorithm". Turkish Journal of Electrical Engineering & Computer Sciences. 4: 1–19. doi:10.3906/elk-1310-253.
Practical application of FA on UCI datasets.
- ↑ Lones, Michael A. (2014). "Metaheuristics in Nature-Inspired Algorithms" (PDF). GECCO '14: 1419–1422. CiteSeerX 10.1.1.699.1825. doi:10.1145/2598394.2609841. ISBN 978-1-4503-2881-4.
FA, on the other hand, has little to distinguish it from PSO, with the inverse-square law having a similar effect to crowding and fitness sharing in EAs, and the use of multi-swarms in PSO.
- ↑ Weyland, Dennis (2015). "A critical analysis of the harmony search algorithm—How not to solve sudoku". Operations Research Perspectives. 2: 97–105. doi:10.1016/j.orp.2015.04.001.
For example, the differences between the particle swarm optimization metaheuristic and "novel" metaheuristics like the firefly algorithm, the fruit fly optimization algorithm, the fish swarm optimization algorithm or the cat swarm optimization algorithm seem negligible.
پیوند به بیرون ویرایش
- [۱] پروندههای برنامههای Matlab موجود در کتاب: Xin-She Yang، الگوریتمهای Metaheuristic- الهام گرفته از طبیعت، چاپ دوم، Luniver Press، (۲۰۱۰).