Abstract
Fourth party logistics is an urgent need for economic and social development, and its research focuses on path optimization. Comprehensively considering the choice of third party logistics suppliers, routes, and transportation modes, this study proposes a multi-objective transportation optimization model based on queuing theory, which minimizes cost, time, and carbon emissions. In addition, to solve the problems of infeasible solutions in fourth party logistics route optimization (4plrp), a priority-random based strengthen elitist genetic algorithm is proposed. Experiments show that the algorithm has good convergence and stability in solving small/large 4plrp and is superior to six typical algorithms, such as the elite genetic algorithm.
Keywords
Introduction
With the rapid development of e-commerce, merchants transfer their logistics business to third party logistics (3pl) companies for services to reduce costs. However, with the continuous expansion of the logistics market, 3pl has gradually shown its limitations, such as single-service projects, low level of informatization, and lack of cooperation among enterprises, making realizing the optimal allocation of social resources difficult.1,2 In response to these shortcomings, fourth party logistics (4pl) emerge and meets the complex actual transportation needs by integrating 3pl logistics resources.3,4
Path problem is one of the most important problems in logistics, which has always been a hot topic in people’s research. The fourth party logistics routing problem (4plrp) is more complex compared with the traditional 3pl routing. 5 In addition to considering route selection, 4pl as a leading logistics service provider must comprehensively consider factors, such as transportation capacity, transportation cost, and reputation index of different 3pl suppliers, making the 4pl path a kind of multigraph. Compared with the third party logistics routing problem (simple graph), 4plrp has a larger solution space, so solving this problem is more difficult. 6 At present, several scholars have researched on this topic.
In the establishment of mathematical models, many studies regard the objective function of transportation cost and transportation time to reduce enterprise costs and improve customer satisfaction. For example, Li and Huang 7 mainly studied the problem of minimum total cost under multiple transportation mode selections in 4pl. Deng et al. 8 proposed a route optimization model that minimizes the total cost under centralized and decentralized mixed transport modes. Cui et al. 9 discussed a multi-origin single-destination 4pl path study with fuzzy duration and cost discount. The above studies mostly take transport time as the constraint variable and cost as the objective function because the solving process of multi-objective is highly complex. However, with the deepening of multi-objective studies, some scholars also take transport time as the objective function. Sivaramkumar et al. 10 studied the routing problem of multi-target vehicles with time Windows, striving to minimize the total distance traveled by all vehicles, the total number of vehicles used, and the total gap between ready time and the issuing time. The above models generally assume that the waiting time of the nodes (e.g. vehicles that pass through and need to undergo loading, unloading, handling, and information entry) is constant. This process is a queuing problem, but the queuing theory is usually used to study the service problems of the desk waiting11,12 and working holiday systems.13,14 Few studies consider the queuing waiting problem in 4plrp literature. Moreover, most of the above models do not consider carbon emissions. The global environment is deteriorating. According to the U.S. “E & E News” website, the global CO2 emission reached 36.8 billion tons by the end of 2019. Therefore, the transportation field, as one of the largest sources of greenhouse gases, has attracted great attention, and reducing carbon emissions has become an inevitable trend of logistics development.15,16 Moreover, energy conservation and emission reduction are one of the strategic plans for the long-term development of relevant enterprises and an important measure to promote the sustainable development of the ecological environment and economy. Therefore, today’s logistics distribution should not only be studied from the perspective of enterprise cost and customer time satisfaction, but also consider carbon emissions.
In terms of model solving, the genetic algorithm (GA) is a random search method with the advantages of multi-directional optimization. The convergence results of GA have a slight correlation with the initial value, so GA is widely used in scheduling,17,18 process parameter optimization, 19 path optimization, 20 etc. Chen et al. 21 used GA to solve 4plrp with 10 nodes. Yan et al. 22 embedded the Hooke-Jeeves method with good local optimization ability in GA and improved GA’s solving ability of 4plrp, aiming at the problem that GA is prone to fall into the local optimal solution. Liu et al. 23 studied 4pl logistics tasks and resource scheduling problems, proposed an improved non-dominated sorting GA (NSGA-II) to solve the problem of multi-objective function in 4plrp to a certain extent. However, the above algorithms use conventional coding methods, such as binary and real coding, and their decision variable dimension is equal to the number of multigraph edges. When the nodes of the multigraph exceed 30, the edges of the multigraph are generally as high as thousands, where the GA above generally hardly obtains high-quality solutions or even feasible paths. 9 Aiming at this problem, Cui et al. 9 proposes a multi-array encoding method, uses two arrays to represent a chromosome. Among them, the first array represents the city ordinal number, and the second one represents the 3pl selected among cities. This coding method makes all individuals of a population legal when initialized but fails to guarantee the legitimacy of the descendants generated by cross mutation, thereby limiting the convergence of the algorithm. Huang et al. 6 proposed two algorithms (improved node-based and derived-based GA) to solve the problem of an unfeasible path in 4plrp. However, these two algorithms depend on their proposed path repair strategy, and the legitimacy of the generated offspring needs to be guaranteed by repair, thereby limiting search efficiency. Therefore, this study focuses on GA to avoid illegal paths.
This study aims at addressing the problem of waiting in queue for vehicles to serve at the node center. Queuing theory is integrated into 4plrp, comprehensively considering the choice of 3pl supplier, route, and transportation mode. A mathematical model is also built to minimize transportation costs, time, and carbon emissions. In addition, inspired by literature, 24 this study proposes a priority random-based strengthen elitist GA (prSEGA) for large 4plrp. The prSEGA has the following advantages. (1) The decision variable dimension is equal to the number of multigraph nodes, thereby greatly reducing the decision variable dimension. (2) The path obtained by the priority-random encoding method is the complete path from the origin to the destination node, which improves the convergence of the algorithm. (3) The elite retention strategy is used to directly copy the highly adaptive individuals to the offspring, thus improving the algorithm’s convergence speed.
The rest of this paper is organized as follows. Section 2 introduces the multi-objective mathematical model. Section 3 designs prSEGA, Section 4 provides an example and compares the performance of the prSEGA with several typical genetic algorithms. Section 5 concludes the study.
Problem description and mathematical modeling
Problem description
4pl companies must maximally reduce transportation costs, time, and carbon emissions according to a comprehensive choice of 3pl suppliers, routes, and transportation modes to provide customers with high-quality transportation solutions. The following assumptions are proposed. A batch of goods is transported from the origin
The above practical problems are then transformed into mathematical problems. Figures 1 and 2 show that the 4pl path problem above can be described as a multigraph

