Skip to main content

TSP Algorithms developed as C extension for Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsp_algorithms-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distributions

tsp_algorithms-0.2.0-cp311-cp311-macosx_13_0_arm64.whl (10.1 kB view hashes)

Uploaded CPython 3.11 macOS 13.0+ ARM64

tsp_algorithms-0.2.0-cp310-cp310-win_amd64.whl (16.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

tsp_algorithms-0.2.0-cp310-cp310-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl (20.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

tsp_algorithms-0.2.0-cp310-cp310-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl (19.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

tsp_algorithms-0.2.0-cp310-cp310-macosx_13_0_arm64.whl (10.1 kB view hashes)

Uploaded CPython 3.10 macOS 13.0+ ARM64

tsp_algorithms-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl (10.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

tsp_algorithms-0.2.0-cp39-cp39-win_amd64.whl (16.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

tsp_algorithms-0.2.0-cp39-cp39-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl (20.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

tsp_algorithms-0.2.0-cp39-cp39-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl (19.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

tsp_algorithms-0.2.0-cp39-cp39-macosx_13_0_arm64.whl (10.1 kB view hashes)

Uploaded CPython 3.9 macOS 13.0+ ARM64

tsp_algorithms-0.2.0-cp39-cp39-macosx_11_0_x86_64.whl (10.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

tsp_algorithms-0.2.0-cp38-cp38-win_amd64.whl (16.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

tsp_algorithms-0.2.0-cp38-cp38-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl (20.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

tsp_algorithms-0.2.0-cp38-cp38-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl (19.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686 manylinux: glibc 2.5+ i686

tsp_algorithms-0.2.0-cp38-cp38-macosx_13_0_arm64.whl (10.1 kB view hashes)

Uploaded CPython 3.8 macOS 13.0+ ARM64

tsp_algorithms-0.2.0-cp38-cp38-macosx_10_16_x86_64.whl (10.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.16+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page