A method and device for selecting a location of a logistics site

The density-based clustering algorithm is used to screen logistics site location demand points and combined with the integer programming model to select candidate sites, which solves the problem in the existing technology that the location results are affected by remote locations, and achieves more reasonable and effective logistics site location selection. .

CN113762864BActive Publication Date: 2024-09-20BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202110014261.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-06
Publication Date
2024-09-20
Estimated Expiration
2041-01-06

AI Technical Summary

Technical Problem

In existing technology, in logistics site location selection, the center of gravity method is suitable for simple scenarios but is difficult to handle multiple constraints. The heuristic algorithm cannot guarantee optimal results. The results of the integer programming method are easily affected by remote locations, resulting in unreasonable site selection results.

Method used

A density-based clustering algorithm is used to cluster site selection demand points. After eliminating remote points, an integer programming model is used to select sites to be built from candidate logistics sites to ensure the rationality and effectiveness of the site selection results.

Benefits of technology

The clustering algorithm is used to screen out relatively concentrated location demand points to avoid the influence of remote points, ensure that the location selection results of the integer programming model are reasonable and effective, and improve the accuracy and rationality of logistics site location selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113762864B
    Figure CN113762864B
Patent Text Reader

Abstract

This invention discloses a method and apparatus for selecting logistics sites, relating to the field of logistics technology. One specific embodiment of the method includes: acquiring one or more first site selection demand points, each first site selection demand point having corresponding unprocessed cargo volume and location information; clustering the first site selection demand points using a density-based clustering algorithm based on the location information to select one or more second site selection demand points from the first site selection demand points; and selecting one or more logistics sites to be built from one or more candidate logistics sites using an integer programming model based on the unprocessed cargo volume and location information of the second site selection demand points, for processing the unprocessed cargo volume of the first site selection demand points. This embodiment reduces the impact of remote site selection demand points on the site selection results, improving the rationality and reliability of the site selection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics technology, and in particular to a method and device for selecting a site for a logistics site. Background Art

[0002] In the logistics and transportation scenario, the logistics site is a hub connecting the sorting center with various collection and delivery points. The selection of its address or construction location has an important impact on the logistics and transportation efficiency or distribution efficiency of the package. Therefore, how to select the construction address of the logistics site is an important research issue.

[0003] At present, quantitative analysis methods such as the centroid method, heuristic algorithm, and integer programming method are often used to make site selection decisions for logistics sites. However, in the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: the centroid method is only applicable to simple site selection scenarios and is not suitable for site selection scenarios with multiple constraints; while the heuristic algorithm can handle multiple constraints but cannot guarantee the optimal site selection result; while the integer programming method can obtain the optimal site selection result, the site selection result is easily affected by one or more relatively remote locations in the site selection demand point, resulting in the final site selection result not being consistent with the actual result. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for site selection of a logistics site, which can perform clustering through a density-based clustering algorithm before using an integer programming model for site selection, and eliminate one or more remote points therein to obtain a reasonable and effective logistics site site selection result.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for selecting a site for a logistics site is provided, comprising:

[0006] Acquire one or more first site selection demand points, each of which has corresponding to-be-processed cargo volume and location information;

[0007] According to the location information, clustering the first site selection demand points using a density-based clustering algorithm to filter out one or more second site selection demand points from the first site selection demand points;

[0008] According to the pending cargo volume and location information of the second site selection demand point, an integer programming model is used to select one or more logistics sites to be built from one or more candidate logistics sites to process the pending cargo volume of the first site selection demand point.

[0009] Optionally, clustering the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes:

[0010] Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points;

[0011] Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number;

[0012] Determine one or more first site selection demand points included in the cluster as the second site selection demand points.

[0013] Optionally, it also includes:

[0014] Determine whether the number of first site selection demand points contained in the cluster is greater than a second threshold number, so as to determine that one or more first site selection demand points contained in the cluster are the second site selection demand points if the number of first site selection demand points contained in the cluster is greater than the second threshold number.

