function[res]=ackley(s)
x=s(1);
y=s(2);
% % Ackley function
res=-20*exp(-0.2*sqrt(0.5*((x^2)+(y^2))))-exp(0.5*(cos(2*pi*x)+cos(2*pi*y)))+exp(1)+20;






% % res=(s(1)-2)^2+(s(2)-4)^2+(s(3)-1)^2+(s(4)-3)^2 +(s(5)+1)^2;
% % res=s(1)^2-(10*s(1))+25;
% % res=(s(1)+(2*s(2))-7)^2+((2*s(1))+s(2)-5)^2; %%Booth function
% %  res=(1.5-s(1)+(s(1)*s(2)))^2+(2.25-s(1)+(s(1)*(s(2)^2)))^2+(2.625-s(1)+(s(1)*(s(2)^3)))^2; %%Beale function
% % g1=(x-1)^3-y+1;
% % g2=(x^2)+(y^2)-2;
% % if g2<=0  %%Rosenbrock function constrained to a disk(With constraints)
% %     res=(1-x)^2+(100*(y-x^2)^2);
% % else
% %     res=10^5;
% % end

% % % % Mishra's Bird function - constrained
% % g1=(1-cos(x))^2;
% % g2=(1-sin(y))^2;
% % if (x+5)^2+(y+5)^2<25
% %    res=(sin(y)*exp(g1))+(cos(x)*exp(g2))+(x-y)^2;
% % % %    +106.7645367;
% % else
% %    res=10^5;
% % end

% % % % Bukin Function
% % if (-15<x) && (x<-5) && (-3<y) && (y<3)
% % g1=abs(y-(0.01*(x^2)));
% % g2=abs(x+10);
% % res= (100*sqrt(g1))+(0.01*g2);
% % else 
% %     res=10^5;
% % end



% % g1=x+(5*y); %%maximization problem with constraints
% % g2=(2*x)+(3*y);
% % if x>=0 && y>=0 && g1<=200 && g2<=134
% %     res=1/((4*x)+(9*y));
% % else
% %     res=10^5;
% % end