MATLAB Code
MATLAB Code
MATLAB Code
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
232 <strong>MATLAB</strong> CODE<br />
elseif funnum==12 %F12<br />
f(:,1)=.5+(sin(sqrt(x(:,1).^2+x(:,2).^2).^2)-<br />
.5)./(1+.1*(x(:,1).^2+x(:,2).^2));<br />
elseif funnum==13 %F13<br />
aa=x(:,1).^2+x(:,2).^2;<br />
bb=((x(:,1)+.5).^2+x(:,2).^2).^0.1;<br />
f(:,1)=aa.^0.25.*sin(30*bb).^2+abs(x(:,1))+abs(x(:,2));<br />
elseif funnum==14 %F14<br />
f(:,1)=besselj(0,x(:,1).^2+x(:,2).^2)+abs(1x(:,1))/10+abs(1-x(:,2))/10;<br />
elseif funnum==15 %F15<br />
f(:,1)=-exp(.2*sqrt((x(:,1)-1).^2+(x(:,2)-<br />
1).^2)+(cos(2*x(:,1))+sin(2*x(:,1))));<br />
elseif funnum==16 %F16<br />
f(:,1)=x(:,1).*sin(sqrt(abs(x(:,1)-(x(:,2)+9))))-<br />
(x(:,2)+9).*sin(sqrt(abs(x(:,2)+0.5*x(:,1)+9)));<br />
elseif funnum==17 %MOO function<br />
x=x+1;<br />
f(:,1)=(x(:,1)+x(:,2).^2+sqrt(x(:,3))+1./x(:,4))/8.5;<br />
f(:,2)=(1./x(:,1)+1./x(:,2)+x(:,3)+x(:,4))/6;<br />
end