[0015] Optionally, it also includes:

[0016] Calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points included in the cluster;

[0017] Determine whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, and determine one or more first site selection demand points included in the cluster as second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

[0018] Optionally, the method of selecting one or more logistics sites to be built from one or more candidate logistics sites using an integer programming model according to the volume of cargo to be processed and the location information of the second site selection demand point, so as to process the volume of cargo to be processed at the first site selection demand point, includes:

[0019] Constructing a second distance matrix according to the location information of the second site selection demand point and the candidate logistics site, wherein the second distance matrix indicates the distance between the second site selection demand point and the candidate logistics site;

[0020] Constructing a distance relationship matrix according to the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range;

[0021] Constructing the objective function and constraint conditions of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraint conditions;

[0022] An integer programming solver is used to solve the integer programming model to select one or more logistics sites to be built from the candidate logistics sites.

[0023] Optionally, constructing the objective function and constraints of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraints, includes:

[0024] Constructing a first objective function and a first constraint condition; wherein the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time;

[0025] Construct a second objective function and a second constraint condition; wherein, the second objective function is used to minimize the total amount of cargo to be processed of the second site selection demand point weighted by the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and a newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

[0026] Optionally, the integer programming solver is any one of the following: SCIP, CPLEX.

[0027] Optionally, the density-based clustering algorithm adopted is the DASCAN algorithm.

[0028] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, a device for selecting a site for a logistics site is provided, comprising: a site selection demand point acquisition module, a site selection demand point screening module, and a module for determining a logistics site to be built; wherein,

[0029] The site selection demand point acquisition module is used to acquire one or more first site selection demand points, wherein the first site selection demand points have corresponding to-be-processed cargo volume and location information;

[0030] The site selection demand point screening module is used to cluster the first site selection demand points according to the location information using a density-based clustering algorithm to screen out one or more second site selection demand points from the first site selection demand points;

[0031] The module for determining the logistics site to be built is used to select one or more logistics sites to be built from one or more candidate logistics sites by adopting an integer programming model according to the pending cargo volume and location information of the second site selection demand point, so as to process the pending cargo volume of the first site selection demand point.

[0032] Optionally, clustering the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes:

[0033] Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points;

[0034] Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number;

[0035] Determine one or more first site selection demand points included in the cluster as the second site selection demand points.

[0036] Optionally, the site selection demand point screening module is also used to:

[0037] Determine whether the number of first site selection demand points contained in the cluster is greater than a second threshold number, so as to determine that one or more first site selection demand points contained in the cluster are the second site selection demand points if the number of first site selection demand points contained in the cluster is greater than the second threshold number.

[0038] Optionally, the site selection demand point screening module is also used to:

[0039] Calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points included in the cluster;

[0040] Determine whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, and determine one or more first site selection demand points included in the cluster as second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

[0041] Optionally, the method of selecting one or more logistics sites to be built from one or more candidate logistics sites using an integer programming model according to the volume of cargo to be processed and the location information of the second site selection demand point, so as to process the volume of cargo to be processed at the first site selection demand point, includes:

[0042] Constructing a second distance matrix according to the location information of the second site selection demand point and the candidate logistics site, wherein the second distance matrix indicates the distance between the second site selection demand point and the candidate logistics site;

[0043] Constructing a distance relationship matrix according to the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range;

[0044] Constructing the objective function and constraint conditions of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraint conditions;

[0045] An integer programming solver is used to solve the integer programming model to select one or more logistics sites to be built from the candidate logistics sites.

[0046] Optionally, constructing the objective function and constraints of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraints, includes:

[0047] Constructing a first objective function and a first constraint condition; wherein the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time;

[0048] Construct a second objective function and a second constraint condition; wherein, the second objective function is used to minimize the total amount of cargo to be processed of the second site selection demand point weighted by the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and a newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

[0049] Optionally, the integer programming solver is any one of the following: SCIP, CPLEX.

