J
J
Conference Series
1. Introduction
The basic idea of particle swarm optimization (PSO) comes from the research and simulation of birds'
foraging behaviour. The algorithm is simple in concept, easy to implement, and has strong global
search ability. It is an effective to solve the distribution route optimization problem, but it is easy to
fall into the local optimal solution. In view of this, many improved algorithms have proposed [1-5].
The purpose of logistics path optimization is to find a reasonable distribution scheme with low cost
and high speed among many distribution schemes. Once the problem was put forward, it soon
attracted the attention and research of experts and transportation policy makers. It is a well-known NP
hard problem to optimize logistics distribution routes, including vehicle routing problem (VRP) and
travelling salesman problem (TSP). VRP Problem is defined as: some limited vehicle sets, some
customer points, each customer point has different goods needs, under certain constraints, it is
required to arrange the appropriate distribution scheme, complete the needs of each customer, and
achieve a certain goal (such as the lowest cost, shortest route, fastest speed, etc.). It is not easy to find
the exact solution of VRP Problem. Now the effective algorithm to solve the path optimization is in
constant progress, and there are many discoveries in its theoretical part [6-11], but there are still some
areas in urgent need of improvement and improvement in the operation time and the quality of the
optimal solution. So we present an improved particle swarm optimization (PSO) algorithm by
dynamically adjusting the inertia weight in the iterative process of PSO, and it is used to solve the
problem of logistics route optimization.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
CMSA 2021 IOP Publishing
Journal of Physics: Conference Series 1995 (2021) 012044 doi:10.1088/1742-6596/1995/1/012044
1 (1)
1 1 (2)
Wherei is the number of the current evolution (i.e. the number of iterations), 1,2, ⋯ , , indicates
that the location and rate of all individuals are updated. c1 and c2 are learning factors (the larger c1 is,
the greater the experience of the representative particles has on the individual, the greater c2, the
greater the experience of the representative group has on each particle, all of which are greater than 0).
r1 and r2 are random numbers distributed evenly between 0 and 1. i determines the effect of the
original rate on the current rate, which is of great significance to balance global search and local
searching ability.
2
CMSA 2021 IOP Publishing
Journal of Physics: Conference Series 1995 (2021) 012044 doi:10.1088/1742-6596/1995/1/012044
100/total iterations. With the increase of search times, the inertia weight decreases linearly. In the
whole optimization process, the inertia weight of the above two improved algorithms are reduced by
one unit. Both methods gradually reduce the value of inertia weight in the process of increasing the
number of iterations, but the improved method is piecewise linear decreasing, and the improved
method is linear decreasing.
F is the sum of the distances of all vehicle delivery routes, and the objective function is to find the
minimum value of F. Let is a 0-1 variable, when the number of demand points on the k-th path
is not 0.That is, when 0, the variable is 1. When there is no demand point on the k-th path,
i.e. 0, this variable is set to 0. The accumulation formula realizes the accumulation of k from 1 to
K to get the sum of the length of all delivery routes.
The sum of the distances from the i-1 customer point to the i ( 1,2, ⋯ , ) customer point delivered
by the vehicle k plus the distance from the customer point to the logistics center is shown in
brackets. That is the total length of route K. Therefore, the 0-1 variable is used to ensure that when the
vehicle participates in the delivery, the length of the delivery route is added to F. If you do not
participate in the delivery, you can directly make the route length of the delivery 0 and do not add it to
F. With 0-1 variable, the objective function formula is more concise.
. .
(2) The length of each delivery route shall not be greater than the limit of the route for the delivery
vehicles. k in formula (5) is each value between 1 and K. on the right side of the inequality
represents the maximum route of the kth car. On the left side of the inequality is the sum of the
distances from the i-1-th customer point to the i-th ( 1,2, ⋯ , ) customer point delivered by the k-
th car plus the distance from the customer point to the logistics centre. The 0-1 variable is
also used here to simplify the formula. When the vehicle does not participate in the delivery, the limit
of its driving length will not be considered.
∑ (5)
3
CMSA 2021 IOP Publishing
Journal of Physics: Conference Series 1995 (2021) 012044 doi:10.1088/1742-6596/1995/1/012044
(3) The total number of customer points delivered by each vehicle is less than the total demand points.
represents the number of demand points delivered by the k-th vehicle, so that the value is in the
range of 0 to L.
0
(4) A collection of all customer points on each path. The demand points on the k-th vehicle
distribution route are stored in the set . When 1,2. . . , represents the entire customer points
on the k-th vehicle distribution route. Of course, we need to satisfy the customer point between 1 and L.
| ∈ 1,2, ⋯ , , 1,2. . .
(5) It is necessary that the requirements of each customer point are met. nk is the number of customer
points delivered by the first vehicle, so when 1,2, ⋯ , , the sum of the total number of customer
points delivered on all routes is solved. To make this value equal to L.
(6) Each customer point can only be delivered by one vehicle. For different k, there is no intersection
in the corresponding customer point set .
∩ ,∀
3.2. Modeling
The mathematical model is shown in Table 1.
Table 1. Mathematical model
Objective function:
Solving the shortest distribution route
The sum of demand on each delivery route shall not be
. .
greater than the loading limit of vehicles on the route
The length of each delivery route shall not be greater than
the limit of the route for the delivery vehicles
The total number of customer points delivered by each
0
vehicle is less than the total demand points
| ∈ 1,2. . . , 1,2. . . A collection of all customer points on each path
The needs of each customer point are met
4
CMSA 2021 IOP Publishing
Journal of Physics: Conference Series 1995 (2021) 012044 doi:10.1088/1742-6596/1995/1/012044
∑ ∑ (6)
(4) The termination condition of the algorithm. The end condition of the algorithm is set to meet the
maximum number of searches.
5. Simulation Experiment
Analyse and code the path optimization selection of 1 centre, 2 vehicles (each vehicle's loading
capacity limit is 15 tons) and 8 demand points. Distance between demand points and demand
1,2, ⋯ ,8 . Fill in Table 2 (0 for logistics centre point, 1 to 8 for customer point)
Table 2. Distance between customer points and their demands
Demand distance /km
point 0 1 2 3 4 5 6 7 8
0 0 5.5 4.0 7.5 8.0 13.5 11.0 15.0 9.0
1 5.5 0 7.5 8.0 10.5 5.0 8.0 10.0 11.0
2 4.0 7.5 0 8.5 10.0 12.0 7.5 8.0 8.5
3 7.0 8.0 8.5 0 10.0 5.0 9.0 10.0 12.0
4 8.0 10.5 10.0 10.0 0 10.0 7.5 7.5 10.0
5 13.0 5.0 12.0 5.5 10.0 0 8.0 10.0 7.5
6 11.0 8.0 7.5 9.0 7.5 8.0 0 7.0 12.0
7 15.0 10.0 8.0 10.0 7.5 10.0 7.5 0 10.0
8 9.0 11.0 8.5 11.0 10.0 7.5 12.0 10.0 0
qi 2 1 2 2 2 1 4 1
PSO, improved method 1 and improved method 2 were used to calculate the individual. In order to
compare the performance of each method more conveniently, the parameters are set as follows:
particle population is 8, learning factor c1 = 2.05, c2 = 2.05, the initial value of inertia weight w is 1.5,
r1 and r2 are random numbers between 0 and 1. For 1000 searches, the independent calculation is 10.
The statistical results are shown in Table 3
Table 3. Results of each method running ten times separately
Algorithm 1 2 3 4 5 6 7 8 9 10
Standard PSO 74 77.5 72 82.5 70 69 71 75.5 72 70
Improved algorithm 1 70.5 73 71 69 71 70 68 68 72.5 67
Improved algorithm 2 71 68.5 71 69 67 67.5 67 70.5 69 67
The results of Table 3 are summarized and table 4 is obtained.
5
CMSA 2021 IOP Publishing
Journal of Physics: Conference Series 1995 (2021) 012044 doi:10.1088/1742-6596/1995/1/012044
6. Conclusion
A method to dynamically adjust the inertia weight according to the number of iterations is presented.
Considering the individuality and colony of particles, the inertia weight is dynamically changed
according to the iteration of the algorithm in the process of particle search, so as to improve the
convergence speed of the algorithm, increase the diversity of the particle population, and avoid the
premature phenomenon due to the strong individuality of the individual and falling into local optimum.
This algorithm is used to solve the logistics distribution path optimization problem. Through the
simulation experiment of the specific vehicle routing optimization problem, the results show that after
the improvement of the algorithm, the optimization performance is enhanced, the optimization speed
is accelerated, and its complexity is not increased, which greatly improves the performance of the
original algorithm.
Acknowledgments
Authors wishing to acknowledge financial support of the start-up fund for doctoral research in
Nanchang Institute of technology.
References
[1] Guo Kai and Lv Yang 2020 Optimizing Routing Path Selection Method Particle Swarm
Optimization International Journal of Pattern Recognition and Artificial Intelligence 34(12)
[2] Si Han 2020 A new intelligent method for travel path recommendation based on improved
particle swarm optimization International Journal of Computing Science and Mathematics 12(1)
[3] Xun Li and Dandan Wu et al 2020 An Improved Method of Particle Swarm Optimization for
Path Planning of Mobile Robot Journal of Control Science and Engineering 2020
[4] Qiong Gao 2018 Intelligent Vehicle Global Path Planning Based on Improved Particle Swarm
OptimizationOpen Access Library Journal5(4)
[5] Zong-ran Dong and Yan Lin 2017 A particle swarm optimization based approach for ship pipe
route design International Shipbuilding Progress 63(1-2) pp 59-84
[6] Puspitasari F H and Kurniawan V R B 2021 Designing Optimal Distribution Routes using a
Vehicle Routing Problem (VRP) Model in a Logistics Service Provider IOP Conference Series:
Materials Science and Engineering 1071(1)
[7] Yonghao Zeng 2019 Improved Particle Swarm Optimization Based on Tabu Search for VRP
Journal of Applied Science and Engineering Innovation 6(2)
[8] Florian Arnold and Kenneth Sörensen 2019What makes a VRP solution good? The generation
of problem-specific knowledge for heuristics Computers & Operations Research106pp280-288
[9] Tao Shuaihan 2021 An Improved genetic algorithm for solving TSP Journal of Physics:
Conference Series 1952(4)
[10] Sharma Sachin and Jain Vinod 2021 A Novel Approach for Solving TSP Problem Using
Genetic Algorithm Problem IOP Conference Series: Materials Science and Engineering 1116(1)
[11] Hansknecht Christoph and Joormann Imke et al 2021 Dynamic Shortest Paths Methods for the
Time-Dependent TSPAlgorithms 14(1)