writeTSPlibTOURFile: Export tour.

Description Usage Arguments Value

View source: R/writeTSPlibTOURFile.R

Description

Saves tour to TSPlib file format.

Usage

1
2
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.


jakobbossek/salesperson documentation built on Dec. 11, 2021, 4:54 a.m.