KOALOG
Google
wwwwww.koalog.com
 

Latest newsRSS 1.0

KCS is used at Carnegie Mellon University by the SPIRAL research team for optimally compiling scientific code (eg FFT).

KCS is used at Fakultas Ilmu Komputer, Indonesia for research about course scheduling.

See more news...

Configure a car

Try a car configurator built using Koalog ConfiguratorTM and its web components.

Lease a car

Request a login and a password and try a car leasing website built using Koalog Car LeaseTM.

Play Sudoku & Kakuro

We publish daily 6 free Sudokus on sudoku.koalog.com and 1 free Kakuro on kakuro.koalog.com.

Subscribe to our newsletter

Enter your email to receive quaterly news about KoalogTM and its products:


iForce

The Travelling Salesman Problem

Description

An optimal journey

The problem can simply be stated as:

More on the TSP...

Business and Industrial Applications

This problem has a lot of business and industrial applications such as, among others:

Data

Data (GR17 and GR21 instances) provided in the problem definition - Java file (8kb) [view] - is taken from TSPLIB.

Given two cities i and j, XX a TSP instance, XX[i][j] represents the costs of the travel from i to j.

Modelling & Solving

We use a simple constraint model - Java file (8kb) [view] - defining, for each city i, the next (variable next[i]) and previous (variable prev[i]) cities to be visited by the travelling salesman.

The salesman's journey has to form a cycle, this can be easily enforced by using the Cycle constraint both on next and prev.

To solve the problem, we use a cost-based solver: Java file (1kb) [view].

Results

The following results include the computation of an optimal solution and the proof of its optimality.

Koalog Constraint SolverTM v3.0 on a 1.6Ghz PC running SuSE9.3
InstanceTime (ms)Backtracks
GR1716992867
GR21655833
More examples...

Contact/Support - About us - News - Site map - Legal notice - Copyright 2002-2007 Koalog SARL
Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.