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.
214 <strong>MATLAB</strong> CODE<br />
%_______________________________________________________<br />
% Sort the costs and associated parameters<br />
[cost,ind]=sort(cost);<br />
par=par(ind,:); pop=pop(ind,:);<br />
%_______________________________________________________<br />
% Do statistics for a single nonaveraging run<br />
minc(iga+1)=min(cost);<br />
meanc(iga+1)=mean(cost);<br />
%_______________________________________________________<br />
% Stopping criteria<br />
if iga>maxit | cost(1)