File Exchange

image thumbnail

Ackley Function

version 1.0.0.0 (1.07 KB) by Andrian

Andrian (view profile)

The Ackley function is an n-dimensional function that has a large number of local minima.

3 Downloads

Updated 04 Jun 2012

View License

The Ackley function is an n-dimensional function that has a large number of local minima but only one global minimum.
It is a typical problem to solve with evolutionary algorithms. The function has a global minimum at x = 0 with value = 0.

Comments and Ratings (2)

motevalizadeh

Can somebody show me how to use this function please !

The attached file has a bug:

"sum1 = s1+x(i)^2;
sum2 = s2+cos((2*pi)*x(i));"

should be

"sum1 = sum1+x(i)^2;
sum2 = sum2+cos((2*pi)*x(i));"

Just a small fix so it works out of the box! Otherwise great.

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Discover Live Editor

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


Learn About Live Editor