Next Article in Journal
Quantitative Analysis of Temporal and Spatial Variations of Soil Salinization and Groundwater Depth along the Yellow River Saline–Alkali Land
Previous Article in Journal
Sustainable Urban Regeneration of Blighted Neighborhoods: The Case of Al Ghanim Neighborhood, Doha, Qatar
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Study of Community Group Purchasing Vehicle Routing Problems Considering Service Time Windows

1
School of Marxism, Xidian University, Xi’an 710071, China
2
School of Economics and Management, Xidian University, Xi’an 710071, China
*
Author to whom correspondence should be addressed.
Sustainability 2022, 14(12), 6968; https://doi.org/10.3390/su14126968
Submission received: 23 April 2022 / Revised: 19 May 2022 / Accepted: 26 May 2022 / Published: 7 June 2022

Abstract

:
In this paper, a vehicle routing problem (VRP) model considering delivery time windows and variable service time is established for the delivery problem in community group purchasing. A solution model for an improved ant colony algorithm (ACA) is proposed by improving the initial feasible solution and the neighbourhood search mechanism of the ant colony algorithm. The algorithm of the improved ant colony and the commonly used algorithm are solved for real cases and publicly available benchmark datasets, respectively, for comparative analysis. The results show that the improved ACA has stronger optimization capability, faster convergence speed, and has advantages in solving VRPTW problems with variable service time. The computational efficiency is also improved by 41% over the genetic algorithm (GA) in the solution of the benchmark dataset, which provides a certain reference for solving the community group distribution problem.

1. Introduction

With the rapid development of mobile Internet and the widespread popularity of mobile payment technology, a new social e-commerce model-community group purchase system has emerged. Community group purchase is a kind of shopping and consumption behaviour of resident groups in real living communities. It is a regional, niche, and localized form of group purchase based on real communities. The process are as follows: the leader of the community will release various promotional activities to the community residents through a WeChat group. After the residents place orders, the platform enterprises will arrange the stock to the designated community in a timely manner. At present, the sales categories of community group purchase in operation are mainly fresh, dairy, rice, flour, oil and grain, daily chemicals, and services among which the sales volume of fresh agricultural products accounts for 60% of the total. For community group purchase dispatching, there are major differences in dispatching mode compared with a traditional distribution business, the core of which is the requirement for dispatching timeliness. The timeliness of delivery has an impact on the quality of fresh food products, and unreasonable dispatching causes fluctuations in product quality, thus affecting the reputation and demand of community group purchase. In order to ensure the quality of the food and to improve the reputation and demand of the enterprise, it is necessary to study the vehicle route planning problem in community group buying distribution, so that customers can receive better service, and thus increase the benefit of the enterprise.
Furthermore, community group purchasing has become a major purchasing lifestyle for most residents during the pandemic; however, the requirements of different regions for epidemic prevention and control, the requirement for delivery vehicles to enter the community at specified times, and the restrictions on the length of stay in the community are causing a great impact on the delivery problem of community group purchasing. It is therefore necessary to conduct further research on the distribution of community group purchasing.
The VRP has been intensively studied by many scholars including the vehicle routing problem with time windows (VRPTW) [1,2]. Researchers often use exact algorithms and metaheuristics when solving problems. In recent years, some scholars have also proposed accurate algorithms to effectively solve VRPTW, such as the branch-price algorithm and the branch-and-cut algorithm [3,4]. Exact algorithms are uniquely advantageous when solving small-scale problems (number of nodes less than 30), but when the scale becomes large, the use of these algorithms lead to excessive computational effort to effectively solve the problem and have a narrower application. Compared to the exact algorithm, the metaheuristic algorithm is more suitable for solving large-scale problems, and the search is more comprehensive, which can improve the effectiveness of the solution and is more widely applicable. Current methods for solving such problems include genetic algorithms, ant colony algorithms, simulated annealing algorithms (SAA), particle swarm algorithms [5,6,7,8,9]. Among them, ACA was proposed by Dorigo in 1996, and many scholars have used ACA for solving VRPTW problems. Because of its advantages of robustness, positive feedback, and parallelism, the ACA is widely used to solve vehicle path problems, but it can also fall into local optimum solutions, slow convergence, and unsatisfactory results. Therefore, the improvement of ACA to enhance its computational efficiency has aroused the research interest of many scholars, such as improving methods from the aspects of individuals and populations, feasible solution construction and pheromone update. However, some scholars found that when a certain algorithm is used to solve the problem, there will be premature and local optimal problems. When the algorithms are combined, they can complement each other and solve the VRP problem more effectively [10].
In contrast to current research, the contributions of this paper can be summarized in the following main points. Firstly, based on the delivery problem in community group buying, a VRP model considering the delivery time window and variable service time is developed by taking into account the hard-time window of demand information at the demand point in addition to the variable service time that exists according to the different quantity of goods demanded. Secondly, the ACA is improved by combining it with the SAA. A simulated annealing mechanism is used to quickly generate the better solution, leaving pheromones for the better path, and then the traversal is completed according to the ant colony algorithm, using simulated annealing to find another solution in the neighbourhood, and eventually, the optimal solution. Thereby an improved ACA is proposed to solve a real community group delivery problem. Finally, the superiority of the new algorithm is further verified by solving the benchmark dataset data from the Solomon benchmark with the improved algorithm and the commonly used algorithm. It is interesting to note from the comparison that commonly used algorithms for solving the VRPTW problem, such as GA, have a great advantage in solving the problem for the benchmark dataset. However, the computational performance of GA is not as significant when it is used for real-world problem solving or when we adapt the data from the benchmark dataset, for example, by making the information on the location of demand points more complex and setting variable service times depending on the amount of goods demanded.
The main components of this paper are as follows. Section 2 provides a review of the relevant literature, and Section 3 develops a model for the community group delivery problem. Section 4 presents an analysis of the principles of SAA and ACA, as well as an introduction to the improved ACA. Section 5 uses the improved ACA to solve a real community group-buying delivery problem and further explores the computational performance of the three algorithms. Finally, a summary of the whole paper is presented.

