Skip to content

isso-tat/pso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pso

About

A model to find the minimum value of multidimensional functions.
It uses:
Partical Swap Optimization
https://en.wikipedia.org/wiki/Particle_swarm_optimization

Artificial Bee Colony algorithm
https://en.wikipedia.org/wiki/Artificial_bee_colony_algorithm

How to start

cd pso
python3 main.py

Shows the lowest value, and position at that time.
Also plots the history of the lowest value on Semi-log graph.
Firstly runs with PSO, and then ABC.

How to test

change functions

In functions.installer, change below:

class FunctionInstaller:
    ...
    def function_install(dimension):
        # return Sphere(dimension) <- remove comment out of the function you wanna use.
        ...
        return Minima2n(dimension) <- comment out functions you don't wanna use.

Then, run test.py

cd pso
python3 test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages