Professional Documents
Culture Documents
Available at http://www.ijcsonline.com/
Abstract
Vehicle-routing problems (VRP), which can be considered a generalization of TSP, have been studied in depth. Many
variants of the problem exist, most of them trying to find a set of routes with the shortest distance or time possible for a
fleet of vehicles. This paper combines two important variants, the stochastic time-dependent VRP and the multi-objective
VRP. A genetic algorithm for solving the problem is introduced. A comparison of two fitness functions, with significant
difference in computational time, is also presented. Finally, a comparison of solution selection based on TOPSIS method
and the two fitness functions is also examined. Results show that a significant decrease in running time, minutes
compared to hours, can be achieved, with no impact on the final results of the algorithm.
Keywords: Multi-Objective, Vehicle Routing, Genetic Algorithms, Fitness, TOPSIS
I.
INTRODUCTION
LITERATURE REVIEW
30 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
There has been limited research related to the timedependent vehicle routing problem compared to other VRP
models [5].
Time dependent VRP was first formulated by
Malandraki and Daskin [6, 7] using a mixed integer linear
programming formulation. Malandraki and Daskin
developed two algorithms for solving the problem, a
greedy nearest-neighbor algorithm, and a branch and
bound-based algorithm that provided better solutions, but
was suitable only for small problems. Hill and Benton [8]
also studied the vehicle routing problem with timedependent travel times and proposed a simple greedy
heuristic for the problem.
Ahn and Shin [9] discussed modifications to the
savings, insertion, and local improvement algorithms to
better cope with TDVRP.
An important property for time dependent problems is
the First In - First Out (FIFO) principal [9, 10]. A model
with a FIFO property guarantees that if two vehicles left
the same location for the same destination (and traveled
along the same path), the one that left first would never
arrive later than the other. While it is an intuitive and
desirable property, it is not present in earlier work [6-8,
11], and therefore, the FIFO property is not guaranteed.
31 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
32 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
can be used.
t t max
t 't
cost
cij
function,
t'
t'
ij
cij ,
is
defined
as
2 t 1 t 't t
. In this definition c
E cij
t'
t
ij
equals
Z1 cij xij
min
i 0
mt
(1)
j 0 m 1 t 0
Z2 M
min
(2)
min Z 3
M w
m
m
m 1
m 1
M
M
(3)
where
N
wm xij cij
i 0
(4)
j 0 t 0
xii
mt
i N , m M , t T
0
T
mt
1 m M
0j
(5)
(6)
j 1 t 0
N
t t
cij
0j
j 1 t 0
N
i 1
t 0
xi 0
mt
mt
m M
(7)
mt
1 i N , i j
(8)
mt
1 j N , i j
(9)
ij
j 0 m 1 t 0
N
ij
i 0 m 1 t 0
mt
ip
i 0
t 0
mt
pj
j 0 t 0
m M ,
p N , p 0
(10)
t x
mt
jk
k 0 t 0 m 1
t c
N
ij
j 0 t 0 m 1
N
d x
i
i 0
ij
j 0 t 0
mt
j 0 m 1 t t S
D m M
mt
ij
ij
xij 0,1 m V , i, j N , t T
mt
(11)
ij
c x
i 0
i 0, j 0
mt
(12)
(13)
(14)
33 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
* t
ij
* t
ij
Z Z Z '
*
as
c .
B. The Concept of Best Solution
In single objective optimization problems, the best
solution is defined in terms of an optimum solution for
which the objective function value is optimized when
compared to any other alternative in the set of all feasible
alternatives. In multi-objective optimization problems,
however, as the optimum of each criterion do not usually
point to the same alternative, a conflict exists. The notion
of an optimum solution does not usually exist in the
context of conflicting, multiple criteria. Optimal solution in
multi-objective optimization problem is usually equivalent
to choosing the best compromise solution. The best
solution may be the preferred (or best compromise)
solution or a satisfying solution. In the absence of an
optimal solution, the concepts of dominated and nondominated solutions become relevant. In the multiobjective optimization literature, the terms non-dominated
solution, Pareto optimal solution, and efficient
solution are used interchangeably. In addition, concepts of
ideal solution and anti-ideal solution are relevant in
many multi-objective optimization methods.
A feasible solution that meets or exceeds the decision
makers minimum expected level of achievement (or
outcomes) of criteria values is referred to as a Satisfying
Solution.
A feasible solution (alternative) x1 dominates another
feasible solution (alternative) x2 if x1 is at least as good as
(i.e., as preferred as) x2 with respect to all objective
functions and is better than (i.e., preferred to) x2 with
respect to at least one objective function. A non-dominated
solution is a feasible solution that is not dominated by any
other feasible solution. That is, for a non-dominated
solution an increase in the value of any one objective
function is impossible without some decrease in the value
of at least one other objective function. Mathematically, a
solution x1 X is non-dominated if there is no other
x X
Ci x Ci x1 .
IV.
34 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
IdealSolutionCount=0
Population = Randomlly created population of size
PopSize
Calculate the fitnesses of each Chromosome in
Population
SaveNonDominated(Population,Elitism)
PrevIdealSolution = GetIdealSolution(Elitism);
Repeat NumOfGen times
If |Elitism|>ElitismSize
Population = CreateNewGeneration (Population,
PopSize, ProbMutation, ProbCrossover)
Else
Population = CreateNewGeneration
(Population,PopSize - |Elitism|,
ProbMutation, ProbCrossover)
Population = Population+Elitism
Calculate the fitnesses of each Chromosome in
Population
SaveNonDominated(Population,Elitism
CurrentIdealSolution=GetIdealSolution(Elitism)
If CurrentIdealSolution=PrevIdealSolution
IdealSolutionCount=IdealSolutionCount+1
If IdealSolutionCount=10
IdealSolutionCount=0
ProbMutation=ProbMutation+0.05
if ProbMutation>1
21.
22.
23.
24.
ProbMutation=1
else
IdealSolutionCount=0
ProbMutation=0.1
35 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
SC ( X ', X '')
(15)
ER
i 0
(16)
36 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
Size
50
CS(X,X)
0.479
SD
SD
df
39
Size
CS(X,X)
CS(X,X)
100
150
All
0.349
0.59
0.411
50
100
150
All
0.535
0.408
0.29
0.473
SD
SD
0.447
0.397
0.447
-0.382
0.458
0.258
0.411
2.654
0.424
0.416
0.411
-0.064
Savings based first population
0.41
0.452
0.376
0.690
0.435
0.254
0.365
1.427
0.399
0.541
0.446
-2.199
0.447
0.389
0.446
1.235
df
Sig.
39
39
119
0.705
0.011
0.949
39
39
39
119
0.494
0.162
0.034
0.219
Size
50
100
150
All
0.852
0.734
0.552
0.712
50
100
150
All
0.699
0.496
0.695
0.63
SD
ER(X)
M
SD
df
Sig.
39
39
39
119
0.169
0.165
0.015
0.93
39
39
39
119
0.598
0.013
0.227
0.277
Sig.
0.911
37 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
w=1
w=1000
Obj. 2
Obj. 2
Randomly generated fist population
r=0.94, n=40,
r=0.954, n=40,
Obj. 1
Obj. 1
p=0
p=0
r=0.973, n=40,
r=0.986, n=40,
Obj. 1
Obj. 1
p=0
p=0
r=0.909, n=40,
r=0.944, n=40,
Obj. 1
Obj. 1
p=0
p=0
r=0.81, n=120,
r=0.785, n=120,
Obj. 1
Obj. 1
p=0
p=0
Savings based first population
r=0.835, n=40,
r=0.814, n=40,
Obj. 1
Obj. 1
p=0
p=0
r=0.82, n=40,
r=0.865, n=40,
Obj. 1
Obj. 1
p=0
p=0
r=0.281, n=40,
r=0.174, n=40,
Obj. 1
Obj. 1
p=0.079
p=0.282
r=0.716, n=120,
r=0.716, n=120,
Obj. 1
Obj. 1
p=0
p=0
Problem
Size
50
100
150
All
31.2
72.1
76.3
59.8
50
100
150
All
24.9
52.7
42.2
39.9
w=1000
SD
M
SD
t
Randomly generated fist population
10.6
30.9
10.2
0.429
28.8
70.9
26.3
0.899
15.8
79.1
14.2
-1.967
28.2
60.3
27.8
-0.676
Savings based first population
12.3
24.8
11.9
0.02
31.7
51.9
30.6
0.244
27.0
40.6
26.4
0.34
27.4
39.1
26.6
0.417
df
Sig.
39
39
39
119
0.67
0.374
0.056
0.5
39
39
39
119
0.984
0.808
0.736
0.678
38 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
travel time than for short travel time, and (2) the range [0,
) of the distribution is more natural than a truncated
normal distribution (because negative travel times are
impossible) [59].
For that reason, a second set of tests was done, this time
using Solomons instances. Since Solomons instances
were designed for TWVRP, a simple modification had to
be done. Solomons instances provide the location of each
customer, assuming that the travel speed is constant. Since
this is not the case in this problem, time intervals were
added (24 of them) and for each time interval a lognormal
random travel time functions was assigned for which
=0.03 and =4.1 (theses values may slightly change
between time interval) and therefore the average traveling
speed is 60 KM/H. In order to decrease running time,
Solomons instances were solved using the IVEGA
algorithm, using 500 generations and population size of
200, once when w=1 and next when w=100. The results of
the test are presented in TABLE V.
TABLE V.
Size
Type
25
C1
C2
R1
R2
RC1
RC2
C1
50
100
25
50
100
C2
R1
R2
RC1
RC2
C1
C2
R1
R2
RC1
RC2
C1
C2
R1
R2
RC1
RC2
C1
C2
R1
R2
RC1
RC2
C1
C2
R1
R2
RC1
RC2
df
Sig.
35
31
47
0.526
0.579
0
43
0.953
31
31
0.018
0.495
35
0.895
31
47
43
31
31
35
31
47
43
31
31
0
0.149
0.593
0.395
0.312
0.643
0.029
0.001
0
0.001
0
35
31
47
43
31
0.653
0.133
0
0.161
0.058
31
0.212
35
31
47
43
31
31
35
31
47
43
31
31
0
0.022
0
0
0.022
0.218
0
0
0.017
0
0.007
0
Size
Type
100
100
C1
C2
R1
100
100
100
100
R2
RC1
RC2
100
100
C1
C2
R1
100
100
100
100
R2
RC1
RC2
df
Sig.
35
31
0
0
47
43
31
31
0
0
0.335
35
31
0.684
0.332
47
43
31
31
0
0.075
39 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
80
70
70
60
60
50
50
40
40
30
30
20
20
10
10
0
0
800
1600
2400
3200
4000
4800
5600
6400
7200
8000
50
100
150
Generation
200
250
300
350
400
450
500
Generation
80
80
70
70
60
60
50
50
Value
Value
40
40
30
30
20
20
10
10
0
0
250
500
750
1000
1250
1500
Generation
1750
2000
2250
2500
50
100
150
200
250
300
350
400
450
500
Generation
Figure 2. Algorithm convergence when w=1 (left) and w=100 (right) for
problem C201 during the first 30 minutes
80
80
70
70
60
60
50
50
Value
Value
40
40
30
30
20
20
10
10
0
0
200
400
600
800
1000
1200
1400
1600
1800
2000
40
80
120
Generation
160
200
240
280
320
360
400
Generation
Figure 3. Algorithm convergence when w=1 (left) and w=100 (right) for
problem R101 during the first 30 minutes
80
70
70
60
60
50
50
Value
80
Value
Value
Value
40
40
30
30
20
20
10
10
0
0
150
300
450
600
750
900
Generation
1050
1200
1350
1500
25
50
75
100
125
150
175
200
225
250
Generation
Figure 4. Algorithm convergence when w=1 (left) and w=100 (right) for
problem R201 during the first 30 minutes
40 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
80
80
70
70
60
60
50
50
Value
40
40
30
30
20
20
10
10
0
0
100
200
300
400
500
600
700
800
900
1000
40
80
120
Generation
160
200
240
280
320
360
400
Generation
80
80
70
70
60
60
50
50
Value
Value
40
40
30
30
20
20
10
10
Value
Figure 5. Algorithm convergence when w=1 (left) and w=100 (right) for
problem RC101 during the first 30 minutes
16
14
14
12
12
10
10
0
0
300
600
900
1200
1500
1800
2100
2400
2700
3000
50
100
150
Generation
200
250
300
350
400
450
500
Generation
Figure 8. Algorithm convergence when w=1 (left) and w=100 (right) for
problem C201 during the first 30 minutes
0
0
100
200
300
400
500
600
700
800
900
1000
40
80
120
Generation
160
200
240
280
320
360
400
Generation
14
14
12
12
10
10
Value
16
0
0
800
1600
2400
3200
4000
4800
Generation
5600
6400
7200
8000
60
120
180
240
300
360
420
480
540
600
Generation
Figure 7. Algorithm convergence when w=1 (left) and w=100 (right) for
problem C101 during the first 30 minutes
Value
Figure 6. Algorithm convergence when w=1 (left) and w=100 (right) for
problem RC201 during the first 30 minutes
Value
16
Value
80
80
70
70
60
60
50
50
Value
Value
40
40
30
30
20
20
10
10
0
0
200
400
600
800
1000
1200
Generation
1400
1600
1800
2000
40
80
120
160
200
240
280
320
360
400
Generation
Figure 9. Algorithm convergence when w=1 (left) and w=100 (right) for
problem R101 during the first 30 minutes
41 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
64
64
70
56
56
48
60
48
48
40
50
40
40
32
40
32
32
24
30
24
24
16
20
16
16
10
0
0
150
300
450
600
750
900
1050
1200
1350
1500
20
40
60
80
100
120
140
160
180
200
Generation
60
60
50
50
Value
80
70
40
40
30
30
20
20
10
10
0
0
150
300
450
600
750
900
Generation
1050
1200
1350
1500
40
80
120
160
200
240
0
0
150
300
450
600
750
900
1050
1200
1350
1500
40
80
120
Generation
Figure 10. Algorithm convergence when w=1 (left) and w=100 (right) for
problem R201 during the first 30 minutes
80
0
0
Generation
Value
Value
80
56
Value
64
Value
Value
280
320
360
400
Generation
Figure 11. Algorithm convergence when w=1 (left) and w=100 (right) for
problem RC101 during the first 30 minutes
160
200
240
280
320
360
400
Generation
Figure 12. Algorithm convergence when w=1 (left) and w=100 (right) for
problem RC201 during the first 30 minutes
V.
CONCLUSIONS
42 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
[12]
[13]
[14]
[15]
[16]
[17]
[18] D. Karaboga, "An Idea Based on Honey Bee Swarm for Numerical
Optimization", in Technical Report TR06, Computer Engineering
Department, Erciyes University, Turkey. 2005.
[19] M. Gendreau, G. Laporte, and R. Seguin, "Stochastic Vehicle
Routing," European Journal of Operational Research, vol. 88, pp. 312, 1996.
[20] Z. Shen, F. Ordnez, and M. Dessouky, "The minimum unmet
demand stochastic vehicle routing problem", Working paper 200607, University of Southern California. 2006.
[21] N. Secomandi and F. Margot, "Reoptimization approaches for the
vehicle-routing problem with stochastic demands," Operations
Research, vol. 57(1), pp. 214-230, 2009.
[22] X. Li, P. Tian, and S. C. H. Leung, "Vehicle routing problems with
time windows and stochastic travel and service times: Models and
algorithm," International Journal of Production Economics, vol.
125(1), pp. 137-145, 2010.
[23] F. A. Tillman, "The Multiple Terminal Delivery Problem with
Probabilistic Demands," Transportation Science, vol. 3(3), pp. 192204, 1969.
[24] W. R. Stewart, "Stochastic vehicle routing: A comprehensive
approach," European Journal of Operational Research, vol. 14(4),
pp. 371-385, 1983.
[25] D. J. Bertsimas, "A Vehicle Routing Problem With Stochastic
Demand," Operations Research, vol. 40(3), pp. 574-585, 1992.
[26] M. Gendreau, G. Laporte, and R. Seguin, "An exact algorithm for
the vehicle routing problem with stochastic demands and
customers," Transportation Science, vol. 29(2), p. 143, 1995.
[27] G. Laporte, F. V. Louveaux, and L. Van Hamme, "An integer Lshaped algorithm for the capacitated vehicle routing problem with
stochastic demands," Operations Research, vol., pp. 415-423, 2002.
[28] W. Rei, M. Gendreau, and P. Soriano, "Local branching cuts for the
0-1 integer L-Shaped algorithm", Technical Report CIRRELT2007. 2007.
[29] G. Laporte, F. V. Louveaux, and H. Mercure, "The Vehicle Routing
Problem With Stochastic Travel Times," Transportation Science,
vol. 26(3), pp. 161-170, 1992.
[30] V. Lambert, G. Laporte, and F. Louveaux, "Designing collection
routes through bank branches," Computers and Operations
Research, vol. 20(7), pp. 783-791, 1993.
[31] X. Wang and A. C. Regan, "Assignment models for local truckload
trucking problems with stochastic service times and time window
constraints," Transportation Research Record, vol. 1171, pp. 61-68,
2001.
[32] A. S. Kenyon and D. P. Morton, "Stochastic Vehicle Routing with
Random Travel Times," Transportation Science, vol. 37(1), pp. 6982, 2003.
[33] Y. B. Park and C. P. Koelling, "A solution of vehicle routing
problems in multiple objective environment," Engineering Costs
and Production Economics, vol. 10, pp. 121-132, 1986.
[34] Y. B. Park and C. P. Koelling, "An interactive computerized
algorithm for multicriteria vehicle routing problems," Computers
and Industrial Engineering, vol. 16(4), pp. 477-490, 1989.
[35] N. Jozefowiez, F. Semet, and E. G. Talbi, "Multi-objective vehicle
routing problems," European Journal of Operational Research, vol.
189(2), pp. 293-309, 2008.
[36] R. Gupta, B. Singh, and D. Pandey, "Multi-Objective Fuzzy
Vehicle Routing Problem: A Case Study," Int. J. Contemp. Math.
Sciences, vol. 5(29), pp. 1439-1454, 2010.
[37] M. Wen, J. F. Cordeau, G. Laporte, and J. Larsen, "The dynamic
multi-period vehicle routing problem," Computers & Operations
Research, vol. 37(9), pp. 1615-1623, 2010.
[38] M. Faccio, A. Persona, and G. Zanin, "Waste collection multi
objective model with real time traceability data," Waste
Management, vol. 31(12), pp. 2391-405, 2011.
[39] S. P. Anbuudayasankar, K. Ganesh, S. C. Lenny Koh, and Y. Ducq,
"Modified savings heuristics and genetic algorithm for bi-objective
vehicle routing problem with forced backhauls," Expert Systems
With Applications, vol., 2011.
[40] M. Rahoual, B. Kitoun, M. H. Mabed, V. Bachelet, and F.
Benameur. "Multicriteria genetic algorithms for the vehicle routing
problem with time windows," 2001.
43 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014
Multi-Objective Stochastic VRP Fitness Calculation and Algorithm Converges Using a Generic Genetic Algorithm
44 | International Journal of Computer Systems, ISSN-(2394-1065), Vol: 01 , Issue: 02, November, 2014