📄 readme
字号:
This directory contains a simple solver written in ansi-Cfor the Symmetric Euclidean Traveling Salesman Problem. It is available from http://www.cenaath.cena.dgac.fr/~maugis/tsp.shar Produces a postscript output of - the problem instance - a minimum spanning tree (mst) connecting the cities - an approximation based Prim's algorithm- the solution found by simulated annealingSolution based on local search heuristics for non-crossing paths andnearest neighbors. See G. Reinelt, "The Traveling Salesman Problem",Springer Verlag 1994.Install: gcc -O4 -o tsp tsp.c -lm ; tsp n=20 | ghostview -or : make allInput from a file or generated randomlyAdditional data sets are obtainable from TSPLIB:http://www.iwr.uni-heidelberg.de/iwr/comopt/soft/TSPLIB95/TSPLIB.htmlUsage: tsp [-v] [n=%d] [s=%d] [filename] -v : verbose n= : nb of cities (cities generated randomly) s= : seed nb of random generator filename : tsp input file. If none, stdin assumed. Input file format:nx1 y1 name1y2 y2 name2... where x1 y1 can be in the form longitude - latitude .i.e E002184700 N49100100or just numbers .i.e 12 24 23e10Enjoy ! Lionnel Maugis * Sofreavia / ATM Tel : (33-1) 69-57-79-16 FAX RNIS : (33-1) 60-48-70-20 e-mail : maugis@cenaath.cena.dgac.fr http : http://www.cenaath.cena.dgac.fr/~maugis Address : 1, rue de Champagne - 91200 ATHIS-MONSPostal Address : Orly Sud 205 - 94542 ORLY AEROGARE CEDEX
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -