FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

TSP

Description
A flight tour starts from airport 1, visits all the other airports and then comes back to the starting point. The distances between the airports are symmetric. In which order should the airports be visited to minimize the total distance covered?

Further explanation of this example: 'Applications of optimization with Xpress-MP', Section 11.5 'Planning a flight tour' (f5tour.mos)


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
tsp_graph.mos[download]

Data Files





tsp.dat

! Data file for `tsp.mos'

DIST: [(1 2) 786 549 657 331 559 250
           (2 3) 668 979 593 224 905
               (3 4) 316 607 472 467
                   (4 5) 890 769 400
                       (5 6) 386 559
                           (6 7) 681]

POS: [[24 54] [58 10] [88 40] [85 60] [22 33] [56 27] [46 64]]

Back to examples browserPrevious exampleNext example