Skip to main content

The code uses PuLP module to formulate the problem and CPLEX, GUROBI, COIN_CMD, and PULP_solver to find the exact solution of the TSP. The module also includes heuristics and metaheuristics functions that can be used for large instances. More functions will be added. If you find an error or want to solve problems together write to me @shamikpushkar92@gmail.com.

The module has two parts:

1. Exact Solution tsp_exact uses PuLP module to formulate the problem and CPLEX, GUROBI, COIN_CMD, and PULP_solver to find the exact solution of the TSP. To setup an external solver follow this link.

2. Heuristics & Metaheuristics heuristics & metaheuristic functions are local search algorithms that can be used for large instances.

Dependencies include pulp, numpy, pandas, scipy, and copy.

Metadata

Release files for tsp-solutions 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsp-solutions 0.0.2
File Size Uploaded
tsp_solutions-0.0.2.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tsp-solutions 0.0.2
File Interpreter ABI Platform
tsp_solutions-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / tsp_solutions-0.0.2.tar.gz

Download URL tsp_solutions-0.0.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fcf43b1eb64381ba7a2c60cae0fc34b25d076db92393dd3521d57e935e3136a1
BLAKE2b-256 checksum
How to use checksums
41889cb5227dd70dfe847b6057dc08a869952611c007b7329e3dafb0e2c6b603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / tsp_solutions-0.0.2-py3-none-any.whl

Download URL tsp_solutions-0.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c010eb31ed801d96a47256adba5b788576a2bf77c19b1ea96f770d0f5d7dbfc2
BLAKE2b-256 checksum
How to use checksums
cbf4df893206b578326a8a85586792e558f960a8acbc1408f9d39353f6d84f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page