2 %> Transforms a tour stored as a sequence of cities into a list of successors
4 %> @note Called by \ref
tspVns 7 %> @author Michel Bierlaire
8 %> @date Wed Apr 15 11:42:31 2015
13 %> Transforms a tour stored as a sequence of cities into a list of successors
14 %> @param sequence tour as a sequence of cities
15 %> @param n number of cities
16 %> @
return succ tour stored as a list of successors
19 p = size(sequence,1) ;
21 succ(sequence(i)) = sequence(i+1) ;
function tspInsertionLocalSearch(in dist, in subtourList)
function getTourList(in sequence, in n)
Transforms a tour stored as a sequence of cities into a list of successors.
function tspVns(in tour, in dist)
Runs the VNS heuristic on the TSP.