Optimization: principles and algorithms, by Michel Bierlaire
|
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... | |
Calculate the length of a tour of the TSP.
Definition in file tspTourLength.m.
function tspTourLength | ( | in | tour, |
in | dist | ||
) |
Calculate the length of a tour for the TSP.
tour | list of cities |
dist | distance matrix |