GithubHelp home page GithubHelp logo

witek1902 / pso-algorithm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 147 KB

Particle Swarm Optimization (PSO) with visualisation in Java (Swing)

License: MIT License

TeX 5.36% Java 94.64%
java swing pso algorithm particle-swarm-optimization

pso-algorithm's Introduction

Java (Swing) Particle Swarm Optimization (PSO) with visualisation

Program OptiPSO

About

This project was created in 2013. In January 2018 I decided to little refactoring and publishing it for open source.

In folder old-src you can see the old code written in student times with comment/code in polish language :)

In folder algorithm-description is located base description Particle Swarm Optimization in polish language (LaTeX version and PDF).

Requirements

  • Java 8
  • Maven 3

Algorithm parameters

User can change algorithm parameters from UI or load from file. Example file with configuration:

CIRCLE_ONE
300
2000
0.3
0.2
0.4


1. Function (one of: CIRCLE_ONE, CIRCLE_TWO, EGG_ONE, EGG_TWO, PARABOLA). By default = PARABOLA.
2. Number of particles
3. Number of steps
4. Omega
5. Alpha
6. Beta

Available functions

CIRCLE_ONE -> 0.5 * (cos(62.8 * x) + cos(62.8 * y)) - 4 * (x * x + y * y)
CIRCLE_TWO -> cos(96 * sqrt(x * x + y * y)) - 4 * (x * x + y * y)
EGG_ONE -> 0.5 * (cos(31.4 * x) + cos(31.4 * y)) - 4 * (x * x + y * y)
EGG_TWO -> 0.5 * (cos(62.8 * x) + cos(62.8 * y)) - 4 * (x * x + y * y)
PARABOLA -> -4 * (x * x + y * y)

If you want add custom function:

  1. Add new class which implements Function interface,
  2. Add value to FunctionType enum,
  3. Add entry to Map in to FunctionInvoker class.

TODO

  1. Write tests.
  2. Split GUI class.

References

pso-algorithm's People

Contributors

witek1902 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.