Is there any TSPLIB parser available that one can build on, or should I start from scratch and build my own? Languages of interest include C (Lisp and Prolog also, but as a long shot) and Python.

asked 09 Feb '12, 07:05

adamo's gravatar image

accept rate: 0%

retagged 13 Feb '12, 10:48

Thiago%20Serra's gravatar image

Thiago Serra


I think it would be faster just to write one than to surf for one to reuse :-) The format is very simple.

(09 Feb '12, 07:34) Bo Jensen ♦

I was looking to save me a day's work :)

(09 Feb '12, 17:51) adamo

you can use ReadProblem.c from or VRPIO.cpp, VRPTSPLib.cpp from


answered 09 Feb '12, 08:24

Rodrigo%20Linfati's gravatar image

Rodrigo Linfati
accept rate: 100%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 09 Feb '12, 07:05

Seen: 5,537 times

Last updated: 13 Feb '12, 10:48

OR-Exchange! Your site for questions, answers, and announcements about operations research.