2. Literature Review

As a new business model, community group buying is popular mainly in China currently, and the corresponding research is in its infancy. In the traditional group-buying model, members are mainly relatives and friends who buy the same product in a group to recieve a discount on the price [11]. Therefore, the close social relationship is the foundation of the basic group-buying model. However, relevant scholars have noticed that the basic group-buying model is greatly influenced by geographical constraints, thus the size of the group-buying group will also be greatly affected [12,13]. To lessen the limitation of geographical factors on group purchase scale, the online group purchase model based on Internet virtual communities is more favoured by consumers [14,15,16]. Furthermore, e-commerce attracts more consumers through the Internet, and the traffic crisis has become increasingly prominent. Therefore, an increasing number of e-commerce platforms have begun to integrate the advantages of O2O omni-channel retail and online group buying. At the same time, some scholar focus on offline residential communities and start to build a new convenient community group purchase model based on residential communities [17]. The model has a positive effect on responding to market demand and satisfying the individual demand of consumers. According to the summary of the research objects, it can be found that community group buying has the characteristics of interactivity, closeness, convenience, and economy [18]. Jing et al., found that convenience and speed are the main reasons for users to choose community group buying [19]. Xu et al., studied the influence of the technical characteristics and trust of community group buying on whether consumers consume or not and found that both emotional trust and cognitive trust have a significant positive effect on consumers’ purchasing decisions [20]. Meanwhile, with the increase in income levels of Chinese residents, quality has become the most important attribute for consumers in addition to price [21]. Because of the perishable nature of fresh food, offering fresher products at a reasonable price in community group buying has become the key to attracting consumers [22]. There is not a wealth of research on the delivery problem in community group buying yet [23]. The article therefore addresses the timeliness problem in community group buying, builds a VRP model, and discusses the solution method to investigate how to efficiently complete the distribution work in community group buying at a reasonable cost.
The ACA solves the VRP by determining the parameters, constructing the solution space, updating the pheromone, and judging the termination condition. To address the drawback of being prone to local optimal solutions, Abdulkader et al., proposed a solution of combining local search and ant colony algorithms [24]. Kalayci et al., proposed a hybrid algorithm based on an ant colony algorithm and variable neighbourhood search [25]. Asghari et al., designed a reverse ant colony algorithm, where the updated pheromone has a reverse effect on the path chosen by ants [26]. Jovanovic et al., proposed a solution to the ant colony optimization algorithm for the region relocation problem, extending the basic greedy algorithm to the ant colony algorithm, giving a defined pheromone matrix and improving the performance of the algorithm [27]. Bouamama et al., improved ACA by using a variable neighbourhood search as a subroutine to address the minimal connection dominance set problem, which can also be applied to weighted and unweighted problem variables [28]. Fernandez et al., used a process similar to that of ants searching for food to search the solution space and selected feasible regions to optimize the search, thereby improving the quality of the feasible solutions [29]. Wang et al., designed an algorithm that allows ants to enter and exit multiple times until all clients are visited, simplifying the process of constructing feasible solutions [30]. Pintea et al., used sensitive ants to improve the sensitivity of the colony system when solving VRPs, where individual ants are sensitive to pheromones and potentially enhance the search ability for variable pheromones [31]. In Kao et al.’s study, not all ants were able to update their pheromones and only the elite ants were able to update their pheromones according to their own best solution, which improved the quality of understanding. Kuo et al., designed a fuzzy clustering insertion algorithm to obtain better pheromones [32]. Suggested method of improvement focuses on enhancing the computational performance of the ACA by improving the individuals and populations and pheromone updates.
When solving various types of VRPs, scholars have found that using one algorithm alone suffers from premature and local optimum problems, while combining algorithms can complement each other to solve increasingly complex VRP problems. Cruz et al., proposed a continuous ant colony system taboo search algorithm in solving a multi-product distribution VRP with a time window, first using a dual pheromone tracking strategy to accelerate the learning process of ants to generate paths, and then a memory form of taboo search to further improve the quality of understanding [33]. Li et al., generated the initial solution using a greedy heuristic algorithm [34]. The novelty of this paper is the improvement of ACA by combining SAA. The simulated annealing mechanism is used to quickly generate the better solution, leaving pheromones for the better path, and then the traversal is completed according to the ACA, using the simulated annealing method to find another solution in the neighbourhood, and finally finding the optimal solution.
Different from the studies focusing on community group purchasing models and strategies and influencing factors, this paper focuses on the vehicle path planning problem in community group purchasing delivery and establishes a vehicle path planning model considering service time and service time windows. The model is solved to overcome the problem of slow convergence of the ACA and the fact that it has fallen into a local optimum solution. By improving the initial feasible solution of the ant colony algorithm and the neighbourhood search mechanism, a simulated annealing ant colony algorithm solution model is proposed.

3. Problem Description

Within the radius of a distribution centre of a community-based e-commerce group, the distribution centre provides goods to the customer and the fleet distributes the goods from the distribution centre and organises an appropriate route back to the distribution centre. The customer’s needs are fulfilled within certain constraints with the goal of shortest distance travelled, lowest cost, and least time spent. At the same time, certain conditions are to be observed in the fulfilment of the distribution tasks:
  • Each vehicle has only one delivery route to complete the delivery from and back to the distribution centre;
  • Only one vehicle per head needs to be satisfied in one distribution mission;
  • Vehicles must meet capacity constraints;
  • Distribution centre are presumed to have prepared sufficient goods in advance.
