Vehicle Routing
Vehicle Routing
Dr. Campbell
VEHICLE ROUTING
I. The Traveling Salesman Problem (TSP)
Imagine a salesman that must visit n customers or cities. He starts at one city and must visit each
of the other n-1 cities exactly once and then return to the original city. The cost of traveling from
city i to city j is given as cij for all pairs of cities. The problem is to design a route or tour of
minimum cost that visits each of the n cities exactly once.
If the cost to travel from city i to city j equals the cost to travel from city j to city i, (c ij=cji) for all
cities, then the problem is symmetric. If c ij = cji for some pair of cities, then the problem is
asymmetric.
Clarke-Wright Savings
1. Select any city as the "central city" and call it city k.
2. Calculate the savings sij=cik+ckj-cij for i=1,2...n, j=1,2...n, i=k, j=k,i=j
(If k = 1, then sij = ci1 + c1j - cij for i=2,3...n, j=2,3...n i=j)
3. Order the savings, sij, from largest to smallest.
4. Starting with the largest savings, do the following:
(a)
If linking cities i and j results in a feasible route, then add this link to the tour;
if not, reject the link.
(b)
BA 308B
Dr. Campbell
BA 308B
Dr. Campbell
Location
Demand
cij
(22,22)
18
26
15
20
25
16
24
29
(36,26)
26
15
23
26
33
40
38
54
(21,45)
11
24
13
20
27
35
43
(45,35)
30
26
42
34
15
39
(55,20)
21
18
14
31
32
(55,45)
16
25
49
45
(26,59)
29
32
20
(55,65)
37
30
8
7
3
6
2
1
10 units
BA 308B
Dr. Campbell
s13 = 23
s14 = 7
s15 = 18
s16 = 2
s17 = 12
s18 = 1
s25 = 20
s26 = 4
s27 = 4
s28 = 1
s34 = 1
s35 = 3
s36 = 2
s37 = 29
s38 = 10
s45 = 14
s46 = 9
s47 = 0
s48 = 4
s56 = 16
s57 = 0
s58 = 9
s67 = 8
s68 = 25
s78 = 23
BA 308B
Dr. Campbell
(tie)
(tie)
BA 308B
Dr. Campbell
BA 308B
Dr. Campbell
BA 308B
Dr. Campbell
1
17
8
19
10
1
2
3
4
5
from
to
3
8
6
7
4
2
17
6
2
3
4
19
2
7
5
5
10
3
4
5
-
length or cost = 30
2. Given the following cij matrix, determine the shortest vehicle routes and their lengths to
distribute goods from one warehouse, denoted 0 below, to the seven customers, denoted 1-7
below, when:
a) all vehicles have a capacity of 80 units.
b) all vehicles have a capacity of 25 units.
c) all vehicles have a capacity of 16 units.
from
0
1
2
3
4
5
6
7
0
-
1
4
-
2
8
9
-
to
3
3
6
8
-
4
9
10
4
9
-
5
6
3
8
8
11
-
6
5
4
12
7
12
8
-
7
11
6
5
3
2
15
12
-
1
4
2
6
3
8
4
8
5
12
6
5
7
7
Answers:
a) length or cost = 39
b) length or cost = 48
c) length or cost = 64