One Rank Cuckoo Search (ORCS) algorithm
01 May 2013
(Updated 03 May 2013)
An improved cuckoo search optimization algorithm. Well competent and easy to use.
function y = Ackley(x)
% Ackley function.
% Matlab Code by A. Hedar (Sep. 29, 2005).
% Last updated by Ahmed Tawfik (Apr. 30, 2013).
n = size(x,2);
a = 20; b = 0.2; c = 2*pi;
s1 = 0; s2 = 0;
s1 = s1+x(i)^2;
s2 = s2+cos(c*x(i));
y = -a*exp(-b*sqrt(1/n*s1))-exp(1/n*s2)+a+exp(1);