Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

importFromTSPlibFormat

Import network from (extended) TSPlib format.


Description

Import network from (extended) TSPlib format.

Usage

importFromTSPlibFormat(filename, round.distances = TRUE,
  read.opt = TRUE)

Arguments

filename

[character(1)]
Path to TSPlib file.

round.distances

[logical(1)]
Should the distances of EUC_2D instances be rounded to the nearest integer value? Default is TRUE.

read.opt

[logical(1)]
Should the optimal tour length (in file filename.opt) and the optimal tour (in file filename.tour) be loaded if avialable? Default is TRUE.

Value

[Network] Network object.

Note

The extended TSPlib contains additional specification parts and a cluster membership section. Currently only the import of symmetric TSP instances is possible.


netgen

Network Generator for Combinatorial Graph Problems

v1.3.2
BSD_3_clause + file LICENSE
Authors
Jakob Bossek [aut, cre]
Initial release
2020-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.