Suppose there are k ( 1 , 2 , , k ) heads in the service area, and the demand for goods at the ith head is set to g i ( i = 1 , 2 , , k ) , and the distribution centre sends a vehicle with a load of q. Set g i < q , and find the shortest route to meet the freight demand.
The costs of a car in distribution are equal to the sum of the stationary cost of the car and the travel expenses. The stationary cost of a vehicle mainly includes the cost of dispatching the vehicle, other factors are not taken into account, such as the acquisition cost of the vehicle or the cost of renting the vehicle. Hence, the capital cost of a vehicle is shown below:
Z 1 = c × s
where c is the cost of dispatching a vehicle, which is fixed and varies with actual demand, and s represents complete vehicle count required in the route problem.
The vehicle travel cost is the cost of completing all transportation plans. Since the mileage, depreciation, and fuel costs of a vehicle are proportional to the total distance travelled in the route plan, the vehicle travel cost is the sum of these three costs. The vehicle travel cost expression is shown in the following formula, with the transport cost (i.e., distance, expense, etc.) from point i to point j . The number of the distribution centre is 0, and the number of each head is i ( i = 1 , 2 , , k ) . The following variables are defined: where i j s x i j s indicates the number of miles covered by the vehicle in all path models of the vehicle.
Z 2 = i j s c i j x i j s
The penalty cost is the cost of not fully satisfying the time window for each demand point in the process of finding the shortest path, which has a negative impact on the efficiency and evaluation of the contingency logistics. The penalty cost for not meeting the time window for a given demand point is expressed by the formula:
Z 3 = i λ i × max ( E T i S i , 0 ) + min ( S i L T I , 0 )
where S i is the actual time of arrival of the vehicle at head i , E T i is the earliest time a vehicle is allowed to arrive at head i , L T i is the latest time a vehicle is allowed to arrive at head i , and λ i is the penalty cost per unit of time for not meeting the time window. When a vehicle arrives within a demand point time window, the demand point time window penalty cost is zero.
Denote by c i j the cost of transportation (e.g., time, distance, expense, etc.) from point i to point j . The number of the distribution centre is 0 and the number of each head is i ( i = 1 , 2 , , k ) . The following variables are defined
x i j s = 1 v e h i c l e   s   travelling   from   point   i   to   point   j 0 o t h e r w i s e
y i s = 1 c u s t o m e r   i   is   delivered   by   vehicle   s 0 o t h e r w i s e
Objective function:
min Z = Z 1 + Z 2 + Z 3
S.T.
i = 1 k g i y i s q s = 1 , 2 , , m
i = 1 m y i s = 1 i = 1 , 2 , , k 0 i = 0
i = 0 k x i j s = y j s i , j = 0 , 1 , 2 , , k ; s = 1 , 2 , m
j = 0 k x i j s = y j s i , j = 0 , 1 , 2 , , k ; s = 1 , 2 , m
x i j s = 0 / 1 i , j = 0 , 1 , , k ; s = 1 , 2 , m
y i s = 0 / 1 i = 0 , 1 , , k ; s = 1 , 2 , m
Equation (7) constrains the capacity of the vehicles; Equation (8) is designed to ensure that the transport tasks at each customer point are performed by only one vehicle, while all transport tasks are performed by m vehicles simultaneously; Equations (9)–(12) ensure that there is one and only one van arriving and departing from a given customer point.

4. Algorithm Introduction

Generally, the actual problem is transformed into a sequence of combinatorial optimisation problems to be solved, and the meta-heuristic algorithm is to find a better feasible solution out of a limited computational consumption. Where this permutation is referred to as the solution, and the result computed by substituting the permutation into the actual problem is referred to as the fitness. In summary, the optimisation mechanism of the meta-heuristic algorithm, is shown in Figure 1.

4.1. Ant Colony Algorithms

The ACA simulates the path discovery behaviour of ants during their search for food. In fact, it has some similarities with the taboo search algorithm in that both can search and accept new solutions according to certain rules. The difference is that the taboo table, which is based on a positive feedback mechanism, does not simply represent a forbidden or allowed operation, but is able to tend to lead to new solutions (better solutions) by dynamically updating the probability of movement in each neighbourhood.
In one neighbourhood change, the probability of selection from position 1 to position 2 is 1/2, from position 1 to position 3 is 1/18 and so on, as shown in Figure 2. These selection probabilities can accumulate in each iteration, leading to the acquisition of the final better solution. Both the taboo search and ACA rely on the creation of taboo tables, and therefore their optimisation objects require a relatively stable and independent neighbourhood structure. However, the initial iterative process produces very limited pheromones, and because of the limited feedback, it requires a lengthy process and is slow to solve, making it difficult to complete solutions in a relatively short time for large-scale computational problems.

4.2. Simulated Annealing Algorithms

The SAA is derived from the principle of solid annealing: during the cooling process of a high-temperature solid, the particles contained in it are desperately converging to an equilibrium state at each moment, with their energy gradually decreasing with decreasing temperature, until the ground state is reached at room temperature. During this process, new solutions are usually generated using a random neighbourhood change method, while the acceptance of a better solution exactly mimics the annealing process of the solid, i.e., the algorithm accepts a non-better solution as a better solution with a higher probability in the early stages of execution, thus ensuring the global search capability of the algorithm, and accepts a non-better solution with a lower probability in the later stages of execution, in order to retain the currently obtained relatively better solution, where the acceptance probability becomes progressively smaller as the "annealing temperature" is changed. A comparison table of the basic concepts of the physical annealing process and SAA is shown in Table 1.
Simulated annealing is a heuristic stochastic method that differs from conventional stochastic approaches in that it contains not only an adequate random element but also incorporates mechanisms that are natural to the annealing process of physical systems. It can accept not only the points that make the value of the target function better during the iterative process, but also the points that make the value of the target function worse with some probability, and the acceptance probability decreases as the temperature decreases. Due to the uncertainty of the value of the solution in the entire neighbourhood, the algorithm can bypass the local optimal solution to obtain the global optimal solution, which is conducive to improving the global search ability. Although it can search globally on a large scale, the SAA does not have an effective positive feedback mechanism and tends to make some useless iterations when the solution reaches a certain level, hence the low value of solution accuracy.