4plrp transport network multigraph.

Multiple modes of transport between adjacent nodes multigraph.
Model assumptions
Hypothesis 1: Vehicle arrival at the node center and the node center for service correspond to the queuing theory process. 25 Each vehicle reaches the node center independently, and the service time of the node center follows the negative exponential distribution.
Hypothesis 2: The central service desk of the node is represented as 1, the space is unlimited, and infinite queuing is allowed.
Hypothesis 3: When performing a transportation task on two nodes, only one 3pl vendor can be selected, and that vendor can only select one transportation mode. Moreover, the change of 3pl supplier and transportation mode is not taken into account in the course of transportation.
Parameter definition
q represents the quality of the goods shipped by the 4pl.
A represents the reputation index of customer requirements.
R is a complete path chosen between the starting point and the destination.
When transport mode l is changed to
When carrying the transport task at the node i,
Model establishment
According to the stated assumption, the arrival of transport vehicles at the node center for service is considered a queuing theory problem. Moreover, only one service desk exists in the node center, thereby allowing for infinite queuing and infinite space. This situation is a kind of the simplest queuing system-single service desk waiting system model
To sum up, the establishment of the 4plrp multi-objective model is as follows:
s.t.
Equations (1)–(3) are objective functions. Equation (1) indicates that the cost of transportation is minimized and consists of the costs in transit, changing the transportation mode, and waiting in the node center. Equation (2) represents the minimization of transportation time, with the time function consisting of time in transit, time incurred by changing the transportation mode, and the queuing time. Equation (3) indicates a minimization of carbon emissions. Equation (4) suggests that the transport capacity of the 3pl supplier selected for the shipment of goods should be greater than or equal to the transport capacity required by the customer. Equation (5) means that when the goods pass through the node, the throughput capacity of the node is greater than or equal to the transportation capacity required by the customer. Equation (6) reveals that the reputation index of the 3pl supplier in the selected path should be greater than or equal to the reputation index A of customer requirements. Equation (7) shows that the transport route selected between the beginning and destination of the batch of goods is a complete path.
When dealing with the multi-objective optimization problem, the weight coefficients
where
Algorithm design
This study proposes prSEGA to solve the problem of poor convergence of conventional GA to solving 4plrp. The algorithm adopts the proposed priority-random based encoding method, and the decoded path is the complete path from the origin to the destination node. During evolution, the accuracy and efficiency of solving large-scale multigraph problems are improved by directly retaining the population with large fitness. The framework of the proposed prSEGA can be summarized as follows:
Step 1 Initialize parameters: population size NP, maximum evolutionary algebra NG, crossover rate Pc, and mutation rate Pm.
Step 2 Initialize a population of NP individuals according to the proposed priority-random based encoding method.
Step 3 Calculate the objective function value and the fitness value of each individual.
Step 4 Select NP individuals as parents according to the championship selection method.
Step 5 Perform partially matching crossover operation and inversion mutation operation to generate NP offspring.
Step 6 Calculate the objective function and fitness values of each offspring.
Step 7 Combine the NP parents and the NP offspring to obtain 2N individuals.
Step 8 Select NP individuals as parents according to the elitist selection method.
Step 9 Check whether the maximum allowable number of generations NG is reached. If not, go to Step 4; otherwise, go to Step 10.
Step 10 Stop the process and output the best solution.
Proposed priority-random based encoding method
Conventional GA usually directly takes edges of a multigraph as 0/1 variables, and it is difficult to obtain a feasible path when solving large-scale 4plrp. This study proposes a priority-random based encoding method to solve this problem. Table 1 shows the specific decoding process.
The priority-random based encoding method.
Figure 3 shows the process of generating the complete path of multiple undirected graphs in Figure 1, which is based on the priority-random based encoding method. Altogether, the multiple undirected graphs have seven nodes, where