[0050] Optionally, the density-based clustering algorithm used is a Density-Based Spatial Clustering of Applications with Noise algorithm.

[0051] To achieve the above object, according to another aspect of an embodiment of the present invention, an electronic device for logistics site selection is provided, comprising: one or more processors; a storage device for storing one or more programs;

[0052] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the above-mentioned logistics site selection method.

[0053] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the methods described above for selecting a logistics site is implemented.

[0054] An embodiment of the above invention has the following advantages or beneficial effects: by clustering the first site selection demand points using a density-based clustering algorithm before using the integer programming model for site selection, so as to select one or more relatively concentrated second site selection demand points therefrom, and eliminate one or more remote site selection demand points therein, and then using the integer programming model on this basis to select one or more logistics sites to be built, the influence of the remote site selection demand points in the first site selection points on the site selection results is avoided, thereby ensuring the rationality and effectiveness of the logistics sites to be built that are finally determined.

[0055] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0057] Figure 1 is a schematic diagram of the main process of the method for selecting a logistics site according to an embodiment of the present invention;

[0058] Figure 2a is a schematic diagram of a first site selection demand point according to an embodiment of the present invention;

[0059] Figure 2b is a schematic diagram of clustering results of the first site selection demand point according to an embodiment of the present invention;

[0060] Figure 2c is a schematic diagram of a site selection result according to an embodiment of the present invention;

[0061] Figure 3 is a schematic diagram of the main process of the first site selection demand point screening method according to an embodiment of the present invention;

[0062] Figure 4is a schematic diagram of the main process of a method for selecting a logistics site based on an integer programming model according to an embodiment of the present invention;

[0063] Figure 5 is a schematic diagram of main modules of a device for selecting a logistics site according to an embodiment of the present invention;

[0064] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0065] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0067] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for selecting a location for a logistics site according to an embodiment of the present invention. Figure 1 As shown, the method may specifically include the following steps:

[0068] Step S101, obtaining one or more first site selection demand points, wherein the first site selection demand points have corresponding cargo volume to be processed and location information.

[0069] Specifically, see Figure 2a , an embodiment of the present invention provides a schematic diagram of a first site selection demand point. Among them, the first site selection demand point is determined by the location information involved in the actual logistics order or package, etc., and the location information includes longitude, latitude, etc.; the corresponding amount of goods to be processed is determined by the weight of the goods involved in the actual logistics order or package, such as the weight of the goods to be processed is 10 tons, 8 tons, etc. Correspondingly, the candidate logistics site involved in this embodiment can be any possible logistics site that can be built in the city or region where the first site selection demand point is located, and the logistics site corresponds to location information, preset radius, maximum processable cargo volume, minimum processable cargo volume, etc.; wherein, the preset radius is used to measure the coverage of the service of the candidate logistics station, and can be further divided into the minimum preset radius and the maximum preset radius according to the actual situation, but the maximum preset radius is often used when performing the following clustering processing.

[0070] Step S102: clustering the first site selection demand points using a density-based clustering algorithm according to the location information, so as to select one or more second site selection demand points from the first site selection demand points.

[0071] Among them, the density-based clustering algorithms that can be used include but are not limited to the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm, the OPTICS algorithm, etc. In the embodiment of the present invention, only the DBSCAN algorithm is used as an example for explanation. Specifically, the core idea of ​​the DBSCAN algorithm is to start from a core point and continuously expand to the density-reachable area, so as to obtain a maximized area containing core points and boundary points, and any two points in the area are connected by density. The algorithm can divide areas with sufficiently high density into one category, that is, generate a cluster, so that each point in the cluster contains at least a point of given data (minPts) within its given radius.

[0072] Specifically, clustering the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes:

[0073] Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points;

[0074] Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number;

[0075] Determine one or more first site selection demand points included in the cluster as the second site selection demand points.

[0076] For example, if there are three first location demand points, namely A, B, and C, the distance s between any two first location demand points can be calculated based on the location information of the two first location demand points, and the first distance matrix formed is as follows:

