12.01.2013 Views

MATLAB Code

MATLAB Code

MATLAB Code

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

220 <strong>MATLAB</strong> CODE<br />

%_______________________________________________________<br />

% Create the initial population<br />

iga=0; % generation counter initialized<br />

pop=rand(popsize,npar); % random population of<br />

% continuous values<br />

fout=feval(ff,pop); % calculates population cost<br />

% using ff<br />

%_______________________________________________________<br />

% Iterate through generations<br />

while iga

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!