Projects / TSP Solver and Generator

TSP Solver and Generator

TSPSG is intended to generate and solve "travelling salesman problem" (TSP) tasks. It uses the Branch and Bound method for solving. Its input is a number of cities and a matrix of city-to-city travel costs. The matrix can be populated with random values in a given range (which is useful for generating tasks). The result is an optimal route, its price, step-by-step matrices of solving, and a solving graph. The task can be saved in an internal binary format and opened later. The result can be printed or saved as PDF, HTML, or ODF. TSPSG may be useful for teachers to generate test tasks or just for regular users to solve TSPs. Also, it may be used as an example of using the Branch and Bound method to solve a particular task.

Operating Systems

Last announcement

TSPSG at the Nokia OVI Store 12 Mar 2011 23:08

TSP Solver and Generator has recently passed the QA and is now published at the Nokia OVI Store. Read more:

Recent releases

  •  20 Apr 2011 11:09

    Release Notes: This beta mainly features bugfixes: seven bugs have been fixed. Some new features were added too. One of them is the support for embedding a solution graph into HTML when saving a solution (using data URI scheme). Another feature is the ability to set up page-related options for printing (i.e., paper size, orientation, and margins).

    •  18 Oct 2010 01:08

      Release Notes: The main new feature of this release is the solution graph generation. Also, it features toolbar customization (only on desktop platforms), drag-an-drop, support for switching between available Qt styles, an improved solution output generation algorithm, and some other improvements and bugfixes.

      •  22 Apr 2010 19:58

        Release Notes: This version features symmetric mode, an improved solution algorithm, support for tasks with up to 50 cities, printing of solution results, and many more.


        Project Spotlight


        A Fluent OpenStack client API for Java.


        Project Spotlight

        TurnKey TWiki Appliance

        A TWiki appliance that is easy to use and lightweight.