Joint optimization method of forward warehouse location and path selection under warehouse-store integration model
By constructing multi-level models and genetic algorithms under the integrated warehouse-store model, we optimize the location selection and path planning of front-end warehouses, solve the needs of different types of customers and out-of-stock problems, minimize service costs and improve accessibility, and improve Customer experience.
Patent Information
- Application Number
- CN202210529946.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-16
AI Technical Summary
Under the integrated warehouse-store model, it is difficult for existing technology to simultaneously optimize the location selection and path planning of front-end warehouses to meet the needs of different types of customers, especially the service costs caused by the differences in behavioral patterns of delivery customers, in-store purchase customers, and self-pickup customers. and accessibility issues, as well as handling of alternatives in case of out-of-stock situations.
A joint optimization method of front warehouse location selection and path is proposed. By constructing a multi-level model and considering the differences in behavioral decision-making and information acquisition of different types of customers, the objective function and constraints are formulated, and solved with a genetic algorithm to optimize The construction and path planning of front-end warehouses ensure that service costs are minimized and customer needs are met.
It optimizes the service needs of different types of customers, reduces service costs, improves service accessibility, provides alternatives for out-of-stock situations, and improves customer experience and corporate service levels.
Smart Images

Figure CN114936690B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of warehouse-store integration model, and in particular to a method for joint optimization of forward warehouse site selection and path under the warehouse-store integration model. Background Art
[0002] New retail takes "consumer experience" as its core concept and development driver, and meets the transformation of consumer demand from "functionality" to "quality" through the coordinated development of online and offline. Warehouse-store integration is the preferred model for many fresh food e-commerce companies to deploy offline retail stores, and is one of the most representative business models in fresh food new retail. Under the warehouse-store integration model, the store's multi-channel sales method can effectively meet the consumption needs of customers with different behavioral choices: for online consumers, stores can deliver goods to consumers efficiently and quickly through their own distribution network, effectively expanding the geographical boundaries of consumption; for offline consumers, stores can complete customer consumption demand insights based on past sales data, thereby conducting more accurate product research and development, marketing and planning, and creating diversified consumption scenarios.
[0003] Since the multi-channel sales method is one of the important features that distinguish the warehouse-store integration model from the traditional retail model, the different customer behavior choices generated by the multi-channel sales method have become the focus of the warehouse-store integration retail enterprises in their network layout. The target customer group of the warehouse-store integration model can be divided into delivery customers who mainly consume online, in-store customers who mainly consume offline, and self-pickup customers who take both online and offline into consideration. The behavior pattern of delivery customers is "online ordering and store delivery", the behavior pattern of in-store customers is "offline experience and direct purchase", and the behavior pattern of self-pickup customers is "online ordering and store pick-up". For the three types of customers, although their behavior patterns are different, their service experience will be affected by the traffic distance, and the corresponding network cost will also change due to changes in traffic distance. Generally speaking, the closer the traffic distance, the smaller the relevant cost, and the farther the distance, the greater the cost. However, due to the obvious paradoxical effect in the site selection-path problem, in order to reduce the transportation distance, enterprises must build more forward warehouses, which will increase the construction cost of the forward warehouses. Therefore, when actually laying out the network, we cannot simply reduce the transportation distance, but need to find a balance between the two through a reasonable optimization model to achieve the optimal total network cost.
[0004] In addition, for customers, the satisfaction of their needs will also greatly affect their shopping experience. Due to reasons such as untimely replenishment or differences in store products, customers have a certain probability of encountering out-of-stock situations when purchasing goods. If out-of-stock situations occur repeatedly, customers' favorability towards the store or company will be greatly reduced, and they will choose other stores or companies in the future. Therefore, when conducting site selection-route planning, the negative impact caused by out-of-stock situations should also be regarded as a potential cost of the network.
[0005] Taking into account the cost-benefit trade-off effect in the site selection and route planning of the integrated warehouse-store forward warehouse and the impact of out-of-stock situations on customer experience, the main problems to be solved include determining the number of forward warehouse locations, distribution route planning, and the customer's choice of backup forward warehouses when out-of-stock situations occur.
[0006] (1) Technical solution of prior art 1
[0007] When the forward warehouse selection options for store purchases and self-pickup customers are not taken into account, the study is about the location-path problem, which only includes the determination of the number of forward warehouse locations and the planning of delivery routes. At this time, the main function of the store is the forward warehouse function for online delivery. In 2021, Huang Jikai [1] studied the integrated optimization of forward warehouse location-path under the omni-channel model in his doctoral thesis;
[0008] (2) Technical solution of prior art 2
[0009] The solution to the problem of "customers' choice of backup forward warehouses when out-of-stock situations occur" is mainly to use the idea of reliability facility location selection. The reliability facility location selection problem can be divided into two cases: complete information and incomplete information. The complete information is that each customer will have a main service facility and several backup service facilities. When the main service facility fails, the customer will immediately know the real-time status information of the facility and obtain services by accessing other available backup service facilities. The customer will obtain the real-time status information of the facility, so that he can directly reach the location of an effective facility from his location according to the assigned priority level; the incomplete information is that due to technical barriers, information dissemination failure and other reasons, the customer cannot know the real-time operating status of the facility. When the main service facility fails, she will visit nearby facilities one by one in a predetermined order until she finds a facility in normal operation and obtains service, or she will visit all designated facilities but find that they are all damaged, then she will give up the service and accept the penalty cost.
[0010] In 2015, Yuan Lifen [2] studied the reliability site selection problem under incomplete information by constructing a model in her doctoral thesis.
[0011] However, Technical Solution 1 does not take into account the impact of store purchase and self-pickup customer behavior choices on network layout:
[0012] Although the existing technical solution 1 takes into account self-pickup and in-store purchase customers, it only takes these two as a constraint when constructing the model, and does not reflect their existence in the final constructed network. In real life, delivery customers, in-store purchase customers, and self-pickup customers are all target customer groups of warehouse-store integrated retail enterprises, and their behavior choices will have an important impact on the network layout. Although the research results obtained by technical solution 1 can achieve better delivery effects, it cannot guarantee that the consumption needs of in-store purchase and self-pickup customers can be met.
[0013] Technical solution 2 cannot solve the problem of route planning for delivery customers:
[0014] The problem studied in the second technical solution is: when customers actively seek transportation nodes to obtain services, when some nodes fail, how to arrange transportation nodes to minimize the total cost including customer search costs and transportation node construction costs. The research ideas of this solution can be used to formulate forward warehouse selection plans for in-store customers and self-pickup customers, but because its problem scenario is completely different from the distribution problem, it cannot solve the routing problem of distribution customers. The forward warehouse selected in the second technical solution may not necessarily meet the timeliness, cost, accessibility and other requirements of the distribution service.
[0015] Technical solutions 1 and 2 do not take into account the situation where different information scenarios exist simultaneously in the network:
[0016] In the warehouse-store integration model, there is a significant difference in the speed at which different types of customers acquire information: in-store customers mainly experience things offline and do not check store information online in advance. The merchandise situation in each store may change during their shopping process. Self-pickup customers, on the other hand, purchase online and browse real-time merchandise information from each store. When they pay, the corresponding merchandise is locked and will not change. The entire consumption process involves shopping decisions made by in-store customers and self-pickup customers under conditions of incomplete information and complete information, respectively.
[0017] The existing technical solutions 1 and 2 consider fewer types of customers, so they assume that each customer has the same ability to obtain information. However, in real life, there are obvious differences in the ability of different groups of people to obtain information. Therefore, when the number of customer types in the network increases, the degree of information acquisition will become one of the distinguishing marks of different types of customers. At this time, the assumption that "each customer has the same ability to obtain information" will be difficult to hold. Summary of the invention
[0018] Based on the technical problems existing in the background technology, the present invention proposes a joint optimization method for the site selection and path of the forward warehouse under the integrated store model; diversified sales channels are important characteristics and advantages of the warehouse-store integrated model. Due to the diversity of consumption channels, different types of customers will be generated accordingly. According to different customer behavior choices, the customer groups under the warehouse-store integrated model can be divided into three categories: delivery customers, in-store customers, and self-pickup customers. In the current research on the site selection-path of the warehouse-store integrated model, there are few studies that consider the three types of customers at the same time. In addition, there are few studies that consider alternative solutions when the forward warehouse is out of stock. Based on the above situation, the main technical problems solved by the present invention can be summarized as follows:
[0019] (1) Make reasonable site selection and route planning based on different customer behavior choices
[0020] Since there are obvious differences in the behavior choices of delivery customers, in-store customers and self-pickup customers, it is impossible to reflect the behavioral decisions of the three types of customers through a single path planning. The consumption preferences of different types of customers will make them consider different factors when choosing a forward warehouse. Different types of customers in the same customer group may also make different choices when choosing a forward warehouse. To solve this problem, the present invention constructs relevant sub-functions for the three types of customers in the model, and formulates constraints based on the consumption preferences of different types of customers, so that one model can solve the path planning problems of the three types of customers at the same time, and can also ensure that the built forward warehouse meets the consumption needs of different customers, and realizes the joint optimization of network site selection and path problems with multiple types of customers.
[0021] (2) Consider the impact of differences in information acquisition on customer behavior decisions
[0022] The integration of online and offline development is an important means for warehouse-store integration to achieve diversified sales. However, due to the large target group, the information acquisition capabilities and consumption preferences of individuals in the group are different, so the information they obtain also has certain differences. In order to reflect this feature, the present invention divides the customer decision-making scenarios into two categories: complete information and incomplete information according to whether the customer can obtain real-time information of the forward warehouse during the research process. Complete information means that the customer can obtain real-time cargo information of each forward warehouse, and incomplete information means that it is difficult for the customer to obtain real-time cargo information of the forward warehouse, and their behavioral decisions are more affected by past experience.
[0023] (3) Develop an alternative plan for forward warehouses in case of out-of-stock situations
[0024] Providing customers with alternative options as soon as possible when out-of-stock situations occur can help customers save energy and time in re-planning their consumption, and save or improve customers' impression of the company. The present invention not only takes into account the probability of out-of-stock situations in forward warehouses, but also provides backup forward warehouses that customers can choose when out-of-stock situations occur in the customer's first choice forward warehouse, which helps companies provide more complete customer services.
[0025] The technical solution adopted by the present invention is:
[0026] The method for joint optimization of forward warehouse location and path in the warehouse-store integration mode is characterized by comprising the following steps:
[0027] Step 1: Model definition
[0028] The problems that need to be solved are divided into four parts: forward warehouse site selection, delivery customer allocation and route planning, store selection for in-store purchases and self-pickup customers, and corresponding traffic route planning. The relevant definitions are as follows:
[0029] (1) A regional warehouse provides services to all forward warehouses in the network;
[0030] (2) The regional warehouse transports goods according to the needs of the forward warehouse, and the vehicle transportation method is direct transportation;
[0031] (3) All goods sold by the forward warehouse are delivered by the regional warehouse;
[0032] (4) The maximum capacity of the forward warehouse is greater than the total customer demand;
[0033] (5) Delivery vehicles from the forward warehouse to the demand point adopt roving delivery;
[0034] (6) Each demand point is composed of three types of customers: delivery customers, self-pickup customers, and in-store customers in a certain proportion;
[0035] (7) For delivery customers, their needs can be fully met, and each demand point is delivered by only one vehicle;
[0036] (8) For customers who pick up their orders by themselves or purchase in-store, their demands may not be met. The probability of their demands being met is expressed by the service level. The service level of each forward warehouse is independent and equal.
[0037] (9) Both self-pickup and in-store purchase are one-stop shopping, and the selection of forward warehouses follows a certain order;
[0038] (10) The demand generated by customers who pick up their items by themselves or buy in stores is all attributed to the first forward warehouse they visit;
[0039] (11) There is a maximum acceptable distance for self-pickup customers. When the distance between the customer's location and the target forward warehouse is greater than the maximum distance, the customer will give up the purchase;
[0040] (12) There is an upper limit to the number of forward warehouses that in-store customers will visit. When the number of visits reaches this upper limit, customers will choose to give up purchasing even if their needs are not met.
[0041] (13) When customer demand for self-pickup or in-store purchases is not met, the logistics network will incur a large penalty cost;
[0042] (14) All paths do not consider the return cost;
[0043] Step 2: Parameter Description
[0044] The parameters mainly include the location and quantity of facilities, vehicles and demand points, the capacity of facilities and vehicles, the service level of the forward warehouse, customer demand, the distance between points and various costs. The specific parameter settings are shown in Table 1:
[0045] Table 1 Parameter Description:
[0046]
[0047]
[0048]
[0049] The parameters also include 6 decision variables, all of which are 0-1 variables, where u i Determine the location of the forward warehouse; Ai 、x ijk Respectively represent the transportation path and delivery path of the vehicle; y ji ,y jii'r Indicates the forward warehouses visited by in-store customers in order; jir represents the store selected by the self-pickup customer. The specific settings of each decision variable are shown in Table 2:
[0050] Table 2 Description of decision variables
[0051]
[0052] Step 3: Model building
[0053] 3.1 Objective Function
[0054] The objective function includes six sub-functions: forward warehouse construction cost, regional warehouse-forward warehouse transportation cost, vehicle fixed cost, distribution cost, store purchase cost and self-pickup cost. Among them, the forward warehouse construction cost and vehicle fixed cost are relatively stable, mainly related to the number of forward warehouses and vehicles; while transportation cost, distribution cost, store purchase cost and self-pickup cost are significantly affected by demand and distance, and will fluctuate greatly due to changes in the number of goods and routes;
[0055] (1) Construction cost of forward warehouse
[0056] The construction cost of the forward warehouse mainly includes the renovation cost of the existing forward warehouse, rent and daily maintenance cost of the facilities, as shown in the following formula:
[0057]
[0058] (2) Transportation costs
[0059] In the warehouse-store integration model, the goods sold in the forward warehouse mainly come from the regional warehouse at the upper level. To simplify the problem scenario, it is defined that all goods are shipped from the regional warehouse to the forward warehouse. The relevant transportation cost mainly depends on the amount of goods transported and the transportation distance, as shown in the following formula:
[0060]
[0061] (3) Vehicle fixed costs
[0062] This part of the cost is converted according to the vehicle purchase cost and depreciation period, as shown in the following formula:
[0063]
[0064] (4) Delivery costs
[0065] The size of the delivery cost is closely related to the order quantity and the distance between each point, as shown in the following formula:
[0066]
[0067] (5) In-store purchase costs
[0068] The in-store purchase cost is the cost incurred by in-store customers for one or more visits to obtain services. This part of the cost is related to the total transportation distance and the customer order price. The longer the transportation distance, the higher the customer order price, and the greater the cost borne by the customer for this shopping trip. The customer order price is expressed as the product of the unit price of goods and the quantity of goods, that is, cα ja q j ; There is a certain order in which the forward warehouses that customers arrive at during the search process. The entire search process is split, and the forward warehouses that customers pass through are taken as nodes. The order of visits is represented by r;
[0069] When the last forward warehouse that the customer visited fails to meet their needs, the customer will make the next visit. Whether this happens is closely related to the service level of the forward warehouse. It is defined that the customer goes from forward warehouse i to forward warehouse i' each time, and the distance between the two forward warehouses is d ii' , when the distance is d ji When , it means that the customer starts the first search from the demand point, then the possibility of the customer generating this search distance is (1-s) r-1 , so the expected distance can be expressed as (1-s) r-1 d ii' y jii'r , since the first search from the demand point will definitely occur, it can be expressed as d ji y ji ; During the entire search process, the maximum number of forward warehouses that customers can accept is R-1. If the customer's needs are still not met after visiting R-1 forward warehouses, a corresponding penalty cost will be incurred, represented by π. In order to simplify the formula, a virtual forward warehouse i0 is introduced, and the Rth forward warehouse is set as the virtual forward warehouse. At this time, the unit product virtual search distance between the ordinary forward warehouse and the virtual forward warehouse is The probability of this distance occurring is (1-s) R-1 , the expected distance can be expressed as Its expression is the same as the expected distance between ordinary forward warehouses, so the in-store purchase cost is obtained by combining various equations as shown in formula (5):
[0070]
[0071] (6) Self-collection cost
[0072] For self-pickup customers, each forward warehouse also has a certain probability of out-of-stock, that is, the service level s≠1. However, unlike in-store purchases, self-pickup customers make decisions under complete information conditions, that is, they can know the real-time status of each forward warehouse. Therefore, for self-pickup customers, their transportation distance is only the distance d between the demand point j and the target forward warehouse i. ji ;
[0073] Similar to the cost of in-store purchases, the cost of self-pickup is also related to the transportation distance and the average customer spending, which is expressed as The distance is composed of the expected distances of each forward warehouse. Customers search each forward warehouse online in a certain order. The maximum acceptable number of searches is R-1. When the goods in the forward warehouse searched in the previous time are not enough to meet the customer's needs, the customer will search for the next forward warehouse. Therefore, the probability of searching the rth forward warehouse is (1-s) r-1 , and the probability that the rth forward warehouse can meet its demand is (1-s) r-1 s, the expected distance of the rth forward warehouse is (1-s) r-1sd ji z jir ; When the customer has completed R-1 searches and still has not found a forward warehouse that meets the requirements, a certain penalty cost π will be incurred. When calculating the penalty cost, the virtual facility i0 is also introduced. The unit product virtual self-pickup distance between j and i0 is π / cs. When i=i0, the expected distance is By combining the expected distances, the self-pickup cost is finally obtained as shown in formula (6):
[0074]
[0075] Combining the above sub-functions, the final objective function is:
[0076] MinC=Min(C1+C2+C3+C4+C5+C6) (7)
[0077] 3.2 Constrained variables
[0078] In order to make the constructed model more in line with reality, the following constraints are obtained based on the actual application scenario and model definition:
[0079]
[0080]
[0081]
[0082] Formula (8)-Formula (10) are the constraints related to the forward warehouse: Formula (8) indicates that the demand quantity of forward warehouse i is the sum of the demand quantities of related customers, where is the total customer demand delivered by forward warehouse i, and are the total demands of in-store customers and self-pickup customers who choose forward warehouse i as the preferred forward warehouse. The purpose of adopting this conversion method is to simplify the calculation as much as possible while ensuring that the total demand of forward warehouses is not missed. Formula (9) indicates that the demand of forward warehouse i is not greater than its maximum capacity. Formula (10) indicates that the regional warehouse can and can only deliver goods to the built forward warehouses.
[0083]
[0084]
[0085]
[0086]
[0087] D ijk ≤D kmax (15)
[0088]
[0089]
[0090]
[0091]
[0092]
[0093] Formulas (11)-(20) are constraints related to distribution services: Formulas (11) and (12) are MTZ constraints for eliminating sub-loops; Formulas (13) and (14) are iterative calculations of the total distance traveled by distribution vehicle k; Formula (15) indicates that the total distance traveled by distribution vehicle k shall not be greater than its maximum distance; Formula (16) indicates that distribution vehicle k can only depart from the built forward warehouse; Formula (17) indicates that any distribution vehicle k has only one distribution path; Formula (18) indicates that any demand point j has and only has one distribution vehicle k to provide distribution services for it; Formula (19) restricts vehicles performing roving distribution to depart from the demand point j' that has completed distribution services when providing services to the next demand point j; Formula (20) ensures the balance of vehicle inflow and outflow;
[0094]
[0095]
[0096]
[0097]
[0098]
[0099] Formulas (21)-(25) are constraints related to the in-store purchase service: Formula (21) requires that the first forward warehouse visited by the in-store purchase customer must exist; Formula (22) requires that the forward warehouse visited by the in-store purchase customer must be an existing forward warehouse; Formulas (23) and (24) restrict the order in which the in-store purchase customer visits the forward warehouse, that is, the customer must visit the r-1 forward warehouse before visiting the r-th forward warehouse (r≥2); Formula (25) indicates that the R-th forward warehouse must be a virtual forward warehouse;
[0100]
[0101]
[0102]
[0103]
[0104] Formula (26)-Formula (29) are the constraints related to the self-pickup service: Formula (26) requires that the distance between the self-pickup customer and the forward warehouse i visited must not be greater than the longest transportation distance that the customer can accept; Formula (27) indicates that the forward warehouse selected by the self-pickup customer must exist (it may be a virtual forward warehouse); Formula (28) indicates that the customer can only choose from the built forward warehouses; Formula (29) requires that the self-pickup customer will definitely visit the virtual forward warehouse;
[0105]
[0106]
[0107] Formula (30)-Formula (31) are the value constraints of decision variables;
[0108] Step 4: Model solution
[0109] The genetic algorithm in the heuristic algorithm is selected for algorithm design and solution. The genetic algorithm consists of two stages: forward warehouse site selection and path planning. The first stage is the forward warehouse site selection, and the second stage is the path planning solution generation. The first stage includes the generation of the initial forward warehouse site selection solution, population fitness value calculation, selection, crossover, and mutation processes. The second stage is between the generation of the initial forward warehouse site selection solution and the population fitness value calculation in the first stage. The whole stage mainly includes customer allocation, initialization path, neighborhood search, generation of initial solution, and implicit enumeration improvement steps. Among the three path solutions generated in this stage, the calculation method of the in-store purchase and self-pickup solutions is the same.
[0110] In each iteration process, the forward warehouse site selection plan generated in the first stage provides a basis for the path planning in the second stage, and the total cost of the path planning plan obtained in the second stage is used as the basic data for calculating the fitness value. The new site selection plan obtained with this fitness value as the evaluation standard provides a basis for the next generation of path planning, and this cycle continues.
[0111] Furthermore, the method for joint optimization of forward warehouse location and path in the warehouse-store integration mode is characterized in that the first-stage process of solving the genetic algorithm described in step 4 is described as follows:
[0112] Phase 1: Generate a forward warehouse site selection plan
[0113] (1) Chromosome encoding and decoding
[0114] Coding is the process of converting feasible solutions of the problem from its solution space to the search space of the genetic algorithm and expressing it as genetic algorithm genotype string structure data; real number coding is used to encode various warehouses involved in the model, the number of equipment selected front warehouses is |I|, the number of regional warehouses is |A|, because the same virtual warehouse can be extracted multiple times during the calculation process, the number of virtual warehouses is 1, then the chromosome length is chromlen = |A|+1+|I|+1, where the first |A| bits are regional warehouses, the |A|+1th bit is a virtual warehouse, the |A|+2th to the |A|+1+|I|th bits are candidate front warehouses, and the |A|+1+|I|+1th bit is a separator;
[0115] Decoding is the reverse operation of encoding, which is the process of converting chromosomes into problem solutions;
[0116] (2) Generate the initial population
[0117] Generating the initial population is the process of generating the initial solution to the problem. The population size is set to popsize = 90, and the initial population is generated by a random method.
[0118] (3) Calculate individual fitness
[0119] The selection of fitness function has a direct impact on the convergence speed of the algorithm and the quality of the selected chromosome. The decision-making goal is to minimize the total cost. The fitness function should be inversely proportional to the total cost. Based on this, the fitness function is designed as follows:
[0120]
[0121] This function indicates that for individual j, its fitness function F fit The size of (j) is inversely proportional to its total cost C(j); since for each individual j, the model involves three service modes: delivery, in-store purchase and self-pickup, the costs generated by the three types of service modes are calculated in turn during the solution process, and then the corresponding fitness value is calculated based on the sum of the three types of costs; in addition, in order to better distinguish the advantages and disadvantages of each chromosome, each fitness value is scaled by dividing it by the minimum fitness value, and the minimum fitness value is set to F fit (j) min , then the fitness values after scaling are:
[0122]
[0123] (4)Select
[0124] In the genetic algorithm, before each cycle starts, the selection operator needs to be used to select individuals from the current individuals as the parents of the next generation. The probability of each individual being selected is related to its fitness. The higher the fitness, the greater the probability of being selected. The random traversal sampling method is used, and the generation gap parameter gap=0.9 is set to ensure that the number of new individuals in the offspring can account for 90% of the population size.
[0125] (5) Cross
[0126] The crossover operation is a process of exchanging some genes of the parents to produce offspring. The sub-circuit crossover method is used and the crossover probability p is set. c =0.9, this method only selects the position of genes on one chromosome. The specific operation is as follows: for parents A and B, first select a group of genes on parent A, and find the position of these genes on parent B; then swap the positions of genes in parents A and B according to the order of appearance of the selected genes, and keep the unselected genes unchanged, thus generating two offspring;
[0127] (6) Variation
[0128] The mutation acts on the offspring produced after selection and crossover operations, using multi-point random mutation method and setting the mutation probability p m =0.1, this mutation method is to randomly select 3 genes on the chromosome and disrupt the selected genes to obtain a mutated new chromosome;
[0129] (7) Termination
[0130] The genetic algorithm continuously approaches the optimal solution through multiple iterations, and the operation stops when the number of iterations reaches the number.
[0131] Furthermore, the method for joint optimization of forward warehouse location and path in the warehouse-store integration mode is characterized in that the second-stage process of solving the genetic algorithm described in step 4 is described as follows:
[0132] Phase 2: Generate three types of path solutions
[0133] (1) Distribution plan generation
[0134] First, according to the results of the population initialization in the first stage, the delivery customers are assigned to the selected forward warehouses, and the proportion parameter δ (0<δ≤1) is set. This parameter is used to measure the impact of the distance difference between the forward warehouse A closest to the customer and the second closest forward warehouse A' on the total cost, so that a choice is made between forward warehouses A and A'. When A / A'≤δ, it is considered that the distance difference between the two forward warehouses is large, and the nearest forward warehouse A is selected at this time. When A / A'>δ, it is considered that the distance difference between the two forward warehouses is small. If the nearest forward warehouse A is selected, it may cause the model to fall into the local optimum, so forward warehouse A' is selected; when initializing the path, the Solomon insertion heuristic algorithm is used; when searching in the neighborhood, in the jittering stage, the current solution is reconnected to the path close to the individual historical optimal solution and the population historical optimal solution. The neighborhood search stage is realized by intra-path and inter-path exchange, insertion and 2-opt operators, and the neighborhood search is nested in the jittering process, and the initial solution is generated by the greedy insertion method;
[0135] (2) Generate in-store purchase / self-pickup plan
[0136] First, by inserting a heuristic algorithm, the solution with the fastest cost reduction is selected as the initial solution among the existing M solutions. Then, the implicit enumeration method is used to improve the initial solution. The improvement idea is: first, let all variables equal to zero, and then assign some variables to 1 in turn until a feasible solution is obtained. It is used as the best feasible solution at present and certain combinations of variables equal to 0 or 1 are checked in turn, so that the feasible solution is continuously improved to obtain the final solution.
[0137] The advantages of the present invention are:
[0138] (1) The present invention considers the influence of three types of customer behaviors: delivery customers, in-store purchase customers, and self-pickup customers
[0139] Compared with the prior art, the present invention considers more comprehensive angles and factors for decision-making. For different customer types, the prior art solution only considers how to reduce the service cost of delivery customers, and does not consider the impact of the constructed network on in-store customers and self-pickup customers; and the second prior art solution is only applicable to the behavioral decisions of in-store customers and self-pickup customers, and its results are difficult to be directly applied to the forward warehouse network layout of warehouse-store integration. The present invention fully recognizes the shortcomings of the prior art and incorporates the three types of customer behaviors into the model. The constructed model not only reduces the service cost of delivery customers as much as possible, but also takes into account the service accessibility of in-store customers and self-pickup customers, ensuring that the constructed forward warehouse can provide services to the three types of customers at the same time, and provides alternative solutions for in-store customers and self-pickup customers in the event of out-of-stock situations.
[0140] (2) The present invention provides customers with alternative options when out-of-stock situations occur
[0141] Out-of-stock situations often occur in actual retail scenarios. Whether or not the customer's shopping needs can be met is an important indicator for evaluating the service level of the forward warehouse. Prior art 1 does not take into account the treatment measures after the out-of-stock situation occurs; due to different application scenarios, the node failure probability of prior art 2 cannot directly represent the out-of-stock situation of the forward warehouse. Based on prior art 1, the present invention converts the node failure probability mentioned in prior art 2 into the service level of the forward warehouse through certain processing, thereby evaluating the possibility of out-of-stock situations in each forward warehouse, and formulating a backup forward warehouse plan that customers can choose when out-of-stock situations occur.
[0142] (3) The present invention expands the scope of model application by considering different information scenarios
[0143] The present invention considers both complete information and incomplete information scenarios. When the information scenarios are different, customers will make different behavioral choices during the consumption process. This difference is clearly reflected between in-store purchases and self-pickup customers. Compared with the existing technical solutions 1 and 2 that make decisions under a single information scenario, considering different information scenarios can solve the behavioral decision-making problems of more types of customers, thereby greatly expanding the application scope of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0144] Figure 1 Schematic diagram of the process of searching for in-store customers in an embodiment of the present invention;
[0145] Figure 2 It is a sequential solution logic diagram in an embodiment of the present invention;
[0146] Figure 3 Schematic diagram of encoding and decoding relationship in an embodiment of the present invention;
[0147] Figure 4 A schematic diagram of a sub-loop intersection in an embodiment of the present invention;
[0148] Figure 5 A schematic diagram of multi-point random mutation in an embodiment of the present invention;
[0149] Figure 6 A flow chart of a genetic algorithm in an embodiment of the present invention;
[0150] Figure 7 It is a total cost variation trend diagram in an embodiment of the present invention;
[0151] Figure 8 A geographical location distribution diagram of each facility and demand point in an embodiment of the present invention;
[0152] Fig. 9 A distribution path diagram of each forward warehouse in an embodiment of the present invention;
[0153] Fig.10A customer path map for in-store purchases in an embodiment of the present invention;
[0154] Fig.11 A self-pickup customer route map in an embodiment of the present invention;
[0155] Fig.12 It is a total cost variation trend diagram in an embodiment of the present invention;
[0156] Fig.13 The change trend of each cost item in the embodiment of the present invention;
[0157] Fig.14 The total cost change trend after the longest delivery distance increases in the embodiment of the present invention;
[0158] Fig.15 The change trend of each cost item after the longest delivery distance increases in the embodiment of the present invention;
[0159] Fig.16 The total cost change trend after the longest self-pickup distance increases in the embodiment of the present invention;
[0160] Fig.17 This is the changing trend of each cost item after the farthest self-pickup distance increases in the embodiment of the present invention. DETAILED DESCRIPTION
[0161] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0162] Example 1.
[0163] The method for joint optimization of forward warehouse location and path under the warehouse-store integration model includes the following steps:
[0164] Step 1: Model definition
[0165] The problems that need to be solved are divided into four parts: forward warehouse site selection, delivery customer allocation and route planning, store selection for in-store and self-pickup customers, and corresponding traffic route planning. The relevant definitions are as follows:
[0166] (1) A regional warehouse provides services to all forward warehouses in the network;
[0167] (2) The regional warehouse transports goods according to the needs of the forward warehouse, and the vehicle transportation method is direct transportation;
[0168] (3) All goods sold by the forward warehouse are delivered by the regional warehouse;
[0169] (4) The maximum capacity of the forward warehouse is greater than the total customer demand;
[0170] (5) Delivery vehicles from the forward warehouse to the demand point adopt roving delivery;
[0171] (6) Each demand point is composed of three types of customers: delivery customers, self-pickup customers, and in-store customers in a certain proportion;
[0172] (7) For delivery customers, their needs can be fully met, and each demand point is delivered by only one vehicle;
[0173] (8) For customers who pick up their orders by themselves or purchase in-store, their demands may not be met. The probability of their demands being met is expressed by the service level. The service level of each forward warehouse is independent and equal.
[0174] (9) Both self-pickup and in-store purchase are one-stop shopping, and the selection of forward warehouses follows a certain order;
[0175] (10) The demand generated by customers who pick up their items by themselves or buy in stores is all attributed to the first forward warehouse they visit;
[0176] (11) There is a maximum acceptable distance for self-pickup customers. When the distance between the customer's location and the target forward warehouse is greater than the maximum distance, the customer will give up the purchase;
[0177] (12) There is an upper limit to the number of forward warehouses that in-store customers will visit. When the number of visits reaches this upper limit, customers will choose to give up purchasing even if their needs are not met.
[0178] (13) When customer demand for self-pickup or in-store purchases is not met, the logistics network will incur a large penalty cost;
[0179] (14) All paths do not consider the return cost.
[0180] Step 2: Parameter Description
[0181] The parameters mainly include the location and quantity of facilities, vehicles and demand points, the capacity of facilities and vehicles, the service level of the forward warehouse, customer demand, the distance between points and various costs, etc. The specific parameter settings are shown in Table 1:
[0182] Table 1 Parameter Description
[0183]
[0184]
[0185] The six decision variables of the present invention are all 0-1 variables, where u i Determine the location of the forward warehouse; Ai 、x ijk Respectively represent the transportation path and delivery path of the vehicle; y ji ,yjii'r Indicates the forward warehouses visited by in-store customers in order; jir It represents the store selected by the self-pickup customer. The specific settings of each decision variable are shown in Table 2.
[0186] Table 2 Description of decision variables
[0187]
[0188] Step 3: Model building
[0189] 3.1 Objective Function
[0190] The model is a joint optimization model of forward warehouse location and path for warehouse-store integrated retail enterprises with the goal of minimizing total cost, so its objective function should include the main costs in the logistics network. In order to improve the response speed and customer accessibility, compared with traditional logistics warehouses, the forward warehouses in the warehouse-store integration model are mostly built in consumer-dense areas, with high rent per unit area and large initial investment. The construction cost of the forward warehouse is a part that cannot be ignored. In order to meet the sales demand of the forward warehouse, the regional warehouse needs to continuously supply the forward warehouse at a certain frequency, and this part of the cost also occupies a relatively obvious proportion in the entire logistics network. Providing instant delivery services to customers is a major feature of the warehouse-store integration model that is different from the traditional retail model. The cost generated by delivery is the focus of attention of warehouse-store integration retail enterprises and one of the key contents to be studied in this invention. At the same time, the delivery activities will also bring about vehicle damage, and how to maintain and manage the vehicles also needs to be taken into consideration by enterprises. In addition, although with the popularization of online shopping, the proportion of customers who choose home delivery has increased compared with the past, for warehouse-store integration retail enterprises, in-store customers (self-pickup and in-store purchase customers) still account for the majority of all types of customers, and the transportation costs incurred by customers during the shopping process will affect their future shopping intentions and behavioral choices, thereby affecting the future development of the enterprise. Therefore, this part of the cost has also become a potential cost of the logistics network.
[0191] Based on the above analysis, the objective function finally determined by the present invention includes six sub-functions: forward warehouse construction cost, regional warehouse-forward warehouse transportation cost, vehicle fixed cost, distribution cost, store purchase cost and self-pickup cost. Among them, the forward warehouse construction cost and vehicle fixed cost are relatively stable, which are mainly related to the number of forward warehouses and vehicles; while transportation cost, distribution cost, store purchase cost and self-pickup cost are obviously affected by demand and distance, and will fluctuate greatly due to changes in the quantity and route of goods.
[0192] (1) Construction cost of forward warehouse
[0193] The construction cost of the forward warehouse mainly includes the cost of renovating the existing forward warehouse, rent, and daily maintenance of facilities. In order to ensure delivery efficiency and facilitate shopping for consumers, warehouse-store integrated retail enterprises tend to choose shopping malls, residential areas, business office areas and other prosperous areas that are closer to consumers. The housing prices and rents in such areas are generally relatively high, so the construction cost of the forward warehouse is also high.
[0194]
[0195] (2) Transportation costs
[0196] In the warehouse-store integration model, the goods sold in the forward warehouse mainly come from the regional warehouse at the upper level. However, in recent years, as the types of fresh products sold in the forward warehouse have increased, companies will establish cooperative relationships with the origin to ensure the freshness of vegetables and fruits, and deliver them directly from the origin without passing through the regional warehouse. To simplify the problem scenario, assume that all goods are shipped from the regional warehouse to the forward warehouse. In this process, due to the large amount of goods and the relatively long distance, companies often use light trucks for transportation. The relevant transportation costs mainly depend on the amount of goods transported and the transportation distance.
[0197]
[0198] (3) Vehicle fixed costs
[0199] In order to establish a brand image and facilitate unified management, large-scale warehouse-store integrated retail enterprises such as Hema and 7Fresh will often equip delivery personnel with delivery vehicles. However, delivery vehicles will incur certain losses and maintenance costs in daily use. This part of the cost is the company's fixed expenditure in distribution and will be incurred as long as the vehicle is put into use. Therefore, the present invention defines it as the fixed cost of the vehicle and converts this part of the cost according to the vehicle purchase cost and the depreciation period.
[0200]
[0201] (4) Delivery costs
[0202] Delivery service is an important feature that distinguishes warehouse-store integrated enterprises from traditional retail enterprises. It is created to meet customers' demand for "home delivery" and has the characteristics of "short time, small quantity, and multiple times". On the one hand, the delivery vehicles are mainly electric vehicles for takeout, with small capacity, which limits the number of customers that can be served at a time; on the other hand, the timeliness requirements of delivery also limit the number of customers that can be served at a time: when the number of customer orders is small and the customer distribution is dense, the delivery staff can serve multiple customers at a time; when the number of customer orders is large or the customer distribution is scattered, in order to ensure service quality and efficiency, the delivery staff may only be able to serve a small number or even a single customer. It can be seen that the size of the delivery cost is closely related to the order volume and the distance between each point.
[0203]
[0204] (5) In-store purchase costs
[0205] The in-store purchase cost is the cost incurred by in-store customers for one or more visits to obtain services. This part of the cost is related to the total transportation distance and the customer order price. Generally speaking, the longer the transportation distance, the higher the customer order price, and the greater the cost borne by the customer for this shopping trip. The customer order price is expressed as the product of the unit price of goods and the quantity of goods, that is,
[0206] There is a certain order in which the forward warehouses that customers arrive at during the search process. To facilitate understanding, the present invention splits the entire search process, taking the forward warehouses that customers pass through as nodes, and the order of visits is represented by r. The search process is as follows: Figure 1 shown.
[0207] When the last forward warehouse that the customer visited fails to meet the customer's needs, the customer will make the next visit. Whether this happens is closely related to the service level of the forward warehouse. The present invention assumes that the customer goes from forward warehouse i to forward warehouse i' every time, and the distance between the two forward warehouses is d ii' (When the distance is d ji , which means that the customer starts the first search from the demand point), then the probability of the customer making this search distance is (1-s) r-1 , so the expected distance can be expressed as (1-s) r- 1 d ii' y jii'r , since the first search from the demand point will definitely occur, it can be expressed as d ji y ji ; During the entire search process, the maximum number of forward warehouses that customers can accept is R-1. If the customer's needs are still not met after visiting R-1 forward warehouses, a corresponding penalty cost will be generated, which is represented by π in the present invention. In order to simplify the formula, the present invention introduces a virtual forward warehouse i0, and the Rth forward warehouse is set as the virtual forward warehouse. At this time, the unit product virtual search distance between the ordinary forward warehouse and the virtual forward warehouse is d ii0 =π / c, the probability of this distance occurring is (1-s) R-1 , the expected distance can be expressed as Its expression is the same as the expected distance between ordinary forward warehouses, so the in-store purchase cost is obtained by combining various equations as shown in formula (5).
[0208]
[0209] (6) Self-collection cost
[0210] For self-pickup customers, each forward warehouse also has a certain probability of out-of-stock, that is, the service level s≠1. However, unlike in-store purchases, self-pickup customers make decisions under complete information conditions, that is, they can know the real-time status of each forward warehouse. Therefore, for self-pickup customers, their transportation distance is only the distance d between the demand point j and the target forward warehouse i. ji .
[0211] Similar to the cost of in-store purchases, the cost of self-pickup is also related to the transportation distance and the average customer spending, which is expressed as cα js q j , the distance is composed of the expected distance of each forward warehouse. Customers search each forward warehouse online in a certain order. The maximum acceptable number of searches is R-1 times. When the goods in the forward warehouse searched in the previous time are not enough to meet the customer's needs, the customer will search for the next forward warehouse. Therefore, the probability of searching the rth forward warehouse is (1-s) r-1 , and the probability that the rth forward warehouse can meet its demand is (1-s) r-1 s, the expected distance of the rth forward warehouse is (1-s) r-1 sd ji z jir ; When the customer has completed R-1 searches and still has not found a forward warehouse that meets the requirements, a certain penalty cost π will be incurred. When calculating the penalty cost, the virtual facility i0 is also introduced. The unit product virtual self-pickup distance between j and i0 is π / cs. When i=i0, the expected distance is Combine the expected distances and finally get the self-pickup cost as shown in formula (6).
[0212]
[0213] Combining the above sub-functions, the final objective function is:
[0214] MinC=Min(C1+C2+C3+C4+C5+C6) (7)
[0215] (3.2) Constrained variables
[0216] In order to make the constructed model more in line with the actual situation, the present invention derives the following relevant constraints based on the actual application scenario and model assumptions:
[0217]
[0218]
[0219]
[0220] Formula (8)-Formula (10) are the constraints related to the forward warehouse: Formula (8) indicates that the demand quantity of forward warehouse i is the sum of the demand quantities of related customers, where is the total customer demand delivered by forward warehouse i, and are the total demands of in-store customers and self-pickup customers who choose forward warehouse i as the preferred forward warehouse. The purpose of adopting this conversion method is to simplify the calculation as much as possible while ensuring that the total demand of forward warehouses is not missed. Formula (9) indicates that the demand of forward warehouse i is not greater than its maximum capacity. Formula (10) indicates that the regional warehouse can and can only deliver goods to the built forward warehouses.
[0221]
[0222]
[0223]
[0224]
[0225] D ijk ≤D kmax (15)
[0226]
[0227]
[0228]
[0229]
[0230]
[0231] Formulas (11)-(20) are constraints related to distribution services: Formulas (11) and (12) are MTZ constraints for eliminating sub-loops; Formulas (13) and (14) are iterative calculations of the total distance traveled by distribution vehicle k; Formula (15) indicates that the total distance traveled by distribution vehicle k shall not be greater than its maximum distance; Formula (16) indicates that distribution vehicle k can only depart from the built forward warehouse; Formula (17) indicates that any distribution vehicle k has only one distribution path; Formula (18) indicates that any demand point j has and only has one distribution vehicle k to provide distribution services for it; Formula (19) restricts vehicles performing roving distribution to depart from the demand point j' that has completed distribution services when providing services to the next demand point j; Formula (20) ensures the balance of vehicle inflow and outflow.
[0232]
[0233]
[0234]
[0235]
[0236]
[0237] Formulas (21)-(25) are constraints related to the in-store purchase service: Formula (21) requires that the first forward warehouse visited by the in-store purchase customer must exist; Formula (22) requires that the forward warehouse visited by the in-store purchase customer must be an existing forward warehouse; Formulas (23) and (24) restrict the order in which in-store purchase customers visit forward warehouses, that is, they must visit the r-1th forward warehouse before they can visit the rth forward warehouse (r≥2); Formula (25) indicates that the Rth forward warehouse must be a virtual forward warehouse.
[0238]
[0239]
[0240]
[0241]
[0242] Formula (26) to (29) are the constraints related to the self-pickup service: Formula (26) requires that the distance between the self-pickup customer and the forward warehouse i visited must not be greater than the longest transportation distance they can accept; Formula (27) indicates that the forward warehouse selected by the self-pickup customer must exist (it may be a virtual forward warehouse); Formula (28) indicates that the customer can only choose from the built forward warehouses; Formula (29) requires that the self-pickup customer will definitely visit the virtual forward warehouse.
[0243]
[0244]
[0245] Formula (30)-Formula (31) are the value constraints of decision variables.
[0246] Step 4: Model solution
[0247] 4.1 Algorithm Solution Idea
[0248] The site selection and path problem is essentially a collaborative optimization of the site selection problem and the path planning problem. Commonly used solution algorithms are mainly divided into two categories: exact algorithms and heuristic algorithms. Among them, the exact algorithm can obtain the optimal solution and is generally suitable for problems with smaller data scales. As the data scale increases, the difficulty of solving the exact algorithm increases exponentially, and the solution efficiency is difficult to meet actual needs; the heuristic algorithm obtains an approximate optimal solution within the neighborhood of the optimal solution. Compared with the exact algorithm, the heuristic algorithm is more efficient, and the solution results can basically meet the needs. In addition, the heuristic algorithm is also convenient for sensitivity analysis and has gradually become the most commonly used solution algorithm in the current site selection and path problem.
[0249] Since the site selection and path problem contains two sub-problems, the site selection problem and the path problem, some scholars have divided the heuristic algorithm into three categories according to the solution association between the sub-problems: sequential solution, iterative solution and nested solution. The present invention adopts a sequential solution for each generation, and continuously optimizes the solution result through multiple iterations. The specific solution logic is as follows: Figure 2 shown.
[0250] In this solution method, the first generation first initializes a site selection plan, and then uses the site selection result as input information to generate a path planning plan. Thereafter, the plan results of each generation above are used as input information for continuous iterative optimization.
[0251] The site selection path problem studied in this invention is an NP-hard problem with a large data scale, and it is difficult for an exact algorithm to find the optimal solution. Therefore, a genetic algorithm among heuristic algorithms is selected, and an algorithm is designed and solved according to the above logic.
[0252] 4.2 Genetic Algorithm Design
[0253] Genetic algorithm is a global optimization algorithm proposed by JH Holland in the 1970s: In nature, populations generate new individuals through chromosome crossover, gene mutation, etc. The environment screens individuals in the population, and individuals with poor adaptability are eliminated, while individuals with good adaptability are preserved. Through the natural selection of "survival of the fittest", the quality of the population is constantly improved. Genetic algorithm simulates this biological evolution process, and performs global optimization through chromosome encoding and decoding, generating initial populations, calculating individual fitness, selection, crossover, mutation and other processes, so as to find a feasible solution that meets the requirements.
[0254] The genetic algorithm designed by the present invention consists of two stages: forward warehouse site selection and path planning, wherein the first stage is forward warehouse site selection, and the second stage is path planning scheme generation. The first stage includes the initial forward warehouse site selection scheme generation, population fitness value calculation, selection, crossover, mutation and other processes; the second stage is between the "initial forward warehouse site selection scheme generation (initialize a population P)" and "population fitness value calculation" of the first stage. The whole stage mainly includes steps such as customer allocation, path initialization, neighborhood search, initial solution generation and implicit enumeration improvement. Among the three path schemes generated in this stage, the calculation method of the in-store purchase and self-pickup schemes is consistent.
[0255] In each iteration process, the forward warehouse site selection plan generated in the first stage provides a basis for the path planning in the second stage, and the total cost of the path planning plan obtained in the second stage is used as the basic data for calculating the fitness value. The new site selection plan obtained with this fitness value as the evaluation standard provides a basis for the next generation of path planning, and this cycle continues.
[0256] The present invention describes the first and second phases of the algorithm as follows:
[0257] Phase 1: Generate a forward warehouse site selection plan
[0258] (1) Chromosome encoding and decoding
[0259] Coding is the process of converting the feasible solution of the problem from its solution space to the search space of the genetic algorithm, and expressing it as the genetic algorithm genotype string structure data. Common coding methods mainly include binary coding, floating point coding, real number coding, etc. The present invention uses real number coding to encode various warehouses involved in the model. The number of equipment selected forward warehouses is |I|, and the number of regional warehouses is |A|. Since the same virtual warehouse can be extracted multiple times during the calculation process, the number of virtual warehouses is 1, and the chromosome length is chromlen=|A|+1+|I|+1, where the first |A| is the regional warehouse, the |A|+1 is the virtual warehouse, the |A|+2 to |A|+1+|I| are the candidate forward warehouses, and the |A|+1+|I|+1 is the separator.
[0260] Decoding is the reverse operation of encoding, which is the process of converting chromosomes into problem solutions. The relationship between encoding and decoding is shown as follows: Figure 3 shown.
[0261] (2) Generate the initial population
[0262] Generating the initial population is the process of generating the initial solution to the problem. The size of the population will have a greater impact on the solution. Generally speaking, the larger the population size, the better the population diversity, and the more conducive it is to avoiding local optimality. However, as the population size increases and the amount of calculation increases, the solution efficiency will also be affected. Therefore, when determining the solution scale, it is necessary to determine the appropriate population size according to actual needs. In this invention, the population size is set to popsize=90, and the initial population is generated by a random method.
[0263] (3) Calculate individual fitness
[0264] The selection of fitness function has a direct impact on the convergence speed of the algorithm and the quality of the selected chromosome. Therefore, it is necessary to design an appropriate fitness function according to the decision-making goal and calculate the fitness value of each chromosome. The larger the fitness value, the better the corresponding individual. Since the decision-making goal of the present invention is to minimize the total cost, the fitness function should be inversely proportional to the total cost. The fitness function is designed as follows:
[0265]
[0266] This function indicates that for individual j, its fitness function F fit The size of (j) is inversely proportional to its total cost C(j). Since the model involves three service modes: delivery, in-store purchase, and self-pickup for each individual j, the costs of the three service modes are calculated in turn during the solution process, and then the corresponding fitness value is calculated based on the sum of the three costs. In addition, in order to better distinguish the pros and cons of each chromosome, each fitness value is scaled by dividing by the minimum fitness value, and the minimum fitness value is set to F fit (j) min , then the fitness values after scaling are:
[0267]
[0268] (4)Select
[0269] In the genetic algorithm, before each cycle starts, it is necessary to use a selection operator to select individuals from the current individuals as the parents of the next generation. The probability of each individual being selected is related to its fitness. The higher the fitness, the greater the probability of being selected. Common selection operators include roulette selection, tournament selection and random traversal sampling. The present invention adopts a random traversal sampling method, which is an improvement on the roulette selection. By determining multiple selection points on a roulette wheel, all individuals can be selected by rotating once, thereby effectively avoiding the occurrence of excessive repeated selection of individuals with high fitness, providing individuals with low fitness with the opportunity to be selected, which is fairer than roulette selection. In addition, in order to ensure the stability of the population, the present invention sets a relatively high generation gap parameter gap=0.9 to ensure that the number of new individuals in the offspring can account for 90% of the population size.
[0270] (5) Cross
[0271] The crossover operation is a process of exchanging some genes of the parents to produce offspring. Common crossover operators include single-point crossover, ordered crossover, sub-loop crossover, etc. The present invention adopts the sub-loop crossover method and sets the crossover probability p c =0.9, this method only selects the position of genes on one chromosome. The specific operation is: for parents A and B, first select a group of genes on parent A and find the position of these genes on parent B; then exchange the positions of genes in parents A and B according to the order of appearance of the selected genes, and the unselected genes remain unchanged; finally, two offspring are generated, such as Figure 4 shown.
[0272] (6) Variation
[0273] Mutation acts on the offspring produced after selection and crossover operations. Through mutation, the diversity of the population can be further increased. The present invention adopts a multi-point random mutation method and sets the mutation probability p m = 0.1, this mutation method is to randomly select 3 genes on the chromosome and disrupt the selected genes to obtain a mutated new chromosome, such as Figure 5 shown.
[0274] (7) Termination
[0275] The genetic algorithm needs to continuously approach the optimal solution through multiple iterations. If the number of iterations is too small, the result may not be close to the optimal solution. If the number of iterations is too large, the iteration result may already be very close to the optimal solution and can meet the actual needs. However, the later iterations will cause the operation time to be too long and the transportation resources to be wasted. Therefore, in actual operation, it is necessary to weigh the number of iterations and the quality of the solution to determine a more reasonable number of iterations. The present invention finally determines the number of iterations maxIter = 350 through multiple attempts. When the number of iterations reaches 350, the operation stops.
[0276] Phase 2: Generate three types of path solutions
[0277] (1) Distribution plan generation
[0278] First, according to the results of the population initialization in the first stage, the delivery customers are assigned to the selected forward warehouses. Since the decision-making goal of the present invention is to minimize the total cost, each customer chooses a forward warehouse that is closer to himself when selecting a forward warehouse. In order to avoid falling into the local optimum, the present invention sets a proportional parameter δ (0<δ≤1), which is used to measure the impact of the distance difference between the forward warehouse A closest to the customer and the second closest forward warehouse A' on the total cost, so as to make a choice between the forward warehouses A and A'. When A / A'≤δ, it is considered that the distance difference between the two forward warehouses is large. At this time, choosing the closer forward warehouse has a significant cost-saving effect. When A / A'>δ, it is considered that the distance difference between the two forward warehouses is small. If a closer forward warehouse is selected, it is likely to cause the model to fall into the local optimum. Therefore, the forward warehouse A' is selected; when initializing the path, the Solomon insertion heuristic algorithm is used; when searching in the neighborhood, in the jittering stage, the current solution is reconnected to the path close to the individual historical optimal solution and the population historical optimal solution. The neighborhood search stage is realized by intra-path and inter-path exchange, insertion and 2-opt operators, and the neighborhood search is nested in the jittering process, and then the initial solution is generated by the greedy insertion method.
[0279] (2) Generate in-store purchase (self-pickup) plan
[0280] First, by inserting a heuristic algorithm, the solution with the fastest cost reduction is selected as the initial solution among the existing M solutions. Then, the implicit enumeration method is used to improve the initial solution. The improvement idea is: first, let all variables equal to zero, and then assign some variables to 1 in turn until a feasible solution is obtained. It is used as the best feasible solution at present and certain combinations of variables equal to 0 or 1 are checked in turn, so that the feasible solution is continuously improved to obtain the final solution.
[0281] Genetic algorithm process: The present invention divides the genetic algorithm into two stages, wherein the first stage is the forward warehouse site selection, and the second stage is to carry out route planning and customer allocation based on the site selection results of the first stage. After reaching the maximum number of iterations, the program will stop calculating and output the final result. The specific process is as follows: Figure 6 shown.
[0282] The following is an example of the layout of the warehouse-store integrated forward warehouse of Company A in Haidian District, Beijing:
[0283] 4.2.1 Application Background
[0284] Since engaging in e-commerce retail business, Company A has become one of the largest Internet service and retail enterprises in China after more than ten years of development, with its business covering retail, logistics, technology and other fields. In recent years, with the opening of its first offline fresh food supermarket, Company A has begun to get involved in offline retail business. Its stores cover a variety of fresh food ingredients such as fruits, vegetables, seafood, as well as various food and beverages such as pastry lunch boxes, dairy baking, snacks, wine, tea and beverages. At the same time, Company A will also provide differentiated self-operated products that fit the regional characteristics according to the location of the store, launch meals suitable for the regional market consumer group, and provide customers with a variety of shopping experiences such as in-store dining, offline shopping, and online delivery to meet the personalized needs of customers. The new retail format closely connects customer needs with the forward warehouse business, making Company A's offline fresh food supermarket popular in first- and second-tier cities.
[0285] In recent years, in order to meet the needs of offline business expansion and service level improvement, Company A has deployed a large number of forward warehouses in Beijing. Among them, the consumer market in Haidian District is very stable and active, and it is one of Company A’s important target markets. Therefore, the present invention obtains the desensitized business data of Company A in Haidian District and takes Haidian District as an experimental sample for case analysis.
[0286] 4.2.2 Data Collection
[0287] 4.2.2.1 Determine relevant parameters
[0288] The model constructed by the present invention is relatively complex, involving three different service modes: store purchase, self-pickup and delivery, and thus generating three different participating entities: in-store purchase customers, self-pickup customers and delivery customers. The diversification of service modes and service entities also makes the parameters involved in the model more complex, such as the proportion of different customer types, transportation rates under different service modes, etc., whose values are closely related to the selected enterprise and the city where it is located. The present invention obtains model-related parameters through enterprise surveys, data queries, etc. as shown in Table 3.
[0289] Table 3 Related data collection
[0290]
[0291]
[0292] 4.2.2.2 Obtaining coordinates of alternative points and demand points
[0293] The present invention acquires and preprocesses data based on 1 regional warehouse location, 60 candidate forward warehouse locations, and 200 demand point locations provided by the empirical enterprise. The geographic coordinates of the regional warehouse, some forward warehouses, and some demand points are shown in Table 4.
[0294] Table 4 Geographic coordinates of some facilities
[0295]
[0296] Among them, the regional warehouse is mainly responsible for the collection, distribution and pre-processing of goods in the region, and its service objects are the forward warehouses. The close contact with customers is relatively low and the facilities occupy a large area. In order to reduce costs, the construction site of the regional warehouse is far away from the urban area and there is also a certain distance from the forward warehouses. The forward warehouse needs to provide services directly to customers, so most of them are built in the urban area and close to the demand points. The distance between each forward warehouse and the forward warehouse and the demand points is relatively close.
[0297] 4.2.2.3 Calculate the distance between points
[0298] Since the earth is an approximately elliptical sphere, there is a certain amplitude on the surface of the earth. If the straight-line distance between points is used as the actual distance when calculating the distance between points, the result will have a large deviation. Therefore, the present invention considers using the great circle distance formula to calculate the distance between points.
[0299] The calculation principle of this formula is as follows: In the calculation process, the earth is regarded as a positive sphere, and the radius R is the average radius of the earth, R = (2 × equatorial radius + polar radius) / 3 = (2 × 6378.140 + 6365.755) / 3 = 6371.004km; At the same time, the 0° longitude line is used as the reference to process the geographical coordinates of each point involved in the calculation, where the longitude east longitude is positive (Longitude), the longitude west longitude is negative (-Longitude), the latitude north latitude is 90-latitude value (90-Latitude), and the latitude south latitude is 90+latitude value (90+Latitude). At this time, for any two points A (LonA, LatA) and B (LonB, LatB) on the earth, the processed coordinates are A (MLonA, MLatA) and B (MLonB, MLatB) according to the above processing ideas, and the distance between points A and B can be deduced using the trigonometric derivation formula:
[0300] C=sin(MLatA)×sin(MLatB)×cos(MLonA-MLonB)+cos(MLatA)×cos(MLatB)(34)
[0301] D=R×Arccos(C)×π / 180 (35)
[0302] In addition, considering that vehicles rarely travel in a straight line during actual transportation and delivery, the present invention sets a detour coefficient to reflect the situation where vehicles need to travel in a detour due to facility construction, road management, etc. The detour coefficient is 1.2, so the actual distance between each point in the case is d=D×1.2.
[0303] 4.2.3 Results Analysis
[0304] The present invention uses MATLAB R2021b to solve the model according to the genetic algorithm steps, setting the number of iterations maxIter = 350. In the actual calculation, the model converges at 220 generations, and the total cost changes are shown in the following figure. Figure 7 shown.
[0305] The final forward warehouses are 9, 27, 32, 34, 38, 45, 51, 52, 55, and 58. The location distribution of each facility and demand point is as follows Figure 8 As shown in the figure, it can be seen that the regional warehouse is far away from the forward warehouses, the selected forward warehouses are basically distributed in demand-intensive areas, and the distances between the forward warehouses are close, and the distribution is relatively uniform.
[0306] 4.2.3.1 Analysis of delivery route results
[0307] The demand point range and distribution path of the forward warehouse distribution are as follows: Fig. 9 As shown, taking the front warehouses 32 and 38 as an example, its distribution path is shown in Table 5. Fig. 9 It can be seen that the service ranges of the forward warehouses are adjacent to each other but do not overlap, and the number of demand points served by different forward warehouses varies greatly: among the 10 selected forward warehouses, forward warehouses 38 and 55 serve a large number of demand points, and because some demand points are densely distributed, more demand points can be served in a single delivery. Taking forward warehouse 38 as an example, a single round of delivery can provide services for up to 8 demand points, and the total distance of each delivery is not less than 3.5km (the delivery distance is mainly greater than 4km). Under the constraint of a maximum delivery distance of 5km, the delivery vehicle capacity is fully utilized; among the forward warehouses, the demand points covered by forward warehouses 32 and 52 are sparsely distributed, and fewer demand points can be served in a single delivery. Taking forward warehouse 32 as an example, it can serve up to 3 demand points in a single delivery, and the delivery distance has exceeded 4km. Compared with forward warehouse 38, forward warehouse 32 has fewer demand points that can be served in a single delivery, and the number of customer orders that can be fulfilled by the vehicle is greatly limited by the delivery distance.
[0308] Table 5 Delivery routes of forward warehouses 32 and 38
[0309]
[0310] 4.2.3.2 Analysis of customer paths to stores
[0311] In-store customers include in-store purchase customers and self-pickup customers. Since customers only visit or search for forward warehouses twice, the forward warehouses selected by customers can be divided into preferred forward warehouses and secondary forward warehouses in order of priority. Fig.10 , Fig.11The lines in reflect the order of the selected forward warehouses: the forward warehouse connected to the demand point is the customer's preferred forward warehouse, and the forward warehouse connected to the preferred forward warehouse is the customer's second choice forward warehouse. The search order of some in-store purchase customers and the search order of self-pickup customers are shown in Table 6.
[0312] Depend on Fig.10 , Fig.11 It can be seen that the preferred forward warehouse for both in-store purchase and self-pickup customers is the nearest forward warehouse. The reasons for this result are analyzed as follows: In formula (5), the cost of in-store purchase is positively correlated with the transportation distance. In order to minimize the cost of in-store purchase, the total distance of the visit should be minimized during the optimization process. As the number of visits r increases, (1-s) r-1 The value of decreases gradually, and the corresponding search distance accounts for a smaller proportion of the total distance. Therefore, in r searches, the distance traveled by the first search accounts for the largest proportion of the total distance. Choosing the nearest forward warehouse to the customer for the first time can minimize the total search distance of in-store customers. Similarly, for self-pickup customers, according to formula (6), it can be seen that as the number of searches r increases, the corresponding forward warehouse transportation distance accounts for a smaller proportion. Therefore, if the self-pickup cost is to be minimized, the shortest path should be selected in the first search. In summary, whether it is in-store purchase or self-pickup customers, they will choose the nearest forward warehouse when they first visit or search, which leads to different service methods, but the preferred forward warehouse is the same.
[0313] Table 6 Part of the customer paths to the store
[0314]
[0315] It can be seen from Table 6 that for the same customer, starting from the second forward warehouse, there are obvious differences in their visit or search order under different service methods. The main reason is that the next visit of the in-store customer is based on the arrival location of the previous visit. Therefore, the distance compared from the second visit is the distance between forward warehouses. The location of the self-pickup customer does not change when searching for the forward warehouse. Therefore, each search compares the distance from the customer’s current location to different forward warehouses.
[0316] In addition, for in-store customers, the maximum number of searches for forward warehouses is 2 times. Since the penalty cost set by the present invention is relatively high, each search can reach the maximum number of searches. For self-pickup customers, their search times are limited by the maximum search times (R-1=2) and the distance between the demand point and the forward warehouse (the distance is 6km in the empirical study). When there are fewer forward warehouses around the customer and they are far away from the customer, the self-pickup customer may give up the search and accept the penalty before the maximum search times are reached. For example, among all the forward warehouses, only forward warehouse 55 is less than 6km away from the self-pickup customer 12. Therefore, customer 12 only searches once. In the second search, he gives up because the distance of other forward warehouses is too far. At this time, the penalty cost corresponds to the coefficient (1-s). r-1 It is larger, resulting in a longer expected distance and a correspondingly higher pick-up cost.
[0317] 4.2.3.3 Analysis of the proportion of each cost item
[0318] The final cost of each part obtained by solving the model is shown in Table 7.
[0319] Table 7 Calculation results of various cost items
[0320]
[0321] Among all the costs, the construction cost of the forward warehouse accounts for the largest proportion, which is in line with the characteristics of the heavy asset model of Company A's offline fresh supermarkets; although the transportation rate from the regional warehouse to the forward warehouse is relatively low, the distance between the two types of facilities is relatively long (the distance between the regional warehouse and each forward warehouse is greater than 30km) and the amount of goods is large, so the proportion of this part of the cost is also relatively high; distribution service, as a service mode that Company A focuses on developing, accounts for 16.16% of its costs, which is similar to the distribution cost proportion of similar companies (15%-20%); in in-store purchase and self-pickup services, although the proportion of the two types of customers in the total customers and the transportation rates are the same, the self-pickup cost is slightly higher than the in-store purchase cost, mainly because the self-pickup service is subject to both the maximum number of searches and the maximum distance, while the in-store purchase service is only subject to the maximum number of visits. Therefore, the probability of self-pickup customers being punished is higher, resulting in a higher total expected cost.
[0322] 4.2.4 Sensitivity analysis
[0323] The diversification of service models is one of the important characteristics that distinguishes warehouse-store integrated retail enterprises from traditional retail enterprises. Considering the impact of different service models on total cost is also the focus of the present invention. Therefore, when conducting sensitivity analysis, the present invention mainly focuses on parameters related to delivery, in-store purchase and self-pickup services, and analyzes the impact of changes in key parameters on the optimization results.
[0324] 4.2.4.1 Delivery Ratec dSensitivity analysis
[0325] Among all the cost components, the distribution cost accounts for the second largest proportion after the forward warehouse construction cost, and compared with the forward warehouse construction cost, the enterprise has greater autonomy over the distribution cost, which can be adjusted through technical optimization, equipment replacement, etc. Therefore, the present invention considers adjusting the distribution rate to analyze the impact of distribution cost changes on the total cost.
[0326] In the process of the delivery rate increasing from 0.7 yuan / (km·kg) to 3.2 yuan / (km·kg), the total cost increased steadily from 6014.12 yuan to 8167.93 yuan. By analyzing each cost item separately, it can be found that in this process, except for the delivery cost, other costs remain basically unchanged, and the delivery cost has the same change slope as the delivery rate, such as Fig.12 , Fig.13 shown.
[0327] The present invention believes that the above situation occurs mainly because under the current constraints, the network layout of the warehouse-store integrated forward warehouse has reached the optimal level. Therefore, changes in the delivery rate will only affect the delivery cost. When the delivery rate increases, the delivery vehicles providing services to the same demand point need to bear more delivery costs. Therefore, if the delivery rate is reduced, the total cost can be significantly reduced without affecting customers who choose other service methods.
[0328] 4.2.4.2 Longest delivery distance D kmax Sensitivity analysis
[0329] The delivery cost is related to both the delivery rate and the delivery distance. In order to observe the impact of changes in delivery distance on the total cost, the maximum delivery distance is gradually increased from 5km to 10km, and the changes in total cost and each cost item in the process are analyzed.
[0330] As the maximum delivery distance increases, the total cost shows a trend of first decreasing and then increasing. The minimum value appears when the maximum delivery distance is 6 km, and then the total cost slowly increases. Fig.14 shown.
[0331] right Fig.15By analyzing the various cost items in , it can be seen that the change in the farthest delivery distance has a significant impact on all costs except transportation costs: due to the increase in the farthest delivery distance, the range of demand points that can be covered by the forward warehouse is expanded. Therefore, when the location of the demand point and the delivery demand remain unchanged, the number of forward warehouses required is smaller, and the reduction in the restrictions on delivery vehicles due to the delivery distance increases the number of customers that can be served by the delivery vehicle at a time, so the number of vehicles required is reduced, and the fixed cost of vehicles is reduced accordingly; however, the reduction in the number of forward warehouses will increase the distance between some demand points and the forward warehouses, so the total distance of the three types of customer paths: delivery, in-store purchase and self-pickup, will increase, resulting in an increase in the corresponding cost.
[0332] When the longest delivery distance increased from 6km to 7km, the construction cost of the forward warehouse decreased most significantly (the number of forward warehouses decreased from 10 to 7), while the delivery cost, in-store purchase cost and self-pickup cost increased less. Therefore, in this case, the difference in each change was the largest and the total cost decreased the most. Thereafter, the difference decreased, and the decline compared to the initial level also gradually decreased.
[0333] 4.2.4.3 Max. Pickup Distance D max Sensitivity analysis
[0334] In the result analysis of Section 4.2.3, it is believed that the self-pickup cost is higher than the in-store purchase cost mainly because the self-pickup customers are restricted by the maximum self-pickup distance. Therefore, to verify whether this conclusion is valid, this section continuously increases the maximum self-pickup distance and gradually reduces the impact of this constraint on the self-pickup customer decision-making, and observes whether the relationship between the self-pickup cost and the in-store purchase cost changes.
[0335] As the maximum pickup distance increases from 6km to 10km, the total cost gradually decreases. Fig.16 As shown in the figure; in this process, the cost of in-store purchase remains basically unchanged, and the cost of self-pickup shows the same trend as the total cost, as shown in the figure. Fig.17 shown.
[0336] Further analysis of the self-pickup cost shows that when the farthest self-pickup distance gradually increases from 6km to 8km, the self-pickup cost decreases the fastest, and then remains basically unchanged or only decreases slightly. Combined with the changes in the self-pickup customer's path, it can be seen that this situation occurs because there are at least two forward warehouses within 8km around all customers (the example of the change in the number of forward warehouses that self-pickup customers can search is shown in Table 8). Therefore, when the farthest self-pickup distance reaches 8km, the number of forward warehouses that customers can search for can reach the maximum value. At this time, the farthest self-pickup distance is no longer a constraint on the self-pickup customers. The self-pickup customers are only constrained by the maximum number of searchable forward warehouses. Since the maximum number of forward warehouses that self-pickup customers can search is equal to the maximum number of forward warehouses that in-store customers can visit, and (1-s) r-1The existence of this coefficient weakens the difference in transportation distances between the two types of store customers. Therefore, when the maximum self-pickup distance is no less than 8km, the costs borne by self-pickup customers and customers who place orders are very close.
[0337] Table 8 Changes in the pick-up route of customer 12
[0338]
[0339] 4.2.4.4 Results and Discussion
[0340] Among the three parameters mentioned above, changes in delivery rate and maximum pickup distance only affect one cost item, while changes in the maximum delivery distance will have a more obvious impact on other cost items except transportation costs. According to the impact of parameter changes on costs, the present invention proposes the following suggestions: the delivery rate only affects the delivery cost and is in a linear relationship. Adjusting the delivery rate has little impact on other parts of the network. Therefore, the present invention believes that enterprises can consider how to take effective measures to reduce the delivery rate as much as possible during operation, so as to reduce the total cost without affecting the service experience of other types of customers; when the farthest self-pickup distance is small, this constraint can effectively distinguish between in-store customers and self-pickup customers, and as the farthest self-pickup distance increases, the impact of in-store customers and self-pickup customers on system costs gradually converges. The present invention believes that in daily operations, enterprises can consider whether to further subdivide in-store customers in combination with the sensitivity of the target customer group to distance; the change of the farthest delivery distance will have a more obvious impact on the overall layout of the network, and in the sensitivity analysis process, it is found that there is a farthest delivery distance that can minimize the total cost, but in the current new retail environment, most warehouse-store integrated enterprises will meet customers' demand for timeliness by stipulating a smaller farthest delivery distance. The present invention believes that if the benefits brought by the reduction in total cost after increasing the maximum delivery distance are higher than the losses caused by the reduction in timeliness, enterprises can consider appropriately increasing the current maximum delivery distance.
[0341] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. Joint optimization method of forward warehouse location and path under warehouse-store integration model, It is characterized in that The following steps are involved: Step 1: Model definition The problems that need to be solved are divided into four parts: forward warehouse site selection, delivery customer allocation and route planning, store selection for in-store purchases and self-pickup customers, and corresponding traffic route planning. The relevant definitions are as follows: (1) A regional warehouse provides services to all forward warehouses in the network; (2) The regional warehouse transports goods according to the needs of the forward warehouse, and the vehicle transportation method is direct transportation; (3) All goods sold by the forward warehouse are delivered by the regional warehouse; (4) The maximum capacity of the forward warehouse is greater than the total customer demand; (5) Delivery vehicles from the forward warehouse to the demand point adopt roving delivery; (6) Each demand point is composed of three types of customers: delivery customers, self-pickup customers, and in-store customers in a certain proportion; (7) For delivery customers, their needs can be fully met, and each demand point is delivered by only one vehicle; (8) For customers who pick up their orders by themselves or purchase in-store, their demands may not be met. The probability of their demands being met is expressed by the service level. The service level of each forward warehouse is independent and equal. (9) Both self-pickup and in-store purchase are one-stop shopping, and the selection of forward warehouses follows a certain order; (10) The demand generated by customers who pick up their items by themselves or buy in stores is all attributed to the first forward warehouse they visit; (11) There is a maximum acceptable distance for self-pickup customers. When the distance between the customer's location and the target forward warehouse is greater than the maximum distance, the customer will give up the purchase; (12) There is an upper limit to the number of forward warehouses that in-store customers will visit. When the number of visits reaches this upper limit, customers will choose to give up purchasing even if their needs are not met. (13) When customer demand for self-pickup or in-store purchases is not met, the logistics network will incur a large penalty cost; (14) All paths do not consider the return cost; Step 2: Parameter Description The parameters include the location and quantity of facilities, vehicles and demand points, the capacity of facilities and vehicles, the service level of the forward warehouse, customer demand, the distance between points and various costs. The specific parameter settings are shown in Table 1: Table 1 Parameter Description: The parameters also include 6 decision variables, all of which are 0-1 variables, where u i Determine the location of the forward warehouse; Ai 、x ijk Respectively represent the transportation path and delivery path of the vehicle; y ji ,y jii'r Indicates the forward warehouses visited by in-store customers in order; jir represents the store selected by the self-pickup customer. The specific settings of each decision variable are shown in Table 2: Table 2 Description of decision variables Step 3: Model building 3.1 Objective Function The objective function includes six sub-functions: forward warehouse construction cost, regional warehouse-forward warehouse transportation cost, vehicle fixed cost, distribution cost, store purchase cost and self-pickup cost. Among them, the forward warehouse construction cost and vehicle fixed cost are relatively stable and are related to the number of forward warehouses and vehicles; while the transportation cost, distribution cost, store purchase cost and self-pickup cost are significantly affected by demand and distance, and will fluctuate greatly due to changes in the quantity and route of goods. (1) Construction cost of forward warehouse The construction cost of the forward warehouse includes the renovation cost of the existing forward warehouse, rent and daily maintenance cost of the facilities, as shown in the following formula: (2) Transportation costs In the warehouse-store integration model, the goods sold in the forward warehouse mainly come from the regional warehouse at the upper level. To simplify the problem scenario, it is defined that all goods are shipped from the regional warehouse to the forward warehouse. The relevant transportation cost depends on the amount of goods transported and the transportation distance, as shown in the following formula: (3) Vehicle fixed costs This part of the cost is converted according to the vehicle purchase cost and depreciation period, as shown in the following formula: (4) Delivery costs The size of the delivery cost is closely related to the order quantity and the distance between each point, as shown in the following formula: (5) In-store purchase costs The in-store purchase cost is the cost incurred by in-store customers for one or more visits to obtain services. This part of the cost is related to the total transportation distance and the customer order price. The longer the transportation distance, the higher the customer order price, and the greater the cost borne by the customer for this shopping trip. The customer order price is expressed as the product of the unit price of goods and the quantity of goods, that is, There is a certain order in which the forward warehouses that customers arrive at during the search process. The entire search process is split, and the forward warehouses that customers pass through are taken as nodes. The order of visits is represented by r. When the last forward warehouse that the customer visited fails to meet their needs, the customer will make the next visit. Whether this happens is closely related to the service level of the forward warehouse. It is defined that the customer goes from forward warehouse i to forward warehouse i' each time, and the distance between the two forward warehouses is d ii' , when the distance is d ji When , it means that the customer starts the first search from the demand point, then the possibility of the customer generating this search distance is (1-s) r-1 , so the expected distance is expressed as (1-s) r-1 d ii' y jii'r , since the first search from the demand point will definitely occur, it is expressed as d ji y ji ; During the entire search process, the maximum number of forward warehouses that a customer can accept is R-1. If the customer's needs are still not met after visiting R-1 forward warehouses, a corresponding penalty cost will be incurred, represented by π. In order to simplify the formula, a virtual forward warehouse i is introduced 0 , let the Rth forward warehouse be the virtual forward warehouse, then the unit product virtual search distance between the ordinary forward warehouse and the virtual forward warehouse is The probability of this distance occurring is (1-s) R-1 , the expected distance is expressed as Its expression is the same as the expected distance between ordinary forward warehouses, so the in-store purchase cost is obtained by combining various equations as shown in formula (5): (6) Self-collection cost For self-pickup customers, each forward warehouse also has a certain probability of out-of-stock, that is, the service level s≠1. However, unlike in-store purchases, self-pickup customers make decisions under complete information conditions, that is, they can know the real-time status of each forward warehouse. Therefore, for self-pickup customers, their transportation distance is only the distance d between the demand point j and the target forward warehouse i. ji ; Similar to the cost of in-store purchases, the cost of self-pickup is also related to the transportation distance and the average customer spending, which is expressed as The distance is composed of the expected distances of each forward warehouse. Customers search each forward warehouse online in a certain order. The maximum acceptable number of searches is R-1. When the goods in the forward warehouse searched in the previous time are not enough to meet the customer's needs, the customer will search for the next forward warehouse. Therefore, the probability of searching the rth forward warehouse is (1-s) r-1 , and the probability that the rth forward warehouse can meet its demand is (1-s) r-1 s, the expected distance of the rth forward warehouse is (1-s) r-1 sd ji z jir When the customer has completed R-1 searches and still has no forward warehouse that meets the requirements, a certain penalty cost π will be incurred. The virtual facility i is also introduced when calculating the penalty cost. 0 , j and i 0 The virtual pick-up distance of a unit product is π / cs, when i=i 0 When , the expected distance is By combining the expected distances, the self-pickup cost is finally obtained as shown in formula (6): Combining the above sub-functions, the final objective function is: MinC=Min(C 1 +C 2 +C 3 +C 4 +C 5 +C 6 ) (7) 3.2 Constrained variables In order to make the constructed model more in line with reality, the following constraints are obtained based on the actual application scenario and model definition: Formula (8)-Formula (10) are the constraints related to the forward warehouse: Formula (8) indicates that the demand quantity of forward warehouse i is the sum of the demand quantities of related customers, where is the total customer demand delivered by forward warehouse i, and are the total demands of in-store customers and self-pickup customers who choose forward warehouse i as the preferred forward warehouse. The purpose of adopting this conversion method is to simplify the calculation as much as possible while ensuring that the total demand of forward warehouses is not missed. Formula (9) indicates that the demand of forward warehouse i is not greater than its maximum capacity. Formula (10) indicates that the regional warehouse can and can only deliver goods to the built forward warehouses. D ijk ≤D kmax (15) Formulas (11)-(20) are constraints related to distribution services: Formulas (11) and (12) are MTZ constraints for eliminating sub-loops; Formulas (13) and (14) are iterative calculations of the total distance traveled by distribution vehicle k; Formula (15) indicates that the total distance traveled by distribution vehicle k shall not be greater than its maximum distance; Formula (16) indicates that distribution vehicle k can only depart from the built forward warehouse; Formula (17) indicates that any distribution vehicle k has only one distribution path; Formula (18) indicates that any demand point j has and only has one distribution vehicle k to provide distribution services for it; Formula (19) restricts vehicles performing roving distribution to depart from the demand point j' that has completed distribution services when providing services to the next demand point j; Formula (20) ensures the balance of vehicle inflow and outflow; Formulas (21)-(25) are constraints related to the in-store purchase service: Formula (21) requires that the first forward warehouse visited by the in-store purchase customer must exist; Formula (22) requires that the forward warehouse visited by the in-store purchase customer must be an existing forward warehouse; Formulas (23) and (24) restrict the order in which the in-store purchase customer visits the forward warehouse, that is, the customer must visit the r-1 forward warehouse before visiting the r-th forward warehouse (r≥2); Formula (25) indicates that the R-th forward warehouse must be a virtual forward warehouse; Formula (26) to Formula (29) are the constraints related to the self-pickup service: Formula (26) requires that the distance between the self-pickup customer and the forward warehouse i visited must not be greater than the longest transportation distance that the customer can accept; Formula (27) indicates that the forward warehouse selected by the self-pickup customer must exist, including the virtual forward warehouse; Formula (28) indicates that the customer can only choose from the built forward warehouses; Formula (29) requires that the self-pickup customer will definitely visit the virtual forward warehouse; Formula (30)-Formula (31) are the value constraints of decision variables; Step 4: Model solution The genetic algorithm in the heuristic algorithm is selected for algorithm design and solution. The genetic algorithm consists of two stages: forward warehouse site selection and path planning. The first stage is the forward warehouse site selection, and the second stage is the path planning plan generation. The first stage includes the generation of the initial forward warehouse site selection plan, the calculation of the population fitness value, the selection, crossover, and the mutation process. The second stage is between the generation of the initial forward warehouse location plan and the calculation of the population fitness value in the first stage. The whole stage includes customer allocation, path initialization, neighborhood search, generation of initial solution and implicit enumeration improvement steps. Among the three path plans generated in this stage, the calculation method of the in-store purchase and self-pickup plans is the same; In each iteration process, the forward warehouse site selection plan generated in the first stage provides a basis for the path planning in the second stage, and the total cost of the path planning plan obtained in the second stage is used as the basic data for calculating the fitness value. The new site selection plan obtained with this fitness value as the evaluation standard provides a basis for the next generation of path planning, and this cycle continues.
2. According to the method for joint optimization of forward warehouse location and path in the warehouse-store integration model of claim 1, It is characterized in that The first stage process of solving the genetic algorithm described in step 4 is described as follows: Phase 1: Generate a forward warehouse site selection plan (1) Chromosome encoding and decoding Coding is the process of converting feasible solutions of the problem from its solution space to the search space of the genetic algorithm and expressing it as genetic algorithm genotype string structure data; real number coding is used to encode various warehouses involved in the model, the number of equipment selected front warehouses is |I|, the number of regional warehouses is |A|, because the same virtual warehouse can be extracted multiple times during the calculation process, the number of virtual warehouses is 1, then the chromosome length is chromlen = |A|+1+|I|+1, where the first |A| bits are regional warehouses, the |A|+1th bit is a virtual warehouse, the |A|+2th to the |A|+1+|I|th bits are candidate front warehouses, and the |A|+1+|I|+1th bit is a separator; Decoding is the reverse operation of encoding, which is the process of converting chromosomes into problem solutions; (2) Generate the initial population Generating the initial population is the process of generating the initial solution to the problem. The population size is set to popsize = 90, and the initial population is generated by a random method. (3) Calculate individual fitness The selection of fitness function has a direct impact on the convergence speed of the algorithm and the quality of the selected chromosome. The decision-making goal is to minimize the total cost. The fitness function should be inversely proportional to the total cost. Based on this, the fitness function is designed as follows: This function indicates that for individual j, its fitness function F fit The size of (j) is inversely proportional to its total cost C(j); since for each individual j, the model involves three service modes: delivery, in-store purchase and self-pickup, the costs generated by the three types of service modes are calculated in turn during the solution process, and then the corresponding fitness value is calculated based on the sum of the three types of costs; in addition, in order to better distinguish the advantages and disadvantages of each chromosome, each fitness value is scaled by dividing it by the minimum fitness value, and the minimum fitness value is set to F fit (j) min , then the fitness values after scaling are: (4)Select In the genetic algorithm, before each cycle starts, the selection operator needs to be used to select individuals from the current individuals as the parents of the next generation. The probability of each individual being selected is related to its fitness. The higher the fitness, the greater the probability of being selected. The random traversal sampling method is used, and the generation gap parameter gap=0.9 is set to ensure that the number of new individuals in the offspring can account for 90% of the population size. (5) Cross The crossover operation is a process of exchanging some genes of the parents to produce offspring. The sub-circuit crossover method is used and the crossover probability p is set. c =0.9, this method only selects the position of genes on one chromosome. The specific operation is as follows: for parents A and B, first select a group of genes on parent A, and find the position of these genes on parent B; then swap the positions of genes in parents A and B according to the order of appearance of the selected genes, and keep the unselected genes unchanged, thus generating two offspring; (6) Variation The mutation acts on the offspring produced after selection and crossover operations, using multi-point random mutation method and setting the mutation probability p m =0.1, this mutation method is to randomly select 3 genes on the chromosome and disrupt the selected genes to obtain a mutated new chromosome; (7) Termination The genetic algorithm continuously approaches the optimal solution through multiple iterations, and the operation stops when the number of iterations reaches the number.
3. According to the method for joint optimization of forward warehouse location and path in the warehouse-store integration model of claim 2, It is characterized in that The second stage process of solving the genetic algorithm described in step 4 is described as follows: Phase 2: Generate three types of path solutions (1) Distribution plan generation First, according to the results of the population initialization in the first stage, the delivery customers are assigned to the selected forward warehouses, and the proportion parameter δ (0<δ≤1) is set. This parameter is used to measure the impact of the distance difference between the forward warehouse A closest to the customer and the second closest forward warehouse A' on the total cost, so that a choice is made between forward warehouses A and A'. When A / A'≤δ, it is considered that the distance difference between the two forward warehouses is large, and the nearest forward warehouse A is selected at this time. When A / A'>δ, it is considered that the distance difference between the two forward warehouses is small. If the nearest forward warehouse A is selected, it may cause the model to fall into the local optimum, so forward warehouse A' is selected; when initializing the path, the Solomon insertion heuristic algorithm is used; when searching in the neighborhood, in the jittering stage, the current solution is reconnected to the path close to the individual historical optimal solution and the population historical optimal solution. The neighborhood search stage is realized by intra-path and inter-path exchange, insertion and 2-opt operators, and the neighborhood search is nested in the jittering process, and the initial solution is generated by the greedy insertion method; (2) Generate in-store purchase / self-pickup plan First, by inserting a heuristic algorithm, the solution with the fastest cost reduction is selected as the initial solution among the existing M solutions. Then, the implicit enumeration method is used to improve the initial solution. The improvement idea is: first, let all variables equal to zero, and then assign some variables to 1 in turn until a feasible solution is obtained. It is used as the best feasible solution at present and certain combinations of variables equal to 0 or 1 are checked in turn, so that the feasible solution is continuously improved to obtain the final solution.