The priority-random based encoding method.
Therefore, the priority-random based encoding method has the following advantages. (1) Compared with the conventional encoding method, the proposed method greatly reduces the dimension of the decision variable and improves the solution efficiency of the large-scale multigraph. (2) The path obtained by decoding is the complete path from the origin to the destination node, which improves the convergence of the algorithm. (3) The proposed decoding method has good portability and can be easily transplanted into an existing GA.
Fitness function
The fitness function, also known as the evaluation function, is a criterion for selecting high-quality individuals in a population according to the objective function. When solving the minimum value problem, the negative number of the objective function is usually taken as the fitness function of the algorithm. That is,
where
Among them,
Crossover and mutation operation
The general crossover method leads to repeated coding in the offspring, whereas the decision mutation in the proposed priority-random based encoding method is a non-repeating priority sequence. Hence, this study adopts a partial matching crossover (PMX) operation. 27 Figure 4(a) explains the specific process of PMX. First, two intersections are randomly generated, and the number mapping relationship between the two intersections is recorded. Then, the numbers between the two intersections in the parent generation are exchanged directly to generate the offspring. If the number already exists in a child, then the above mapping relation is used to replace it. When child 1 obtained after the direct exchange is 214|764| 6, 4, and 6 already exist, so 4 and 6 are replaced by 3 and 5 respectively according to the mapping relationship. The above replacement should be repeated if duplicate numbers still exist after replacement.

Partially matching crossover operation and inversion mutation operation: (a) Partially matching crossover operation and (b) inversion mutation operation.
This study uses an inversion mutation operation, as shown in Figure 4(b). First, two mutation points are randomly generated. Second, the sequence between the two mutation points of the parent generation is directly reversed, and then, the offspring is obtained.
Notably, the offspring obtained by PMX and reversal mutation can still be decoded into a complete path from the origin to the destination node.
Selection operation
This study adopts two selection methods to improve the convergence of the algorithm, namely, tournament and elitist selection methods. First, select N individuals in the population according to the championship principle, that is, the parents. Then generate N offspring through crossover and mutation, and merge the offspring and the parents to form a 2N population. Finally, to retain the elite individuals in the population, the top N individuals with the highest fitness are selected based on the Elitist selection method, and then the selection operation is completed.
Example analysis
In this section, four sets of experiments verify the performance of the algorithm prSEGA in this paper on the 4plrp model. The first three sets of experiments compare the convergence speed, solution stability, and large-scale multigraph solving ability of prSEGA and six typical algorithms (elitist genetic algorithm (EGA), 28 strengthen elitist genetic algorithm (SEGA), 29 simple genetic algorithm (SGA), 30 generational gap simple genetic algorithm (GGAP-SGA), 31 stud genetic algorithm (studGA), 32 class-steady-state genetic algorithm (steadyGA) 33 ). The fourth group of experiments solves the models of different weight combinations to provide the optimal transportation scheme for 4pl companies. prSEGA adopts the feasibility rule to deal with constraints. The other six typical algorithms have poor convergence when solving the mathematical model in this study. So the penalty function method is used to deal with the constraints.
4plrp examples
The 4plrp can be represented by an undirected multigraph, as shown in Figures 1 and 2. The study uses the following method to generate some multigraphs.
Step 1. Generate n nodes. Nodes numbered 1 and n represent the source and destination, respectively. If the difference between the two node numbers is less than four, then six edges are generated between them to represent the combination of different 3pl and transportation methods.
Step 2. Randomly generate the waiting cost of goods per unit weight
Step 3. Randomly generate Euclidean distance
Step 4. Randomly generate the unit cost
Five examples with 5, 10, 20, 50, and 100 nodes are generated to fully compare the performance of prSEGA and other six typical algorithms. In the five examples, the parameters are set as follows: the quality of the goods
Contrastive analysis of the convergence rate of the algorithm
For fairness in testing, the crossover rate, mutation rate, population size, and maximum evolutionary algebra of prSEGA and six typical algorithms are set to 1, 1, 80, and 100, respectively. For the mathematical model, the weight is set as