4.3. Improved Ant Colony Algorithm

It is recommended to mix the SAA with the ACA method to solve the vehicle path planning problem. The SAA is used to quickly generate a solution, distribute the pheromones on this solution, and use the positive feedback mechanism of the ACA to find the exact solution to complement each other’s strengths and weaknesses, expecting to obtain a win-win situation in terms of optimization and quickly obtaining the solution.
The idea of the hybrid algorithm is to first generate the better solution quickly by using the SAA, the better path leaves pheromones; then let the ants follow the ACA, using the pheromones left behind to complete a traversal after using the simulated annealing method to find another solution in the neighbourhood. This new solution may not be better, since this time, the acceptance criterion uses the idea of simulated annealing, allowing the objective function to worsen in a limited range, in order to simplify the computation and not by probability trade-offs. If the path length difference Δ E < e is accepted, e allows the objective function worsen in the range.
Each ant leaves pheromones behind on the path it takes, while simultaneously some of the pheromones from the original path is volatilised, so the pheromone update is divided into a local pheromone update and a global pheromone update. The local pheromone update is for the selected edge to have less influence on the later ants, thus making the ants have more influence on the unselected edge. After the ants move from position i to position j , the pheromone on edge ( i , j ) is updated according to the following equation, where τ 0 is a constant and η is an adjustable parameter.
τ i j = ( 1 η ) τ i j + η τ 0
When the global optimal solution has been searched once by all ants, it is updated with the global pheromone. At this time, only the pheromone enhancement is performed on the optimal path, so that the pheromone difference between the optimal path and the worst path becomes larger, and the ants can concentrate near the optimal path faster and accelerate the global convergence.
The flow chart is shown in Figure 3.
(1)
SAA generates initial solution;
(2)
The better path leaves the pheromone;
(3)
The ACA completes a facilitation to produce a solution;
(4)
SAA finds a new solution in the neighbourhood of the solution generated by the ACA;
(5)
Determine if it is less than 0. If so, the ant colony updates the pheromone, otherwise return to step 2;
(6)
Determine if the ACA has reached the maximum number of iterations, if so, output the optimal solution, otherwise return to step 2 and continue the cycle.

5. Case Study

An e-commerce company, D, which focuses on the online pre-sale of community group purchasing products, has a distribution centre that serves a certain range of heads and has an agreement with them for in-store pick-up. The company gets the community purchase orders collected by the company’s heads by 10 pm the previous night. The company completes the transfer of goods through its own supply chain system and delivers them to the company’s shop heads within the agreed time frame so that customers in the community can recieve their orders without any problems. The company’s distribution centre is located near the Beijing Xinfadi vegetable Wholesale Market. To maintain customer information and the company’s interests without loss of generality, customer demand information is optimised and the distribution centre and the 30 demand points are located as shown in Figure 4.

5.1. Parameter Setting

Considering previous studies, we set the parameters of the SAA, ACA GA and SAACA as shown in Table 2.
There are 30 communities to be served within the service area of a distribution centre. The location information and time windows of the distribution centre and the communities are collated as follows: Since users are not very sensitive to the time they choose community group purchases, there is a wide tolerance range of working hours, but the delivery must be completed within a hard-time window. At the same time, it must be considered that during loading, unloading, and handling, there are order verification processes and other operations, so during the distribution process of setting the corresponding service time according to the amount of goods, the planning of the distribution path is very important.

5.2. Algorithm Results

The SAA, a general-purpose optimisation algorithm, has theoretically probabilistic global optimisation performance. The ACA features distributed computing, positive information feedback, and heuristic searching. The advantages of both algorithms are combined here to propose an improved algorithm for solving the above community group buying problem. The solution process was computed on the same laptop computer equipped with an AMD R7 5800 H 3.20 GHz CPU and 16 GB of RAM. The distribution roadmap and total cost trends of the final global optimal solution obtained are shown below.
The actual latitude and longitude values of the points are normalised to obtain the coordinates of each point. The distribution centre is labelled as 0 and the 30 customer locations are labelled as 1–30, and the demand is rationalised according to the real data to set the demand for each customer point. Specific data information is shown in the Table 3.
The improved ACA algorithm was used to solve the distribution problem with the parameters set in Table 2, and after 30 experiments, the optimal vehicle route map and shortest path trend diagram of which were selected is shown in Figure 5.
To verify the superiority of the improved algorithm, three other commonly used algorithms, the genetic algorithm, the simulated annealing algorithm, and the ant colony algorithm were introduced to solve the problem. The solution performance of the new algorithms was observed by comparing the computational results. The number of iterations of the three algorithms was unified to 2000, and after several trials, the vehicle route map and shortest route trend graphs obtained by the three algorithms under the optimal calculation scheme are shown in Figure 5, Figure 6, Figure 7 and Figure 8. From the optimal solution results of several algorithms, it can be obtained that the improved ACA can solve a more efficient distribution scheme, followed by the calculation efficiency of GA and SA, with the worst solution from ACA.
Based on 50 experiments, four algorithms were obtained, and the average value of the time required for the operation T, the average number of iterations of the optimal solution as D ¯ , the shortest path as Z min , the average value of the shortest path as Z ¯ , and the required vehicle l were obtained, as shown in Table 4. In terms of computation time, the SAA is the most efficient and can complete 2000 iterations in the shortest time, followed by the improved ACA, and finally, GA. while in terms of overall computation efficiency, the improved algorithm solves for the optimal result and can complete the computation in a shorter time, the number of iterations to reach the optimal solution is relatively top, low, and the algorithm’s stability is also relatively strong. Compared to ACA, the improved algorithm has great advantages in terms of computation time, computation results obtained, and stability. In comparison with the commonly used GA and SA, the improved ACA is superior in terms of accuracy and stability of the computed results. As shown in the table, the accuracy of the SAA and GA is similar, with the difference being that the SAA takes less time to compute. In addition, the traditional ACA is prone to early maturity and thus falls into a local optimum, but the improved algorithm has significantly improved the computation time and computation accuracy.

