source: liacs/NC2010/laser-pulse-shaping/SHGa.m@ 178

Last change on this file since 178 was 35, checked in by Rick van der Zwet, 15 years ago

Make it work under MatLab

File size: 303 bytes
Line 
1% Particle Swarm optimalisation
2% BSDLicence
3% Rick van der Zwet - 0433373 - <hvdzwet@liacs.nl>
4% Modeled after http://en.wikipedia.org/wiki/Particle_swarm_optimization
5
6% Iterate on multiple vectors
7function fitness = SHGa(v)
8 for i = 1:length(v(1,:))
9 fitness(i) = SHG(v(:,i));
10 end
11end
12
Note: See TracBrowser for help on using the repository browser.