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.
XS Yang (2021). Multiobjective Firefly Algorithm (MOFA) (https://www.mathworks.com/matlabcentral/fileexchange/74755-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.
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!