Editing Obtaining a TSP solver

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
== Introduction ==
 
== Introduction ==
  
To generate TSP art, a TSP solver is needed.  However, generating TSP solutions with a TSP solver takes a lot of computer time.  An image stippled to a thousand points may take several hours to solve the Travelling Salesman Problem for.  Consequently, it is preferred to use a fast, approximate TSP solver instead.  The Concorde TSP solver package includes both a TSP solver as well as some fast, approximate solvers. Of chief interest is the "linkern" solver which can produce satisfactory solutions in under a minute.
+
To generate TSP art, a TSP solver is needed.  However, generating TSP solutions with a TSP solver takes a lot of computer time.  An image stippled to a thousand points may take several hours to solve the Travelling Salesman Problem for.  Consequently, it is preferred to use a fast, approximate TSP solver instead.  The Concorde TSP solver package includes both a TSP solver as well as some fast, approximate solvers. Of chief interest is the "linkern" approximate solver which can produce satisfactory solutions in under a minute.
  
 
Binaries for linkern for Red Hat Linux 8.0, Solaris SPARC, and Windows (with Cygwin installed) are available at
 
Binaries for linkern for Red Hat Linux 8.0, Solaris SPARC, and Windows (with Cygwin installed) are available at
Line 21: Line 21:
 
and download the latest Cygwin setup.exe.  Launch setup.exe and do not select or de-select any additional packages: the minimal set is selected upon startup of setup.exe.  Allow the program to run which will download, install, and configure the Cygwin environment.
 
and download the latest Cygwin setup.exe.  Launch setup.exe and do not select or de-select any additional packages: the minimal set is selected upon startup of setup.exe.  Allow the program to run which will download, install, and configure the Cygwin environment.
  
After the Cygwin install has completed, you should be able to open up a command window (DOS window) and manually run the linkern.exe executable you downloaded from the Concorde TSP downloads site.  To open a command window on Windows XP, select the "Run..." item from the "Start" menu,
+
After the Cygwin install has completed, you should be able to open up a command window (DOS window) and manually run the linkern.exe executable you downloaded from the Concorde TSP downloads site mentioned in the Introduction above.  To open a command window on Windows XP, select the "Run..." item from the "Start" menu,
  
 
http://wiki.evilmadscience.com/s3/eggbot/tspart/run01.png
 
http://wiki.evilmadscience.com/s3/eggbot/tspart/run01.png
Line 35: Line 35:
 
== Concorde TSP on Macs ==
 
== Concorde TSP on Macs ==
  
Concorde TSP is not available pre-built for Macs.  However, if you are familiar with obtaining and building sources on your Mac, then building a copy of Concorde TSP is relatively straightforward.  You will need a C compiler and other build tools.  Apple's Xcode Developer Toolkit for OS X provides everything you will need.  That toolkit is available for download from Apple.  For on-line download, a registration is required and you will want the Xcode for "Mac Dev Center", not the "IOS Dev Center"The Xcode toolkit is often also included with your OS X distribution DVD as an extra package which you can manually install.
+
Concorde TSP is not available pre-built for Macs.  However, if you are familiar with obtaining and building sources on your Mac, then building a copy of Concorde TSP is relatively straightforward.  You will need a C compiler and other build tools.  Apple's Xcode Developer Toolkit for OS X provides everything you will need.  That toolkit is available for download from Apple (registration required)It is often also included with your OS X distribution DVD as an extra package which you can manually install.
  
 
To build Concorde TSP, first  obtain the sources from the Concorde TSP downloads page cited in the Introduction above.  You will also want the QSopt Linear Programming (LP) solver library and header file (qsopt.a and qsopt.h) from
 
To build Concorde TSP, first  obtain the sources from the Concorde TSP downloads page cited in the Introduction above.  You will also want the QSopt Linear Programming (LP) solver library and header file (qsopt.a and qsopt.h) from
Line 49: Line 49:
 
</pre>
 
</pre>
  
You must specify a complete, absolute directory path for the directory containing the QSopt files as failure to do so will result in a build failure.  Also, ignore the "checking host system warning" generated by the configuration script: you have to specify the <tt>--host</tt> switch, but there's no acceptable value on a Mac for the script.  Once the script finishes running, build the package with the "make" command.  There is no install target for the makefile.  The Concorde TSP solver will be the file ./TSP/concorde.  The linkern executable, ./LINKERN/linkern
+
You must specify a complete, absolute directory path for the QSopt files.  Failure to do so will result in a build failure.  Also, ignore the "checking host system warning" generated by the configuration script.  You have to specify the <tt>--host</tt> switch, but there's no acceptable value on a Mac for the script.  Once the script finishes running, build the package with the "make" command.  There is no install target for the makefile.  The Concorde TSP solver will be the file ./TSP/concorde.  The linkern executable, ./LINKERN/linkern
  
 
A shell script for obtaining, building, and installing the sources is available at the Eggbot code site,
 
A shell script for obtaining, building, and installing the sources is available at the Eggbot code site,

Please note that all contributions to Evil Mad Scientist Wiki are considered to be released under the GNU Free Documentation License 1.3 (see Evil Mad Scientist Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)