CheckConstraints: Checks whether the constraints satisfied or not

Description Usage Arguments Examples

Description

Checks whether the constraints satisfied or not

Usage

1
2
CheckConstraints(route, common_node, new_node, demand, Vehicle_Capacity,
  Constraints = c("Capacity"))

Arguments

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

Examples

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)

kavetinaveen/HeuristicsVRP documentation built on May 20, 2019, 7:53 a.m.