Learn R Programming

netgen (version 1.3.2)

getTSPInstancesOverview: Get an overview of instances in a directory.

Description

This function expects a directory and returns a data frame containing the most important properties, e. g., dimension, edge weight type, of all TSPlib instances (with file extensions tsp) in that directory. Moreover, the data frame contains information on the availiability of the optimal tour length (files tsp.opt) and optimal tour (tsp.tour).

Usage

getTSPInstancesOverview(directory, append.filename = FALSE)

Arguments

directory

[character(1)] Readable directory path.

append.filename

[logical(1)] Should the full file names be appended to the data frame? Default is FALSE.

Value

[data.frame]