Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
net/publication/280698215
CITATIONS READS
13 507
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Wayan Firdaus Mahmudy on 06 August 2015.
Abstrak
Vehicle routing proble with time windows (VRPTW) merupakan permasalahan
optimasi kombinatorial yang banyak ditemui pada sistem distribusi permasalahan ini
berkaitan dengan pengalokasian sejumlah kendaraan umum untuk melayani sejumlah
konsumen, sejumlah konsumen mempunyai rentang waktu kesediaan yang berbeda
dan harus dilayani dalam waktu tersebut. Paper ini memaparkan penggunaan metode
simulated annealing yang diperkaya dengan beberapa fungsi khusus untuk
menghasilkan solusi tetangga yang digunakan pada penelusuran are pencarian solusi
dari VRPTW. Serangkaian percobaan menunjukkan bahwa simulated annealing yang
diperkaya dengan fungsi-fungsi khusus dapat menghasilkan solusi yang baik dalam
waktu rata-rata 82.29 detik.
Kata kunci: Vehicle Routing Problem with Time Windows (VRPTW), Permasalahan
optimasi kombinatoria, Simulated annealing, solusi tetangga.
Abstract
The Vehicle Routing Problem with Time Windows (VRPTW) is a combinatorial
optimization problem that exists in various distribution systems. The problem deals
with allocation of vehicles to service several customers, each customer has different
available time, and the vehicles must visit the customers in their available time.This
paper addresses the VRPTW by using an improved simulated annealing algorithm.
Special functions to effectively exploring neighborhood solutions are developed. The
functions are required to deal with the large search space of the VRPTW and enhance
the power of the simulated annealing to obtain better solutions. The proposed
approach is evaluated in comparison with well-known benchmark problems available
in the literature. A set of computational experiments prove that the improved
simulated annealing could produce promising results in the average of computational
time of 82.29 seconds.
Key words: Vehicle Routing Problem with Time Windows (VRPTW), combinatorial
optimization problem, simulated annealing, neighborhood solution.
.
109
110 KURSOR Journal Vol. 7, No. 3, October 2014, page 109-116
optimums during the course of the search parameters for the proposed simulated
for the global optimum. annealing heuristic are set as follows:
- the initial temperature temp0 is 0.8,
- the cooling_factor is 0.995,
BEGIN Simulated Annealing - the final temperaturetemp1 is 0.01,
Let t = temp0 - the number of iterations per fixed
Generate random initial solution S as temperature (inner_iteration) is set to
current solution
6000,
WHILE t≥temp1
REPEAT inner_itrtimes
A value of k is used to calculate the
Let d1=value of the objective probability of accepting a worse new solution.
function (distance) of S
Thus, determining a proper value k is critical.
Produce Sn (neighbor of S) as a
new solution Setting this value too low will cause a random
Let d2=value of the objective
change of the current solution as the probability
function (distance) of Sn of accepting the worse new solution is too high.
IF d2<d1 THEN In contrast, a high value of k will produce a low
accept change (S← Sn) probability of accepting the worse new solution
Let Sb← Snew which means losing the ability to escape local
ELSE IF d2>d1 THEN optimums. After several experiments, the
accept change with probability
proper value of k is set to 25.
𝟏 Instead of generating a random initial
𝒑𝒓𝒐𝒃 = 𝒅𝟐 −𝒅𝟏 𝒌
𝒆 𝒅𝟏 𝒕 solution, the initial solution Sis produced by
END IF using simple insertion method proposed by
END REPEAT Solomon [12]. The method requires a
Let t←t * cooling_factor parameter called α. In this paper, the value of α
END WHILE is set to 0.5Note that infeasible solution that
Return Sb as the best solution violates time window constraints can be
END Simulated Annealing
resulted on certain problems. However, after a
few iterations, the simulated annealing can
Figure 1. Pseudo-code of Simulated Annealing repair the solution becoming feasible.
The simulated annealing is designed to fully
A pseudo code of simulated annealing that explore and exploit the wide search space of
consist the three main processes is presented in the VRPTW. Thus, instead of using a single
Fig 1. The temperature t is started with value of operator, a new neighbor solution is randomly
temp0. inner_itr is a variable that is used to generated using operators that are specially
determine number of iterations for exploiting a developed for the VRPTW. Four operators
local search area. This property enable the have been developed for this purpose as
simulated annealing to obtain the best solution follows:
in the local area and to balance its power for - Move1: internal moving within a route
exploitation and exploration in the search area. of a vehicle. It is carried out by
The cycle of the simulated annealing will changing position/sequence of a
will be terminated after t reaches final customer to reduce the total distance of
temperaturetemp1. A variable named the route.
cooling_factor is used to gradually decrease the - Move2: external moving between
value of t. routes. The operator moves a customer
As other heuristic methods, setting proper to other vehicle to enable the reduction
values for the parameters of algorithms is of the total distance. At the beginning
critical to achieve good result in reasonable step of the simulated annealing, this
amount of time [18][19]. The best value of a operator tends to increase the number of
given parameter is obtained by changing the used vehicles.
values of that parameter in certain range while - Move3: external moving from a vehicle
keeping all other parameters constant [20]. with least customer. This operator will
After a set of preliminary experiments, the effectively reduce the number of used
vehicles. Thus, the total distance is also
Wayan Firdaus Mahmudy., Improved Simulated…113
reduced as each vehicle must travel (RC101 to RC108, RC201 to RC208) contain
from and returns back to the starting mix of random and clustered customers. Each
point. problem has 100 customers as indicated in the
- Move4: external moving from a vehicle last 3 digits of the problem name.
with longest distance. This operator is Column ‟NV‟ of Table 1 shows the number
used to speed up the simulated of used vehicles whereas column ‟Distance‟
annealing obtaining a shorter total shows the total distance traveled by all
distance. vehicles. The computational time (in seconds)
required by the improved simulated annealing
On each iteration, the simulated annealing is also presented in column „Time‟.
randomly chooses which operator should be To measure the quality of solutions
used with probability of 0.3, 0.3, 0.3, and 0.1 produced by the proposed simulated annealing,
for Move1, Move2, Move3, and Move4 a relative deviation (dev) of the total distance
respectively. These values are determined by obtained by the proposed simulated annealing
using several preliminary experiments. Note to the best solution obtained by the other
that the simultaneous application of the heuristic method is calculated using Equation
operators will enable the simulated annealing to (1) as follow:
properly determining the number of vehicles
that minimizes the total distance. 𝑆𝐴 𝑟𝑒𝑠𝑢𝑙𝑡 −𝐵𝑒𝑠𝑡 𝑟𝑒𝑠𝑢𝑙𝑡
𝑑𝑒𝑣 = 100% (1)
It is possible that the operator produce 𝑆𝐴 𝑟𝑒𝑠𝑢𝑙𝑡
infeasible solutions that violate the constraints
By using only simple neighborhood
of the VRPTW. For example, some customers
operators, the proposed simulated annealing
cannot be visited in their time window or a
produces promising results with the average of
vehicle cannot supply demands of the customer
deviations is only 3.56%. The results are
in its route. Thus, a penalty value is applied to
achieved with the average of computational
prevent the simulated annealing accepting the
time of 82.29 seconds. Thus, it proves the
infeasible solutions.
effectiveness of the neighborhood operators to
deal with the complexity of the VRPTW.
RESULT AND DISCUSSION
Furthermore, the proposed simulated annealing
could produce better results in some problems
The performance of the proposed simulated
(R103.100, RC101.100, RC102.100,
annealing is evaluated using a classical set of
RC105.100, RC106.100, RC202.100)
28 benchmark problems developed by Solomon
comparable to those achieved by other heuristic
[12]. The proposed simulated annealing is
methods.
implemented in Java and experiment is carried
Only in few problem (RC203.100,
out on personal computer equipped with AMD
RC204.100, RC206.100, RC208.100) the
Quad-Core processor working at speed 2.8
proposed simulated annealing produce
GHz and 4GB DDR3 memory. Simulated
deviations more than 10%. It should be
annealing is a stochastic method, so different
understood that the neighborhood operators are
solution is obtained in each run. To obtain a
not designed to handle clustered route.
fair result, the proposed simulated annealing is
While the simulated annealing considers
run 5 times for each benchmark problem with
only minimizing the total distance, better
different initial solutions.
results are highly correlated to the fewer
The experimental results are presented in
number of vehicles as shown in Table 1. The
Table 1. The best result of the simulated
results prove that operator Move3 that is used
annealing is compared to the best results
to reduce the number of vehicles is effective.
produced by other heuristic approaches that are
available in the literature. The data can be
found in
“http://w.cba.neu.edu/~msolomon/problems.ht
m”.
Three sets of problems are used. The first
set (R101 to R112) contains randomly
generated customer coordinates. The other sets
114 KURSOR Journal Vol. 7, No. 3, October 2014, page 109-116
[13] R. Baños, J. Ortega, C. Gil, A. Fernández, [17] W. F. Mahmudy, "Optimasi fungsi tanpa
and F. de Toro, "A Simulated Annealing- kendala menggunakan algoritma genetika
based Parallel Multi-Objective Approach dengan kromosom biner dan perbaikan
to Vehicle Routing Problems with Time kromosom hill-climbing," Kursor, vol. 4,
Windows," Expert Systems with pp. 23-29, 2008.
Applications, vol. 40, pp. 1696-1707,
2013. [18] W. F. Mahmudy, R. M. Marian, and L. H.
S. Luong, "Real coded Genetic
[14] S. Afifi, D.-C. Dang, and A. Moukrim, "A Algorithms for Solving Flexible Job-Shop
Simulated Annealing Algorithm For The Scheduling Problem – Part II:
Vehicle Routing Problem with Time optimization," Advanced Materials
Windows and Synchronization Research, vol. 701, pp. 364-369, 2013.
Constraints," in Proceedings of
International Conference, Learning and [19] W. F. Mahmudy, R. M. Marian, and L. H.
Intelligent Optimization (LION 7), S. Luong, "Hybrid Genetic Algorithms for
Catania, Italy, 2013. Part Type Selection and Machine Loading
Problems with Alternative Production
[15] M. Arikan and S. Erol, "A hybrid Plans in Flexible Manufacturing System,"
Simulated Annealing-Tabu Search ECTI Transactions on Computer and
Algorithm For The Part Selection and Information Technology (ECTI‐CIT), vol.
Machine Loading Problems In Flexible 8, pp. 80-93, 2014.
Manufacturing Systems," The
International Journal of Advanced [20] W. F. Mahmudy, R. M. Marian, and L. H.
Manufacturing Technology, vol. 59, pp. S. Luong, "Modeling and Optimization Of
669-679, 2012. Part Type Selection and Loading
Problems in Flexible Manufacturing
[16] S. Kirkpatrick, C. J. Gelatt, and M. P. System Using Real Coded Genetic
Vecchi, "Optimization by Simulated Algorithms," International Journal of
Annealing," Science, vol. 220, pp. 671– Electrical, Electronic Science and
680, 1983. Engineering, vol. 7, pp. 181-190, 2013.