You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

2 months ago
  1. This subdirectory contains an example application program, TSPSOL,
  2. which is a stand-alone solver intended to solve the Symmetric Traveling
  3. Salesman Problem (TSP) with the GLPK integer optimizer.
  4. Please note that this program is only an illustrative example that
  5. illustrates generating "lazy" constraints during the branch-and-bound
  6. search. It is *not* a state-of-the-art code, so only small-sized TSP
  7. instances (perhaps, having up to 150-200 nodes) can be solved with this
  8. program in a reasonable time. For more details see comments in the
  9. source code.
  10. To build TSPSOL executable you need to run 'build.sh' script. Note that
  11. you should have the GLPK library properly installed.
  12. To run the TSPSOL program use the following command:
  13. tspsol tsp-file
  14. where tsp-file specifies an input text file containing TSP data in
  15. TSPLIB 95 format.
  16. Detailed description of the input format recognized by TSPSOL is given
  17. in the report: Gerhard Reinelt, "TSPLIB 95". This report as well as
  18. TSPLIB, a library of sample TSP instances, are freely available for
  19. research purposes; see:
  20. <http://www.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/>.
  21. This subdirectory also includes the following example TSP instances:
  22. dantzig42.tsp 42 cities (Dantzig) [from TSPLIB]
  23. gr120.tsp 120 cities in Germany (Groetschel) [from TSPLIB]
  24. moscow.tsp 68 cities in Moscow region (Makhorin)
  25. sample.tsp small example from D.Phillips and A.Garcia-Diaz
  26. ulysses16.tsp Odyssey of Ulysses (Groetschel/Padberg) [from TSPLIB]
  27. ulysses22.tsp Odyssey of Ulysses (Groetschel/Padberg) [from TSPLIB]
  28. Please send comments to the <help-glpk@gnu.org> mailing list.