fkjellstrom3.m 174 Bytes
Newer Older
1 2 3 4 5 6 7
function f=fkjellstrom3(x)
  
  global alphaParam;

  N = size(x,1);
  
  f = 4*sum((x(1:N-1)-sin(x(N) + 2*pi*([1:N-1]'./(N-1)))).^2) + abs(x(N))/4 + alphaParam*sin(10*x(N));