Link: The Link class

Description Details Slots defined Methods To be used for Note Author(s) See Also Examples

Description

This class is part of the HNUORTools. It represents the connection of two Nodes in an Operations-Research (OR)-context.

Details

Find here the defined slots for this class.

Slots defined

id:

Object of class "character", containing data from id. Should be unique. The default value will be caluclated randomly.

label:

Object of class "character", containing the label of the Node. The default value will be caluclated randomly.

origin:

Object of class "Node", containing the origin Link. This value is REQUIRED.

destination:

Object of class "Node", containing the destination Link. This value is REQUIRED.

costs:

Object of class "numeric", containing the costs for using this Link. The default value will be caluclated automatically (if not provided during creation).

distance:

Object of class "numeric", containing the distance for using this Link. The default value will be caluclated automatically (if not provided during creation).

oneway:

Object of class "logical", indicating if this Link can be accessed both directions. The default value will is FALSE.

used:

Object of class "logical", Usually automatically assigned when solving the Shortest-Path-Problem (SPP) with the SPP.Dijkstra. The default value will is FALSE.

Methods

$

getting the value of a slot

$<-

assinging a value to of the slots

To be used for

SPP

Shortest-Path-Problem

TSP

Travelling Salesman Problem

Note

for citing use: Felix Lindemann (2014). HNUORTools: Operations Research Tools. R package version 1.1-0. http://felixlindemann.github.io/HNUORTools/.

Author(s)

Dipl. Kfm. Felix Lindemann felix.lindemann@hs-neu-ulm.de

Wissenschaftlicher Mitarbeiter Kompetenzzentrum Logistik Buro ZWEI, 17

Hochschule fur angewandte Wissenschaften Fachhochschule Neu-Ulm | Neu-Ulm University Wileystr. 1

D-89231 Neu-Ulm

Phone +49(0)731-9762-1437 Web www.hs-neu-ulm.de/felix-lindemann/ http://felixlindemann.blogspot.de

See Also

Node

Examples

1
# demo(HNULink01)

felixlindemann/HNUORTools documentation built on May 8, 2019, 6:46 p.m.