[0077] [S AB S BC S AC ]

[0078] On this basis, the first distance matrix, the preset radius R corresponding to the candidate logistics site, and the preset first threshold number (i.e., minPts, taking 5 as an example) are used as parameters of the DBSCAN algorithm to calculate to obtain one or more clusters (such as Figure 2b As shown in the figure, where different colors represent different clusters), each first location demand point in the cluster contains at least 5 first location demand points within the coverage range of the radius R around it. It can be understood that after clustering, the first location demand points with relatively concentrated geographical locations can be divided into the same cluster, while the first location demand points that cannot generate clusters are relatively remote in geographical location. Therefore, this part of the first location demand points can be directly eliminated, that is, only the first location demand points in the cluster are selected as the second location demand points to select logistics sites, thereby avoiding the influence of remote points in the first location demand points on subsequent site selection results.

[0079] Furthermore, it also includes: calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points contained in the cluster; judging whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, so as to determine that one or more first site selection demand points contained in the cluster are second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

[0080] Among them, the minimum handleable cargo volume corresponding to the candidate logistics site is set according to actual demand, and the corresponding maximum handleable cargo volume is also set. In other words, by comparing the total handleable cargo volume of the first site selection demand point in the cluster with the minimum handleable cargo volume corresponding to the candidate site, the influence of the first site selection demand point in the cluster with a relatively small total amount of cargo to be processed on the subsequent site selection results can be further eliminated, so that the site selection results are more in line with actual needs.

[0081] In addition, it also includes: judging whether the number of first site selection demand points included in the cluster is greater than a second threshold number, so as to determine that one or more first site selection demand points included in the cluster are the second site selection demand points when the number of first site selection demand points included in the cluster is greater than the second threshold number.

[0082] The second threshold number is a value set according to actual needs, such as 2, 5, 10, etc. That is to say, by comparing the total number of first location demand points in the cluster with the second threshold number, the influence of the first location demand points in the cluster with smaller first location demand points on the subsequent location selection results can be further eliminated, so that the location selection results are more in line with actual needs.

[0083] Step S103, based on the pending cargo volume and location information of the second site selection demand point, an integer programming model is used to select one or more logistics sites to be built from one or more candidate logistics sites to process the pending cargo volume of the first site selection demand point.

[0084] Among them, integer programming refers to a type of mathematical programming that requires all or part of the variables in the problem to be integers. It is a branch of planning theory that has developed in the last thirty years. Integer programming problems are linear or nonlinear programming that requires decision variables to take integer values.

[0085] It is understandable that after one or more logistics sites to be built are selected from multiple candidate logistics sites, that is, when the site selection results of the logistics sites are obtained, the site selection results can be further displayed in a visual manner, as shown in the following example. Figure 2c shown.

[0086] Based on the above embodiment, before using the integer programming model for site selection, a density-based clustering algorithm is used to cluster the first site selection demand points to select one or more relatively concentrated second site selection demand points, while eliminating one or more remote site selection demand points therein, and then the integer programming model is used on this basis to select one or more logistics sites to be built. This avoids the influence of remote site selection demand points in the first site selection points on the site selection results, and ensures the rationality and effectiveness of the logistics sites to be built that are finally determined.

[0087] See also Figure 3 On the basis of the above embodiment, in order to further explain step S102 in the above embodiment in detail, an embodiment of the present invention provides a method for screening a first site selection demand point, and the method may specifically include the following steps:

[0088] Step S201: construct a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points.

[0089] Step S202: Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the cluster is not less than a first threshold number.

[0090] Step S203, calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points included in the cluster.

[0091] Step S204, determining whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, so as to determine one or more first site selection demand points included in the cluster as second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

[0092] In this way, by combining the density-based clustering algorithm and the method of screening the first site selection demand points based on the amount of cargo to be processed, the first site selection demand points with remote locations and the first site selection demand points with relatively small amounts of cargo to be processed are eliminated, so that the site selection results of the logistics sites obtained based on the second site selection demand points are more accurate and reasonable.

