Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Innovative Computing Review (ICR)

Volume 2 Issue 2, Fall 2022


ISSN(P): 2791-0024 ISSN(E): 2791-0032
Homepage: https://journals.umt.edu.pk/index.php/ICR

Article QR

Title: An Optimized Solution to Multi-Constraint Vehicle Routing Problem

Author (s): Asif Nawaz, Muhammad Rizwan Rashid Rana, Ghulam Mustafa

Affiliation (s): PMAS Arid Agriculture University Rawalpindi

DOI: https://doi.org/10.32350.icr.22.04

History: Received: October 10, 2022, Revised: November 11, 2022, Accepted: November 29, 2022

Citation: A. Nawaz, M. R. R. Rana, and G. Mustafa, “An optimized solution to multi-


constraint vehicle routing problem,” UMT Artif. Intell. Rev., vol. 2, no. 2, pp. 65-
81, 2022, doi: https://doi.org/10.32350.icr.22.04

Copyright: © The Authors


Licensing: This article is open access and is distributed under the terms of
Creative Commons Attribution 4.0 International License
Conflict of
Interest: Author(s) declared no conflict of interest

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

University Institute of Information Technology, PMAS Arid Agriculture


University Rawalpindi
Abstract-A Vehicle Routing Problem the improved CVRP that is superior
(VRP) is a Non-Polynomial Hard to one obtained by using other
Category (NP-hard) problem in classical versions and better than the
which the best set of routes for a results achieved by comparable
convoy of vehicles is traversed to algorithms. Besides, this improved
deliver goods or services to a known algorithm can also improve search
set of customers. In VRP, some efficiency.
constraints are added to improve
Index Terms-Cuckoo Search (CS),
performance. Some variations of
customer, Particle Swarm
VRP are Capacitated Vehicle
Optimization (PSO), Vehicle Routing
Routing Problem (CVRP), Vehicle
Problem (VRP)
Routing Problem with Stochastic
Demands (VRPSD), Vehicle Routing I. Introduction
Problem with Time Window
(VRPTW), Dynamic Vehicle Routing A set of customers with known
Problem (DVRP), and Vehicle locations across the route and
Routing Problem with Simultaneous known requirements to be supplied
Pickup and Delivery (VRPSPD) from a single depot, to design an
where vehicle and routes have optimal route for these vehicles to
multiple constraints. Swarm minimize cost and distance is
intelligence is a well-used approach known as Vehicle Routing Problem
to solve VRPs. Moreover, different (VRP) [1]. The purpose of a VRP is
hybrid combinations of global and to find out the ideal vehicle route
local optimization techniques are from a set of customers’ underside
also used to optimize the said
constraints. Over the passage of
problem. In this research, an attempt
is made to solve CVRP with VRPSD years, designing VRP has emerged
by using two different hybridized as a new, exclusive, and enthralling
population-based approaches, that topic for researchers in the IT
is, the Cuckoo Search Algorithm market.
(CSA) and Particle Swarm The benefits of VRPs are
Optimization (PSO). The
undeniable. They have been
experiments showed the accuracy of

*
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...

B. Cuckoo Search Algorithm probing by using various types of


(CSA) resources, including those from
existing results and existing
There are some intelligent and
resources, have rendered useful
advanced algorithms developed for
results during the process.
solving complex NP-hard problems
[6]. Cuckoo Search Algorithm Multiple problems related to
(CSA) is one of them and it is based routing have been focused from the
on three idealized and important determination of the exact location
rules given below. to the determination of the
optimized solution. The problems
• Each cuckoo lays one egg at a
have been resolved by making use
time and dumps its egg in a
of multiple resources i.e. The
randomly chosen nest.
existing literature has been adding
• The best nest with high-quality value in the existing times from
eggs will carry over to the next
existing results, from existing
generation.
values, etc. in the domain.
• The number of available host
nests is fixed and the egg laid by In the study [5], the proposed
a cuckoo is discovered by the technique is a hybrid chaotic
host bird with a probability pa ε Particle Swarm Optimization
[0, 1]. (PSO). The main aim of this
The rest of the paper is technique is to solve the Capacitated
organized as follows. Section 2 Vehicle Routing Problem (CVRP).
surveys the existing literature in This task was accomplished by
detail, Section 3 presents and applying three main components.
discusses the proposed Firstly, a mutual mapping method
technique, and the evaluation of was used to encrypt and decrypt
the proposed approach is carried between integers and decimal
out in Section 4. numbers solution [6]. Secondly, to
attain chaotic initialization and to
II. Literature Survey recommence ergodicity and
Various issues concerning a compassion in the early conditions
VRP, such as the determination of of the chaos theory ate utilized.
the exact location as well as an Thirdly and finally, local search
optimized solution, are under the strategies, such as the neighborhood
cogitation of the scientists. In this change approach and move scheme
regard, multiple approaches adopted were used to get local search
after thorough groundwork and optimality between performing

Innovative Computing Review


68
Volume 2 Issue 2, Fall 2022
Nawaz et al.

various experiments. Seemingly, the neighborhood structures (crossover,


proposed technique is efficient and swap, shift, exchange, and reverse)
effective as compared to the to update the position. For the
previous research. It may produce presentation of a solution to the
very good results for small and problem, the authors used
medium-sized problems. However, combination encoding that is a huge
for large scale problems, it needs tour with no trip delimiters.
more effort and time to give a pool A Robust Manifold Ant Colony
of good results.
System (RMACS) was proposed in
The authors [7] used an exact L- [9] to generate a group of solutions
shaped algorithm to solve Vehicle based on several ant colonies .
Routing Problems with Stochastic Further improbability was figured
Demands (VRPSD). They out by linear formulation in the field
tackled/dealt with a failure situation of vigorous optimization. In
in which a vehicle does not have comparison with other solution
enough resources to fulfill the pools, pools generated by RMACS
required demand, which is acquired are better and have a greater ability
after the vehicle has reached the to improve the solution pools for
customer. When the failure Refrigerated Capacitated Vehicle
happened, the vehicle returned to Routing Problem (RCVRP).
the depot and after procuring the The authors [10] worked on
required resources, it resumed its Capacitated Vehicle Routing
route from where it failed. In the Problems (CVRP) with inexact
end, it added to the cost of scheduled travel costs using the ant colony
routes as well as the predictable system. To handle uncertainty, they
recourse cost. This study also used a robust optimization
discussed three lower-bounding
methodology. Their approach was
functions based on the generation of
successful in generating sets of
partial routes to identify violated
solutions with different
cuts. A lot of experiments is taken
conservatism levels. The algorithm
place with 270 benchmarks
was applied frequently and the
instances.
results were obtained with different
The authors [8] worked on conservatism configurations. The
Vehicle Routing Problems with proposed approach also dealt with
Simultaneous Pickup and Delivery uncertainty in the objective
(VRPSPD) using a heuristic function.
approach. They used five

School of System and Technology


69
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...

VRP aims at discovering an technique, nearest neighbor


optimum solution from a restrained clustering. To obtain initial
set of results and is also considered solutions, Clarke-wright saving
to be an integer algorithms were used and for
programming problem [11]. It was scheduling further routes, Nearest
introduced by George Dantzig and Neighborhood Search was used.
John Ramser in 1959. The proposed The results were compared with
approach was applied to petrol those offered by mixed populace
transportation. The basic purpose seeding method. Afterwards, the
was to transport goods situated at a results were matched with GA
central point called depot to geo, random initialization technique. It
which were the locations from was found that the proposed results
where the figure calmly dispersed were better in terms of the time and
clients who placed orders for the distance traveled.
particular goods. Achieving an Different approaches for various
optimum result of VRP is an NP- solutions related to VRP have been
hard problem in combinatorial implemented. VRP algorithm is an
optimization, so there exists a elaborate and extensive algorithm. It
circumscribed scope of issues that takes its inspiration from the general
can be entangled/resolved perfectly. behavior of living organisms and
The proposed LBF outperforms generates adequate solutions
with lower bound activity on large following them [12-15]. The
solution space and for small solution existing literature on VRP not only
space, a strong bond was required. strives to analyze all the possible
The authors [12] solved two variants hindrances in achieving optimized
of VRP in their research, namely solutions but also generates
Multi-Depot VRP and Stochastic sufficient solutions in response to
VRP. They solved, for the first time, those hindrances.
a combination of MDVRP through
III. Proposed Conceptual Model
stochastic time of travel by using
Genetic Algorithms (GAs), a The proposed model is
metaheuristic technique in described in two different sections
evolutionary computation. In the namely Capacitated Vehicle
first population, a hybrid population Routing Problem with Stochastic
seeding method was planned to Demands (CVRPSD) and Cuckoo
produce possible solutions. A Search Particle Swarm
random primary population Optimization (CSPSO) algorithm.
generation depot clustering Scrutinizing the problems reveals
Innovative Computing Review
70
Volume 2 Issue 2, Fall 2022
Nawaz et al.

