Multiobjective Firefly Algorithm (MOFA)

Version 2.0.0 (6.35 KB) by XS Yang
This demo shows how the multiobjective firefly algorithm (MOFA) works.


Updated 29 Mar 2020

View License

The multiobjective firefly algorithm (MOFA) is a nature-inspired optimization algorithm. This demo solves the bi-objective ZDT3 functions with D=30 (dimensions), and the obtained Pareto Front is displayed. It is relatively straightforward to extend this code to solve other multi-objective functions and optimization problems. You can change the objective functions, the dimensionality, and simple lower and upper bounds (Lb, Ub). Some parameter tuning to vary parameters slightly (such as theta, gamma, and number of iterations) may help improve the quality of the solutions.

Cite As

XS Yang (2023). Multiobjective Firefly Algorithm (MOFA) (, MATLAB Central File Exchange. Retrieved .

Yang, Xin-She. “Multiobjective Firefly Algorithm for Continuous Optimization.” Engineering with Computers, vol. 29, no. 2, Springer Science and Business Media LLC, Jan. 2012, pp. 175–84, doi:10.1007/s00366-012-0254-1.

View more styles
MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated version.