Traveling Salesman

Home

Description

This model illustrates some of AIMMS control flow statements by means of the traveling salesman 2-opt heuristic.

In the model tree, you will find some declarations to define the problem. In addition, you will find

- A procedure and some declarations to compute and visualize an initial tour constructed by starting at some city and successively selecting the next city as the closest city not yet part of the tour.

- A procedure and some declarations to compute and visualize an improved tour constructed by repetitively swapping those two arcs in the tour by means of the 2-opt heuristic that give the largest overall distance improvement, until no further improvement is possible or the iteration limit is reached.

- A procedure and some declarations to compute and visualize an improved tour constructed by repetitively swapping the next arc in the (modified) tour with that neighbor arc which gives the largest distance improvement, until the iteration limit is reached or a full cycle over the tour gives no further improvement.

When you run the procedures, the information in the progress window is updated by the functions in the GMP Progress Window library.

Keywords

Network object, GMP::ProgressWindow

Industries

Transport & Logistics

Model Types

Algorithm

Download AIMMS Example

You can download an AIMMS example dealing with this problem via the link below, and run it after installing the AIMMS software. If you don't have an AIMMS license yet, you can download a free license of AIMMS.

opent in een nieuw venster ftp://ftp.aimms.com/pub/Download/Examples/Traveling Salesman.aimmspack

Please make sure to save this file including the .aimmspack extension so that it can be opened by AIMMS.

This example application is a simplification of reality. Please do not hesitate to contact us to discuss how AIMMS enables you to build a complete optimization application that captures the full complexity of your problem.

Screenshot AIMMS Example

Traveling Salesman

 Login  to update your profile.

Login