Skip to content
/ PSO Public

program it in C++. using the original method proposed by James Kennedy & Russell Eberhart(1995)

Notifications You must be signed in to change notification settings

xlsay/PSO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSO

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

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

No packages published

Languages