Giter Site home page Giter Site logo

arnomoonens / closest-string-problem Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 57 KB

Solving the closest string problem using swarm intelligence

License: MIT License

C++ 82.13% Shell 5.55% R 12.32%
swarm-intelligence closest-string-problem ant-colony-optimization mmas acs heuristic-optimization cpp optimization-algorithms

closest-string-problem's Introduction

Swarm Intelligence project: Closest string problem

Usage

First, the C++ code needs to be compiled. This can be done in the terminal by executing (when being in the directory with the code):

g++ *.cpp -o CSP

his should result in a binary file called CSP. Some parameters can be passed to this file to influence the working of the program. These parameters are:

  • --algo <string>: Algorithm to use. Can be mmas or acs. The default is mmas.
  • --ants <int>: Number of ants to build every iteration. The default is 10.
  • --alpha <float>: Alpha parameter (float). The default is 1.
  • --beta <float>: Beta parameter (float). The default is 1.
  • --rho <float>: Rho parameter (float). The default is 0.2.
  • --iterations <int>: Maximum number of iterations to perform (integer). The default is 0 (disabled).
  • --seed <int>: Number for the random seed generator.
  • --ls: Use local search. If this parameter isn't given, local search is disabled.
  • --exploitation <float>: Exploitation probability. The default is 0.9.
  • --instance <string>: Path to the instance file

The analysis file, analysis.R, is an R script that can be called as such:

Rscript analysis.R
    /PATH/TO/RESULTS
    /PATH/TO/instances.opt

Some results of the analysis are printed and some are saved in the results directory that was passed to the program.

closest-string-problem's People

Contributors

arnomoonens avatar

Stargazers

 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.