A method and system for optimizing site selection of logistics storage center
By combining the K-means clustering method and the monarch butterfly optimization method, combined with the roulette strategy, the local optimal problem under complex constraints in the location selection of the logistics warehousing center is solved, the accuracy and speed of the location selection are improved, and the transportation cost is reduced. and time.
Patent Information
- Application Number
- CN202210428659.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Existing location selection methods for logistics warehousing centers are difficult to effectively handle complex constraints and are prone to falling into local optimal solutions, search focus deviations and slow convergence speeds.
The K-means clustering method is used to cluster the data points, and based on the constructed location selection model of the logistics warehousing center, the monarch butterfly optimization method is used to optimize the location selection, and the roulette strategy is introduced to improve the global search capability and convergence speed.
It improves the accuracy and convergence speed of logistics warehousing center location selection, reduces logistics transportation time and cost, and is a more suitable solution to practical problems.
Smart Images

Figure CN114742593B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics technology, and in particular to a method and system for optimizing the site selection of a logistics storage center. Background Art
[0002] As the fundamental source of logistics distribution paths, the location selection of logistics warehousing centers largely determines the time required to complete logistics distribution, and is of great significance for significantly improving the efficiency of logistics distribution. The location selection of logistics warehousing centers can be evolved into a pure mathematical problem, that is, to find the minimum distance from a point to multiple determined points. First, set the coordinates of this point, then list the distance formula from this point to all determined points, and then differentiate each parameter to determine the extreme value and substitute it for comparison to obtain the shortest distance. Using mathematical problems to determine the location selection of logistics warehousing centers belongs to forward solution, but it can only involve distance parameters and cannot substitute other complex constraints. In practice, the location selection problem of logistics warehousing centers has many complex constraints and has the nature of NP-hard. At present, there are also some methods to solve the location selection of logistics warehousing centers through nonlinear programming models, improved Baumer-Walff models, etc., but most of them are prone to local optimality, search focus deviation and slow convergence. Summary of the invention
[0003] The object of the present invention is to provide a method and system for optimizing the site selection of a logistics storage center which can solve the problems pointed out in the background technology.
[0004] The present invention provides a method for optimizing the site selection of a logistics storage center, comprising:
[0005] Obtain a data set including the location data of the government centers and economic adaptation of each administrative region in the target area;
[0006] The K-means clustering method is used to cluster the data points in the data set based on location data;
[0007] by As the objective function, As a constraint condition, a location selection model for logistics warehousing centers is constructed; based on the location selection model, the monarch butterfly optimization method is used to optimize the selection of logistics warehousing center addresses for each cluster area;
[0008] Where C represents the cost function; a represents the total number of administrative regions; b represents the number of logistics storage centers; E i represents the economic adaptation of administrative region i; D ij represents the distance between the administrative center of administrative region i and the logistics storage center j; H ij G represents the shipment from logistics storage center j to administrative region i; i represents the gross domestic product of administrative region i.
[0009] In some embodiments, the economic adaptation amount E i =P i ×Y i ×G i / T, where E i represents the economic adaptation of administrative region i; P i is the permanent population of administrative area i; Y i is the proportion of the population aged 15 to 69 in administrative region i; G i is the gross domestic product of administrative region i; T is the gross domestic product of the municipality or province to which administrative region i belongs.
[0010] In some specific implementations, when clustering data points in a data set using the K-means clustering method, the following method is used to select the initial centroid vector:
[0011] For each data point k, obtain its single point density Q k and multi-point spacing U k , and calculate Q k and U k The product of
[0012] Sort the data points by product size, select a specified number of data points with the largest product, and use the data corresponding to the selected data points as the initial centroid vector;
[0013] The single point density is centered at data point k and has a specified length S b is the number of other data points in the circle with a radius; the multi-point spacing of the data point k Among them, most represents the maximum single-point density of all data points, S kI is the distance from data point k to the farthest point I in its single point density.
[0014] In some specific implementations, the monarch butterfly optimization method is used to optimize the selection of logistics storage center addresses for each cluster area, using the formula The iterative formula shown in the figure; where E w is the economic availability of administrative area w in the current cluster area, m is the number of administrative areas in the cluster area, L(E w ) represents the selection probability of administrative region w in the current clustering area, K(E w ) represents the cumulative probability of administrative regions within the current clustering area.
[0015] The present invention provides a logistics storage center optimization site selection system, comprising:
[0016] The data set acquisition module is used to acquire data sets, including the location data of the government affairs center and the economic adaptation of each administrative area in the target area;
[0017] The clustering module is used to cluster the data points in the data set based on location data using the K-means clustering method;
[0018] Site selection module, used to As the objective function, As a constraint condition, a location selection model for logistics warehousing centers is constructed; based on the location selection model, the monarch butterfly optimization method is used to optimize the selection of logistics warehousing center addresses for each cluster area;
[0019] Where C represents the cost function; a represents the total number of administrative regions; b represents the number of logistics storage centers; E i represents the economic adaptation of administrative region i; D ij represents the distance between the administrative center of administrative region i and the logistics storage center j; H ij G represents the shipment from logistics storage center j to administrative region i; i represents the gross domestic product of administrative region i.
[0020] In some specific implementations, the clustering module uses the following method to select the initial centroid vector:
[0021] For each data point k, obtain its single point density Q k and multi-point spacing U k , and calculate Q k and U k The product of
[0022] Sort the data points by product size, select a specified number of data points with the largest product, and use the data corresponding to the selected data points as the initial centroid vector;
[0023] The single point density is centered at data point k and has a specified length S b is the number of other data points in the circle with a radius; the multi-point spacing of the data point k Among them, most represents the maximum single-point density of all data points, S kI is the distance from data point k to the farthest point I in its single point density.
[0024] The present invention has the following advantages and beneficial effects:
[0025] In view of the lack of site selection for logistics warehousing centers in the actual region of Beijing-Tianjin-Hebei, based on the actual situation of logistics development in Beijing-Tianjin-Hebei, and taking into account the relationship between population, logistics and economy, this paper proposes a monarch butterfly optimization method based on clustering characteristics for site selection. While meeting the premise of accurate site selection, it pays more attention to improving the global search ability of the algorithm, and improves the convergence speed and accuracy. The effectiveness of the method of the present invention is verified by comparative experiments with other methods: it is more in line with the solution of practical problems and can further reduce logistics transportation time and costs.
[0026] In the preferred embodiment, the present invention improves the K-means clustering method and introduces a roulette strategy into the standard monarch butterfly optimization method for iteration, so that both the convergence speed and the accuracy are further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the specific embodiments described are only used to explain but not to limit the scope of protection of the present invention, and all other specific embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] This specific implementation method takes Beijing-Tianjin-Hebei as an example to provide a specific implementation process for the site selection of the Beijing-Tianjin-Hebei logistics warehousing center. The steps are as follows:
[0030] 1. Obtain a data set, including the location data of the government centers and economic adaptation of each administrative region in the target area.
[0031] In this specific implementation, the target area is Beijing-Tianjin-Hebei, and the administrative areas include the districts of Beijing, Tianjin, and prefecture-level cities in Hebei. The government affairs center is the core area of the local area, and the longitude and latitude of each government affairs center, that is, the location data, are obtained through the Baidu map developer document function.
[0032] The mathematical model of economic adaptation is shown in formula (1):
[0033] E i =P i ×Y i ×G i / T (1)
[0034] In formula (1): E i represents the economic adaptation of the administrative region with the serial number i. In the following text, the administrative region with the serial number i is abbreviated as administrative region i; P i is the permanent population of administrative area i; Y i is the proportion of the population aged 15 to 69 in the administrative region i; G i is the gross domestic product of administrative region i; T is the gross domestic product of the municipality or province to which administrative region i belongs.
[0035] The data set constructed in this specific implementation method is shown in Table 1, which includes the economic availability and longitude and latitude of 43 administrative regions.
[0036] Table 1 Dataset
[0037]
[0038]
[0039] 2. Construct a site selection model for logistics and warehousing centers.
[0040] The location selection problem of the logistics warehousing center is to determine b starting points from a administrative regions as the logistics warehousing center. Since the logistics warehousing centers are located in different geographical locations and face different regions, a logistics warehousing center location selection model with multiple constraints is established. The objective function is shown in formula (2):
[0041]
[0042] In formula (2):
[0043] C represents the cost function, and the objective function is to minimize the cost function;
[0044] a represents the total number of administrative regions, i.e., the total number of districts in municipalities and prefecture-level cities in provinces. In this specific implementation, a is 43;
[0045] b represents the number of logistics storage centers, which is a parameter to be determined;
[0046] E i represents the economic adaptation of administrative region i;
[0047] D ij It represents the distance between the government affairs center of the i-th administrative region and the j-th logistics storage center;
[0048] H ij It means that the j-th logistics storage center ships goods to the i-th administrative region.
[0049] The constraints of the construction are shown in formula (3):
[0050]
[0051] Constraint H ij =1 means that each administrative region has only one logistics storage center to complete outbound shipment;
[0052] Constraint E i ≤G i Indicates that the economic availability of administrative region i is not less than the gross domestic product G of administrative region i i .
[0053] 3. Cluster the data points in the dataset.
[0054] The present invention adopts K-means clustering method and performs clustering with Euclidean distance as the similarity index. In K-means clustering method, the initial selection of centroid vector is a random selection, which is easy to produce different clustering results. And when updating the centroid vector, the mean of each cluster is used as the basis. If there is a far center point in the cluster, the compactness of the clustering effect is destroyed. Therefore, the determination of the initial centroid vector in this specific implementation method is improved to make it more suitable for the characteristics of the Beijing-Tianjin-Hebei region, where Beijing and Tianjin are close and Hebei is dispersed.
[0055] Introduce single point density and multi-point spacing parameter factors to select the initial. The clustering effect generally follows the principle that the distance between the same type is small and the distance between different types is large. After introducing single point density and multi-point spacing parameter factors, if the density of two points is large and the distance between the two points is small, the clustering effect obtained by selecting these two points as the centroid vector is also very good.
[0056] Single point density Q k It refers to a point k as the core and a specified length S b The number of other points in the circle with a radius of , the single point density calculation formula is shown in formula (4):
[0057]
[0058] In formula (4), Q k represents the single point density of point k; S kl represents the distance between point k and point l, S b is the specified length, S b For experience value.
[0059] The meaning of formula (4) is: when point l satisfies S kl -S b ≤0, the value is 1; otherwise, the value is 0; all points except point k are judged and valued separately, and the values are accumulated.
[0060] Multi-point spacing refers to the distance between multiple single-point densities. The calculation formula for multi-point spacing is shown in formula (5):
[0061]
[0062] In formula (5), U k represents the multi-point spacing of point k; most represents the maximum single-point density of all points, S kI is the distance from point k to the farthest point I in the corresponding single point density.
[0063] The meaning of formula (5) is: if the single point density of point k is equal to most, then the multi-point spacing of point k is the specified length S b; If the single point density of point k is less than most, then the multi-point spacing of point k is the distance from it to the farthest point in its single point density. The farthest point in the single point density refers to: with point k as the core, with a specified length S b All points within a circle of radius .
[0064] The product of single-point density and multi-point spacing can reflect the comprehensive performance of each data point. Then, a specified number of data points are selected from high to low according to the product value, and the data corresponding to the selected data points are used as the initial centroid vector.
[0065] The beneficial effect of the improved K-means clustering method in this specific implementation will be verified through comparative experiments below.
[0066] K-means clustering method, K-modes clustering method, K-medians clustering method and improved K-means clustering method of this specific implementation method are used to divide the Beijing-Tianjin-Hebei data set into six regions. The results of the division are shown in Table 2. At the same time, the position point of longitude and latitude (114, 36) is used as the starting point, and the greedy strategy of Dijkstra algorithm is used to find the shortest path from a vertex to the remaining vertices, and the path sum of the six regions is obtained. The smaller the path sum is, the better the performance of the clustering method used is. The operation time and path sum of the four clustering methods are shown in Table 3.
[0067] Table 2 Regional division results
[0068] Partition number Serial number collection Number One (33,34,35,36,41,42) Number Two (2,37,38) Number Three (23,30,39,40) Number Four (1,9,10,13,14,28,29,32,43) Number Five (3,4,5,6,7,8,11,12,15,16) Number Six (17,18,19,20,21,22,24,25,26,27,31)
[0069] Table 3. Operation time and paths of four clustering methods
[0070] Clustering methods Operation time Path and Improved K-means clustering method 0.894408 / s 13.707741 K-means clustering method 0.642236 / s 20.861472 K-modes clustering method 1.584921 / s 17.162796 K-medians clustering method 1.426478 / s 16.893547
[0071] As can be seen from Table 3, the improved K-means clustering method has achieved the minimum path sum. Because the improved K-means clustering method has improved the K-means clustering method and added a judgment function, the operation time is slightly higher than the K-means clustering method, but lower than the K-modes clustering method and the K-medians clustering method. Therefore, the improved K-means clustering algorithm has better regional division performance.
[0072] 4. Based on the site selection model, the monarch butterfly optimization method is used to optimize the selection of logistics warehousing center addresses in each cluster area.
[0073] Monarch Butterfly Optimization (MBO) is an optimization method in which each butterfly is considered as a particle, and the generation of decision variables is represented by whether the particle position changes. This optimization method is implemented by simulating the migration behavior of monarch butterflies in nature, and is based on the following four rules:
[0074] 1) All monarch butterflies are only found in Continent 1 (the northern United States) and Continent 2 (Mexico). In other words, ideally, the entire monarch butterfly population consists of monarch butterflies from Continent 1 and Continent 2.
[0075] 2) Each offspring monarch butterfly is produced by the reproduction (migration) of monarch butterflies from land 1 or land 2, that is, the monarch butterflies produce corresponding changes in their positions through migration.
[0076] 3) In order to maintain a constant population size, a father monarch butterfly can only give birth to one daughter monarch butterfly, and the father monarch butterfly will die after giving birth. If the new daughter monarch butterfly does not show better fitness, the daughter monarch butterfly will be abandoned, and the father monarch butterfly will remain intact (adapt to the environment), that is, avoid changes in position by adapting to the environment.
[0077] 4) The monarch butterflies that have obtained the best fitness through migration or adaptation to the environment will be automatically applied to the next selection, and this behavior cannot be terminated by any operation, which ensures that the quality of the monarch butterfly population will not decline with the increase of selection.
[0078] The standard monarch butterfly optimization method has certain search capabilities and convergence robustness, but when it falls into the local optimal solution problem, it lacks effective means to break the local extreme value, and the global search ability continues to decrease, which ultimately leads to the inability to search for the global optimal result. According to the population distribution characteristics of the Beijing-Tianjin-Hebei region, this specific implementation method introduces the roulette strategy to improve the standard monarch butterfly optimization method.
[0079] The roulette strategy can establish a proportional relationship between the probability of individual data being selected and the value of economic applicability, while also preventing data with a small economic applicability from being directly discarded. The roulette strategy is based on the following three rules:
[0080] 1) The selection probability of the data individual, that is, the higher the value of the economic fitness of the data, the greater the probability of it being selected.
[0081] 2) Accumulation of probabilities of different data individuals, that is, accumulating the selection probabilities of data individuals from large to small, and the total probability is 1.
[0082] 3) Select a random individual, that is, find the corresponding probability interval by randomly generating a number from 0 to 1, and then select the data individual.
[0083] Based on the above rules, the iterative formula of the roulette strategy is shown in formula (6):
[0084]
[0085] Among them, L(E w ) represents the selection probability of the data individual, K(E w ) represents the cumulative probability of different data individuals.
[0086] E w is the economic availability of administrative area w in the current cluster area, m is the number of administrative areas in the cluster area, L(E w ) represents the selection probability of administrative region w in the current cluster. The probability of each individual being selected is proportional to the size of its economic fitness. Taking cluster region 1 as an example, the economic fitness of administrative region 33 is E w In an absolutely leading position, the choice probability of the individual is L(E w ) is the largest, and then the cumulative probability K(E w ).
[0087] The specific implementation process of this step is as follows:
[0088] (1) Input clustering data as a population.
[0089] In this embodiment, there are 6 types of clustering results, that is, six groups of data are input, each group of data includes a data point and the corresponding economic applicability, longitude and latitude, and can be constructed into multiple matrices of 1 row and 3 columns.
[0090] (2) Initialize the population.
[0091] Drawing on the survival process of monarch butterfly groups in nature, the position of each monarch butterfly represents a feasible solution. The monarch butterfly group will be distributed on two continents. The monarch butterflies on these two continents have different behaviors: migration and adaptation to the environment. The monarch butterfly method combines these two behaviors to search for the optimal position in the solution space.
[0092] (3) Iteratively update the optimal individual.
[0093] If a monarch butterfly chooses to migrate, it will give birth to a baby and die, and the baby will move to the migration location to ensure that the population quality will not decline. If a monarch butterfly chooses to adapt to the environment, its current location is considered to be the optimal location.
[0094] In order to verify the correctness and effectiveness of the improved monarch butterfly optimization method proposed in this specific implementation method in the reverse solution of the logistics warehousing center location problem, a simulation experiment was carried out using the Beijing-Tianjin-Hebei data set as an example. This embodiment uses the Python framework for coding and uses the Intel core i7-10750H processor on the Windows 10 operating system for model training and debugging.
[0095] The improved monarch butterfly optimization method is used to reversely select the location of the logistics warehousing center. Through simulation experiments, six actual longitude and latitude coordinates are obtained as the location points of the logistics warehousing center, as shown in Table 4. At the same time, the standard whale method (WOA), standard firefly method (FA) and standard bat method (BA) are also used for location selection, and the location selection results are compared. The sum of the distances from all data points in the cluster area to the location point is used as the evaluation criterion. The smaller the sum of the distances, the better the location point. The comparison results of the four optimization methods are shown in Table 5.
[0096] Table 4 Site selection for the six regions
[0097] Area No. Get longitude and latitude Number One (115.18786530226286,37.201342039150475) Number Two (117.63213033120186,40.133805530699312) Number Three (118.83639818113038,40.202593570244241) Number Four (116.93820193820773,39.669668709469846) Number Five (116.30918318643951,39.870435700000013) Number Six (117.24566041195316,39.053606540006605)
[0098] Table 5 Comparison of site selection performance of four optimization algorithms
[0099] Site selection method Six area distances and Iterations Run time Improved monarch butterfly optimization method 24.815160614107434 28 9.2 / s Standard whale method 32.186523974214532 37 14.8 / s Standard firefly method 29.463287951325756 62 27.6 / s Standard Bat Method 36.297841357821349 46 19.3 / s
[0100] As can be seen from Table 5, compared with the other three optimization methods, the improved monarch butterfly optimization method has a better solution result, which is manifested in the minimum sum of the distances of the six regions, that is, the sum of the distances from the points in the six regions to all data points in the corresponding clustering regions. The number of iterations of the improved monarch butterfly optimization method is significantly smaller, and the running time is also the least, indicating that the improved monarch butterfly optimization method has a higher convergence speed and solution speed. In general, compared with the other three optimization methods, the improved monarch butterfly optimization method can reversely solve the specific address of the logistics warehousing center more quickly and accurately.
[0101] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc.
[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for optimizing the location of a logistics storage center, characterized in that: include: Obtain a data set including the location data and economic adaptation of the administrative centers of each administrative region in the target area; The K-means clustering method is used to cluster the data points in the data set based on location data; by As the objective function, As a constraint condition, a location selection model for logistics warehousing centers is constructed; based on the location selection model, the monarch butterfly optimization method is used to optimize the selection of logistics warehousing center addresses for each cluster area; Where C represents the cost function; a represents the total number of administrative regions; b represents the number of logistics storage centers; E i represents the economic adaptation of administrative region i; D ij H represents the distance between the administrative center of administrative region i and the logistics storage center j; ij G represents the shipment from logistics storage center j to administrative region i; i represents the gross domestic product of administrative region i; The economic adaptation E i =P i ×Y i ×G i / T, where E i represents the economic adaptation of administrative region i; P i is the permanent population of administrative area i; Y i is the proportion of the population aged 15 to 69 in administrative region i; G i is the gross domestic product of administrative region i; T is the gross domestic product of the municipality or province to which administrative region i belongs; In clustering the data points in the data set using the K-means clustering method, the following method is used to select the initial centroid vector: For each data point k, obtain its single point density Q k and multi-point spacing U k , and calculate Q k and U k The product of Sort the data points by product size, select a specified number of data points with the largest product, and use the data corresponding to the selected data points as the initial centroid vector; The single point density is centered at data point k and has a specified length S b is the number of other data points in the circle with a radius; the multi-point spacing of the data point k Among them, most represents the maximum single-point density of all data points, S kI is the distance from data point k to the farthest point I in its single point density.
2. The method for optimizing the location of a logistics storage center according to claim 1, characterized in that: The monarch butterfly optimization method is used to optimize the selection of logistics storage center addresses for each cluster area, and the formula is used The iterative formula shown in the figure; where E w is the economic availability of administrative area w in the current cluster area, m is the number of administrative areas in the cluster area, L(E w ) represents the selection probability of administrative region w in the current clustering area, K(E w ) represents the cumulative probability of administrative regions within the current clustering area.
