makeNetwork: Generate network based on coordinates.

Description Usage Arguments Value

View source: R/makeNetwork.R

Description

Create a (clustered) network object.

Usage

1
2
3
makeNetwork(coordinates, distance.matrix = NULL, name = NULL,
  comment = NULL, membership = NULL, edge.weight.type = NULL,
  depot.coordinates = NULL, lower = NULL, upper = NULL)

Arguments

coordinates

[matrix]
Numeric matrix of 2D coordinates.

distance.matrix

[matrix]
Optional distance matrix.

name

[character(1) | NULL]
Optional name of the network.

comment

[character | NULL]
Optional additional comments on instance.

membership

[numeric | NULL]
Optional vector of memberships for clustered networks.

edge.weight.type

[character(1) | NULL] The edge weight type indicates how edge weights are represented in the TSPlib format. If distance.matrix is NULL, the passed value is ignored and EUC\_2D is assigned. Otherwise the edge weight type must be one of the following {EUC\_2D, EUC\_3D, MAX\_2D, MAX\_3D, MAN\_2D, MAN\_3D, CEIL\_2D, GEO, ATT, EXPLICIT}.

depot.coordinates

[matrix | NULL]
Numeric matrix of 2D coordinates of depots. Default is NULL, which means no depots at all.

lower

[numeric(1)]
Lower box constraint of cube.

upper

[numeric(1)]
Upper box constraint of cube.

Value

[Network]


netgen documentation built on May 30, 2017, 2:12 a.m.

Related to makeNetwork in netgen...