Skip to content

Java code implementing the PSO algorithm and ABC algorithm in solving various continuous optimazation problems.

Notifications You must be signed in to change notification settings

kuboshizuma/swarm-intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swarm Intelligence

Swarm intelligence (SI) is the collective behavior of decentralized, self-organized systems, natural or artificial. The concept is employed in work on artificial intelligence.(Swarm intelligence - Wikipedia)

In this repository, a Java code is implemented for ABC(Artificial Bee Colony) algorithm and PSO(Partical Swarm Optimization) algorithm. You can get the minimum value of various function.

objType: shpere, threshold: [-5.0, 5.0]
objType: rastrigin, threshold: [-5.0, 5.0]
objType: rosenbrock, threshold: [-5.0, 5.0]
objType: griewank, threshold: [-600.0, 600.0]
objType: alpine, threshold: [-10.0, 10.0]
objType: minima (2n-minima), threshold: [-5.0, 5.0]

How To Use

PSO

At the top directory, execute the command below, and you can get the result (score and graph). If you want to try other parameters or objective function, please edit the parameters in PSOTester.java.

$ javac -cp :modules/jcommon.jar:modules/jfreechart.jar:modules:pso PSOTester.java
$ java -cp :modules/jcommon.jar:modules/jfreechart.jar:modules:pso PSOTester

ABC

At the top directory, execute the command below, and you can get the result (score and graph). If you want to try other parameters or objective function, please edit the parameters in ABCTester.java.

$ javac -cp :modules/jcommon.jar:modules/jfreechart.jar:modules:abc ABCTester.java
$ java -cp :modules/jcommon.jar:modules/jfreechart.jar:modules:abc ABCTester

About

Java code implementing the PSO algorithm and ABC algorithm in solving various continuous optimazation problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages