4

I'm currently doing a project that requires some fast TSP solving (about 50-100 nodes in 2 seconds). There are a lots of approximation algorithms out there, but I don't have time nor will to analyze them and code them myself.

Are there any free libraries that can solve TSP problem (approximation will do too)? Something like sortedNodes = solveTspPrettyPlease(nodes, 2sec) would be just great.

Thanks in advance.

skaffman
  • 398,947
  • 96
  • 818
  • 769
bezmax
  • 25,562
  • 10
  • 53
  • 84
  • 4
    +1 " *Something like sortedNodes = solveTspPrettyPlease(nodes, 2sec) would be just great* " I lol'ed. :) If only everything could be solved like that. Imagine this: *pleaseRunMyEntireApplicationAsItShouldKThxBye()*. :) – SyntaxT3rr0r Dec 28 '10 at 14:06

2 Answers2

1
moinudin
  • 134,091
  • 45
  • 190
  • 216
0

Regarding the http://code.google.com/p/java-traveling-salesman/ link, you'll need to get the CVS version of jgap from April 1, 2006. You'll also need to hack the tsp code a little bit. Change JGapGreedyCrossoverEngine.java from protected double evaluate(Chromosome a_subject) to protected double evaluate(IChromosome a_subject)