GithubHelp home page GithubHelp logo

tsp-solvers's Introduction

TSP solvers

This library has a number of solvers for the TSP problem. To be able to implement the solvers we have also implemented a Graph class that allows to store the data for the problem.

The graph can be initialized from a json file, randomly or from tsplib files.

The current full methods implemented to solve the TSP are:

  • Ant Colony Optimization (ACO) in the AS mode.
  • Genetic Algorithm (GA).
  • Linear programming with the Miller-Tucker-Zemlin formulation (MTZ).
  • Linear programming with the Dantzig-Fulkerson-Johnson formulation (DFJ).
  • Particle Swarm Optimization (PSO).
  • Three-opt local search.
  • Three-opt local search with simulated annealing.
  • Two-opt local search.
  • Two-opt local search with simulated annealing.

Currently there are other methods that are not yet completed or published, but are in the works to get solutions from them as well:

  • Christofides algorithm.
  • Dynamic programming.
  • Held-Karp algorithm.
  • Self-organizing maps (SOM).
  • Simulated annealing.

The library also comes with a set of examples (in json format) having ten instances for problems with 10, 25, 50, 100, 150, 200 and 250 nodes.

A future benchmark module will be available to compare properly all the different methods that are implemented in the library and get which methods are able to get the best solutions in the same time.

tsp-solvers's People

Contributors

dependabot[bot] avatar ggsdc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tsp-solvers's Issues

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.