Last change
on this file since 195 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
|
---|
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.