Code covered by the BSD License  

Highlights from
One Rank Cuckoo Search (ORCS) algorithm

One Rank Cuckoo Search (ORCS) algorithm

by

 

01 May 2013 (Updated )

An improved cuckoo search optimization algorithm. Well competent and easy to use.

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