source:
liacs/NC2010/laser-pulse-shaping/SHGa.m
Last change on this file was 35, checked in by , 15 years ago | |
---|---|
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 |
7 | function fitness = SHGa(v) |
8 | for i = 1:length(v(1,:)) |
9 | fitness(i) = SHG(v(:,i)); |
10 | end |
11 | end |
12 |
Note:
See TracBrowser
for help on using the repository browser.