File Exchange

image thumbnail

Firefly Algorithm

version 1.2.0.0 (8.26 KB) by Xin-She Yang
Firefly Algorithm for Constrained Optimization

106 Downloads

Updated 16 Aug 2011

View License

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

Comments and Ratings (38)

Jiaxun Li

Thank you so much, they are very useful!

Thank you very much, Sir

sagar mali

Ali sameer

Hello
Thanks for shearing this important code
Can you please help me how can I train Artificial Neural network and ANFIS by using firefly algorithim

Saliha C A

how relay coordination is related to firefly algorithm in coding

what different between " beta=(beta0-betamin)*exp(-gamma*r.^2)+betamin " and
" beta=beta0*exp(-gamma*r.^2) " and why you include betamin in to the equation?

Jinhua Zhou

Hamadi ikram

Hello , how can use firefly algorithm for tuning parameters of PSS and POD

Dear Sir

Could you please tell me how can I use Firefly algorithm to select the parameters of the SVR model?.

Thanks

padma reddy

Can any body tell me how fire fly can use for Classification to an Image.Please help me in code.

Thanks

omar serrano

porque en fa_mincon.m nunca evalúa la función dentro del doble for como lo marca en el articulo del 2010?

C zin ping

Dear sir
I have second order mathematical equation for surface roughness as output responses and cutting speed, feed, depth of cut as input parameters.I want to get optimal cutting conditions using firefly algorithm .
Can u show me demo how to write matlab coding using firefly algorithm??

MALATHI R K

Sangeetha Natarajan.. please help me

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

bajuri satu

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

jasmin mary

sir can i use FA for optimization of TMD parameters

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.

Sun Zhen

thanks

Aravinth

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

thanks

toan le

Vasanthamani

We require this to understand the concept

yaser moniri

thanks

realy good

Ashraf K.

v.Good

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.

behrang

TNX .

SCU

SCU (view profile)

Thank you so much, Dr. Yang

d g

d g (view profile)

very good..

hong

hong (view profile)

Luc

Luc (view profile)

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

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

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!

Updates

1.2.0.0

This updates includes extra demo files.

1.1.0.0

This update includes more robust demo programs.

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor