get_distances: Grabs the distances for a single salesperson

Description Usage Arguments Value

View source: R/mtsp.R

Description

Grabs the distances for a single salesperson

Usage

1
get_distances(x, idx, paths, dmat, depot_mat, ...)

Arguments

x

The list returned by mtsp.

idx

An index representing a single list element of best_tour.

paths

The list with the best_tour returned by mtsp.

dmat

The distance matrix for the positions.

depot_mat

The matrix D0 giving the distances between the depots and positions, returned by mtsp.

...

Not used.

Value

Returns the distance for a single salesperson.


daffp/mtsp documentation built on Sept. 23, 2020, 2:39 p.m.