One Rank Cuckoo Search (ORCS) algorithm
01 May 2013
03 May 2013)
An improved cuckoo search optimization algorithm. Well competent and easy to use.
function y = Griewank(x)
% Griewank function.
% Matlab Code by A. Hedar (Sep. 29, 2005).
% Last updated by Ahmed Tawfik (Apr. 30, 2013).
n = size(x,2);
fr = 4000;
s = 0;
p = 1;
for j = 1:n; s = s+x(j)^2; end
for j = 1:n; p = p*cos(x(j)/sqrt(j)); end
y = s/fr-p+1;