Optimization: principles and algorithms, by Michel Bierlaire
Functions
tspTourLength.m File Reference

Calculate the length of a tour of the TSP. More...

Go to the source code of this file.

Functions

function tspTourLength (in tour, in dist)
 Calculate the length of a tour for the TSP. More...
 

Detailed Description

Calculate the length of a tour of the TSP.

Note
Called by tspLocalSearch
Called by tspVns
Called by tspInsertionLocalSearch
Called by tspSimulatedAnnealing
Author
Michel Bierlaire
Date
Tue Apr 14 11:44:01 2015

Definition in file tspTourLength.m.

Function Documentation

◆ tspTourLength()

function tspTourLength ( in  tour,
in  dist 
)

Calculate the length of a tour for the TSP.

Parameters
tourlist of cities
distdistance matrix
Returns
l tour length
Copyright 2015-2018 Michel Bierlaire