Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dynamise

Add dynamic arrival times to nodes.


Description

Some variants of the Vehicle Routing Problem (VRP) consider static as well as dynamic customers (nodes). This function takes a Network and dynamises it, i. e., it adds dynamic arrival times to the customers via a Poisson process.

Usage

dynamise(x, n.dynamic = NULL, dyn.customers.ratio = NULL,
  arrival.limit)

Arguments

x

[Network]
Network.

n.dynamic

[integer(1) | NULL] Number of nodes, which should become dynamic. Ignored if dyn.customers.ratio is not NULL.

dyn.customers.ratio

[numeric(1) | NULL] Ratio of dynamic nodes. If this is set to a numeric value in (0, 1), the parameter n.dynamic is ignored.

arrival.limit

[numeric(1)]
Maximal arrival time.

Value

[Network] Modified network (now has an additional list element 'arrival.times') and the ratio of dynamic customers as an attribute.

See Also

Examples

x = generateClusteredNetwork(n.points = 100L, n.cluster = 4L, upper = 100, n.depots = 2L)
x = dynamise(x, dyn.customers.ratio = 0.3, arrival.limit = 400)
print(x)

netgen

Network Generator for Combinatorial Graph Problems

v1.3.2
BSD_3_clause + file LICENSE
Authors
Jakob Bossek [aut, cre]
Initial release
2020-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.