title: Ackley optimization Matlab
body: <p>Can anyone help me please with how should i do an optimaztion with Evolution Strategies for ackley function ? </p>
  
  <p>Here i have the function:</p>
  
  <pre><code>function rez=ackley(x)
  [m,d]=size(x);
  sum1=0;
  sum2=0;
  for i=1:d
  sum1=sum1+x(i)^2;
  sum2=sum2+cos(2*pi*x(i));
  end
  rez=20+exp(1)-20*exp(-0.1*sqrt(sum1/d))-exp(sum2/d);
  end
  </code></pre>