5.3. Comparative Analysis

To achieve a reliable comparison, two cases from the publicly available Solomon benchmark dataset were used, the 50-customer case and the 100-customer c101 case. As shown in Table 5, the 50-customer dataset was modified to bring the problem closer to reality, with modifications to customer location and goods demand, and variable service times given based on the amount of customer demand.
Each algorithm was uniformly set to 2000 iterations, and after 50 experiments, the conclusions shown in Table 6 were obtained, and the optimal results were selected to obtain the optimal delivery paths for the four algorithms in the case of 50 customers as shown in Figure 9. From the figure, there are differences in the optimal delivery paths for the four algorithms. In terms of computation time, as the size of the computation increases, the time used by the GA increases most significantly, followed by the ACA, and the time of the new algorithm also increases. While the computation time of the SAA increases, it is still the fastest to complete the computation. In terms of accuracy, the advantage of the new algorithm is also evident. In particular, there is a dramatic improvement over the pre-improvement ACA, which achieves an accuracy not possible by the other three algorithms with a high level of stability. The performance of the GA and SA, on the other hand, is close in terms of both computational accuracy and stability.
With a benchmark dataset of 100 customer messages, we obtained the results in Table 7. Since the optimal solution to the problem is provided in the standard dataset, we can explore the performance of the algorithm by setting different numbers of iterations to different algorithms. Setting the number of iterations for GA to 100 provides the optimal result after an average of 68 iterations. The optimal results can also be obtained using the SAA and the improved ACA, the difference being that the improved ACA is slightly more stable, while the SAA is less stable. The SAA algorithm still has an undeniable advantage in terms of computation time, but the overall stability of the algorithm is lacking. The two GAs and the improved ACA, which provide exact solutions, are 41% better than the GA based on the actual running time required, although there is a significant difference in the number of iterations due to the algorithm’s own computational principles. For a larger customer base, the improved algorithm shows a significant advantage over the ACA in terms of both computational time and computational accuracy.
There is a relatively large difference in performance of the algorithm for GA in calculations with different sizes of data volumes, the main reason being that the service time considered in the traditional VRPTW problem is fixed. However, in the actual case in the article and in the modified dataset, the service time is based on variable service time for the volume of goods, which increases the difficulty of solving the problem. Therefore, the performance of the GA in the first two cases differ compared to the last case.
The improved ACA is vastly superior to SA, ACA, and GA when considering variable service times. The ACA and GA not only take a long time to compute but also tend to fall into local optimum solutions. The SAA has a great advantage in terms of computation time but is deficient in terms of accuracy and stability of the computation compared to the improved algorithm. By comparing the computational results using the standard dataset, it is found that the improved ACA is still well suited to the computational task and improves the computational time by 41% over the GA.

6. Summary

The problem of delivery in community group buying is modelled and analysed in this paper, considering the time window and variable service time in delivery. An improved ACA is proposed to solve the model by investigating the solution principles of SAA and ACA, and the computational performance of the improved ACA is explored by solving a benchmark dataset with the improved algorithm compared to several commonly used algorithms.
The improved algorithm is superior to the commonly used algorithms in terms of computation time and accuracy when solving problems under variable service times. The same advantage of the improved ACA is present in the comparison for the benchmark dataset, with a 41% improvement in computation time over the commonly used GA. The improved ACA has a unique advantage over the GA in computing problems with variable service times.
Although several experiments have been conducted to take an average, the presence of chance cannot be ruled out. Furthermore, although the improved algorithm has advantages in solving practical problems and computing for benchmark datasets, the increase in computation time is larger as the size of the data to be computed increases, which is still insufficient for handling large data, and the introduction of machine learning is considered in future research to improve computational efficiency.

Author Contributions

