findHamiltonianPath: Find Hamiltonian path in network

Description Usage Arguments Value

View source: R/findHamiltonianPath.R

Description

Given a network instance, a set of nodes to consider and designated start and end nodes the function heuristically determines a shortest Hamiltonian path from start node to end node considering all active nodes.

Usage

1
2
3
4
findHamiltonianPath(instance,
  active.nodes = seq_len(salesperson::getNumberOfNodes(instance) + 2L),
  start.id = 1L, dest.id = 2L, more.args = list(on.ls.failure =
  "stop"))

Arguments

instance

[Network]
A netgen network.

active.nodes

[integer]
Node numbers of nodes to be considered.

start.id

[integer(1)]
Node number of start node.

dest.id

[integer(1)]
Node number of destination node.

Value

[integer]  @export


jakobbossek/dynvrp documentation built on Jan. 19, 2020, 9:53 p.m.