LandDist: Calculates opportunity costs to insert a node

Description Usage Arguments

View source: R/LandDist.R

Description

Takes a tour and distance matrix and returns the tour length

Usage

1
LandDist(dMat, p, nodeCount, tour, jumpers, node)

Arguments

dMat

A nxn matrix where first row is not column headers. Each cell represents the distance from the row index node to the column index node.

p

A numeric that tells the function how many jumpers are being considered

nodeCount

The numeric number of nodes in the problem instance

tour

A numeric vector with the order that the nodes in the coordMatrix are visited. Must be the same length as the coordMatrix

jumpers

An integer vector of the jumpers currently in the air

node

The integer specific jumper currently under consideration


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