that issues arise if constraints, such Another important issue that


as Vehicle Capacity (VC) and was improved in this research is the
Customer Stochastic Demand Vehicle Routing Problem with
(CSD) are applied in VRP. Thus, an Stochastic Demands (VRPSDs) in
approach is introduced to recuperate which the customers have a finite
the feasibility of the proposed demand T and there is a fixed
model. capacity of vehicles. The vehicles
are used to fulfill the demands of
A. Capacitated Vehicle Routing
customers. There exist many ways
Problem with Stochastic Demands
to deal with this issue; however, in
CVRP can be introduced as this research, a preventive
follows: Let = (N, E) be an restocking [11] approach was used.
undirected figure, where N =
Customer demands are revealed
{1,2, … . . n} is the group of nodes
when a vehicle reaches a customer.
and E is the group of ends. The
There exist two possibilities after a
number of vehicles used is unknown
vehicle has reached. Firstly, the
and remains a decision variable.
vehicle has the resources to fulfill
Each route must begin and end at the
the demand and continue its tour.
same depot. Furthermore, its total
Secondly, the vehicle does not have
load must not exceed vehicle
enough resources to fulfill customer
capacity and the total load of the
demands and returns to the depot for
routes assigned to a depot must fit
replenishment. After getting its
the capacity of that depot. The total
maximum load, the vehicle once
cost of a route includes the sum of
again starts its tour. The distance for
the costs of the traversed edges. The
vehicle travel for replenishment is
objective is to find the routes that
an extra cost that increases the total
should be created to diminish the
cost of VRP. To get rid of this extra
entire cost.
cost, ‘preventive restocking’ was
Mathematically, used [11]. This type of mechanism
mini allows the use of a threshold value.
𝑁𝑁 The detailed mathematical
= � (𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇) (𝑎𝑎) description of the prescribed model
𝑣𝑣𝑖𝑖 =0 is as follows:
where v denotes vehicle and 1) Model Variables
N denotes the total number of
vehicles. • No. of Customers (𝑁𝑁)
• No. of Vehicles ( 𝐾𝐾 )
• Cost from customer 𝑖𝑖to
School of System and Technology
71
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

function for CVRPSD. Where, Cij Equation 5 guarantees that the


represents the combined cost which entire customer demand cannot
is multiplied by the total edges Xijk surpass a vehicle’s capacity. In this
that all the vehicles have covered t[o regard, Xijk is the product of all edges
facilitate all customers. multiplied by each edge’s cost di.
3) Constraints 𝑁𝑁 𝑁𝑁

� � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 (𝐶𝐶𝑖𝑖𝑖𝑖 + 𝑆𝑆𝑆𝑆 ) ≤ 𝑇𝑇 ,


𝐾𝐾 𝑁𝑁
𝑖𝑖=0 𝑗𝑗=0
� � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 = 1 , 𝑗𝑗 𝑘𝑘
𝑘𝑘=1 𝑖𝑖=0 = 1,2, … , 𝐾𝐾, (6)
= 1,2,3 … . , 𝑁𝑁, (2)
Equation 6 establishes that the
total distance traveled by a vehicle
Innovative Computing Review
72
Volume 2 Issue 2, Fall 2022
Nawaz et al.

cannot exceed the maximum Two penalty functions discussed


