GEOFARL / tsp-genetic

TSP visualizer that uses Genetic algorithm with different parameters

Home Page:https://6554c27723fb860e96e82e05--tangerine-faun-e81232.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Traveling Salesman Problem

This is a web application which was designed with following main goals:

  • Apply genetic algorithm to solve Traveling Salesman Problem
  • Visualize solution process and generation building
  • Provide a handful UI
  • Examine different parameters of GA and their impact on performance
  • Plot graphics to better understand the picture

Algorithms implemented

Selections:

  • Wheel Selection

Crossovers:

  • Heuristic crossover
  • Partially mapped crossover (PMX)
  • Ordered crossover (OX)

Mutations:

  • Swap
  • Displacement

Local improvements:

  • Two optimum
  • Three optimum

Demonstration

demonstration

Interface

Main screen

main-view

Plots

plots

Run locally

  1. Clone this repo
  2. Install dependencies
npm install
  1. Run program
npm run dev
  1. Go to localhost:3000

Run test suite

npm test

About

TSP visualizer that uses Genetic algorithm with different parameters

https://6554c27723fb860e96e82e05--tangerine-faun-e81232.netlify.app/


Languages

Language:TypeScript 99.2%Language:HTML 0.5%Language:JavaScript 0.2%Language:CSS 0.1%