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
For now, I am still testing the package, but you can install via pip:
pip install --index-url https://test.pypi.org/simple/ 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
- Nearest Neighbour (
.nn
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file tsp_algorithms-0.1.0.tar.gz
.
File metadata
- Download URL: tsp_algorithms-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac71d284c30fd4303c2e952f68064ffa02bd6dbee9e964476e75f19779e7d140 |
|
MD5 | 5934cabf2540410af77d5fcc027642ed |
|
BLAKE2b-256 | f846445c7b911f5fbf95a5fa2a7e8cd97b9b36f888f8ef3def2547479aef65db |
File details
Details for the file tsp_algorithms-0.1.0-cp311-cp311-macosx_13_0_arm64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp311-cp311-macosx_13_0_arm64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.11, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2674e64322d4fc76de01bb402d39b374ee423cb0eb6c77c3fe2382ccb7c1ae |
|
MD5 | b613a0be4a6b2077121f494c2de5bab6 |
|
BLAKE2b-256 | 07f9bd09ac46713e237195fc007a431c18af500d31d0fc873fdf3289438554c3 |
File details
Details for the file tsp_algorithms-0.1.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 12.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225fa1db83de1b9918b55a750a8fad298170a2d8ac6f84fbe9c873df3c5c7885 |
|
MD5 | 5dc01c77c3a7985e889d199cdb6d5be4 |
|
BLAKE2b-256 | b1f7c4bd3fd04bf902c54180fbab347a251b31e31902050e61788fa2813137f2 |
File details
Details for the file tsp_algorithms-0.1.0-cp310-cp310-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp310-cp310-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 20.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41918859694d29b859d070192949563205b840dfe4760ec793fc21bdf1d28aab |
|
MD5 | 3e0f744b565662d31c4d1f358205efbf |
|
BLAKE2b-256 | cbdf9dc59e5fae73355a0cfd04ade539944a41939a719c0cdacec5bfcc621d71 |
File details
Details for the file tsp_algorithms-0.1.0-cp310-cp310-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp310-cp310-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
- Upload date:
- Size: 20.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 195302626cd59e9c503a4dba84741206b891b90d939fd4b5fb5566de7f7e0fb7 |
|
MD5 | 0e591f77aa9957de8017ed49da413ad6 |
|
BLAKE2b-256 | b7469bcc22a8f4d59ff4ad498b95f244d56ebae89215e851d7fea677d7bfa409 |
File details
Details for the file tsp_algorithms-0.1.0-cp310-cp310-macosx_13_0_arm64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp310-cp310-macosx_13_0_arm64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.10, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80e4ee82d1237888969f583a79488f70424731b5cea961009c509d461c0edf5 |
|
MD5 | d835c2f288be10915d7f9869e9b75989 |
|
BLAKE2b-256 | 2a19b6153cb04952c067ec47a7b7e3710c5ce12fdac684cacc021f34567c11a5 |
File details
Details for the file tsp_algorithms-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp310-cp310-macosx_11_0_x86_64.whl
- Upload date:
- Size: 7.5 kB
- Tags: CPython 3.10, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af61e95145f737b0c277118cda92166aaea28344dd0f451d26b0c06b40d0bbb |
|
MD5 | c47fc1f92135d799dc30f0cb9ca9710a |
|
BLAKE2b-256 | 03d0a680f2546f36cec3cd237a3823bac59035b9464a27ba88723485da61f6d4 |
File details
Details for the file tsp_algorithms-0.1.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 12.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5304ad80b102ff0877dd0b9dd75c2954b044d1efb736743c81189678cab52fd |
|
MD5 | e9b99019efc4368615d72da4a6b2180b |
|
BLAKE2b-256 | 0544b9e0cbafdf9756090ff4c221b26a793e34875a9c4ab09a56e2d799082e5b |
File details
Details for the file tsp_algorithms-0.1.0-cp39-cp39-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp39-cp39-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 20.2 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801e65d240272fa79ef62b913b80fb92d402243f750bd98224251d9ea8f13c71 |
|
MD5 | dec10a2c8dd6d1ae4cf1f1ba40d5a2b1 |
|
BLAKE2b-256 | 45c59516caf6cf68eac27fa79f37a34bcf8b92ad31d7949825ca1a7d1cde028e |
File details
Details for the file tsp_algorithms-0.1.0-cp39-cp39-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp39-cp39-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
- Upload date:
- Size: 19.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f120ee7ed21e99b47135770bbd150d3ee2ab47860382b063ba72f3419a309058 |
|
MD5 | 61f150e5d7ef8439e43f58b8ace1d55b |
|
BLAKE2b-256 | 570d589b243253a09f60d6920f34f4e4fa6e27964ec564ac159225bc723c8ff4 |
File details
Details for the file tsp_algorithms-0.1.0-cp39-cp39-macosx_13_0_arm64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp39-cp39-macosx_13_0_arm64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.9, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2362bea497ffcce27b8c9739d5c36c7cfbfc46ba287ecd27c3a09bc8ff92b069 |
|
MD5 | b6bebb17c1dc619e4ea09fef6dcd17c8 |
|
BLAKE2b-256 | 40c0eafea41edfd08bde3ebeffab9f21da9016b8797a39c66f66b954b4da1ce7 |
File details
Details for the file tsp_algorithms-0.1.0-cp39-cp39-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp39-cp39-macosx_11_0_x86_64.whl
- Upload date:
- Size: 7.5 kB
- Tags: CPython 3.9, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652864482c47b6ad86a80d859e8844c697077d0a31b593adc26a801e987b0e9f |
|
MD5 | d3f01aaa4c18b3cd71d34621e2d3a026 |
|
BLAKE2b-256 | 4887e65aac78d434506ce8dd15ed91f590a42343c602a0c64a3d71626b31bf1f |
File details
Details for the file tsp_algorithms-0.1.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 12.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe60af94add472761e688d56e52ac83a1e350a32a104a4b06d3c079a3cd05c7 |
|
MD5 | a5af7a0460e0908806052a68ffa34011 |
|
BLAKE2b-256 | b6dee0bfc23f64ac8b99546d0cdbba9df040f0bbb78339a78d95746af301870a |
File details
Details for the file tsp_algorithms-0.1.0-cp38-cp38-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp38-cp38-manylinux_2_12_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 20.4 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954a630f3552b239ac75e87f49959d34641797ff9f54ac3192bc3d35cd9af625 |
|
MD5 | 1605fc8ac73bde884b9900c256bc65f5 |
|
BLAKE2b-256 | f892f64a032e6c44202041da460d6c8ac0e27cb4a0f826621ec9825d3fd41563 |
File details
Details for the file tsp_algorithms-0.1.0-cp38-cp38-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp38-cp38-manylinux_2_12_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2010_i686.whl
- Upload date:
- Size: 20.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66f0ba7e940b8bcf7f8cb4052d4d384047f5735be70d24ce58ec51d1dd86aa12 |
|
MD5 | fbaad43dcf751fb2ed84d1bf0f96f2d1 |
|
BLAKE2b-256 | b8f8883d58975bfebca5dd4154be2789cc23d0ddc084997f5f89226b515565ae |
File details
Details for the file tsp_algorithms-0.1.0-cp38-cp38-macosx_13_0_arm64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp38-cp38-macosx_13_0_arm64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.8, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340c9509623ce2cdd3269dd02aa5a0b04317334647a84fc14c362c8020db3f0c |
|
MD5 | 806ab94629861231311307b41cfc7d66 |
|
BLAKE2b-256 | 6415b05fccc040028232692154799315c3735a4a92f411ccfa0b811adbdfe828 |
File details
Details for the file tsp_algorithms-0.1.0-cp38-cp38-macosx_10_16_x86_64.whl
.
File metadata
- Download URL: tsp_algorithms-0.1.0-cp38-cp38-macosx_10_16_x86_64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.8, macOS 10.16+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcee17918838ae9d098ae39dbcae96139e4ae366111f6d3b09821559d573523f |
|
MD5 | 7dc13badb98b2db819e70af1ae9b1933 |
|
BLAKE2b-256 | 63188d8a2261514a5e1eebcb115f7f3048e6ae4503e26d11e61c07f0b77cec4e |