pdrm83/py2opt

How to solve the traveling salesman problem with the 2-opt algorithm, a fast heuristic search algorithm.

49
/ 100
Emerging

This helps with logistical planning by finding the shortest possible route between multiple locations. You input a list of locations and the distances between each pair, and it outputs the most efficient order to visit them and the total distance. This is useful for anyone who needs to optimize travel paths, such as delivery managers, field service coordinators, or operations planners.

No commits in the last 6 months. Available on PyPI.

Use this if you need to quickly find a good, near-optimal solution for the shortest route visiting many points, even if a perfectly optimal solution isn't strictly necessary.

Not ideal if you absolutely require the guaranteed globally shortest route for a complex problem, as this algorithm provides fast, good solutions but not always the absolute best.

logistics planning route optimization delivery management operations scheduling supply chain efficiency
Stale 6m
Maintenance 0 / 25
Adoption 7 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

34

Forks

10

Language

Python

License

MIT

Last pushed

Jan 17, 2023

Commits (30d)

0

Dependencies

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/pdrm83/py2opt"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.