Skip to content

Gustavo-SF/tsp-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSP Algorithms developed as C extensions for Python

Introduction

In a VRP problem, the objective is to find the best route for a fleet of vehicles to visit a set of customers. The best route is the one that minimizes the total distance traveled by the fleet. The problem is NP-hard, and there are many heuristics to solve it.

Install

You can install via pip:

pip install tsp-algorithms

Usage

Just import the package and use one of the methods available:

import tsp_algorithms as tsp

tsp.nn([[0., 1.], [2., 3.]])

Available methods

About

TSP Algorithms developed as C extensions for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published