Skip to main content

TSPLIB95 works with TSPLIB95 files.

Project description

TSPLIB 95

https://img.shields.io/pypi/v/tsplib95.svg https://img.shields.io/travis/rhgrant10/tsplib95.svg Documentation Status

TSPLIB 95 is a library for working with TSPLIB 95 files.

For now…

  • documentation is light

  • only 3.6 is supported (I am willing to remove f-strings if there is support; I might also spontaneously decide to do that)

  • there are some things missing (looking at you, crystallography distance functions)

Features

  • read and use TSPLIB95 files like a boss

  • easily convert problems into networkx.Graph instances

  • supports and implements the following EDGE_WEIGHT_TYPE s

    • EXPLICIT

    • EUC_2D

    • EUC_3D

    • MAX_2D

    • MAX_3D

    • MAN_2D

    • MAN_3D

    • CEIL_2D

    • GEO

    • ATT

  • supports the following EDGE_WEIGHT_FORMAT s

    • FULL_MATRIX

    • UPPER_ROW

    • LOWER_ROW

    • UPPER_DIAG_ROW

    • LOWER_DIAG_ROW

    • UPPER_COL

    • LOWER_COL

    • UPPER_DIAG_COL

    • LOWER_DIAG_COL

  • supports SPECIAL FUNCTION edge weights too

It also has a CLI program to print a tabular summary of one or more TSPLIB95 files. No idea why anyone would want that, but there you have it.

Credits

See TSPLIB for original details, including file format specification, C++ code, and sample problems.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.0 (2018-08-12)

  • Implement column-wise matrices

  • Add a utiltiy for loading an unknown file

  • Fix bug in the ATT distance function

  • Update the CLI to use the models

  • Document a bunch-o-stuff

  • Switch to RTD sphinx theme

  • Move most utilties into utils

0.1.0 (2018-08-12)

  • First release on PyPI.

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

tsplib95-0.2.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

tsplib95-0.2.0-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tsplib95-0.2.0.tar.gz.

File metadata

  • Download URL: tsplib95-0.2.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for tsplib95-0.2.0.tar.gz
Algorithm Hash digest
SHA256 81273b7e1aa6b632db145efd12305544a50c6d06d728a9eb2bd8056cca02ed7b
MD5 30dab5f3cb82c3282c9601545d331877
BLAKE2b-256 33ad28193235bc38e097e975d7b40517033a3c7e0bfaad8706d8995d28a526a2

See more details on using hashes here.

File details

Details for the file tsplib95-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tsplib95-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for tsplib95-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 43e8844db63f97911f52be27e98fd8c56a0cee7a174e8cf986bc49082d3f56cb
MD5 1d3bd2f26ca181b3c513354f00ebb719
BLAKE2b-256 135e2fa936f2f395f6d58ef1d26716414faaa20f291341d3cca7c8e1b9b83865

See more details on using hashes here.

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