Code covered by the BSD License  

Highlights from
One Rank Cuckoo Search (ORCS) algorithm

from One Rank Cuckoo Search (ORCS) algorithm by Ahmed Tawfik
An improved cuckoo search algorithm, for optimization problems.

Ackley(x)
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;
for i=1:n;
   s1 = s1+x(i)^2;
   s2 = s2+cos(c*x(i));
end
y = -a*exp(-b*sqrt(1/n*s1))-exp(1/n*s2)+a+exp(1);

Contact us