Git Product home page Git Product logo

go-tsp-aco's Introduction

TSP solver using Ant Colony Optimization

This project is a Go implementation of the Ant System algorithm proposed by M. Dorigo et al.

The main goal of this project was to produce a functional implementation of this algorithm and to test it against real world data to compare performance and accuracy of the algorithm. It was also a nice way to learn the basics of the Go language !

There's also a Node.js implementation available here!

Installation

Download the latest version for macOS under the releases section

Build from source

To build from source, you will need the go compiler and the vgo tool

Clone this repository and move to the sources directory

$ git clone <repository-url> go-tsp-aco
$ cd go-tsp-aco
$ vgo build

And voilà ! The compiler generated a binary named go-tsp-aco 🚀

Usage

The following flags are available :

  • -input : loads the given .tsp file.
  • -alpha : value of the alpha parameter.
  • -beta : value of the beta parameter.
  • -ants : number of ants per generations.
  • -generations : number of generations to simulate.
  • -evaporation : value for the pheromones evaporation rate.
  • -h or --help : displays the help message.

Licence

MIT

go-tsp-aco's People

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.