Professional Documents
Culture Documents
An Optimized Solution To Multi-Constraint Vehicle Routing Problem
An Optimized Solution To Multi-Constraint Vehicle Routing Problem
Article QR
Author (s): Asif Nawaz, Muhammad Rizwan Rashid Rana, Ghulam Mustafa
DOI: https://doi.org/10.32350.icr.22.04
History: Received: October 10, 2022, Revised: November 11, 2022, Accepted: November 29, 2022
A publication of
School of Systems and Technology
University of Management and Technology, Lahore, Pakistan
An Optimized Solution to Multi-Constraint Vehicle Routing
Problem
Asif Nawaz *, Muhammad Rizwan Rashid Rana, and Ghulam Mustafa
0F
*
Corresponding Author: asif.nawaz@uaar.edu.pk
Innovative Computing Review
66
Volume 2 Issue 2, Fall 2022
Nawaz et al.
propitious in reducing the cost and efficient model to deal with the
distance of the selected route; constraints of VRPs, such as ‘time
however, there are certain window’ and ‘Pickup and Delivery’
difficulties associated with them as that heighten the processing time
well. Opting for an optimized route and distance. The proposed
and controlling fuel consumption technique is also evaluated and
while traveling across compared with the existing
numerous/various routes is one of techniques.
the major dilemmas faced by the
A. Particle Swarm Optimization
world today [2]. In the Classical
(PSO)
Vehicle Routing Problem (CVRP),
a travel cost matrix is given, several Particle Swarm Optimization
identical capacitated vehicles are (PSO) is a technique used to explore
available, and customers have the search space of a given problem
demands that would be enclosed to find the settings or parameters
when the vehicle came to the required to maximize a particular
customer [3]. However, the current objective [5]. It is a population-
VRPs are unable to provide the best based swarm contact design. The
solution to ambiguous demands put basic steps of PSO are given below.
forth by the customers. A VRP is an Algorithm 1: Working of PSO
NP-hard problem [4]. In other
Input: A Set of Reviews (Di)
words, there is a necessity for an Output: All Preprocessed Words (Wall)
upgraded and efficient way to solve For each particle, Initialize
the complicated routing issues. Do
until maximum iterations or minimum
This research deals with a novel error criteria
variation of VRPs where customer If the fitness value is better than pBest
demands are uncertain and are Set pBest = current fitness value
supposed to follow the given If pBest is better than gBest
distinct probability distributions. It Set
surveys the current literature on pBest = current fitness value
VRPs to identify the research gap.
If pBest is better than gBest
To overcome the shortcomings in
the existing work, an algorithm is Set gBest = pBest
proposed that is inspired by the For each particle
existing techniques of Particle Calculate particle velocity use gBest
Swarm Optimization (PSO) and and velocity to update particle Data
End
Cuckoo Search Algorithm (CSA).
The proposed algorithm provides an
School of System and Technology
67
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...
𝑗𝑗(𝐶𝐶𝑖𝑖𝑖𝑖 ) 𝐾𝐾 𝑁𝑁
� � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 = 1 , 𝑖𝑖
• Service time required 𝑆𝑆𝑖𝑖
𝑘𝑘=1 𝑗𝑗=0
where 𝑆𝑆0 = 0 = 1,2,3 … . , 𝑁𝑁. (3)
• Maximum load that a vehicle
Equations 2 and 3 confirm that
can lift ( Q )
every client can be attended by one
• Maximum distance a vehicle
vehicle only. One customer is
can travel ( T )
facilitated by only one vehicle and
• Demand of 𝑖𝑖𝑖𝑖ℎ customer 𝑑𝑑𝑖𝑖 , vehicle k travels through an edge
𝑑𝑑0 = 0 only once.
• Edge moved from customer 𝑁𝑁 𝑁𝑁
𝑘𝑘
𝑖𝑖 to 𝑗𝑗 by vehicle k�𝑋𝑋𝑖𝑖𝑖𝑖 �, 𝑘𝑘
� 𝑋𝑋𝑖𝑖𝑖𝑖 𝑘𝑘
− � 𝑋𝑋𝑢𝑢𝑢𝑢 = 0, 𝑘𝑘 = 1,2 … . , 𝐾𝐾 , 𝑢𝑢
𝑘𝑘
�𝑋𝑋𝑖𝑖𝑖𝑖 � = 𝑖𝑖=0 𝑗𝑗=0
1 , 𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖 = 1,2 … . , 𝑁𝑁. (4)
�
0, 𝑜𝑜𝑜𝑜ℎ𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 Equation 4 maintains continuity
• Group of customers served by a at every customer for each vehicle.
Vehicle ( 𝑅𝑅 ), Equation 3.4 ensures that a tour is
|𝑅𝑅|𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖 not broken in between customers
• Penalty Coefficient (𝑃𝑃) and is completed. In this regard,
k k
2) Objective Function X0u is the starting point, while Xiu
k
can be any central edge, and Xuj is
𝑓𝑓(𝑥𝑥)
𝑁𝑁 𝑁𝑁 𝐾𝐾 the final edge that completes a tour.
= minimize � � ��𝐶𝐶𝑖𝑖𝑖𝑖 . 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 � , (1) 𝑁𝑁 𝑁𝑁
𝑖𝑖=0 𝑗𝑗=0 𝑘𝑘=1 � � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 . 𝑑𝑑𝑑𝑑 ≤ 𝑄𝑄 , 𝑘𝑘 = 1,2 … . , 𝐾𝐾. (5)
Equation 1 is the objective 𝑖𝑖=0 𝑗𝑗=0
demands are undisclosed until the compare them with some sort of
vehicle has reached them. standard. So, to authenticate the
Additionally, there is only one current work, it was equated with
goods depot and its location is (1,- the best-known results which have
1), which is usually situated at the been previously deduced.
center of the customer’s existing Table I
location. To test their CVRP-based Parameter Initialization of CSPSO
algorithms. The sample of the Parameters CSPSO Value
dataset can also be seen in Figure 2.
No. of Nests 100
B. System Requirement Tol-Fun 1e-6
The code for simulation was Tol-Con 1e-6
implemented on Intel ® Core TM i3 Alien Eggs 0.75
4005U CPU @1.70 GHz using Discovery rate
MATLAB R2014a. The parameter Lower Bound 5 * ones ( 1 , 15 )
setting for Cuckoo Search Particle Upper Bound 5 * ones ( 1 , 15 )
Swarm Optimization (CSPSO) is
shown in Table I. For obtaining the When the proposed technique
ideal values of CVRPSD parameters was compared with PSO, it was
through CSPSO, 1000 iterations determined that the dataset contains
were executed with multiple a vehicle capacity of 100 items,
scenarios, as shown in Table II. An demands, and target locations. In
intense result comparison with the this experimentation, the results are
existing approaches is also given in much better than PSO because of the
Table III. The convergence behavior enhanced working of the CS
for the ideal values of technique. The data is presented in
appropriateness function for 1000 figures as well as in tabular form,
runs is shown in the figure series 1, which is considered as the best
2, and so on. It is clear that a hybrid illustration of results. The detailed
of CS with PSO tackles/addresses results are shown Figure 1.
the fitness function very easily and The results of the current study
the convergence of the solution is were also compared with Advance
also efficient. Convergence is fast PSO proposed by [13]. The
because cuckoo nests try to diverge comparison showed that CSPSO
the fitness but the social behavior of competes with advance PSO in
PSO carries them back near some scenarios. The detailed results
conjunction. To substantiate the are shown in Figure 2
current results, it was necessary to
Start
False True
If Pi > Pj
False
[13] C. Liu, J. Wang, L. Zhou, and Operat. Res., vol. 225, no. 1,
A. Rezaeipanah, “Solving the pp.1-11, Feb. 2013, doi:
multi-objective problem of https://doi.org/10.1016/j.ejor
IoT service placement in fog .2012.08.015
computing using cuckoo [15] S. H. Huang, Y. H. Huang, C.
search algorithm,” Neural A. Blazquez, and C. Y. Chen,
Proc. Letters, vol. 54, no. 3, “Solving the vehicle routing
pp. 1823-1854, Jan. 2022, problem with drone for
doi: delivery services using an ant
https://doi.org/10.1007/s110 colony optimization
63-021-10708-2 algorithm,” Advanc. Eng.
[14] V. Pillac, M. Gendreau, C. Informat., vol. 51, pp.
Guéret, and A. L. Medaglia, e101536, Jan. 2022, doi:
“A review of dynamic https://doi.org/10.1016/j.aei.
vehicle routing problems,” J. 2022.101536