Convergence speed diagram of seven algorithms.
Contrastive analysis of solution stability of the algorithm
In this section, algorithm parameters, mathematical model parameters, and numerical cases are consistent with Section 4.2. Then run these seven algorithms 10 times, take the convergence value and running time of each run, and visualize them to further compare the stability of each algorithm. Figure 6(a) shows that prSEGA obtains the same convergence value (0.0423) each time, and the convergence value is smaller than the other six algorithms. Figure 6(b) depicts that although steadyGA has the shortest running time, its convergence value is large, so the algorithm falls into the local optimal solution prematurely. Except for steadyGA, prSEGA has the shortest running time and stable running. PrSEGA can obtain the optimal solution in a stable time, that is, it is more stable than other algorithms.

The stability of seven algorithms: (a) Convergence value of seven algorithms running 10 times and (b) Running time of seven algorithms running 10 times.
Effect of the problem scale on the algorithm
The paper chooses the four data of 10, 20, 50, and 100 nodes for testing to further compare the ability of these seven algorithms to solve 4plrp of different sizes. In the mathematical model, the weight is set as
The solution results of seven algorithms under different size 4plrp.
The bold values represent the solution results under different size 4plrp of the proposed algorithm prSEGA. In order to facilitate data comparison and highlight the advantages of the proposed algorithm, we use bold to indicate this set of data.
Table 2 shows that the “AvgGen” of all algorithms are less than the set “NG,” that is, all algorithms have converged under the set parameters. When the number of nodes is 10, the optimal solution “Best” of the other six algorithms is not less than 1.8. However, as shown in formula (8), the value of the objective function is no more than 1 on the premise that the optimal solution obtained is feasible. Therefore, these six algorithms have been unable to obtain a feasible solution. The prSEGA obtains the smallest convergence value (less than 1) when solving 4plrp of these four sizes, the “Std” is small, that is, the solution stability is great. In addition, prSEGA adopts the feasibility rule to deal with the constraints, so the resulting solutions are all feasible solutions. Furthermore, the solution time of prSEGA is usually less than that of other algorithms. Therefore, prSEGA can obtain better optimal solutions when solving small/large scale 4plrp.
Effect of
,
, and
on the decision
In this section, the effect of

The optimal value under different weight coefficients.
Path information.
3pl supplier information.
Conclusion
Due to the limited size and manpower of the node center, the transportation task may not receive the service immediately. Hence, a queue waiting phenomenon may occur. To solve this problem, the process of transport vehicles arriving at node centers to receive services is assumed to be a queuing process. In addition, reducing carbon emissions is already imminent, and logistics enterprises should actively take practical actions to protect the environment. Therefore, this study establishes a path optimization model to minimize transportation cost, time, and carbon emissions based on the route, 3pl supplier, and transportation mode selection.
This study proposed a priority-random based strengthen elitist genetic algorithm to solve the infeasible solutions problem in 4plrp. The main innovation of this algorithm is to propose a priority-random based encoding method. That is, the dimension of the decision variable is equal to the number of multigraph nodes, and the decoded path is the complete path from the origin to the destination node. Besides, this encoding method has good portability and can be easily transplanted into existing GAs.
The proposed prSEGA is compared with the other six typical algorithms. The experiment shows that when solving the mathematical model in this study, these six algorithms all fall into the local optimal solution, and the paths obtained are all illegal. However, prSEGA has good convergence performance and solution stability when solving small/large 4plrp.
Under the background of big data, modern logistics often has evident randomness. In the future, the issue of 4plrp under uncertain conditions can be discussed.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research work is supported by the National Natural Science Foundation of China (Grant No. 71303094), the Key Research Project Sponsored by National Social Science (Grant No. 19AGL021), and the National Natural Science Foundation of China (Grant No. 71871105). The comments of the selfless reviewers are cordially appreciated.
