ImportData: Converts raw inputs into an LF class object

Description Usage Arguments

View source: R/ImportData.R

Description

Takes a distance, coordinate, and tour information and creates an LF class object.

Usage

1
2
3
4
5
6
7
8
ImportData(
  distances = NULL,
  coordinates = NULL,
  tour = NULL,
  optimal = NA,
  knownOpt = NA,
  latlon = FALSE
)

Arguments

distances

A nxn matrix where first row is not column headers.

coordinates

A nx2 or 3 data object where first row is not column headers. Not required, but node names may be included as the first column.

tour

An integer vector containing the order to visit each node in a solution.

optimal

A numeric containing the solution tour length.

knownOpt

A numeric containing the known optimal tour length.

latlon

A boolean TRUE if coordinates are latitudes and longitudes, 0 otherwise.


bjhufstetler/LeapFrog documentation built on March 19, 2020, 11:51 p.m.