GithubHelp home page GithubHelp logo

anthrax3 / js-aco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gordyd/js-aco

0.0 1.0 0.0 23 KB

A visual demo of Ant Colony Optimisation applied to TSP written in Javascript

License: MIT License

JavaScript 100.00%

js-aco's Introduction

JS ACO

JS ACO is a visual demo of Ant Colony Optimisation written in Javascript (ES6). It contains basic example of how ACO works given a randomly generated TSP. The basic parameters of the Ant System are available to be tuned.

The UI will show the current optimum tour, and also a heat map of the heuristic (distance) matrix plus a pheromone matrix. This information will update as the algorithm runs.

Demo

You can see it in action here.

JS-ACO Screenshot

Setup

  • Clone the repository git clone https://github.com/GordyD/js-aco
  • cd js-aco
  • npm install
  • bower install

To run in development

  • Run npm run develop
  • Go to http://localhost:8080
  • To increase problem size set query param nodes to an Integer
  • To use a different seed set query param seed to a String or Number

Further Work

I intend to:

  • add other ACO algorithms to this library
  • add further support for more formats of TSP problems found in TSPLib
  • provide greater interactivity with visualisations

js-aco's People

Contributors

gordyd 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.