Create a (clustered) network object.
makeNetwork(coordinates, distance.matrix = NULL, name = NULL,
comment = NULL, membership = NULL, edge.weight.type = NULL,
depot.coordinates = NULL, lower = NULL, upper = NULL,
opt.tour.length = NULL, opt.tour = NULL, node.weights = NULL)[matrix]
Numeric matrix of 2D coordinates.
[matrix]
Optional distance matrix.
[character(1) | NULL]
Optional name of the network.
[character | NULL]
Optional additional comments on instance.
[numeric | NULL]
Optional vector of memberships for clustered networks.
[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}.
[matrix | NULL]
Numeric matrix of 2D coordinates of depots. Default is NULL, which
means no depots at all.
[numeric(1)]
Lower box constraint of cube.
[numeric(1)]
Upper box constraint of cube.
[numeric(1)]
Optional length of the optimal roundtrip tour.
Default is NULL, which means the tour length is unknown.
[integer]
Optional optimal permutation of node indizes.
Default is NULL, which means the optimal tour is unknown.
[numeric]
Vector of node weights (for weighted version of TSP). Default is NULL,
i.e., no node weights at all.
[Network]