Conceptualization, W.S. and S.Y.; methodology, W.S.; software, Y.Y.; validation, W.S., S.Y. and C.H.; formal analysis, W.S.; investigation, W.S.; resources, W.S.; data curation, C.H.; writing—original draft preparation, W.S.; writing—review and editing, C.H.; visualization, Y.Y.; supervision, S.Y.; project administration, S.Y.; funding acquisition, S.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by project of 2020 “Shipei plan” of Beijing Wuzi University.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Keskin, M.; Çatay, B. A Matheuristic Method for the Electric Vehicle Routing Problem with Time Windows and Fast Chargers. Comput. Oper. Res. 2018, 100, 172–188. [Google Scholar] [CrossRef]
  2. Baradaran, V.; Shafaei, A.; Hosseinian, A.H. Stochastic Vehicle Routing Problem with Heterogeneous Vehicles and Multiple Prioritized Time Windows: Mathematical Modeling and Solution Approach. Comput. Ind. Eng. 2019, 131, 187–199. [Google Scholar] [CrossRef]
  3. Dalmeijer, K.; Spliet, R. A Branch-and-Cut Algorithm for the Time Window Assignment Vehicle Routing Problem. Comput. Oper. Res. 2018, 89, 140–152. [Google Scholar] [CrossRef] [Green Version]
  4. Yu, Y.; Wang, S.; Wang, J.; Huang, M. A Branch-and-Price Algorithm for the Heterogeneous Fleet Green Vehicle Routing Problem with Time Windows. Transp. Res. Part B Methodol. 2019, 122, 511–527. [Google Scholar] [CrossRef]
  5. Ren, T.; Li, S.; Zhang, X.; Liu, L. Maximum and Minimum Solutions for a Nonlocal P-Laplacian Fractional Differential System from Eco-Economical Processes. Bound Value Probl. 2017, 118. [Google Scholar] [CrossRef] [Green Version]
  6. Yu, B.; Yang, Z.-Z.; Yao, B. An Improved Ant Colony Optimization for Vehicle Routing Problem. Eur. J. Oper. Res. 2009, 196, 171–176. [Google Scholar] [CrossRef]
  7. Yu, V.F.; Lin, S.-W. Multi-Start Simulated Annealing Heuristic for the Location Routing Problem with Simultaneous Pickup and Delivery. Appl. Soft Comput. 2014, 24, 284–290. [Google Scholar] [CrossRef]
  8. Mohammed, M.A.; Abd Ghani, M.K.; Hamed, R.I.; Mostafa, S.A.; Ahmad, M.S.; Ibrahim, D.A. Solving Vehicle Routing Problem by Using Improved Genetic Algorithm for Optimal Solution. J. Comput. Sci. 2017, 21, 255–262. [Google Scholar] [CrossRef]
  9. Yu, B.; Yang, Z.Z. An Ant Colony Optimization Model: The Period Vehicle Routing Problem with Time Windows. Transp. Res. Part E Logist. Transp. Rev. 2011, 47, 166–181. [Google Scholar] [CrossRef]
  10. Shahin Moghadam, S.; Fatemi Ghomi, S.M.T.; Karimi, B. Vehicle Routing Scheduling Problem with Cross Docking and Split Deliveries. Comput. Chem. Eng. 2014, 69, 98–107. [Google Scholar] [CrossRef]
  11. Chen, J.; Chen, X.; Kauffman, R.J.; Song, X. Should We Collude? Analyzing the Benefits of Bidder Cooperation in Online Group-Buying Auctions. Electron. Commer. Res. Appl. 2009, 8, 191–202. [Google Scholar] [CrossRef]
  12. Jing, X.; Xie, J. Group Buying: A New Mechanism for Selling Through Social Interactions. Manag. Sci. 2011, 57, 1354–1372. [Google Scholar] [CrossRef]
  13. Li, J.; Ren, L.; Sun, M. Is There a Spatial Heterogeneous Effect of Willingness to Pay for Ecological Consumption? An Environmental Cognitive Perspective. J. Clean. Prod. 2020, 245, 118259. [Google Scholar] [CrossRef]
  14. Xiao, L. Analyzing Consumer Online Group Buying Motivations: An Interpretive Structural Modeling Approach. Telemat. Inform. 2018, 35, 629–642. [Google Scholar] [CrossRef]
  15. Mohd Suki, N.; Mohd Suki, N. Modeling the Determinants of Consumers’ Attitudes toward Online Group Buying: Do Risks and Trusts Matters? J. Retail. Consum. Serv. 2017, 36, 180–188. [Google Scholar] [CrossRef]
  16. Sharma, V.M.; Klein, A. Consumer Perceived Value, Involvement, Trust, Susceptibility to Interpersonal Influence, and Intention to Participate in Online Group Buying. J. Retail. Consum. Serv. 2020, 52, 101946. [Google Scholar] [CrossRef]
  17. Liu, L.; Zhang, F.; Li, H.; Wen, C. Research on the Community Group Buying Marketing Model of Fresh Agricultural Products in Jilin Province from the Perspective of Internet Marketing and Retail. IOP Conf. Ser. Earth Environ. Sci. 2021, 769, 022054. [Google Scholar] [CrossRef]
  18. Hsu, S.-W.; Qing, F.; Wang, C.-C.; Hsieh, H.-L. Evaluation of Service Quality in Facebook-Based Group-Buying. Electron. Commer. Res. Appl. 2018, 28, 30–36. [Google Scholar] [CrossRef]
  19. Jing, R.; Yu, Y.; Lin, Z. How Service-Related Factors Affect the Survival of B2T Providers: A Sentiment Analysis Approach. J. Organ. Comput. Electron. Commer. 2015, 25, 316–336. [Google Scholar] [CrossRef]
  20. Hsu, M.-H.; Chuang, L.-W.; Hsu, C.-S. Understanding Online Shopping Intention: The Roles of Four Types of Trust and Their Antecedents. Internet Res. 2014, 24, 332–352. [Google Scholar] [CrossRef]
  21. Shui, W.; Li, M. Integrated Pricing and Distribution Planning for Community Group Purchase of Fresh Agricultural Products. Sci. Program. 2020, 8839398. [Google Scholar] [CrossRef]
  22. Liu, L.; Zhao, L.; Ren, X. Optimal Preservation Technology Investment and Pricing Policy for Fresh Food. Comput. Ind. Eng. 2019, 135, 746–756. [Google Scholar] [CrossRef]
  23. Shui, W.; Zhao, H.; Li, M. Integrated Thermal Insulation Packing and Vehicle Routing for Perishable Products in Community Group Purchase. Discret. Dyn. Nat. Soc. 2021, 6673555. [Google Scholar] [CrossRef]
  24. Abdulkader, M.M.S.; Gajpal, Y.; ElMekkawy, T.Y. Hybridized Ant Colony Algorithm for the Multi Compartment Vehicle Routing Problem. Appl. Soft Comput. 2015, 37, 196–203. [Google Scholar] [CrossRef]
  25. Kalayci, C.B.; Kaya, C. An Ant Colony System Empowered Variable Neighborhood Search Algorithm for the Vehicle Routing Problem with Simultaneous Pickup and Delivery. Expert Syst. Appl. 2016, 66, 163–175. [Google Scholar] [CrossRef]
  26. Asghari, S.; Azadi, K. A Reliable Path between Target Users and Clients in Social Networks Using an Inverted Ant Colony Optimization Algorithm. Karbala Int. J. Mod. Sci. 2017, 3, 143–152. [Google Scholar] [CrossRef]
  27. Jovanovic, R.; Tuba, M.; Voß, S. An Efficient Ant Colony Optimization Algorithm for the Blocks Relocation Problem. Eur. J. Oper. Res. 2019, 274, 78–90. [Google Scholar] [CrossRef]
  28. Bouamama, S.; Blum, C.; Fages, J.-G. An Algorithm Based on Ant Colony Optimization for the Minimum Connected Dominating Set Problem. Appl. Soft Comput. 2019, 80, 672–686. [Google Scholar] [CrossRef]
  29. Fernández-Vargas, J.A.; Bonilla-Petriciolet, A. Desarrollo de un algoritmo de optimización global en colonias de hormigas con selección de región factible para espacios continuos. Rev. Int. Métodos Numéricos Para Cálculo Diseño Ing. 2014, 30, 178–187. [Google Scholar] [CrossRef] [Green Version]
  30. Wang, X.; Choi, T.-M.; Liu, H.; Yue, X. Novel Ant Colony Optimization Methods for Simplifying Solution Construction in Vehicle Routing Problems. IEEE Trans. Intell. Transport. Syst. 2016, 17, 3132–3141. [Google Scholar] [CrossRef]
  31. Pintea, C.-M.; Chira, C.; Dumitrescu, D. Sensitive Ants in Solving the Generalized Vehicle Routing Problem. Int. J. Comput. Commun. 2011, 6, 731. [Google Scholar] [CrossRef] [Green Version]
  32. Kao, Y.; Chen, M.-H.; Huang, Y.-T. A Hybrid Algorithm Based on ACO and PSO for Capacitated Vehicle Routing Problems. Math. Probl. Eng. 2012, 2012, 726564. [Google Scholar] [CrossRef]
  33. De la Cruz, J.J.; Paternina-Arboleda, C.D.; Cantillo, V.; Montoya-Torres, J.R. A Two-Pheromone Trail Ant Colony System—Tabu Search Approach for the Heterogeneous Vehicle Routing Problem with Time Windows and Multiple Products. J. Heuristics 2013, 19, 233–252. [Google Scholar] [CrossRef]
  34. Li, B.; Yang, X.; Xuan, H. A Hybrid Simulated Annealing Heuristic for Multistage Heterogeneous Fleet Scheduling with Fleet Sizing Decisions. J. Adv. Transp. 2019, 5364201. [Google Scholar] [CrossRef]
