4.7 | 11 ratings Rate this file 236 Downloads (last 30 days) File Size: 8.26 KB File ID: #29693 Version: 1.2

Firefly Algorithm


Xin-She Yang (view profile)


13 Dec 2010 (Updated )

Firefly Algorithm for Constrained Optimization

| Watch this File

File Information

Firefly algorithm for nonlinear constrained optimization.

For simple demo in 2D, please use firefly_simple.m

For unconstrained functions in higher dimenisions, please use fa_ndim.m

For nonlinear constrained optimization,
please use fa_mincon.m

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (24)
04 Nov 2015 MALATHI R K

Sangeetha Natarajan.. please help me

Comment only
04 Nov 2015 MALATHI R K

Sir, i am trying to implement algorithm in c.. please give me the steps to implement this for correlating with what I have done..

Comment only
07 Apr 2015 bajuri satu

can i ask how to use this algorithm for optimizing svr parameter?

Comment only
01 Apr 2015 jasmin mary

sir can i use FA for optimization of TMD parameters

Comment only
01 Apr 2015 sangeetha natarajan

Sir, i have used your algorithm in matlab and could get nice results. But if i try to implement the same logic in c for embedded applications, it is not working if i increase the firefly population beyond 25. What would be the problem in it ??? i couldnt guess it.

Comment only
22 Mar 2015 Sun Zhen


12 Jan 2015 Aravinth

I need the firefly algorithm demo in order to use at the fusion level. I already tested with cuckoo search algorithm.

Comment only
31 Oct 2014 Josephine Amala


Comment only
26 Sep 2014 Chinchu Thomas  
26 Sep 2014 toan le  
16 Sep 2014 Vasanthamani

We require this to understand the concept

Comment only
16 Aug 2014 yaser moniri


Comment only
27 Jun 2014 Jagatheesan Kaliannan

realy good

24 Jun 2014 Jagatheesan Kaliannan  
18 Jun 2014 Venkatesh Kumar M  
20 Dec 2013 Ashraf K.


Comment only
29 Nov 2013 hamed abdulaziz

Please I wonder if it is possible to use Firefly Algorithm for features selection,where I have one dimensional array of features like Contrast,Correlation,Homogeneity,Cluster prominence,Energy,and...etc,and I want to use Firefly Algorithm to choose the best features of them,please could you guide me to do this job?thanks in advance.

Comment only
02 Aug 2013 behrang


Comment only
26 Oct 2012 SCU

SCU (view profile)

Thank you so much, Dr. Yang

26 Oct 2012 d g

d g (view profile)

very good..

18 Sep 2012 hong

hong (view profile)

24 Jul 2012 Luc

Luc (view profile)

I used firefly algorithm to solve a multimodal design problem
with 149 design variables, it works very efficiently.

28 May 2012 escato carreira

Does this algorithm solve multi-objective problems with non-linear constrains?

Comment only
14 Dec 2010 Jackson Shen

Haven't look in detail. The first impression is great.

It is nice that the algorithm is implemented by the author.

Great Job!

16 Aug 2011 1.1

This update includes more robust demo programs.

16 Aug 2011 1.2

This updates includes extra demo files.

Contact us