Description Usage Arguments Examples
Checks whether the constraints satisfied or not
1 2 | CheckConstraints(route, common_node, new_node, demand, Vehicle_Capacity,
Constraints = c("Capacity"))
|
route |
– Sequence of nodes (Ex: 5 4 3 8) |
common_node |
– One of the existing node of the route and it shouldn't be an interior of the route (Interior of route: nodes, which have both left and right edge, ex: 3, 4 in above route) (Ex: 5) |
new_node |
– New node to be included to the route (Ex: 9) |
Constraints |
– List of constraints to check. Currently implemented only vehicle capacity constraint |
1 2 3 4 5 6 7 8 | route <- c(5, 4, 3, 8)
common_node <- 5
new_node <- 9
Vehicle_Capacity <- 100
data(An32k5demand)
demand <- An32k5demand
const <- c("Capacity")
CheckConstraints(route, common_node, new_node, demand, Vehicle_Capacity, Constraints = const)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.