[0093] See also Figure 4 On the basis of the above embodiment, in order to further explain step S103 in the above embodiment in detail, the embodiment of the present invention provides a method for selecting a logistics site based on an integer programming model, and the method may specifically include the following steps:

[0094] Step S401, constructing a second distance matrix based on the location information of the second site selection demand point and the candidate logistics site, wherein the second distance matrix indicates the distance between the second site selection demand point and the candidate logistics site.

[0095] More specifically, taking the case that there are three second site demand points A, B, and C, and four candidate logistics sites D, E, F, and G, the distance d from any second site demand point i to any candidate logistics site j can be calculated. ij , to obtain the second distance matrix containing the following elements: d AD d AE d AF d AG d BD d BE d BF d BG d CD d CE d CF d CG .

[0096] Step S402: construct a distance relationship matrix based on the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range.

[0097] Specifically, the distance d from the second site demand point i to any candidate logistics site j can be determined ij is smaller than the (maximum) preset radius of the candidate logistics site, that is, to determine whether the second candidate address demand point i is within the distance covered by the logistics service of the candidate logistics site j. If so, the corresponding tij The value is 1. If it is not, the corresponding t ij The value is 0. Thus, the element t is formed. ij A distance relationship matrix with values ​​of 0 or 1.

[0098] Step S403: constructing the objective function and constraints of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraints.

[0099] Specifically, it includes: constructing a first objective function and a first constraint condition; wherein, the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time; constructing a second objective function and a second constraint condition; wherein, the second objective function is used to minimize the total amount of cargo to be processed of the second site selection demand point after weighting the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and the newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

[0100] More specifically, first, input the following data:

[0101] C U , represents the maximum cargo volume that can be handled by the candidate logistics site;

[0102] C L , represents the minimum cargo volume that can be handled by the candidate logistics site;

[0103] R U , represents the maximum preset radius corresponding to the candidate logistics site, to represent the maximum logistics service range of the candidate logistics site;

[0104] R L , represents the minimum preset radius corresponding to the candidate logistics site, so as to represent the minimum logistics service range of the candidate logistics site;

[0105] t ij , is an element of the distance relationship matrix, indicating whether the second site selection demand point i is within the service range covered by the maximum preset radius of the candidate logistics site j;

[0106] d ij, is an element of the second distance matrix, representing the distance between demand point i and candidate logistics site j;

[0107] w i , indicating the amount of cargo to be processed corresponding to the second location demand point.

[0108] Secondly, construct the following two decision variables whose values ​​are only 0 or 1, so as to integerize the variables corresponding to the logistics site location problem:

[0109] x j : 0-1 variable, indicating whether candidate logistics site j is selected as the logistics site to be built. A value of 1 indicates that it is selected, and a value of 0 indicates that it is not selected;

[0110] y ij : A 0-1 variable, indicating whether the second site selection demand point i belongs to the candidate logistics site j. A value of 1 indicates that it belongs to the candidate logistics site j, and a value of 0 indicates that it does not belong to the candidate logistics site j. If the second site selection demand point i belongs to the candidate logistics site j, it means that the cargo to be processed of the second site selection demand point i is processed by the candidate logistics site j.

[0111] On this basis, the first objective function and the first constraint condition are constructed as follows:

[0112] The first objective function:

[0113] The first constraint is:

[0114]

[0115]

[0116] Among them, the first objective function is to minimize the number of selected logistics sites to be built;

[0117] The first constraint condition (1) indicates that within the coverage area of ​​the preset radius of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be less than the total maximum amount of cargo to be processed of the selected logistics site to be built;

[0118] The first constraint condition (2) indicates that within the coverage area of ​​the preset radius of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be greater than the minimum total amount of cargo to be processed of the selected logistics site to be built;

[0119] The first constraint (3) indicates that any second site selection demand point can only belong to one logistics candidate site.