Figure 1. Flowchart of meta-heuristic algorithm steps.
Figure 1. Flowchart of meta-heuristic algorithm steps.
Sustainability 14 06968 g001
Figure 2. Illustration of the ACA.
Figure 2. Illustration of the ACA.
Sustainability 14 06968 g002
Figure 3. Flowchart of SAACA.
Figure 3. Flowchart of SAACA.
Sustainability 14 06968 g003
Figure 4. Customer demand information of company D.
Figure 4. Customer demand information of company D.
Sustainability 14 06968 g004
Figure 5. The optimal path and calculation process obtained by improving ACA.
Figure 5. The optimal path and calculation process obtained by improving ACA.
Sustainability 14 06968 g005
Figure 6. The optimal path and calculation process obtained by ACA.
Figure 6. The optimal path and calculation process obtained by ACA.
Sustainability 14 06968 g006
Figure 7. The optimal path and calculation process obtained by improving SAA.
Figure 7. The optimal path and calculation process obtained by improving SAA.
Sustainability 14 06968 g007
Figure 8. The optimal path and calculation process obtained by improving GA.
Figure 8. The optimal path and calculation process obtained by improving GA.
Sustainability 14 06968 g008
Figure 9. The optimal distribution VRP is solved by four algorithms.
Figure 9. The optimal distribution VRP is solved by four algorithms.
Sustainability 14 06968 g009
Table 1. Conceptual comparison.
Table 1. Conceptual comparison.
Physical AnnealingOptimization Issues
Physical conditionSolution
Lowest energy state of matterOptimal solution
Annealing processSolving process
TemperatureControl parameters
EnergyObjective function
Isothermal processMetropolis Sampling Process
Table 2. Parameter setting table.
Table 2. Parameter setting table.
ParameterNumerical Value
M : Number of ants50
Ω : number of iterations100
α : initial pheromone factor1
β : heuristic factor3
ρ : initial pheromone volatility factor0.85
Q : initial pheromone value5
T 0 : initial temperature100
: cooling factor0.99
P s : probability of choosing a swap structure0.2
P r : probability of choosing the reversal structure0.5
P i : probability of choosing the insertion structure0.3
υ : maximum number of iterations (annealing algorithm)2000
N : Number of populations100
P c : Crossover probability0.9
P m : Probability of variation0.05
G : Generation gap0.9
Table 3. Information on the needs of customers.
Table 3. Information on the needs of customers.
No.LongitudeLatitudeCoordinates xCoordinates yDemandTime WindowService Time
0116.34746539.82375824.26 2.35 0[09, 20]0
1116.36122240.03632126.23 36.31 40[10, 12]0.1
2116.32258439.98633920.70 28.33 45[11, 13]0.2
3116.31007339.91854718.91 17.49 50[11, 12]0.2
4116.34272539.90346623.58 15.09 40[12, 14]0.1
5116.43812639.87229737.25 10.11 35[11, 15]0.1
6116.37262939.86029827.87 8.19 40[10, 14]0.1
7116.42417539.93082735.25 19.46 45[10, 12]0.2
8116.4541339.9769626.83 0.33 50[11, 14]0.2
9116.23892939.8998188.72 14.50 80[10, 15]0.4
10116.47138439.87116842.01 9.93 45[10, 16]0.2
11116.64353839.88735266.67 12.51 50[15, 17]0.2
12116.51879639.92308648.80 18.22 45[13, 15]0.2
13116.32489240.07995921.03 43.28 75[15, 17]0.4
14116.54883140.11214353.10 48.42 60[16, 17]0.2
15116.34027939.99915223.23 30.37 80[15, 17]0.4
16116.26591639.92424212.58 18.41 35[14, 17]0.1
17116.35921640.08667325.95 44.35 34[16, 17]0.1
18116.48246940.00403743.60 31.15 58[14, 17]0.2
19116.4625139.88985840.74 12.91 89[13, 17]0.5
20116.35917739.96436425.94 24.81 60[15, 17]0.2
21116.60957139.93080561.80 19.45 70[11, 12]0.3
22116.17806739.9295680.00 19.25 35[10, 12]0.1
23116.46137139.91476840.57 16.89 40[11, 13]0.1
24116.39741439.98855631.41 28.68 65[10, 13]0.3
25116.52856539.94653550.20 21.97 50[10, 14]0.2
26116.50831539.81136947.30 0.37 86[10, 12]0.5
27116.25835839.88215411.50 11.68 65[15, 17]0.3
28116.25037140.22634410.35 66.67 75[14, 17]0.4
29116.42956439.80903436.02 0.00 35[10, 14]0.1
30116.49800439.97586945.82 26.65 45[15, 17]0.2
Table 4. Comparison of improved ACA with other algorithms.
Table 4. Comparison of improved ACA with other algorithms.
T D ¯ Z min Z ¯ l
GA2926.251435720.87732.339
SAA63.331237721.40728.779
ACA598.67653808.90818.939
SAAACA113.82987700.10712.359
Table 5. Information on the needs of 50 customers.
Table 5. Information on the needs of 50 customers.
Point of DemandPosition Coordinates xPosition Coordinates yDemandTime WindowService Time
040500[09, 20]0
1628054[12, 16]0.2
2842541[12, 15]0.2
3551527[13, 17]0.1
4173260[13, 15]0.2
5699149[10, 13]0.2
6571057[10, 14]0.2
7494560[11, 15]0.2
8131534[13, 15]0.1
9727537[12, 16]0.1
10583425[11, 14]0.1
11448536[12, 16]0.1
12298625[10, 14]0.1
13749252[14, 17]0.2
14194934[14, 17]0.1
15956649[10, 12]0.2
16699653[10, 12]0.2
17609544[10, 12]0.2
18336458[12, 16]0.2
19195329[12, 15]0.1
20307035[11, 14]0.1
21673929[10, 13]0.1
22691056[10, 12]0.2
23846858[10, 12]0.2
24489138[11, 13]0.1
25912535[10, 14]0.1
26447034[11, 13]0.1
27791833[10, 14]0.1
28845944[12, 14]0.2
29526058[12, 14]0.2
30731560[10, 13]0.2
31139331[09, 12]0.1
32454660[10, 13]0.2
33234336[13, 16]0.1
34451357[11, 15]0.2
35986955[10, 12]0.2
36642040[11, 14]0.1
37932334[10, 14]0.1
38152744[12, 16]0.2
39295149[11, 13]0.2
40316344[12, 14]0.2
41968757[11, 13]0.2
42167940[12, 17]0.1
43309331[14, 17]0.1
44991327[15, 17]0.1
45188256[14, 17]0.2
46212938[13, 17]0.1
47362435[14, 17]0.1
48838344[10, 13]0.2
49367347[10, 14]0.2
50608332[12, 16]0.1
Table 6. Comparison of improved ACA with other algorithms (50 customers).
Table 6. Comparison of improved ACA with other algorithms (50 customers).
T D ¯ Z min Z ¯ l
GA5724.8713371309.981349.3312
SAA80.5212341308.031388.6512
ACA1244.7610361659.801733.2512
SAAACA157.375381272.211312.2212
Table 7. Comparison of improved ACA with other algorithms (100 customers).
Table 7. Comparison of improved ACA with other algorithms (100 customers).
T D ¯ Z min Z ¯ l
GA550.4470828.94852.3210
SAA87.5712001004.481223.3512
ACA4285.5715711255.811523.9212
SAAACA323.22538828.94878.1710
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Song, W.; Yuan, S.; Yang, Y.; He, C. A Study of Community Group Purchasing Vehicle Routing Problems Considering Service Time Windows. Sustainability 2022, 14, 6968. https://doi.org/10.3390/su14126968

AMA Style

Song W, Yuan S, Yang Y, He C. A Study of Community Group Purchasing Vehicle Routing Problems Considering Service Time Windows. Sustainability. 2022; 14(12):6968. https://doi.org/10.3390/su14126968

Chicago/Turabian Style

Song, Wei, Shuailei Yuan, Yun Yang, and Chufeng He. 2022. "A Study of Community Group Purchasing Vehicle Routing Problems Considering Service Time Windows" Sustainability 14, no. 12: 6968. https://doi.org/10.3390/su14126968

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop