program it in C++. using the original method proposed by James Kennedy & Russell Eberhart(1995)
AS FOLLOWING:
[x*] = PSO()
P = Particle_Initialization();
For i=1 to it_max
For each particle p in P do
fp = f(p);
If fp is better than f(pBest)
pBest = p;
end
end
gBest = best p in P;
For each particle p in P do
v = v + c1*rand*(pBest – p) + c2*rand*(gBest – p);
p = p + v;
end
end
-
Notifications
You must be signed in to change notification settings - Fork 3
xlsay/PSO
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
program it in C++. using the original method proposed by James Kennedy & Russell Eberhart(1995)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published