[0120] Then, the second objective function and the second constraint are constructed as follows:

[0121] The second objective function:

[0122] Second constraint:

[0123]

[0124]

[0125]

[0126] The second objective function is used to minimize the total amount of cargo to be processed of the second location demand point after weighting the distance between the second location demand point and the candidate logistics site to which it belongs;

[0127] The second constraint conditions (1)-(3) are consistent with the aforementioned first constraint conditions (1)-(3) and will not be repeated here; while the second constraint condition (4) indicates that the number of logistics sites to be built determined based on this stage must not be greater than the minimum number of logistics sites to be built determined based on the first objective function in the previous stage.

[0128] Step S404, using an integer programming solver to solve the integer programming model to select one or more logistics sites to be built from the candidate logistics sites. The integer programming solver that can be used is any one of the following: SCIP, CPLEX. In addition, other integer programming solvers can also be used.

[0129] See also Figure 5 Based on the above embodiments, the embodiment of the present invention provides a device 500 for selecting a logistics site, including: a site selection demand point acquisition module 501, a site selection demand point screening module 502, and a logistics site determination module 503 to be built; wherein,

[0130] The site selection demand point acquisition module 501 is used to acquire one or more first site selection demand points, wherein the first site selection demand points have corresponding to-be-processed cargo quantity and location information;

[0131] The site selection demand point screening module 502 is used to cluster the first site selection demand points according to the location information using a density-based clustering algorithm to screen out one or more second site selection demand points from the first site selection demand points;

[0132] The module 503 for determining the logistics site to be built is used to select one or more logistics sites to be built from one or more candidate logistics sites by using an integer programming model according to the pending cargo volume and location information of the second site selection demand point, so as to process the pending cargo volume of the first site selection demand point.

[0133] In an optional implementation, clustering the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes:

[0134] Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points;

[0135] Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number;

[0136] Determine one or more first site selection demand points included in the cluster as the second site selection demand points.

[0137] In an optional implementation, the site selection demand point screening module 502 is further used to:

[0138] Determine whether the number of first site selection demand points contained in the cluster is greater than a second threshold number, so as to determine that one or more first site selection demand points contained in the cluster are the second site selection demand points if the number of first site selection demand points contained in the cluster is greater than the second threshold number.

[0139] In an optional implementation, the site selection demand point screening module 502 is further used to:

[0140] Calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points included in the cluster;

[0141] Determine whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, and determine one or more first site selection demand points included in the cluster as second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

[0142] In an optional implementation, the method of selecting one or more logistics sites to be built from one or more candidate logistics sites using an integer programming model according to the cargo volume to be processed and the location information of the second site selection demand point, so as to process the cargo volume to be processed of the first site selection demand point, includes:

[0143] Constructing a second distance matrix according to the location information of the second site selection demand point and the candidate logistics site, wherein the second distance matrix indicates the distance between the second site selection demand point and the candidate logistics site;

[0144] Constructing a distance relationship matrix according to the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range;

[0145] Constructing the objective function and constraint conditions of the integer programming model according to the second distance matrix and the distance relationship matrix, so as to optimize the objective function according to the constraint conditions;

[0146] The integer programming model is solved using an integer programming solver to select one or more logistics sites to be built from the candidate logistics sites.

[0147] In an optional implementation, constructing the objective function and constraints of the integer programming model according to the second distance matrix and the distance relationship matrix to optimize the objective function according to the constraints includes:

[0148] Constructing a first objective function and a first constraint condition; wherein the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand point belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time;

[0149] Construct a second objective function and a second constraint condition; wherein, the second objective function is used to minimize the total amount of cargo to be processed of the second site selection demand point weighted by the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and a newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

[0150] In an optional implementation, the integer programming solver is any one of the following: SCIP, CPLEX.

[0151] In an optional implementation, the density-based clustering algorithm used is a Density-Based Spatial Clustering of Applications with Noise algorithm.