distance limit of a vehicle. In this in equations (5) and (6) are added to
𝑘𝑘
regard, 𝑋𝑋𝑖𝑖𝑖𝑖 comprises the edges in an objective function to increase the
between customers that is value of infeasible solutions. One
multiplied with 𝐶𝐶𝑖𝑖𝑖𝑖 and penalty is for additional vehicle
𝑆𝑆𝑆𝑆 service time by each customer. capacity and the other is for
𝑁𝑁 𝑁𝑁
access/assessing vehicle’s route
length. So, the extended objective
� 𝑋𝑋𝑗𝑗𝑗𝑗𝑘𝑘 = � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 ≤ 1,
function becomes
𝑗𝑗=1 𝑗𝑗=1
𝑖𝑖 = 0, 𝑘𝑘 𝑓𝑓(𝑥𝑥)
𝑁𝑁 𝑁𝑁 𝐾𝐾
= 1,2, … , 𝐾𝐾, (7)
= 𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚 � � �(𝐶𝐶𝑖𝑖𝑖𝑖 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 )
Equation 7 ensures that each 𝑖𝑖=0 𝑗𝑗=0 𝑘𝑘=1
vehicle’s starting and ending point 𝐾𝐾 𝑁𝑁 𝑁𝑁

is the depot and it can be used at + 𝑝𝑝 � �𝑚𝑚𝑚𝑚𝑚𝑚 �0, � � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 𝑑𝑑𝑖𝑖 − 𝑄𝑄 �


𝑘𝑘=1 𝑖𝑖=0 𝑗𝑗=0
most once. Where, i=0 shows the 𝑁𝑁 𝑁𝑁
central depot. + 𝑚𝑚𝑚𝑚𝑚𝑚 �0, � � 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 (𝐶𝐶𝑖𝑖𝑖𝑖 + 𝑆𝑆𝑖𝑖 ) − 𝑇𝑇 �� (10)
𝑁𝑁 𝑖𝑖=0 𝑗𝑗=0

� 𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 ≤ |𝑅𝑅| − 1, 𝑅𝑅 ⫃ |1, … . . , 𝑁𝑁|, 2 B. CSPSO Algorithm


𝑖𝑖,𝑗𝑗 ∊ 𝑅𝑅
≤ |𝑅𝑅| ≤ 𝑁𝑁 − 1; 𝑘𝑘 In this section, subtle elements
= 1, … , 𝐾𝐾, (8) of the proposed crossover
Elimination inside a tour is calculation are investigated. As
settled by equation (8) which covers specified earlier in this section, the
sub-tour elimination. All the tours proposed algorithm namely CSPSO
which are broken during its tour are is a hybrid of two nature-inspired
eliminated from total tours by methodologies, that is, Cuckoo
𝑘𝑘
minimizing 𝑋𝑋𝑖𝑖𝑖𝑖 by |𝑅𝑅|. Search Algorithm (CSA) and
Particle Swarm Optimization (PSO)
𝑋𝑋𝑖𝑖𝑖𝑖𝑘𝑘 ∊ {0,1}, 𝑖𝑖, 𝑗𝑗 technique.
= 0,1, … . 𝑁𝑁;
CSPSO is inspired by the nature
𝑘𝑘
of the cuckoo bird in two ways.
= 1,2, … , 𝐾𝐾 (9)
Firstly, cuckoo bird neither raises its
Equation 9 is the integrality eggs nor assemble its eggs in its own
𝑘𝑘
constraint. 𝑋𝑋𝑖𝑖𝑖𝑖 has the integrality nest; rather, it lay its eggs in other
value. Which has a binary value of 0 birds’ nests. Secondly, cuckoo birds
or 1. explore their path and determine
their optimal route based on the

School of System and Technology


73
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...

availability of food. They advise IV. Results and Discussion


