Coder Social home page Coder Social logo

drahoslavzan / mkp-pso Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 13.23 MB

A Distributed Multidimensional Knapsack Problem Solver using Island Based Particle Swarm Optimization

License: GNU General Public License v3.0

C 80.76% C++ 1.31% Cuda 0.24% Objective-C 14.69% CSS 0.10% JavaScript 0.15% Shell 0.19% IDL 0.03% MATLAB 0.11% Perl 1.39% Fortran 0.77% Python 0.25% Assembly 0.01%

mkp-pso's Introduction

A Distributed Multidimensional Knapsack Problem Solver using Island Based Particle Swarm Optimization

This package contains an efficient CPU and GPU implementations of the platform for solving various problems using the Particle Swarm Optimization (PSO) technique. The Multidimensional Knapsack Problem (MKP) was chosen as a benchmark for demonstration purposes, but it is one of the most widely used combinatorial optimization problems. This solver can also be used in parallel environment such as HPC cluster, where one or more multi-core CPUs or GPU are allocated for each swarm (process). Running in a such configuration can lead to a better solution and/or reduced time spent in searching for a solution.

External libraries:

  • OpenMPI
  • PAPI

Build:

$ cd cpu  
$ mkdir build  
$ cd build  
$ cmake ..  
$ make

Example (4 swarms):

$ ./mkp --help  
$ mpirun -np 4 ./mkp --exch 1 --stat 0 --stop 300 --epochs 3000 --particles 128 --vel "5 10 15 20" --verbose ../../data/weing8.dat

mkp-pso's People

Contributors

drahoslavzan avatar

Stargazers

 avatar  avatar

Watchers

 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.