Saves tour to TSPlib file format.

writeTSPlibTOURFile(file.path, instance = NULL, n = NULL,
  name = "Some tour", tour)

Arguments

file.path

[character(1)]
Path to file the tour should be saved to.

instance

[Network]
TSP instance object.

n

[integer(1) | NULL]
Instance size.

name

[character(1)]
Name for the tour. Default is “Some tour”.

tour

[integer]
The actual tour, i.e., a permutation of the nodes of instance.

Value

[inivisble(logical(1))] Silently returns if save process was sucessful.