go-tsp

command module
Version: v0.0.0-...-e3ff730 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2019 License: MIT Imports: 14 Imported by: 0

README

go-tsp

Travelling salesman problem solved with Genetic Algorithm using Go.

How to run

The program can be ran 2 ways

  1. go run main.go
    or
  2. go build : an executable file is generated
    ie: go-tsp.exe. Run the file.

Results

The program will create a folder called tsp(*can be defined in program), which stores the results based on the seed number provided. The results are images(.png) of the tours that outperform their predecessors.
ie: ./tsp/[seed number]/[images....png]

Sample Results:
Alt text

Documentation

The program can be tweaked by modifying the global variables in

  • main.go
  • geneticAlgorithm/geneticAlgBase.go

Resources

Documentation

Overview

THIS FILE IS ONLY FOR DEVELOPMENT AND TESTING FUNCTIONS

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL