Installation
Install via pip:
pip install tspwplib
You will also need access to the OPLib dataset:
git clone https://github.com/bcamath-ds/OPLib.git
Optionally you may also want to download the original tsplib95 dataset:
git clone https://github.com/rhgrant10/tsplib95.git
It is convenient to define environment variables to define the location of OPLib and tsplib95:
TSPLIB_ROOT="$(pwd)/tsplib95/archives/problems/tsp"
OPLIB_ROOT="$(pwd)/OPLib/"
Replace $(pwd)
with the appropriate directory where you cloned OPLib and tsplib95.
Docker
You can also use docker:
docker pull patrickohara/tspwplib:latest
To build the tspwplib docker image:
docker build -t patrickohara/tspwplib:latest .