[0152] Figure 6 An exemplary system architecture 600 is shown to which the method for selecting a site for a logistics site or the device for selecting a site for a logistics site according to an embodiment of the present invention can be applied.

[0153] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0154] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various web browser applications, etc., can be installed on the terminal devices 601, 602, 603.

[0155] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0156] The server 605 may be a server that provides various services, such as a backend management server that provides support for websites that display site selection results browsed by users using terminal devices 601, 602, and 603. The backend management server may process received site selection result query requests, etc., and feed back the site selection results obtained to the terminal device.

[0157] It should be noted that the site selection method for the logistics site provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the site selection device for the logistics site is generally set in the server 605 .

[0158] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0159] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0160] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0161] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0162] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0163] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as follows: a processor includes a site selection demand point acquisition module, a site selection demand point screening module, and a logistics site determination module to be built. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the site selection demand point acquisition module may also be described as "a module for acquiring one or more first site selection demand points, each of which has a corresponding amount of cargo to be processed and location information."

[0166] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: obtaining one or more first site selection demand points, the first site selection demand points having corresponding to-be-processed cargo volume and location information; clustering the first site selection demand points according to the location information using a density-based clustering algorithm to filter out one or more second site selection demand points from the first site selection demand points; according to the to-be-processed cargo volume and location information of the second site selection demand points, using an integer programming model to select one or more to-be-built logistics sites from one or more candidate logistics sites to process the to-be-processed cargo volume of the first site selection demand points.

[0167] According to the technical solution of the embodiment of the present invention, before using the integer programming model for site selection, a density-based clustering algorithm is used to cluster the first site selection demand points to select one or more relatively concentrated second site selection demand points, while eliminating one or more remote site selection demand points therein, and then the integer programming model is used to select one or more logistics sites to be built on this basis, thereby avoiding the influence of the remote site selection demand points in the first site selection points on the site selection results and ensuring the rationality and effectiveness of the logistics sites to be built that are finally determined.

[0168] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for selecting a logistics site. It is characterized in that include: Acquire one or more first site selection demand points, each of which has corresponding to-be-processed cargo volume and location information; According to the location information, clustering the first site selection demand points using a density-based clustering algorithm to filter out one or more second site selection demand points from the first site selection demand points; According to the to-be-processed cargo volume and location information of the second site selection demand point, an integer programming model is used to select one or more to-be-built logistics sites from one or more candidate logistics sites to process the to-be-processed cargo volume of the first site selection demand point; The step of clustering the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes: Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points; Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number; Determine one or more first site selection demand points included in the cluster as the second site selection demand points; The method of selecting one or more logistics sites to be built from one or more candidate logistics sites by using an integer programming model according to the cargo volume to be processed and the location information of the second site selection demand point, so as to process the cargo volume to be processed at the first site selection demand point, includes: Constructing a second distance matrix based on the location information of the second site selection demand point and the candidate logistics site; Constructing a distance relationship matrix according to the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range; According to the second distance matrix and the distance relationship matrix, construct a first objective function and a first constraint condition, a second objective function and a second constraint condition of the integer programming model, so as to optimize the first objective function according to the first constraint condition and optimize the second objective function according to the second constraint condition; Among them, the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand points belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time; the second objective function is used to minimize the total amount of cargo to be processed by the second site selection demand point after weighting the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and the newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

2. The method for selecting a logistics site according to claim 1, It is characterized in that Also includes: Determine whether the number of first site selection demand points contained in the cluster is greater than a second threshold number, so as to determine that one or more first site selection demand points contained in the cluster are the second site selection demand points if the number of first site selection demand points contained in the cluster is greater than the second threshold number.

3. The method for selecting a logistics site according to claim 1 or 2, It is characterized in that Also includes: Calculating the total amount of cargo to be processed corresponding to one or more first site selection demand points included in the cluster; Determine whether the total amount of cargo to be processed is greater than the minimum processable amount of cargo corresponding to the candidate logistics site, and determine one or more first site selection demand points included in the cluster as second site selection demand points when the total amount of cargo to be processed is greater than the minimum processable amount of cargo.

