Ant Lion Optimizer toolbox

A toolbox for the Ant Lion Optimizer (ALO) algorithm
Updated 22 May 2018

View License

This is a simple toolbox with a use-friendly graphical interface, which is very suitable for those without high programming skills.
The parameters of the ALO algorithm can be easily defined in the toolbox.
The default name of the objective function is CostFunction. If you have a look at the CostFunction.m file, you may notice that the cost function gets the variables in a vector ([x1 x2 ... xn]) and returns the objective value. You can either write you objective function in this file or create a new file and pass its name to the toolbox. Remember to follow the same structure for input and output if you decided to go for the second option.
The lower bounds and upper bounds of variables should also be written as lb1,lb2,...,lbn and ub1,ub2,...,ubn. If all of the variables have equal lower and/or upper bounds you can just define lb and ub as two single number numbers: lb, ub.
Just run the ALO_toolbox.m file and enjoy!

This is the source codes of the paper:

Seyedali Mirjalili, The Ant Lion Optimizer, Advances in Engineering Software, Volume 83, May 2015, Pages 80-98, ISSN 0965-9978,

Download the paper for free until April 22, 2015 from :

More information can be found in:

I have a number of relevant courses in this area. You can enrol via the following links with 95% discount:

A course on “Optimization Problems and Algorithms: how to understand, formulation, and solve optimization problems”:

A course on “Introduction to Genetic Algorithms: Theory and Applications”

Cite As

Seyedali Mirjalili (2024). Ant Lion Optimizer toolbox (, MATLAB Central File Exchange. Retrieved .

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

Inspired: Multi-objective Ant Lion Optimizer (MOALO)

Community Treasure Hunt

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

Start Hunting!