each other of their position and help In this section, exploratory setup
each other to move to a superior and usage of the proposed method
spot. The properties of the proposed are examined. The outcome
algorithm are similar to the cuckoo acquired by applying the proposed
bird’s behavior. Thirdly, Cuckoo method was contrasted and diverse
Search (CS) allows the enhanced from the existing systems. The
exploration of the search space in proposed algorithm was applied to
comparison with other evolutionary the actual data set. The results of
computing algorithms. The CSPSO were compared with those
proposed calculation function of the already existing techniques.
includes the capability of The outcome demonstrated that
association for/with cuckoo search. CSPSO strives for/yields better
On the contrary, PSO is one of results in some cases than PSO. It
the modish evolutionary was observed that the execution of
optimization techniques introduced our system was entirely up to the
by Kennedy and Eberhart in 1995. state of the art/Moreover, the
PSO algorithm is an adaptive execution of the current system was
method that can be used to elucidate state-of-the-art.
optimization problems. Searching
A. Dataset
uses a population of particles. Each
particle corresponds to an individual The dataset used in the current
in an evolutionary algorithm. A research contains 11 test problems
flock or swarm of particles is and is open-access. The aggregate
randomly generated initially, with number of clients fluctuates from/in
each particle’s position personifying the range of 13-70 and the aggregate
a possible solution point in the number of vehicles reaches 3-8. In
problem space. the dataset, fluctuated clients are
spread at various coordinates. The
Since the PSO and CS direction framework utilized is a 2-
algorithms are both inspired by the Dimensional framework. Clients are
survival and migration of birds, it is arbitrarily scattered or semi-
natural to utilize the superiority of clustered. The number of vehicles
the CS algorithm to improve the used is identified in each
searching ability of the traditional circumstance and the capacity of the
PSO algorithm. vehicles is set to be constant at 100.
Whereas, the varied customers have
contrasting demands and these
Innovative Computing Review
74
Volume 2 Issue 2, Fall 2022
Nawaz et al.

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

School of System and Technology


75
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...

C. Proposed CSPSO Algorithm Flow Diagram

Start

PSO and CS Parameter Initialization Select a cuckoo nest Pi from P


t t
xi vi , pbest, gbest, Pa.
True

CVRPSD Parameters and population Evaluate Fitness Quality F(Pi)


Initialization.

Calculate Initial Fitness of population Choose next nest Pj from P

False True
If Pi > Pj

While( t < Max-Gen)


Replace Pj with
Current Solution
current solution -
remains -pbest
pbest

False

Move cuckoo birds with PSO equations

Minimized fitness function f(x)


results Abandon fraction (Pa) of worse nests

Keep Quality solutions -pbest

Rank Solution and find current best solution


End -gbest

Innovative Computing Review


76
Volume 2 Issue 2, Fall 2022
Nawaz et al.

Fig. 1. Comparison between PSO and CSPSO

Fig. 2. Comparison between Advance PSO and CSPSO


The third experiment was the optimality of the function is
performed with Simulated checked. Comparison was done
Annealing (SA) which is a heuristic between CSPSO and SA and
approach. It works by heating the detailed results are shown in Figure
metal and then slowly cooling it 3.
down. So, in each temperature state,

School of System and Technology


77
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...

Fig. 3. Comparison between SA and CSPSO

Fig. 4. Combined result comparison with the best known values


Innovative Computing Review
78
Volume 2 Issue 2, Fall 2022
Nawaz et al.

In the end, the proposed Acknowledgments