4. The method for selecting a logistics site according to claim 3, It is characterized in that The second distance matrix indicates the distance between the second site selection demand point and the candidate logistics site; The method of selecting one or more logistics sites to be built from one or more candidate logistics sites by using an integer programming model according to the cargo volume to be processed and the location information of the second site selection demand point, so as to process the cargo volume to be processed at the first site selection demand point, includes: An integer programming solver is used to solve the integer programming model to select one or more logistics sites to be built from the candidate logistics sites.

5. The method for selecting a logistics site according to claim 4, It is characterized in that The integer programming solver is any one of the following: SCIP, CPLEX.

6. The method for selecting a logistics site according to claim 1, It is characterized in that The density-based clustering algorithm used is the DASCAN algorithm.

7. A device for selecting a location for a logistics site. It is characterized in that include: Site selection demand point acquisition module, site selection demand point screening module, and logistics site determination module to be built; among them, The site selection demand point acquisition module is used to acquire one or more first site selection demand points, wherein the first site selection demand points have corresponding to-be-processed cargo volume and location information; The site selection demand point screening module is used to cluster the first site selection demand points according to the location information using a density-based clustering algorithm to screen out one or more second site selection demand points from the first site selection demand points; The module for determining the logistics site to be built is used to select one or more logistics sites to be built from one or more candidate logistics sites by using an integer programming model according to the quantity of goods to be processed and the location information of the second site selection demand point, so as to process the quantity of goods to be processed of the first site selection demand point; The clustering of the first site selection demand points using a density-based clustering algorithm according to the location information to select one or more second site selection demand points from the first site selection demand points includes: Constructing a first distance matrix according to the location information of the first site selection demand points, wherein the first distance matrix indicates the distance between any two of the first site selection demand points; Generate one or more clusters according to the first distance matrix, so that the number of first site selection demand points included in the preset radius coverage range corresponding to any one of the first site selection demand points in the clusters is not less than a first threshold number; Determine one or more first site selection demand points included in the cluster as the second site selection demand points; The module for determining the logistics site to be built is further used to construct a second distance matrix according to the location information of the second site selection demand point and the candidate logistics site; Constructing a distance relationship matrix according to the second distance matrix, wherein the distance relationship matrix indicates whether the distance between the second site selection demand point and the candidate logistics site is within the preset radius coverage range; According to the second distance matrix and the distance relationship matrix, construct a first objective function and a first constraint condition, a second objective function and a second constraint condition of the integer programming model, so as to optimize the first objective function according to the first constraint condition and optimize the second objective function according to the second constraint condition; Among them, the first objective function is used to minimize the number of logistics sites to be built; the first constraint condition indicates that within the preset radius coverage of the candidate logistics site, the total amount of cargo to be processed corresponding to the second site selection demand points belonging to the candidate logistics site must be within the range of cargo that can be processed by the candidate logistics site, and the second site selection demand point can only belong to one candidate logistics site at the same time; the second objective function is used to minimize the total amount of cargo to be processed by the second site selection demand point after weighting the distance between the second site selection demand point and the candidate logistics site to which it belongs; the second constraint condition includes the first constraint condition and the newly generated constraint condition for the logistics site to be built determined according to the first objective function, and the newly generated constraint condition indicates that the number of logistics sites to be built is not greater than the number of logistics sites to be built determined according to the first objective function.

8. An electronic device for selecting a logistics site. It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Continuous physical distribution node layout optimization method based on weighted Voronoi diagram

    CN102393869A

  • Siting method of distribution centers

    CN102903037A

  • Site selection and transportation optimization method for super-large scale logistics distribution

    CN103473612A

  • Logistics distribution method and logistics distribution system

    CN104766188A

  • Emergency logistic transfer station site selection method based on improved ant colony algorithm

    CN105787595A