approach (CSPSO) was compared Authors have no conflict of
with simple PSO and Advance PSO. interest and received no funding.
Their comprehensive results are
depicted in Figure 4. References
V. Conclusion and Future Work [1] H. Qin, X. Su, T. Ren, and Z.
Luo, “A review on the electric
In this research work, an attempt vehicle routing problems:
was made to integrate two nature- Variants and algorithms,” Front.
inspired algorithms. In the Eng. Manag., vol. 8, pp. 3, pp.
suggested algorithm, swarm 370-389, May 2021, doi:
intelligence was integrated with https://doi.org/10.1007/s42524-
CSA to increase the performance 021-0157-1
from local optima to the global [2] G. D. Konstantakopoulos, S. P.
optima. From experimental results, Gayialis, and E. P. Kechagias,
it was observed that the approach “Vehicle routing problem and
produces better results in terms of related algorithms for logistics
efficiency. CSPSO was assessed distribution: A literature review
on/keeping in view some standard and classification,” Operat.
functions and the outcomes Res., vol. 22, no. 3, pp. 2033-
demonstrated that the hybrid 2062, Sep. 2022, doi:
algorithm proposed in this study https://doi.org/10.1007/s12351-
outperforms the classical CS A by 020-00600-7
20% and PSO-2007 by 25%. Due to
[3] F. Yin and Y. Zhao,
the enhancement in mathematical
“Distributionally robust
modeling, more accurate and
equilibrious hybrid vehicle
optimized results were achieved. A
routing problem under twofold
possible enhancement in this work
uncertainty,” Info. Sci., vol. 609,
would be to contain/compare the
pp. 1239-1255, Sep. 2022, doi:
hybrid approach of the CS algorithm
https://doi.org/10.1016/j.ins.202
with different nature-inspired
2.07.140
algorithms, such as Simulating
[4] A. M. Altabeeb, A. M. Mohsen,
Annealing (SA), Firefly Algorithm
L. Abualigah, and A. Ghallab,
(FFA), Artificial Bee Colony
“Solving capacitated vehicle
(ABC), and Genetic Algorithm
routing problem using
(GA) with different constraints of
cooperative firefly algorithm,”
VRP including ‘time window’ and
Appl. Soft Comput., vol. 108, pp.
‘pickup and delivery’.
107403, Sep. 2021, doi:
School of System and Technology
79
Volume 2 Issue 2, Fall 2022
An Optimized Solution to...

https://doi.org/10.1016/j.asoc.2 optimization for vehicle routing


021.107403 problem with simultaneous
[5] F. Pace, A. Santilano, and A. pickup and delivery,” Comput.
Godio, “A review of Indust. Eng. vol. 65, no. 1, pp.
geophysical modeling based on 39-53, May 2013, doi:
particle swarm optimization,” https://doi.org/10.1016/j.cie.201
Surv. Geophy., vol. 42, no. 3, pp. 2.01.005
505-549, Apr. 2021, doi: [10] A. M. Florio, D. Feillet, M.
https://doi.org/10.1007/s10712- Poggi, and T. Vidal, “Vehicle
021-09638-4 routing with stochastic
[6] H. Peng, Z. Zeng, C. Deng, and demands and partial
Z. Wu, “Multi-strategy serial reoptimization,” Transport.
cuckoo search algorithm for Sci., vol. 56, no. 5, pp. 1393-
global optimization,” 1408, Feb. 2022, doi:
Knowledge-Based Syst., vol. https://doi.org/10.1287/trsc.2
214, pp. 106729, Feb. 2021, doi: 022.1129
https://doi.org/10.1016/j.knosys [11] Y. Marinakis., G. Iordanidou,
.2020.106729 and M. Marinaki, “Particle
[7] J. Kennedy and R. Eberhart, swarm optimization for the
“Particle swarm optimization,” vehicle routing problem with
Proc. ICNN'95 – Int. Conf. stochastic demands,” Appl
Neural Networks, 1995, pp. Soft Comput., vol. 13, no. 4,
1942-1948, doi: pp. 1693-1704, Apr. 2013,
https://doi.org/10.1109/ICNN.1 doi:
995.488968 https://doi.org/10.1016/j.asoc
[8] H. A. Alterazi, P. R. Kshirsagar, .2013.01.007
H. Manoharan, S. Selvarajan, [12] P. Bertolazzi, G. Felici, P.
and N. Alhebaishi, “Prevention Festa, G. Fiscon, and E.
of cyber security with the Weitschek, “Integer
internet of things using particle programming models for
swarm optimization,” Sensors, feature selection: New
vol. 22, no. 16, pp. e6117, 2022, extensions and a randomized
doi: solution algorithm,” Eur. J.
https://doi.org/10.3390/s221661 Operat. Res., vol. 250, no. 2,
17 pp. 389-399, Apr. 2016, doi:
[9] F. P. Goksal, I. Karaoglan, and https://doi.org/10.1016/j.ejor
F. Altiparmak, “A hybrid .2015.09.051
discrete particle swarm

Innovative Computing Review


80
Volume 2 Issue 2, Fall 2022
Nawaz et al.

[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

School of System and Technology


81
Volume 2 Issue 2, Fall 2022

You might also like