WO2019242520A1 - Logistics distribution station planning method, and server - Google Patents

Logistics distribution station planning method, and server Download PDF

Info

Publication number
WO2019242520A1
WO2019242520A1 PCT/CN2019/090509 CN2019090509W WO2019242520A1 WO 2019242520 A1 WO2019242520 A1 WO 2019242520A1 CN 2019090509 W CN2019090509 W CN 2019090509W WO 2019242520 A1 WO2019242520 A1 WO 2019242520A1
Authority
WO
WIPO (PCT)
Prior art keywords
geographic area
node
nodes
cluster
clusters
Prior art date
Application number
PCT/CN2019/090509
Other languages
French (fr)
Chinese (zh)
Inventor
张晓莹
徐宗敏
Original Assignee
菜鸟智能物流控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 菜鸟智能物流控股有限公司 filed Critical 菜鸟智能物流控股有限公司
Publication of WO2019242520A1 publication Critical patent/WO2019242520A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/043Optimisation of two dimensional placement, e.g. cutting of clothes or wood
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping

Definitions

  • the embodiments of the present specification relate to the field of computer technology, and in particular, to a method and server for planning a logistics distribution site.
  • logistics companies With the rapid development of e-commerce, in order to timely deliver distribution resources to users, logistics companies usually need to plan and build logistics distribution sites within geographical areas.
  • planners of logistics companies usually use their experience to decide how to plan a logistics distribution site based on the density distribution of distribution orders. This method of planning logistics distribution sites based on experience usually results in irrational distribution of logistics distribution sites, resulting in higher distribution costs and lower timeliness of distribution.
  • the purpose of the embodiments of the present specification is to provide a logistics distribution site planning method and server, so as to reduce the distribution cost and improve the timeliness of distribution.
  • an embodiment of the present specification provides a method for planning a logistics distribution site, including: receiving a planning parameter of the logistics distribution site; the planning parameter of the logistics distribution site includes a geographical area identifier; The nodes in the designated geographic area are divided into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier; and based on the divided clusters, multiple logistics distribution sites are planned in the designated geographic area.
  • an embodiment of the present specification provides a server, including: a receiving unit configured to receive planning parameters of a logistics distribution site; the planning parameters of the logistics distribution site include a geographic area identifier; and a dividing unit configured to correspond to a distribution address
  • the geographical position is a node, and the nodes in the specified geographical area are divided into multiple clusters; the specified geographical area is a geographical area identified by the geographical area identifier; a planning unit is configured to: Plan multiple logistics distribution sites within a specified geographic area.
  • an embodiment of the present specification provides a server including: a memory for storing computer instructions; a processor for executing the computer instructions to implement the following steps: receiving planning parameters of a logistics distribution site; and the logistics distribution site
  • the planning parameters include a geographical area identifier; the geographical location corresponding to the delivery address is used as a node to divide the nodes in the specified geographical area into multiple clusters; the specified geographical area is the geographical area identified by the geographical area identifier; based on the division Multiple clusters in the designated geographic area.
  • the server can receive the planning parameters of the logistics distribution site, and the planning parameters of the logistics distribution site may include the geographic area identifier; the geographic location corresponding to the distribution address may be used as the node To divide the nodes in a specified geographic area into multiple clusters, and the specified geographic area is the geographic area identified by the geographic area identifier; based on the divided clusters, multiple logistics can be planned in the specified geographic area Distribution site.
  • the method for planning a logistics distribution site in the embodiment of the present specification avoids the influence of manual experience, and makes the distribution of the planned logistics distribution site in the specified geographic area more reasonable, thereby reducing the distribution cost and improving the timeliness of distribution.
  • FIG. 1 is a flowchart of a logistics distribution site planning method according to an embodiment of the present specification
  • FIG. 2 is a flowchart of a K-MEANS clustering algorithm according to an embodiment of the present specification
  • FIG. 3 is a flowchart of a proximity classification algorithm according to an embodiment of the present specification.
  • FIG. 4 is a flowchart of a method for planning a logistics distribution site according to an embodiment of the present specification
  • FIG. 5 is a schematic diagram of a parameter input interface according to an embodiment of the present specification.
  • FIG. 6 is a schematic diagram of a planning result according to an embodiment of the present specification.
  • FIG. 7 is a schematic diagram of a functional structure of a server according to an embodiment of the present specification.
  • FIG. 8 is a schematic diagram of a functional structure of a server according to an embodiment of the present specification.
  • the embodiments of the present specification provide a method for planning a logistics distribution site.
  • the logistics distribution site planning method uses a server as an execution subject.
  • the server may be one server; or, it may be a server cluster including multiple servers.
  • the logistics distribution site planning method may include the following steps.
  • Step S10 Receive the planning parameters of the logistics distribution site.
  • the logistics distribution site planning parameters may be used to plan a logistics distribution site that is capable of distributing distribution resources to one or more distribution addresses.
  • the distribution resource may be any type of resource, for example, it may be commodities, goods, or takeaway.
  • the delivery address may be a delivery address of the user, and may be, for example, XXX village, XXX town, XXX city, XXX province, or the like.
  • the logistics distribution site planning parameter may include a geographic area identifier.
  • the geographic area identifier may be used to identify a geographic area, for example, it may be a name or a code of the geographic area.
  • the size of the geographic area can be flexibly set according to business needs, for example, it can be a street, a business circle, a city, a country, or an area composed of multiple countries.
  • the planning parameters of the logistics distribution site may further include the number of logistics distribution sites.
  • the number of the logistics distribution sites can be any size, for example, it can be 10, 15, or 30.
  • the planning parameters of the logistics distribution site may further include the maximum number of distribution addresses covered by the logistics distribution site.
  • the maximum number of delivery addresses covered by the logistics distribution site can be any size, for example, it can be 100, 102, or 150.
  • the planning parameters of the logistics distribution site may further include the minimum number of distribution addresses covered by the logistics distribution site.
  • the minimum number of delivery addresses covered by the logistics distribution site can be any size, for example, it can be 10, 12, or 15 and so on.
  • the planning parameters of the logistics distribution site may further include a maximum distribution distance covered by the logistics distribution site.
  • the maximum delivery distance covered by the logistics distribution site can be any size, for example, it can be 50 kilometers, 75 kilometers, or 80 kilometers.
  • the user may directly input the logistics distribution site planning parameters on the server, and the server may receive the logistics distribution site planning parameters input by the user.
  • the server may provide a parameter input interface, and the user may input the logistics distribution site planning parameters on the parameter input interface, and the server may receive the logistics distribution site planning parameters input by the user.
  • the user may also input the logistics distribution site planning parameters on a terminal device, the terminal device may receive and send the logistics distribution site planning parameters to a server, and the server may receive the logistics distribution site planning parameters.
  • the terminal device may be a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), a server, an industrial control computer (industrial control computer), a personal computer (PC), or an all-in-one computer.
  • PDA personal digital assistant
  • Step S12 Use the geographic location corresponding to the delivery address as a node to divide the nodes in the designated geographic area into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier.
  • the server may use the geographic area identified by the geographic area identifier as the designated geographic area; may obtain multiple delivery addresses within the designated geographic area; and use the geographic location corresponding to the delivery address as a node,
  • the nodes within the specified geographic area may be divided into multiple clusters. Each cluster may include at least one node.
  • the server may provide a delivery address set, and the delivery address set may include multiple delivery addresses.
  • the server may obtain a plurality of delivery addresses in the specified geographic area from the delivery address set.
  • the server can convert each delivery address into latitude and longitude data; the converted latitude and longitude data can be used as the latitude and longitude data of the node.
  • the server may use a preset algorithm to divide the nodes in the specified geographic area into multiple clusters.
  • the preset algorithm may include a clustering algorithm.
  • the clustering algorithm may include a K-Means clustering algorithm, a DBSAN (Density-Based Spatial Clustering of Applications with Noise) clustering algorithm, a hierarchical clustering algorithm, and the like.
  • the server may determine the number of clusters; the preset algorithm may be used to divide the nodes in the specified geographic area into multiple clusters. The number of divided clusters may be equal to the number of clusters.
  • the logistics distribution site planning parameters may include the number of logistics distribution sites.
  • the server may use the number of logistics distribution sites in the logistics distribution site planning parameters as the number of clusters.
  • the server may calculate the number of clusters based on the number of nodes in the specified geographic area.
  • the server can be based on a formula To calculate the number of clusters; K can represent the number of clusters; ALL can represent the number of nodes in the specified geographic area; U can represent the maximum number of distribution addresses covered by the logistics distribution site; L can represent the minimum coverage of the logistics distribution site The number of shipping addresses; [] can represent the round-up operator.
  • the size of U may be preset by a developer on the server.
  • the logistics distribution site planning parameters may include the maximum number of distribution addresses covered by the logistics distribution site. In this way, the server may assign U to the maximum number of delivery addresses in the logistics delivery site planning parameters.
  • the size of L here can be preset by the developer on the server.
  • the logistics distribution site planning parameters may include a minimum number of distribution addresses covered by the logistics distribution site.
  • the server may assign L to the minimum number of delivery addresses in the logistics delivery site planning parameters.
  • the following uses the K-Means clustering algorithm as an example to describe in detail the process in which the server divides the nodes in the specified geographic area into multiple clusters.
  • the server may also use other clustering algorithms to divide the nodes in the specified geographic area into multiple clusters.
  • the K-Means clustering algorithm here is only an example. In practice, the K-Means clustering algorithm may have other deformations or changes.
  • the process in which the server divides the nodes in the specified geographic area into multiple clusters may include the following steps.
  • Step S120 Determine K cluster centers.
  • the K may represent the number of clusters, and the K cluster centers may correspond to K clusters.
  • the server may arbitrarily select K nodes from the nodes in the specified geographic area as K cluster centers.
  • K cluster centers may be arbitrarily select K nodes from the nodes in the specified geographic area as K cluster centers.
  • the server may also determine K cluster centers in other ways.
  • Step S122 For each node in the specified geographic area, calculate the geographic distance between the node and the K cluster centers; and divide the node into the cluster corresponding to the cluster center with the smallest geographic distance. .
  • the server can calculate the geographic distance between the node and the K cluster centers; it can select the cluster center corresponding to the smallest geographic distance; it can divide the node To the class cluster corresponding to the selected cluster center.
  • D can represent the geographical distance
  • x 1 can represent the dimensional data of the node
  • y 1 can represent the longitude data of
  • cw can represent the dimensional data of the overall center
  • cj can represent the longitude data of the overall center, where the overall center can be understood as the center of each node in the specified geographic area.
  • cw may be an average value of dimensional data of each node in the specified geographic area
  • cj may be an average value of longitude data of each node in the specified geographic area.
  • Step S124 Determine the clustering centers of the K clusters again.
  • the server may re-determine the cluster center of the cluster based on the nodes in the cluster. Specifically, the server may calculate the average value of the longitude data of each node in the cluster as the longitude data of the cluster center of the cluster; and may calculate the average value of the dimensional data of each node in the cluster as the cluster.
  • the dimensional data of the cluster center of the cluster can be re-determined based on the calculated longitude data and dimensional data.
  • the server may also use other methods to re-determine the clustering center of the cluster.
  • Step S126 Determine whether the iteration termination condition is satisfied. If it is satisfied, the K-Means clustering algorithm is terminated; if not, it returns to step S122.
  • the iteration termination condition may include convergence of a standard measure function.
  • the server may calculate a standard measurement function; and may terminate the K-Means clustering algorithm when the standard measurement function converges.
  • the standard measurement function may be, for example, ALL can indicate the number of nodes in the specified geographic area; K can indicate the number of clusters; when the nth node belongs to the kth class cluster, the size of r nk can be 1; the nth node does not belong For the k-th cluster, the size of r nk can be 0; u k can represent the cluster center of the k-th cluster.
  • the iteration termination condition may also include other forms.
  • the iteration termination condition may further include that the cluster center of each cluster in the K clusters no longer changes; or that the change in the cluster center of each cluster in the K clusters is less than or Equal to a preset threshold.
  • the change amount of the cluster center can be understood as the geographic distance between the cluster center of the current iteration process and the cluster center of the previous iteration process, and the size of the preset threshold can be flexibly set according to actual needs.
  • Step S16 Based on the divided clusters, plan a plurality of logistics distribution sites in the designated geographic area.
  • the server may use the cluster center of the class cluster as the geographic location of the logistics distribution site, and may use the distribution address corresponding to the node in the class cluster as the logistics distribution site. Covered shipping address. In this way, the server can implement planning of multiple logistics distribution sites within the designated geographic area.
  • the The server may divide multiple delivery addresses in the specified geographic area into multiple business groups, and each business group may include multiple delivery addresses. Distribution addresses within a business group usually do not cross a geographic barrier (for example, on one side of the geographical barrier); distribution addresses between business groups can cross a geographic barrier. In this way, taking the geographical location corresponding to the delivery address as a node, the server can divide the nodes in each business group into multiple clusters. It should be noted that in this embodiment, according to the formula:
  • the overall center can be understood as the center of each node in the business group.
  • the server may be a server cluster including multiple servers. In this way, the process of dividing the nodes in the specified geographic area into multiple clusters can be performed on the server cluster, so that distributed computing can be implemented, and computing efficiency is improved.
  • the server may use a set formed by nodes in the specified geographic area as a node set; may identify noise points from the node set; and may remove the node set Nodes other than the noise point are divided into multiple clusters.
  • the server may select a node from the node set whose geographic distance to the node is less than or equal to a first preset value; the number of selected nodes is less than or When equal to the preset number, the node can be identified as a noise point.
  • the size of the first preset value and the preset number may be flexibly set according to actual needs.
  • the designated geographic area may include multiple sub-geographical areas.
  • the designated geographic area may be Hangzhou, China, and the multiple sub-geographical areas may include West Lake District, Binjiang District, Xiaoshan District, Xiacheng District, Jianggan District, and the like.
  • errors may occur.
  • the node corresponding to the wrong latitude and longitude data is a kind of noise point, and its existence will affect the planning of the logistics distribution site.
  • the server may select a node with a geographic distance from the node set that is less than or equal to a second preset value from the node set;
  • the set is the first sub-node set; the sub-geographic area with the largest number of corresponding nodes in the first sub-node set can be selected; when the selected sub-geographic area is different from the sub-geographic area to which the node belongs, the node can be identified Is the noise point.
  • the size of the second preset value described herein can be flexibly set according to actual needs.
  • the planning parameters of the logistics distribution site may further include a maximum number of distribution addresses covered by the logistics distribution site.
  • the server may limit the number of nodes in each cluster so that the number of nodes in the divided clusters is less than or equal to The maximum number of delivery addresses in the logistics delivery site planning parameters.
  • the server may calculate the geographical distance between the node and the K cluster centers; A clustering center (hereinafter referred to as a first clustering center) corresponding to the smallest geographical distance is selected.
  • the server may divide the node into the first cluster center Corresponding class cluster.
  • the server may divide the node into other clusters.
  • the server may select a cluster center (hereinafter referred to as a second cluster center) corresponding to the smallest geographic distance from other cluster centers except the first cluster center, and When the number of nodes in the cluster corresponding to the center is less than or equal to the maximum number of delivery addresses in the planning parameters of the logistics distribution site, the node may be divided into the cluster corresponding to the second cluster center.
  • the server may continue to remove the first cluster center and the Among other cluster centers other than the second cluster center, a cluster center corresponding to the smallest geographical distance is selected.
  • the number of nodes in some clusters may preferentially reach the maximum of the logistics distribution site planning parameters.
  • the number of delivery addresses makes it impossible for some nodes to be divided into appropriate clusters.
  • the server may according to the formula:
  • nodes with a small geographic distance from the overall center can be preferentially divided into appropriate clusters, thereby making the division of clusters more reasonable overall.
  • the planning parameters of the logistics distribution site may further include a minimum number of distribution addresses covered by the logistics distribution site.
  • the class cluster divided in step S12 there may be a class cluster whose number of nodes is less than the minimum number of delivery addresses in the planning parameters of the logistics distribution site.
  • the server may select a class cluster containing the number of nodes less than or equal to the minimum number of delivery addresses in the planning parameters of the logistics distribution site from the classified class clusters as the first target class cluster; The nodes in the target cluster are divided into clusters other than the first target cluster.
  • the server may use a classification algorithm to divide the nodes in the first target class cluster into clusters other than the first target class cluster.
  • the classification algorithm may include a neighbor classification algorithm (K-NearestNeighbor, KNN), a support vector machine classification algorithm (Support Vector Machine, SVM), a convolutional neural network classification algorithm (Convolutional Neural Networks, CNN), and the like.
  • KNN K-NearestNeighbor
  • SVM Support Vector Machine
  • CNN convolutional neural network classification algorithm
  • the server uses a proximity classification algorithm as an example to describe in detail the process in which the server divides the nodes in the first target cluster into clusters other than the target cluster.
  • the server may also use other classification algorithms to divide the nodes in the first target class cluster into clusters other than the first target class cluster.
  • the proximity classification algorithm here is only an example. In practice, the proximity classification algorithm may have other deformations or changes. Specifically, for each node in the first target cluster, the server may calculate a geographic distance between the node and each node in each cluster other than the first target cluster; the geographic Nodes whose distance is less than or equal to the third preset value; the set formed by the selected nodes may be used as the second sub-node set; corresponding nodes in the second sub-node set may be selected except the first target class cluster The largest number of clusters; this node can be divided into the selected clusters.
  • the server may be a server cluster including multiple servers.
  • the server cluster may include a management server and a plurality of working servers.
  • the management server may divide nodes in clusters other than the first target cluster into multiple first data units, and each first data unit may include at least For one node, the number of segmented first data units may be the same as the number of working servers in the server cluster.
  • the management server may distribute a first data unit and the first target class cluster to each working server, respectively. Each working server can calculate the geographical distance between each node in the first target class cluster and each node in its first data unit.
  • Each working server may divide a node in the first target class cluster into a plurality of second data units, and each second data unit may include at least one node and may correspond to a data unit identifier.
  • the management server may summarize the second data units corresponding to each data unit identifier on each work server to obtain a new second data unit corresponding to the data unit identifier.
  • the management server may select a preset number of nodes with the smallest geographic distance from the node; the set consisting of the selected nodes may be used as the second child node Set; the class cluster with the largest number of corresponding nodes in the second sub-node set except the first target class cluster may be selected; the node may be divided into the selected class cluster.
  • the planning parameters of the logistics distribution site may further include a maximum distribution distance covered by the logistics distribution site.
  • There may be a cluster with a radius greater than the maximum distribution distance in the planning parameters of the logistics distribution site among the clusters divided in step S12. If a logistics distribution site is planned for this cluster in the subsequent process, the distribution cost will be affected.
  • the server can determine the radius of each class cluster that is divided; it can select a class cluster with a radius greater than or equal to the maximum distribution distance in the planning parameters of the logistics distribution site; it can be based on other class clusters other than the selected class cluster, A plurality of logistics and distribution sites are planned in the designated geographic area. Specifically, for each class cluster that is divided, the server may calculate the geographic distance between each node in the class cluster and the cluster center of the class cluster; the maximum geographic distance may be used as the radius of the class cluster.
  • some nodes may not be classified into appropriate clusters, and the nodes may be considered as outliers.
  • the existence of outliers will affect the planning of logistics distribution sites.
  • the clusters divided in step S12 may include clusters A, B.
  • the geographical distance between a node in class cluster A and the cluster center of class cluster A is greater than the geographic distance between the cluster center of class cluster A and the cluster center of class cluster B.
  • the node can be considered as an outlier.
  • the server may use a set formed by nodes in the specified geographic area as a node set; may identify at least one outlier from the set of nodes; and for each identified outlier, may The outlier is divided into clusters other than the cluster to which the outlier belongs.
  • the server may use a class cluster to which the node belongs as a second target class cluster; between the node and the cluster center of the second target class cluster When the geographic distance is greater than the geographic distance from the cluster center of any cluster other than the second target cluster, the node may be identified as an outlier.
  • the process of dividing an outlier into clusters other than the cluster to which the outlier belongs can refer to the classification algorithm in the foregoing embodiment, and details are not described herein again.
  • the main body of this scenario example may include a terminal device and a server.
  • the terminal device may provide a parameter input interface.
  • the user can input the logistics distribution site planning parameters on the parameter input interface.
  • the logistics distribution site planning parameters may include geographic area identification, the maximum number of distribution addresses covered by the logistics distribution site, the minimum number of distribution addresses covered by the logistics distribution site, and the maximum distribution distance covered by the logistics distribution site.
  • the terminal device may receive and send the logistics distribution site planning parameters to a server, and the server may receive the logistics distribution site planning parameters.
  • the server may use the geographic area identified by the geographic area identifier as the designated geographic area; may obtain multiple delivery addresses within the designated geographic area; and may use the geographic location corresponding to the delivery address as a node ;
  • a set formed by nodes in the specified geographic area may be a node set; a noise point may be identified from the node set; and other nodes except the noise point in the node set may be divided into a plurality of nodes Class cluster. The number of nodes in the divided cluster is less than or equal to the maximum number of delivery addresses in the planning parameters of the logistics distribution site.
  • the server may select a class cluster containing the number of nodes less than or equal to the minimum number of delivery addresses in the planning parameters of the logistics distribution site from the divided class clusters as the target class cluster;
  • the nodes in the target cluster are divided into clusters other than the target cluster.
  • the server may also identify at least one outlier from the set of nodes; for each identified outlier, the outlier may be divided into groups other than the cluster to which the outlier belongs. Other clusters.
  • the server may determine the radius of each class cluster that is divided; it may select a class cluster with a radius greater than or equal to the maximum distribution distance in the planning parameters of the logistics distribution site; it may be based on removing the selected class clusters Other types of clusters, planning multiple logistics distribution sites within the specified geographic area.
  • the server may receive logistics distribution site planning parameters, and the logistics distribution site planning parameters may include geographic area identifiers; the geographic location corresponding to the distribution address may be used as a node, and the nodes within the designated geographic area may be divided It is a plurality of clusters, and the designated geographic area is the geographic area identified by the geographic area identifier. Based on the divided clusters, multiple logistics distribution sites can be planned in the designated geographic area.
  • the method for planning a logistics distribution site in this embodiment avoids the influence of human experience, so that the planned distribution of the logistics distribution sites in the specified geographic area is more reasonable, thereby reducing distribution costs and improving timeliness of distribution.
  • the embodiment of the present specification also provides a server.
  • the server may include the following units.
  • the receiving unit 70 is configured to receive logistics distribution site planning parameters, where the logistics distribution site planning parameters include a geographic area identifier;
  • a dividing unit 72 configured to divide the nodes in a specified geographical area into multiple clusters by using the geographical location corresponding to the delivery address as a node; the specified geographical area is a geographical area identified by the geographical area identifier;
  • the planning unit 74 is configured to plan a plurality of logistics distribution sites in the specified geographic area based on the divided clusters.
  • the embodiment of the present specification also provides a server.
  • the server may include a memory and a processor.
  • the memory includes, but is not limited to, dynamic random access memory (Dynamic Random Access Memory, DRAM), static random access memory (Static Random Access Memory, SRAM), and the like.
  • DRAM Dynamic Random Access Memory
  • SRAM static random access memory
  • the memory may be used to store computer instructions.
  • the processor may be implemented in any suitable manner.
  • the processor may take, for example, a microprocessor or processor and a computer-readable medium, logic gate, switch, dedicated integration storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor.
  • Circuit Application Specific Integrated Circuit, ASIC
  • programmable logic controller and embedded microcontroller form, etc.
  • the processor may be configured to execute the computer instructions to implement the following steps: receiving logistics distribution site planning parameters; the logistics distribution site planning parameters including a geographic area identifier; and using a geographic location corresponding to a distribution address as a node, the designated geographic area will be designated
  • the nodes are divided into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier; and based on the divided clusters, multiple logistics distribution sites are planned in the designated geographic area.
  • a programmable logic device Programmable Logic Device (PLD)
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog2 Verilog2.
  • the system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • This manual can be used in many general-purpose or special-purpose computer system environments or configurations.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media, including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Game Theory and Decision Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiments of the present description provide a logistics distribution station planning method, and a server. The method comprises: receiving a logistics distribution station planning parameter, the logistics distribution station planning parameter comprising a geographic area identifier; dividing nodes in a designated geographic area into multiple class clusters by taking the geographic locations corresponding to distribution addresses as the nodes, the designated geographic area being a geographic area identified by the geographic area identifier; and planning a plurality of logistics distribution stations in the designated geographic area on the basis of the divided class clusters.

Description

物流配送站点规划方法和服务器Logistics distribution site planning method and server
本申请要求2018年06月20日递交的申请号为201810637029.9、发明名称为“物流配送站点规划方法和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on June 20, 2018 with application number 201810637029.9 and the invention name is "Logistics Distribution Site Planning Method and Server", the entire contents of which are incorporated herein by reference.
技术领域Technical field
本说明书实施例涉及计算机技术领域,特别涉及一种物流配送站点规划方法和服务器。The embodiments of the present specification relate to the field of computer technology, and in particular, to a method and server for planning a logistics distribution site.
背景技术Background technique
随着电子商务的快速发展,为了将配送资源及时配送到用户手中,物流公司通常需要在地理区域内规划并建设物流配送站点。现有技术中,物流公司的规划人员通常根据配送订单的密度分布情况,用其经验来决策如何规划物流配送站点。这种根据经验来规划物流配送站点的方法,通常会导致物流配送站点的分布不合理,使得配送成本较高,配送时效较低。With the rapid development of e-commerce, in order to timely deliver distribution resources to users, logistics companies usually need to plan and build logistics distribution sites within geographical areas. In the prior art, planners of logistics companies usually use their experience to decide how to plan a logistics distribution site based on the density distribution of distribution orders. This method of planning logistics distribution sites based on experience usually results in irrational distribution of logistics distribution sites, resulting in higher distribution costs and lower timeliness of distribution.
发明内容Summary of the Invention
本说明书实施例的目的是提供一种物流配送站点规划方法和服务器,以降低配送成本、提高配送时效。The purpose of the embodiments of the present specification is to provide a logistics distribution site planning method and server, so as to reduce the distribution cost and improve the timeliness of distribution.
为实现以上目的,本说明书实施例提供一种物流配送站点规划方法,包括:接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。To achieve the above objective, an embodiment of the present specification provides a method for planning a logistics distribution site, including: receiving a planning parameter of the logistics distribution site; the planning parameter of the logistics distribution site includes a geographical area identifier; The nodes in the designated geographic area are divided into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier; and based on the divided clusters, multiple logistics distribution sites are planned in the designated geographic area.
为实现以上目的,本说明书实施例提供一种服务器,包括:接收单元,用于接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;划分单元,用于以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;规划单元,用于基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。In order to achieve the above purpose, an embodiment of the present specification provides a server, including: a receiving unit configured to receive planning parameters of a logistics distribution site; the planning parameters of the logistics distribution site include a geographic area identifier; and a dividing unit configured to correspond to a distribution address The geographical position is a node, and the nodes in the specified geographical area are divided into multiple clusters; the specified geographical area is a geographical area identified by the geographical area identifier; a planning unit is configured to: Plan multiple logistics distribution sites within a specified geographic area.
为实现以上目的,本说明书实施例提供一种服务器,包括:存储器,用于存储计算 机指令;处理器,用于执行所述计算机指令实现以下步骤:接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。In order to achieve the above purpose, an embodiment of the present specification provides a server including: a memory for storing computer instructions; a processor for executing the computer instructions to implement the following steps: receiving planning parameters of a logistics distribution site; and the logistics distribution site The planning parameters include a geographical area identifier; the geographical location corresponding to the delivery address is used as a node to divide the nodes in the specified geographical area into multiple clusters; the specified geographical area is the geographical area identified by the geographical area identifier; based on the division Multiple clusters in the designated geographic area.
由以上本说明书实施例提供的技术方案可见,本说明书实施例中,服务器可以接收物流配送站点规划参数,所述物流配送站点规划参数可以包括地理区域标识;可以以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇,所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,可以在所述指定地理区域内规划多个物流配送站点。本说明书实施例的物流配送站点规划方法,避免了人工经验的影响,使得规划出的物流配送站点在所述指定地理区域内的分布较为合理,从而降低了配送成本,提高了配送时效。It can be seen from the technical solutions provided by the embodiments of the present specification that, in the embodiments of the present specification, the server can receive the planning parameters of the logistics distribution site, and the planning parameters of the logistics distribution site may include the geographic area identifier; the geographic location corresponding to the distribution address may be used as the node To divide the nodes in a specified geographic area into multiple clusters, and the specified geographic area is the geographic area identified by the geographic area identifier; based on the divided clusters, multiple logistics can be planned in the specified geographic area Distribution site. The method for planning a logistics distribution site in the embodiment of the present specification avoids the influence of manual experience, and makes the distribution of the planned logistics distribution site in the specified geographic area more reasonable, thereby reducing the distribution cost and improving the timeliness of distribution.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some of the embodiments described in this specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本说明书实施例一种物流配送站点规划方法的流程图;FIG. 1 is a flowchart of a logistics distribution site planning method according to an embodiment of the present specification; FIG.
图2为本说明书实施例一种K-MEANS聚类算法的流程图;2 is a flowchart of a K-MEANS clustering algorithm according to an embodiment of the present specification;
图3为本说明书实施例一种邻近分类算法的流程图;3 is a flowchart of a proximity classification algorithm according to an embodiment of the present specification;
图4为本说明书实施例一种物流配送站点规划方法的流程图;4 is a flowchart of a method for planning a logistics distribution site according to an embodiment of the present specification;
图5为本说明书实施例一种参数输入界面的示意图;5 is a schematic diagram of a parameter input interface according to an embodiment of the present specification;
图6为本说明书实施例一种规划结果的示意图;6 is a schematic diagram of a planning result according to an embodiment of the present specification;
图7为本说明书实施例一种服务器的功能结构示意图;7 is a schematic diagram of a functional structure of a server according to an embodiment of the present specification;
图8为本说明书实施例一种服务器的功能结构示意图。FIG. 8 is a schematic diagram of a functional structure of a server according to an embodiment of the present specification.
具体实施方式detailed description
下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例,都应当属于本说明书保护的范围。In the following, the technical solutions in the embodiments of the present specification will be clearly and completely described with reference to the drawings in the embodiments of the present specification. Obviously, the described embodiments are only a part of the embodiments of the present specification, but not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art without creative efforts should fall within the protection scope of this specification.
请一并参阅图1、图2、图3、图4、图5和图6。本说明书实施例提供一种物流配送站点规划方法。所述物流配送站点规划方法以服务器为执行主体。所述服务器可以为一个服务器;或者,还可以为包括多个服务器的服务器集群。所述物流配送站点规划方法可以包括以下步骤。Please refer to FIGS. 1, 2, 3, 4, 5, and 6 together. The embodiments of the present specification provide a method for planning a logistics distribution site. The logistics distribution site planning method uses a server as an execution subject. The server may be one server; or, it may be a server cluster including multiple servers. The logistics distribution site planning method may include the following steps.
步骤S10:接收物流配送站点规划参数。Step S10: Receive the planning parameters of the logistics distribution site.
在本实施例中,所述物流配送站点规划参数可以用于规划物流配送站点,所述物流配送站点能够将配送资源配送至一个或多个配送地址。所述配送资源可以为任意类型的资源,例如可以为商品、货物、或外卖等。所述配送地址可以为用户的收货地址,例如可以为XXX省XXX市(县)XXX镇XXX村等。所述物流配送站点规划参数可以包括地理区域标识。所述地理区域标识可以用于标识地理区域,例如可以为地理区域的名称、或编码等。所述地理区域的大小可以根据业务需要灵活设定,例如可以为街道、商圈、城市、国家、或多个国家组成的地区等。In this embodiment, the logistics distribution site planning parameters may be used to plan a logistics distribution site that is capable of distributing distribution resources to one or more distribution addresses. The distribution resource may be any type of resource, for example, it may be commodities, goods, or takeaway. The delivery address may be a delivery address of the user, and may be, for example, XXX village, XXX town, XXX city, XXX province, or the like. The logistics distribution site planning parameter may include a geographic area identifier. The geographic area identifier may be used to identify a geographic area, for example, it may be a name or a code of the geographic area. The size of the geographic area can be flexibly set according to business needs, for example, it can be a street, a business circle, a city, a country, or an area composed of multiple countries.
在本实施例的一个实施方式中,所述物流配送站点规划参数还可以包括物流配送站点的数量。所述物流配送站点的数量可以为任意大小,例如可以为10、15、或30等。In an implementation manner of this embodiment, the planning parameters of the logistics distribution site may further include the number of logistics distribution sites. The number of the logistics distribution sites can be any size, for example, it can be 10, 15, or 30.
在本实施例的一个实施方式中,为了防止规划出的物流配送站点覆盖的配送地址数量过大进而影响配送时效,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最大配送地址数量。所述物流配送站点覆盖的最大配送地址数量可以为任意大小,例如可以为100、102、或150等。In an implementation manner of this embodiment, in order to prevent the planned number of distribution addresses covered by the logistics distribution site from being too large and thereby affecting the timeliness of distribution, the planning parameters of the logistics distribution site may further include the maximum number of distribution addresses covered by the logistics distribution site. The maximum number of delivery addresses covered by the logistics distribution site can be any size, for example, it can be 100, 102, or 150.
在本实施例的一个实施方式中,为了防止规划出的物流配送站点覆盖的配送地址数量过小进而影响配送成本,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最小配送地址数量。所述物流配送站点覆盖的最小配送地址数量可以为任意大小,例如可以为10、12、或15等。In an implementation manner of this embodiment, in order to prevent the planned number of distribution addresses covered by the logistics distribution site from being too small, thereby affecting the distribution cost, the planning parameters of the logistics distribution site may further include the minimum number of distribution addresses covered by the logistics distribution site. The minimum number of delivery addresses covered by the logistics distribution site can be any size, for example, it can be 10, 12, or 15 and so on.
在本实施例的一个实施方式中,为了防止规划出的物流配送站点覆盖的配送距离过大进而影响配送成本,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最大配送距离。所述物流配送站点覆盖的最大配送距离可以为任意大小,例如可以为50公里、75公里、或80公里等。In an implementation manner of this embodiment, in order to prevent the planned distribution distance covered by the logistics distribution site from being too large and thereby affecting the distribution cost, the planning parameters of the logistics distribution site may further include a maximum distribution distance covered by the logistics distribution site. The maximum delivery distance covered by the logistics distribution site can be any size, for example, it can be 50 kilometers, 75 kilometers, or 80 kilometers.
在本实施例中,用户可以直接在所述服务器输入物流配送站点规划参数,所述服务器可以接收用户输入的物流配送站点规划参数。例如,所述服务器可以提供参数输入界面,用户可以在所述参数输入界面输入物流配送站点规划参数,所述服务器可以接收用 户输入的物流配送站点规划参数。或者,用户还可以在终端设备输入物流配送站点规划参数,所述终端设备可以接收并向服务器发送所述物流配送站点规划参数,所述服务器可以接收所述物流配送站点规划参数。所述终端设备可以为智能手机、平板电子设备、便携式计算机、个人数字助理(PDA)、服务器、工控机(工业控制计算机)、个人计算机(PC机)、或一体机等。In this embodiment, the user may directly input the logistics distribution site planning parameters on the server, and the server may receive the logistics distribution site planning parameters input by the user. For example, the server may provide a parameter input interface, and the user may input the logistics distribution site planning parameters on the parameter input interface, and the server may receive the logistics distribution site planning parameters input by the user. Alternatively, the user may also input the logistics distribution site planning parameters on a terminal device, the terminal device may receive and send the logistics distribution site planning parameters to a server, and the server may receive the logistics distribution site planning parameters. The terminal device may be a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), a server, an industrial control computer (industrial control computer), a personal computer (PC), or an all-in-one computer.
步骤S12:以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域。Step S12: Use the geographic location corresponding to the delivery address as a node to divide the nodes in the designated geographic area into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier.
在本实施例中,所述服务器可以以所述地理区域标识所标识的地理区域为指定地理区域;可以获取所述指定地理区域内的多个配送地址;以配送地址对应的地理位置为节点,可以将所述指定地理区域内的节点划分为多个类簇。每个类簇可以包括至少一个节点。具体地,所述服务器可以提供配送地址集合,所述配送地址集合可以包括多个配送地址。所述服务器可以从所述配送地址集合中,获取在所述指定地理区域内的多个配送地址。所述服务器可以将每个配送地址转换为经纬度数据;可以将转换的经纬度数据作为节点的经纬度数据。In this embodiment, the server may use the geographic area identified by the geographic area identifier as the designated geographic area; may obtain multiple delivery addresses within the designated geographic area; and use the geographic location corresponding to the delivery address as a node, The nodes within the specified geographic area may be divided into multiple clusters. Each cluster may include at least one node. Specifically, the server may provide a delivery address set, and the delivery address set may include multiple delivery addresses. The server may obtain a plurality of delivery addresses in the specified geographic area from the delivery address set. The server can convert each delivery address into latitude and longitude data; the converted latitude and longitude data can be used as the latitude and longitude data of the node.
在本实施例中,所述服务器可以使用预置算法,将所述指定地理区域内的节点划分为多个类簇。所述预置算法可以包括聚类算法。所述聚类算法可以包括K-Means聚类算法、DBSAN(Density-Based Spatial Clustering of Applications with Noise)聚类算法、层次聚类算法等。具体地,所述服务器可以确定聚类个数;可以使用所述预置算法,将所述指定地理区域内的节点划分为多个类簇。划分的类簇数量可以等于所述聚类个数。In this embodiment, the server may use a preset algorithm to divide the nodes in the specified geographic area into multiple clusters. The preset algorithm may include a clustering algorithm. The clustering algorithm may include a K-Means clustering algorithm, a DBSAN (Density-Based Spatial Clustering of Applications with Noise) clustering algorithm, a hierarchical clustering algorithm, and the like. Specifically, the server may determine the number of clusters; the preset algorithm may be used to divide the nodes in the specified geographic area into multiple clusters. The number of divided clusters may be equal to the number of clusters.
在本实施例的一个实施方式中,所述物流配送站点规划参数可以包括物流配送站点的数量。如此,所述服务器可以将所述物流配送站点规划参数中物流配送站点的数量作为聚类个数。In an implementation manner of this embodiment, the logistics distribution site planning parameters may include the number of logistics distribution sites. In this way, the server may use the number of logistics distribution sites in the logistics distribution site planning parameters as the number of clusters.
在本实施例的一个实施方式中,所述服务器可以基于所述指定地理区域内的节点数量来计算聚类个数。例如,所述服务器可以根据公式
Figure PCTCN2019090509-appb-000001
来计算聚类个数;K可以表示聚类个数;ALL可以表示所述指定地理区域内的节点数量;U可以表示物流配送站点覆盖的最大配送地址数量;L可以表示物流配送站点覆盖的最小配送地址数量;[]可以表示向上取整运算符。这里U的大小可以是开发人员在所述服务器预先设定的。或者,所述物流配送站点规划参数可以包括物流配送站点覆盖的最大配送地址数量。如此,所述服务器可以将所述物流配送站点规划参数中的最大配送地址数量赋予U。相类似地, 这里L的大小可以是开发人员在所述服务器预先设定的。或者,所述物流配送站点规划参数可以包括物流配送站点覆盖的最小配送地址数量。如此,所述服务器可以将所述物流配送站点规划参数中的最小配送地址数量赋予L。本领域技术人员应当能够理解,上述聚类个数计算公式仅为示例,在实际中还可以有其它公式或方法来计算聚类个数。
In an implementation manner of this embodiment, the server may calculate the number of clusters based on the number of nodes in the specified geographic area. For example, the server can be based on a formula
Figure PCTCN2019090509-appb-000001
To calculate the number of clusters; K can represent the number of clusters; ALL can represent the number of nodes in the specified geographic area; U can represent the maximum number of distribution addresses covered by the logistics distribution site; L can represent the minimum coverage of the logistics distribution site The number of shipping addresses; [] can represent the round-up operator. Here, the size of U may be preset by a developer on the server. Alternatively, the logistics distribution site planning parameters may include the maximum number of distribution addresses covered by the logistics distribution site. In this way, the server may assign U to the maximum number of delivery addresses in the logistics delivery site planning parameters. Similarly, the size of L here can be preset by the developer on the server. Alternatively, the logistics distribution site planning parameters may include a minimum number of distribution addresses covered by the logistics distribution site. In this way, the server may assign L to the minimum number of delivery addresses in the logistics delivery site planning parameters. Those skilled in the art should be able to understand that the above formula for calculating the number of clusters is merely an example. In practice, there may be other formulas or methods for calculating the number of clusters.
以下以K-Means聚类算法为例,详细介绍所述服务器将所述指定地理区域内的节点划分为多个类簇的过程。本领域技术人员应当能够理解,所述服务器还可以使用其它聚类算法将所述指定地理区域内的节点划分为多个类簇。此外,这里的K-Means聚类算法仅为示例,在实际中K-Means聚类算法还可以有其它的变形或变化。所述服务器将所述指定地理区域内的节点划分为多个类簇的过程,可以包括以下步骤。The following uses the K-Means clustering algorithm as an example to describe in detail the process in which the server divides the nodes in the specified geographic area into multiple clusters. Those skilled in the art should be able to understand that the server may also use other clustering algorithms to divide the nodes in the specified geographic area into multiple clusters. In addition, the K-Means clustering algorithm here is only an example. In practice, the K-Means clustering algorithm may have other deformations or changes. The process in which the server divides the nodes in the specified geographic area into multiple clusters may include the following steps.
步骤S120:确定K个聚类中心。Step S120: Determine K cluster centers.
所述K可以表示聚类个数,所述K个聚类中心可以对应K个类簇。具体地,所述服务器可以从所述指定地理区域内的节点中,任意选取K个节点作为K个聚类中心。本领域技术人员应当能够理解,在实际中所述服务器还可以采用其它方式来确定K个聚类中心。The K may represent the number of clusters, and the K cluster centers may correspond to K clusters. Specifically, the server may arbitrarily select K nodes from the nodes in the specified geographic area as K cluster centers. Those skilled in the art should be able to understand that, in practice, the server may also determine K cluster centers in other ways.
步骤S122:针对所述指定地理区域内的每个节点,计算该节点分别与所述K个聚类中心之间的地理距离;并将该节点划分至最小地理距离的聚类中心对应的类簇。Step S122: For each node in the specified geographic area, calculate the geographic distance between the node and the K cluster centers; and divide the node into the cluster corresponding to the cluster center with the smallest geographic distance. .
针对所述指定地理区域内的每个节点,所述服务器可以计算该节点分别与所述K个聚类中心之间的地理距离;可以选取最小地理距离对应的聚类中心;可以将该节点划分至选取的聚类中心对应的类簇。具体地,所述服务器可以根据公式D(x 1,y 1,x 2,y 2)=R*arccos(sin(x 1)*sin(x 2)+cos(x 1)*cos(x 2)*cos(y 1-y 2))来计算节点与聚类中心之间的地理距离;D可以表示地理距离;x 1可以表示节点的维度数据;y 1可以表示节点的经度数据;x 2可以表示聚类中心的维度数据;y 2可以表示聚类中心的经度数据;R可以表示地球半径。本领域技术人员应当能够理解,上述地理距离计算公式仅为示例,在实际中还可以有其它公式或方法来计算地理距离。例如,所述服务器还可以根据公式: For each node in the specified geographic area, the server can calculate the geographic distance between the node and the K cluster centers; it can select the cluster center corresponding to the smallest geographic distance; it can divide the node To the class cluster corresponding to the selected cluster center. Specifically, the server may be based on the formula D (x 1 , y 1 , x 2 , y 2 ) = R * arccos (sin (x 1 ) * sin (x 2 ) + cos (x 1 ) * cos (x 2 ) * cos (y 1 -y 2 )) to calculate the geographical distance between the node and the cluster center; D can represent the geographical distance; x 1 can represent the dimensional data of the node; y 1 can represent the longitude data of the node; x 2 Can represent the dimensional data of the cluster center; y 2 can represent the longitude data of the cluster center; R can represent the radius of the earth. Those skilled in the art should be able to understand that the above formula for calculating geographical distance is merely an example, and in practice, there may be other formulas or methods for calculating geographical distance. For example, the server may also be based on a formula:
D(x 1,y 1,x 2,y 2)=R*arccos(sin(x 1)*sin(x 2)+cos(x 1)*cos(x 2)*cos(y 1-y 2))+ D (x 1 , y 1 , x 2 , y 2 ) = R * arccos (sin (x 1 ) * sin (x 2 ) + cos (x 1 ) * cos (x 2 ) * cos (y 1 -y 2 )) +
R*arccos(sin(x 1)*sin(cw)+cos(x 1)*cos(cw)*cos(y 1-cj)) R * arccos (sin (x 1 ) * sin (cw) + cos (x 1 ) * cos (cw) * cos (y 1 -cj))
来计算节点与聚类中心之间的地理距离;cw可以表示整体中心的维度数据,cj可以表示整体中心的经度数据,这里所述整体中心可以理解为所述指定地理区域内各个节点的中心。cw例如可以为所述指定地理区域内各个节点维度数据的平均值;cj例如可以为所述指定地理区域内各个节点经度数据的平均值。To calculate the geographical distance between the node and the cluster center; cw can represent the dimensional data of the overall center, and cj can represent the longitude data of the overall center, where the overall center can be understood as the center of each node in the specified geographic area. For example, cw may be an average value of dimensional data of each node in the specified geographic area; cj may be an average value of longitude data of each node in the specified geographic area.
步骤S124:重新确定K个类簇的聚类中心。Step S124: Determine the clustering centers of the K clusters again.
针对所述K个类簇中的每个类簇,所述服务器可以基于该类簇中的节点重新确定该类簇的聚类中心。具体地,所述服务器可以计算该类簇中各个节点经度数据的平均值,作为该类簇的聚类中心的经度数据;可以计算该类簇中各个节点维度数据的平均值,作为该类簇的聚类中心的维度数据;可以基于计算的经度数据和维度数据,重新确定该类簇的聚类中心。本领域技术人员应当能够理解,在实际中所述服务器还可以采用其它方法来重新确定该类簇的聚类中心。For each of the K clusters, the server may re-determine the cluster center of the cluster based on the nodes in the cluster. Specifically, the server may calculate the average value of the longitude data of each node in the cluster as the longitude data of the cluster center of the cluster; and may calculate the average value of the dimensional data of each node in the cluster as the cluster. The dimensional data of the cluster center of the cluster can be re-determined based on the calculated longitude data and dimensional data. Those skilled in the art should be able to understand that, in practice, the server may also use other methods to re-determine the clustering center of the cluster.
步骤S126:判断是否满足迭代终止条件。若满足,则K-Means聚类算法终止;若不满足,则返回步骤S122。Step S126: Determine whether the iteration termination condition is satisfied. If it is satisfied, the K-Means clustering algorithm is terminated; if not, it returns to step S122.
所述迭代终止条件可以包括标准测度函数收敛。具体地,所述服务器可以计算标准测度函数;可以在所述标准测度函数收敛时,终止K-Means聚类算法。所述标准测度函数例如可以为
Figure PCTCN2019090509-appb-000002
ALL可以表示所述指定地理区域内的节点数量;K可以表示聚类个数;在第n个节点归属于第k个类簇时,r nk的大小可以为1;在第n个节点不归属于第k个类簇时,r nk的大小可以为0;u k可以表示第k个类簇的聚类中心。当然,在实际中所述迭代终止条件还可以包括其它形式。例如,所述迭代终止条件还可以包括所述K个类簇中各个类簇的聚类中心不再发生变化;或者,所述K个类簇中各个类簇的聚类中心的变化量小于或等于预设阈值。这里聚类中心的变化量可以理解为当前迭代过程的聚类中心与上一轮迭代过程的聚类中心之间的地理距离,所述预设阈值的大小可以根据实际需要灵活设定。
The iteration termination condition may include convergence of a standard measure function. Specifically, the server may calculate a standard measurement function; and may terminate the K-Means clustering algorithm when the standard measurement function converges. The standard measurement function may be, for example,
Figure PCTCN2019090509-appb-000002
ALL can indicate the number of nodes in the specified geographic area; K can indicate the number of clusters; when the nth node belongs to the kth class cluster, the size of r nk can be 1; the nth node does not belong For the k-th cluster, the size of r nk can be 0; u k can represent the cluster center of the k-th cluster. Of course, in practice, the iteration termination condition may also include other forms. For example, the iteration termination condition may further include that the cluster center of each cluster in the K clusters no longer changes; or that the change in the cluster center of each cluster in the K clusters is less than or Equal to a preset threshold. Here, the change amount of the cluster center can be understood as the geographic distance between the cluster center of the current iteration process and the cluster center of the previous iteration process, and the size of the preset threshold can be flexibly set according to actual needs.
步骤S16:基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。Step S16: Based on the divided clusters, plan a plurality of logistics distribution sites in the designated geographic area.
在本实施例中,针对划分的每个类簇,所述服务器可以将该类簇的聚类中心作为物流配送站点的地理位置,可以将该类簇中节点对应的配送地址作为该物流配送站点覆盖的配送地址。这样,所述服务器可以实现在所述指定地理区域内规划多个物流配送站点。In this embodiment, for each class cluster that is divided, the server may use the cluster center of the class cluster as the geographic location of the logistics distribution site, and may use the distribution address corresponding to the node in the class cluster as the logistics distribution site. Covered shipping address. In this way, the server can implement planning of multiple logistics distribution sites within the designated geographic area.
在本实施例的一个实施方式中,考虑到跨越地理障碍(例如山川、河流等)对配送资源进行配送是不方便的,为了避免规划的物流配送站点覆盖的配送地址跨越了地理障碍,所述服务器可以将所述指定地理区域内的多个配送地址划分为多个业务组,每个业务组可以包括多个配送地址。业务组内的配送地址通常不跨越地理障碍(例如位于地理障碍的一侧);业务组间的配送地址可以跨越地理障碍。如此,以配送地址对应的地理位置为节点,所述服务器可以将每个业务组内的节点划分为多个类簇。需要说明的是,在 本实施方式中,在根据公式:In an implementation manner of this embodiment, considering that it is inconvenient to distribute the distribution resources across geographic barriers (such as mountains, rivers, etc.), in order to avoid that the distribution address covered by the planned logistics distribution site crosses the geographic barrier, the The server may divide multiple delivery addresses in the specified geographic area into multiple business groups, and each business group may include multiple delivery addresses. Distribution addresses within a business group usually do not cross a geographic barrier (for example, on one side of the geographical barrier); distribution addresses between business groups can cross a geographic barrier. In this way, taking the geographical location corresponding to the delivery address as a node, the server can divide the nodes in each business group into multiple clusters. It should be noted that in this embodiment, according to the formula:
D(x 1,y 1,x 2,y 2)=R*arccos(sin(x 1)*sin(x 2)+cos(x 1)*cos(x 2)*cos(y 1-y 2))+ D (x 1 , y 1 , x 2 , y 2 ) = R * arccos (sin (x 1 ) * sin (x 2 ) + cos (x 1 ) * cos (x 2 ) * cos (y 1 -y 2 )) +
R*arccos(sin(x 1)*sin(cw)+cos(x 1)*cos(cw)*cos(y 1-cj)) R * arccos (sin (x 1 ) * sin (cw) + cos (x 1 ) * cos (cw) * cos (y 1 -cj))
来计算节点与聚类中心之间的地理距离时,所述整体中心可以理解为业务组内各个节点的中心。When calculating the geographical distance between a node and a cluster center, the overall center can be understood as the center of each node in the business group.
在本实施例的一个实施方式中,所述服务器可以为包括多个服务器的服务器集群。如此,将所述指定地理区域内的节点划分为多个类簇的过程可以在所述服务器集群上进行,从而可以实现分布式运算,提高了运算效率。In an implementation manner of this embodiment, the server may be a server cluster including multiple servers. In this way, the process of dividing the nodes in the specified geographic area into multiple clusters can be performed on the server cluster, so that distributed computing can be implemented, and computing efficiency is improved.
在本实施例的一个实施方式中,所述服务器可以以所述指定地理区域内的节点形成的集合为节点集合;可以从所述节点集合中识别出噪声点;可以将所述节点集合中除去所述噪声点以外的其它节点划分为多个类簇。In an implementation of this embodiment, the server may use a set formed by nodes in the specified geographic area as a node set; may identify noise points from the node set; and may remove the node set Nodes other than the noise point are divided into multiple clusters.
在本实施方式中,考虑到针对某一个节点,若与该节点之间的地理距离小于某一预设距离的节点数量小于某一预设值,便可以认为该节点为孤立点。孤立点作为一种噪声点,其存在会影响到物流配送站点的规划。如此,针对所述节点集合中的每个节点,所述服务器可以从所述节点集合中选取与该节点之间的地理距离小于或等于第一预设值的节点;在选取节点的数量小于或等于预设数量时,可以将该节点识别为噪声点。这里所述第一预设值和所述预设数量的大小可以根据实际需要灵活设定。In this embodiment, considering that for a certain node, if the geographical distance between the node and the node is less than a preset distance, the number of nodes is less than a preset value, the node can be considered as an isolated point. As a kind of noise point, the existence of outliers will affect the planning of logistics distribution sites. In this way, for each node in the node set, the server may select a node from the node set whose geographic distance to the node is less than or equal to a first preset value; the number of selected nodes is less than or When equal to the preset number, the node can be identified as a noise point. The size of the first preset value and the preset number may be flexibly set according to actual needs.
或者,在本实施方式中,所述指定地理区域可以包括多个子地理区域。例如,所述指定地理区域可以为中国杭州市,所述多个子地理区域可以包括西湖区、滨江区、萧山区、下城区、江干区等。在将配送地址转换为经纬度数据的过程中,有可能会出现错误。错误经纬度数据对应的节点作为一种噪声点,其存在会影响到物流配送站点的规划。如此,针对所述节点集合内的每个节点,所述服务器可以从所述节点集合中选取与该节点之间的地理距离小于或等于第二预设值的节点;可以以选取的节点形成的集合为第一子节点集合;可以选取在所述第一子节点集合中对应节点数量最多的子地理区域;在选取的子地理区域与该节点归属的子地理区域不同时,可以将该节点识别为噪声点。这里所述第二预设值的大小可以根据实际需要灵活设定。Alternatively, in this embodiment, the designated geographic area may include multiple sub-geographical areas. For example, the designated geographic area may be Hangzhou, China, and the multiple sub-geographical areas may include West Lake District, Binjiang District, Xiaoshan District, Xiacheng District, Jianggan District, and the like. During the process of converting the shipping address to latitude and longitude data, errors may occur. The node corresponding to the wrong latitude and longitude data is a kind of noise point, and its existence will affect the planning of the logistics distribution site. In this way, for each node in the node set, the server may select a node with a geographic distance from the node set that is less than or equal to a second preset value from the node set; The set is the first sub-node set; the sub-geographic area with the largest number of corresponding nodes in the first sub-node set can be selected; when the selected sub-geographic area is different from the sub-geographic area to which the node belongs, the node can be identified Is the noise point. The size of the second preset value described herein can be flexibly set according to actual needs.
在本实施例的一个实施方式中,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最大配送地址数量。如此,在将所述指定地理区域内的节点划分为多个类簇的过程中,所述服务器可以对每个类簇中节点的数量进行限定,使得划分的类簇中节点的数量小于或等于所述物流配送站点规划参数中的最大配送地址数量。以K-Means聚类算 法为例,在步骤S122中,针对所述指定地理区域内的每个节点,所述服务器可以计算该节点分别与所述K个聚类中心之间的地理距离;可以选取最小地理距离对应的聚类中心(以下称为第一聚类中心)。在所述第一聚类中心所对应类簇中节点的数量小于或等于所述物流配送站点规划参数中的最大配送地址数量时,所述服务器可以将该节点划分至所述第一聚类中心对应的类簇。在所述第一聚类中心所对应类簇中节点的数量大于所述物流配送站点规划参数中的最大配送地址数量时,所述服务器可以将该节点划分至其它类簇。例如,所述服务器可以从除去所述第一聚类中心以外的其它聚类中心中,选取最小地理距离对应的聚类中心(以下称为第二聚类中心),在所述第二聚类中心所对应类簇中节点的数量小于或等于所述物流配送站点规划参数中的最大配送地址数量时,可以将该节点划分至所述第二聚类中心对应的类簇。当然,在所述第二聚类中心所对应类簇中节点的数量大于所述物流配送站点规划参数中的最大配送地址数量时,所述服务器可以继续从除去所述第一聚类中心和所述第二聚类中心以外的其它聚类中心中,选取最小地理距离对应的聚类中心。In an implementation manner of this embodiment, the planning parameters of the logistics distribution site may further include a maximum number of distribution addresses covered by the logistics distribution site. In this way, in the process of dividing the nodes in the specified geographic area into multiple clusters, the server may limit the number of nodes in each cluster so that the number of nodes in the divided clusters is less than or equal to The maximum number of delivery addresses in the logistics delivery site planning parameters. Taking the K-Means clustering algorithm as an example, in step S122, for each node in the specified geographic area, the server may calculate the geographical distance between the node and the K cluster centers; A clustering center (hereinafter referred to as a first clustering center) corresponding to the smallest geographical distance is selected. When the number of nodes in the cluster corresponding to the first cluster center is less than or equal to the maximum number of distribution addresses in the planning parameters of the logistics distribution site, the server may divide the node into the first cluster center Corresponding class cluster. When the number of nodes in the cluster corresponding to the first cluster center is greater than the maximum number of delivery addresses in the logistics distribution site planning parameter, the server may divide the node into other clusters. For example, the server may select a cluster center (hereinafter referred to as a second cluster center) corresponding to the smallest geographic distance from other cluster centers except the first cluster center, and When the number of nodes in the cluster corresponding to the center is less than or equal to the maximum number of delivery addresses in the planning parameters of the logistics distribution site, the node may be divided into the cluster corresponding to the second cluster center. Of course, when the number of nodes in the cluster corresponding to the second cluster center is greater than the maximum number of delivery addresses in the logistics distribution site planning parameter, the server may continue to remove the first cluster center and the Among other cluster centers other than the second cluster center, a cluster center corresponding to the smallest geographical distance is selected.
进一步地,在本实施方式中,在将所述指定地理区域内的节点划分为多个类簇的过程中,一些类簇中节点的数量可能会优先达到所述物流配送站点规划参数中的最大配送地址数量,进而使得一些节点无法被划分至合适的类簇。如此,在将所述指定地理区域内的节点划分为多个类簇的过程中,所述服务器可以根据公式:Further, in this embodiment, in the process of dividing the nodes in the specified geographic area into multiple clusters, the number of nodes in some clusters may preferentially reach the maximum of the logistics distribution site planning parameters. The number of delivery addresses makes it impossible for some nodes to be divided into appropriate clusters. In this way, in the process of dividing the nodes in the specified geographic area into multiple clusters, the server may according to the formula:
D(x 1,y 1,x 2,y 2)=R*arccos(sin(x 1)*sin(x 2)+cos(x 1)*cos(x 2)*cos(y 1-y 2))+ D (x 1 , y 1 , x 2 , y 2 ) = R * arccos (sin (x 1 ) * sin (x 2 ) + cos (x 1 ) * cos (x 2 ) * cos (y 1 -y 2 )) +
R*arccos(sin(x 1)*sin(cw)+cos(x 1)*cos(cw)*cos(y 1-cj)) R * arccos (sin (x 1 ) * sin (cw) + cos (x 1 ) * cos (cw) * cos (y 1 -cj))
来计算节点与聚类中心之间的地理距离。这样,与整体中心之间的地理距离小的节点能够优先被划分至合适的类簇,从而使得类簇的划分在整体上较为合理。To calculate the geographical distance between the node and the cluster center. In this way, nodes with a small geographic distance from the overall center can be preferentially divided into appropriate clusters, thereby making the division of clusters more reasonable overall.
在本实施例的一个实施方式中,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最小配送地址数量。步骤S12划分的类簇中有可能存在节点数量小于所述物流配送站点规划参数中的最小配送地址数量的类簇,在后续过程中若针对该类簇规划物流配送站点会影响配送成本。如此,所述服务器可以从划分的类簇中,选取包含节点数量小于或等于所述物流配送站点规划参数中的最小配送地址数量的类簇,作为第一目标类簇;可以将所述第一目标类簇中的节点划分至除去所述第一目标类簇以外的其它类簇。In an implementation manner of this embodiment, the planning parameters of the logistics distribution site may further include a minimum number of distribution addresses covered by the logistics distribution site. In the class cluster divided in step S12, there may be a class cluster whose number of nodes is less than the minimum number of delivery addresses in the planning parameters of the logistics distribution site. In the subsequent process, if a logistics distribution site is planned for this cluster, the distribution cost will be affected. In this way, the server may select a class cluster containing the number of nodes less than or equal to the minimum number of delivery addresses in the planning parameters of the logistics distribution site from the classified class clusters as the first target class cluster; The nodes in the target cluster are divided into clusters other than the first target cluster.
在本实施方式中,所述服务器可以使用分类算法,将所述第一目标类簇中的节点划分至除去所述第一目标类簇以外的其它类簇。所述分类算法可以包括邻近分类算法(K-NearestNeighbor,KNN)、支持向量机分类算法(Support Vector Machine,SVM)、 卷积神经网络分类算法(Convolutional Neural Networks,CNN)等。以下以邻近分类算法为例,详细介绍所述服务器将所述第一目标类簇中的节点划分至除去所述目标类簇以外的其它类簇的过程。本领域技术人员应当能够理解,所述服务器还可以使用其它分类算法将所述第一目标类簇中的节点划分至除去所述第一目标类簇以外的其它类簇。此外,这里的邻近分类算法仅为示例,在实际中邻近分类算法还可以有其它的变形或变化。具体地,针对所述第一目标类簇中的每个节点,所述服务器可以计算该节点与除去所述第一目标类簇以外其它各个类簇中各个节点之间的地理距离;可以选取地理距离小于或等于第三预设值的节点;可以以选取的节点形成的集合为第二子节点集合;可以选取除去所述第一目标类簇以外,在所述第二子节点集合中对应节点数量最多的类簇;可以将该节点划分至选取的类簇。In this embodiment, the server may use a classification algorithm to divide the nodes in the first target class cluster into clusters other than the first target class cluster. The classification algorithm may include a neighbor classification algorithm (K-NearestNeighbor, KNN), a support vector machine classification algorithm (Support Vector Machine, SVM), a convolutional neural network classification algorithm (Convolutional Neural Networks, CNN), and the like. The following uses a proximity classification algorithm as an example to describe in detail the process in which the server divides the nodes in the first target cluster into clusters other than the target cluster. Those skilled in the art should be able to understand that the server may also use other classification algorithms to divide the nodes in the first target class cluster into clusters other than the first target class cluster. In addition, the proximity classification algorithm here is only an example. In practice, the proximity classification algorithm may have other deformations or changes. Specifically, for each node in the first target cluster, the server may calculate a geographic distance between the node and each node in each cluster other than the first target cluster; the geographic Nodes whose distance is less than or equal to the third preset value; the set formed by the selected nodes may be used as the second sub-node set; corresponding nodes in the second sub-node set may be selected except the first target class cluster The largest number of clusters; this node can be divided into the selected clusters.
进一步地,在本实施方式中,所述服务器可以为包括多个服务器的服务器集群。所述服务器集群可以包括管理服务器和多个工作服务器。为了实现分布式运算以提高运算效率,所述管理服务器可以将除去所述第一目标类簇以外其它类簇中的节点切分为多个第一数据单元,每个第一数据单元可以包括至少一个节点,切分的第一数据单元的数量可以与所述服务器集群中工作服务器的数量相同。所述管理服务器可以分别向每个工作服务器分发一个第一数据单元、以及所述第一目标类簇。每个工作服务器可以计算所述第一目标类簇中的每个节点、与位于自身的第一数据单元中各个节点之间的地理距离。Further, in this embodiment, the server may be a server cluster including multiple servers. The server cluster may include a management server and a plurality of working servers. In order to implement distributed computing to improve computing efficiency, the management server may divide nodes in clusters other than the first target cluster into multiple first data units, and each first data unit may include at least For one node, the number of segmented first data units may be the same as the number of working servers in the server cluster. The management server may distribute a first data unit and the first target class cluster to each working server, respectively. Each working server can calculate the geographical distance between each node in the first target class cluster and each node in its first data unit.
每个工作服务器可以将所述第一目标类簇中的节点切分为多个第二数据单元,每个第二数据单元可以包括至少一个节点、且可以对应有数据单元标识。所述管理服务器可以将每个数据单元标识对应在各个工作服务器上的第二数据单元进行汇总,得到与该数据单元标识相对应的新的第二数据单元。针对每个新的第二数据单元中的每个节点,所述管理服务器可以选取与该节点之间的地理距离最小的预设数量个节点;可以以选取的节点构成的集合为第二子节点集合;可以选取除去所述第一目标类簇以外,在所述第二子节点集合中对应节点数量最多的类簇;可以将该节点划分至选取的类簇。Each working server may divide a node in the first target class cluster into a plurality of second data units, and each second data unit may include at least one node and may correspond to a data unit identifier. The management server may summarize the second data units corresponding to each data unit identifier on each work server to obtain a new second data unit corresponding to the data unit identifier. For each node in each new second data unit, the management server may select a preset number of nodes with the smallest geographic distance from the node; the set consisting of the selected nodes may be used as the second child node Set; the class cluster with the largest number of corresponding nodes in the second sub-node set except the first target class cluster may be selected; the node may be divided into the selected class cluster.
在本实施例的一个实施方式中,所述物流配送站点规划参数还可以包括物流配送站点覆盖的最大配送距离。步骤S12划分的类簇中有可能存在半径距离大于所述物流配送站点规划参数中的最大配送距离的类簇,在后续过程中若针对该类簇规划物流配送站点会影响配送成本。如此,所述服务器可以确定划分的每个类簇的半径;可以选取半径大于或等于所述物流配送站点规划参数中的最大配送距离的类簇;可以基于除去选取类簇以外的其它类簇,在所述指定地理区域内规划多个物流配送站点。具体地,针对划分的每 个类簇,所述服务器可以计算该类簇中每个节点与该类簇的聚类中心之间的地理距离;可以将最大地理距离作为该类簇的半径。In an implementation manner of this embodiment, the planning parameters of the logistics distribution site may further include a maximum distribution distance covered by the logistics distribution site. There may be a cluster with a radius greater than the maximum distribution distance in the planning parameters of the logistics distribution site among the clusters divided in step S12. If a logistics distribution site is planned for this cluster in the subsequent process, the distribution cost will be affected. In this way, the server can determine the radius of each class cluster that is divided; it can select a class cluster with a radius greater than or equal to the maximum distribution distance in the planning parameters of the logistics distribution site; it can be based on other class clusters other than the selected class cluster, A plurality of logistics and distribution sites are planned in the designated geographic area. Specifically, for each class cluster that is divided, the server may calculate the geographic distance between each node in the class cluster and the cluster center of the class cluster; the maximum geographic distance may be used as the radius of the class cluster.
在本实施例的一个实施方式中,一些节点有可能无法被划分至合适的类簇,便可以认为该节点为离群点。离群点的存在会影响到物流配送站点的规划。例如,步骤S12划分的类簇可以包括类簇A、B。类簇A中的某一节点与类簇A的聚类中心之间地理距离,大于与类簇B的聚类中心之间的地理距离。那么,便可以认为该节点为离群点。如此,所述服务器可以以所述指定地理区域内的节点形成的集合为节点集合;可以从所述节点集合中识别出至少一个离群点;针对识别出的每个离群点,可以将该离群点划分至除去该离群点所归属类簇以外的其它类簇。具体地,针对所述节点集合中的每个节点,所述服务器可以以该节点归属的类簇为第二目标类簇;在该节点与所述第二目标类簇的聚类中心之间的地理距离,大于与除去所述第二目标类簇以外任一其它类簇的聚类中心之间的地理距离时,可以将该节点识别为离群点。需要说明的是,这里将离群点划分至除去该离群点所归属类簇以外的其它类簇的过程,可以参照前述实施方式中的分类算法,在此不再赘述。In an implementation manner of this embodiment, some nodes may not be classified into appropriate clusters, and the nodes may be considered as outliers. The existence of outliers will affect the planning of logistics distribution sites. For example, the clusters divided in step S12 may include clusters A, B. The geographical distance between a node in class cluster A and the cluster center of class cluster A is greater than the geographic distance between the cluster center of class cluster A and the cluster center of class cluster B. Then, the node can be considered as an outlier. In this way, the server may use a set formed by nodes in the specified geographic area as a node set; may identify at least one outlier from the set of nodes; and for each identified outlier, may The outlier is divided into clusters other than the cluster to which the outlier belongs. Specifically, for each node in the node set, the server may use a class cluster to which the node belongs as a second target class cluster; between the node and the cluster center of the second target class cluster When the geographic distance is greater than the geographic distance from the cluster center of any cluster other than the second target cluster, the node may be identified as an outlier. It should be noted that the process of dividing an outlier into clusters other than the cluster to which the outlier belongs can refer to the classification algorithm in the foregoing embodiment, and details are not described herein again.
请一并参阅图1、图4、图5和图6。以下介绍本说明书实施例的一个场景示例。本场景示例的主体可以包括终端设备和服务器。Please refer to FIGS. 1, 4, 5 and 6 together. An example of a scenario in the embodiment of the present specification is described below. The main body of this scenario example may include a terminal device and a server.
在本场景示例中,所述终端设备可以提供参数输入界面。用户可以在所述参数输入界面输入物流配送站点规划参数。所述物流配送站点规划参数可以包括地理区域标识、物流配送站点覆盖的最大配送地址数量、物流配送站点覆盖的最小配送地址数量、以及物流配送站点覆盖的最大配送距离。所述终端设备可以接收并向服务器发送所述物流配送站点规划参数,所述服务器可以接收所述物流配送站点规划参数。In this scenario example, the terminal device may provide a parameter input interface. The user can input the logistics distribution site planning parameters on the parameter input interface. The logistics distribution site planning parameters may include geographic area identification, the maximum number of distribution addresses covered by the logistics distribution site, the minimum number of distribution addresses covered by the logistics distribution site, and the maximum distribution distance covered by the logistics distribution site. The terminal device may receive and send the logistics distribution site planning parameters to a server, and the server may receive the logistics distribution site planning parameters.
在本场景示例中,所述服务器可以以所述地理区域标识所标识的地理区域为指定地理区域;可以获取所述指定地理区域内的多个配送地址;可以以配送地址对应的地理位置为节点;可以以所述指定地理区域内的节点形成的集合为节点集合;可以从所述节点集合中识别出噪声点;可以将所述节点集合中除去所述噪声点以外的其它节点划分为多个类簇。划分的类簇中节点的数量小于或等于所述物流配送站点规划参数中的最大配送地址数量。In this scenario example, the server may use the geographic area identified by the geographic area identifier as the designated geographic area; may obtain multiple delivery addresses within the designated geographic area; and may use the geographic location corresponding to the delivery address as a node ; A set formed by nodes in the specified geographic area may be a node set; a noise point may be identified from the node set; and other nodes except the noise point in the node set may be divided into a plurality of nodes Class cluster. The number of nodes in the divided cluster is less than or equal to the maximum number of delivery addresses in the planning parameters of the logistics distribution site.
在本场景示例中,所述服务器可以从划分的类簇中,选取包含节点数量小于或等于所述物流配送站点规划参数中的最小配送地址数量的类簇,作为目标类簇;可以将所述目标类簇中的节点划分至除去所述目标类簇以外的其它类簇。此外,所述服务器还可以 从所述节点集合中识别出至少一个离群点;针对识别出的每个离群点,可以将该离群点划分至除去该离群点所归属类簇以外的其它类簇。In the example of this scenario, the server may select a class cluster containing the number of nodes less than or equal to the minimum number of delivery addresses in the planning parameters of the logistics distribution site from the divided class clusters as the target class cluster; The nodes in the target cluster are divided into clusters other than the target cluster. In addition, the server may also identify at least one outlier from the set of nodes; for each identified outlier, the outlier may be divided into groups other than the cluster to which the outlier belongs. Other clusters.
在本场景示例中,所述服务器可以确定划分的每个类簇的半径;可以选取半径大于或等于所述物流配送站点规划参数中的最大配送距离的类簇;可以基于除去选取的类簇以外的其它类簇,在所述指定地理区域内规划多个物流配送站点。In the example of this scenario, the server may determine the radius of each class cluster that is divided; it may select a class cluster with a radius greater than or equal to the maximum distribution distance in the planning parameters of the logistics distribution site; it may be based on removing the selected class clusters Other types of clusters, planning multiple logistics distribution sites within the specified geographic area.
在本实施例中,所述服务器可以接收物流配送站点规划参数,所述物流配送站点规划参数可以包括地理区域标识;可以以配送地址对应的地理位置为节点,可以将指定地理区域内的节点划分为多个类簇,所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,可以在所述指定地理区域内规划多个物流配送站点。本实施例的物流配送站点规划方法,避免了人工经验的影响,使得规划出的物流配送站点在所述指定地理区域内的分布较为合理,从而降低了配送成本,提高了配送时效。In this embodiment, the server may receive logistics distribution site planning parameters, and the logistics distribution site planning parameters may include geographic area identifiers; the geographic location corresponding to the distribution address may be used as a node, and the nodes within the designated geographic area may be divided It is a plurality of clusters, and the designated geographic area is the geographic area identified by the geographic area identifier. Based on the divided clusters, multiple logistics distribution sites can be planned in the designated geographic area. The method for planning a logistics distribution site in this embodiment avoids the influence of human experience, so that the planned distribution of the logistics distribution sites in the specified geographic area is more reasonable, thereby reducing distribution costs and improving timeliness of distribution.
请参阅图7。本说明书实施例还提供一种服务器。所述服务器可以包括以下单元。See Figure 7. The embodiment of the present specification also provides a server. The server may include the following units.
接收单元70,用于接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;The receiving unit 70 is configured to receive logistics distribution site planning parameters, where the logistics distribution site planning parameters include a geographic area identifier;
划分单元72,用于以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;A dividing unit 72, configured to divide the nodes in a specified geographical area into multiple clusters by using the geographical location corresponding to the delivery address as a node; the specified geographical area is a geographical area identified by the geographical area identifier;
规划单元74,用于基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。The planning unit 74 is configured to plan a plurality of logistics distribution sites in the specified geographic area based on the divided clusters.
请参阅图8。本说明书实施例还提供一种服务器。所述服务器可以包括存储器和处理器。See Figure 8. The embodiment of the present specification also provides a server. The server may include a memory and a processor.
在本实施例中,在本实施例中,所述存储器包括但不限于动态随机存取存储器(Dynamic Random Access Memory,DRAM)和静态随机存取存储器(Static Random Access Memory,SRAM)等。所述存储器可以用于存储计算机指令。In this embodiment, in this embodiment, the memory includes, but is not limited to, dynamic random access memory (Dynamic Random Access Memory, DRAM), static random access memory (Static Random Access Memory, SRAM), and the like. The memory may be used to store computer instructions.
在本实施例中,所述处理器可以按任何适当的方式实现。例如,所述处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。所述处理器可以用于执行所述计算机指令实现以下步骤:接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take, for example, a microprocessor or processor and a computer-readable medium, logic gate, switch, dedicated integration storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor. Circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller form, etc. The processor may be configured to execute the computer instructions to implement the following steps: receiving logistics distribution site planning parameters; the logistics distribution site planning parameters including a geographic area identifier; and using a geographic location corresponding to a distribution address as a node, the designated geographic area will be designated The nodes are divided into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier; and based on the divided clusters, multiple logistics distribution sites are planned in the designated geographic area.
需要说明的是,本申请说明书中各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于服务器实施例而言,由于其基本相似于物流配送站点规划方法实施例,所以描述的比较简单,相关之处参见物流配送站点规划方法实施例的部分说明即可。It should be noted that each embodiment in the description of this application is described in a progressive manner, and the same and similar parts between the various embodiments may refer to each other. Each embodiment focuses on the differences from other embodiments. Office. In particular, for the server embodiment, since it is basically similar to the embodiment of the logistics and distribution site planning method, the description is relatively simple. For the related parts, refer to the description of the embodiment of the method of logistics and distribution site planning.
另外,本领域技术人员应当能够理解的是,所属领域技术人员在阅读完本申请说明书之后,可以无需创造性劳动想到本申请文件中列举的部分或全部实施方式之间可以组合,这些组合也在本申请公开和保护的范围内。In addition, those skilled in the art should be able to understand that after reading the specification of this application, those skilled in the art may combine some or all of the embodiments listed in this application without creative labor, and these combinations are also described in this application. Within the scope of application disclosure and protection.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(FieldProgrammable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片2。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog2。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, for a technical improvement, it can be clearly distinguished whether it is an improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, switches, etc.) or an improvement in software (for the improvement of method flow). However, with the development of technology, the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware entity modules. For example, a programmable logic device (Programmable Logic Device (PLD)) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. It is programmed by the designer to "integrate" a digital system on a PLD, without having to ask a chip manufacturer to design and make a dedicated integrated circuit chip 2. Moreover, nowadays, instead of making integrated circuit chips by hand, this programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not only one, but there are many types, such as ABEL (Advanced Boolean ExpressionLanguage) , AHDL (Altera, Hardware, Description, Language), Confluence, CUPL (Cornell, University Programming, Language), HDCal, JHDL (Java, Hardware, Description, Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby, Hardware, Description), etc. It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art should also be clear that as long as the method flow is slightly logically programmed and integrated into the integrated circuit using the above-mentioned several hardware description languages, a hardware circuit that implements the logic method flow can be easily obtained.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这 些设备中的任何设备的组合。The system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书各个实施例或者实施例的某些部分所述的方法。It can be known from the description of the foregoing embodiments that those skilled in the art can clearly understand that this specification can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solution of this specification, in essence, or the part that contributes to the existing technology, can be embodied in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, magnetic disk , Optical discs, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or portions of embodiments of this specification.
本说明书可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。This manual can be used in many general-purpose or special-purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including Distributed computing environment for any of the above systems or devices, etc.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
虽然通过实施例描绘了本说明书,本领域普通技术人员知道,本说明书有许多变形和变化而不脱离本说明书的精神,希望所附的权利要求包括这些变形和变化而不脱离本说明书的精神。Although the specification is described through the embodiments, those skilled in the art know that there are many variations and changes in the specification without departing from the spirit of the specification, and it is expected that the appended claims include these modifications and changes without departing from the spirit of the specification.

Claims (18)

  1. 一种物流配送站点规划方法,包括:A logistics distribution site planning method includes:
    接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;Receiving planning parameters of the logistics distribution site; the planning parameters of the logistics distribution site include a geographic area identifier;
    以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;Use the geographic location corresponding to the delivery address as a node to divide the nodes in the designated geographic area into multiple clusters; the designated geographic area is the geographic area identified by the geographic area identifier;
    基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。Based on the divided clusters, a plurality of logistics distribution sites are planned in the designated geographic area.
  2. 如权利要求1所述的方法,所述指定地理区域内的配送地址归属于多个业务组;相应地,所述将指定地理区域内的节点划分为多个类簇,包括:The method according to claim 1, wherein the distribution addresses in the designated geographic area belong to multiple business groups; correspondingly, the dividing the nodes in the designated geographic area into multiple clusters includes:
    将每个业务组内的节点划分为多个类簇。The nodes in each business group are divided into multiple clusters.
  3. 如权利要求1所述的方法,所述将指定地理区域内的节点划分为多个类簇,包括:The method according to claim 1, wherein the dividing the nodes in a specified geographic area into a plurality of clusters comprises:
    以指定地理区域内的节点形成的集合为节点集合,从所述节点集合中识别出噪声点;Use a set formed by nodes in a specified geographic area as a set of nodes to identify noise points from the set of nodes;
    将所述节点集合中除去所述噪声点以外的其它节点划分为多个类簇。The nodes other than the noise point in the node set are divided into multiple class clusters.
  4. 如权利要求3所述的方法,所述从所述节点集合中识别出噪声点,包括:The method according to claim 3, wherein identifying a noise point from the node set comprises:
    针对所述节点集合中的每个节点,从所述节点集合中选取与该节点之间的地理距离小于或等于第一预设值的节点;在选取节点的数量小于或等于预设数量时,将该节点识别为噪声点。For each node in the node set, select a node from the node set whose geographic distance to the node is less than or equal to a first preset value; when the number of selected nodes is less than or equal to a preset number, This node is identified as a noise point.
  5. 如权利要求3所述的方法,所述指定地理区域包括多个子地理区域;相应地,所述从所述节点集合中识别出噪声点,包括:The method according to claim 3, wherein the designated geographic area comprises a plurality of sub-geographical areas; and correspondingly, identifying the noise point from the set of nodes comprises:
    针对所述节点集合中的每个节点,从所述节点集合中选取与该节点之间的地理距离小于或等于第二预设值的节点;以选取的节点形成的集合为第一子节点集合,选取在所述第一子节点集合中对应节点数量最多的子地理区域;在选取的子地理区域与该节点归属的子地理区域不同时,将该节点识别为噪声点。For each node in the node set, select a node with a geographic distance from the node set that is less than or equal to a second preset value from the node set; use the set formed by the selected nodes as the first child node set , Selecting the sub-geographic area with the largest number of corresponding nodes in the first sub-node set; identifying the node as a noise point when the selected sub-geographic area is different from the sub-geographic area to which the node belongs.
  6. 如权利要求1所述的方法,所述将指定地理区域内的节点划分为多个类簇,包括:The method according to claim 1, wherein the dividing the nodes in a specified geographic area into a plurality of clusters comprises:
    使用预置算法,将指定地理区域内的节点划分为多个类簇;所述预置算法包括聚类算法。A preset algorithm is used to divide the nodes in a specified geographic area into multiple clusters; the preset algorithm includes a clustering algorithm.
  7. 如权利要求1所述的方法,所述物流配送站点规划参数还包括以下至少一种:The method according to claim 1, wherein the logistics distribution site planning parameters further include at least one of the following:
    物流配送站点的数量;The number of logistics distribution sites;
    物流配送站点覆盖的最大配送地址数量;The maximum number of distribution addresses covered by the logistics distribution site;
    物流配送站点覆盖的最小配送地址数量;The minimum number of distribution addresses covered by the logistics distribution site;
    物流配送站点覆盖的最大配送距离。The maximum delivery distance covered by the logistics distribution site.
  8. 如权利要求7所述的方法,在将指定地理区域内的节点划分为多个类簇的步骤中,划分的类簇的数量等于所述物流配送站点规划参数中物流配送站点的数量。The method according to claim 7, wherein in the step of dividing the nodes in the specified geographic area into a plurality of clusters, the number of clusters divided is equal to the number of logistics distribution sites in the logistics distribution site planning parameter.
  9. 如权利要求7所述的方法,在将指定地理区域内的节点划分为多个类簇的步骤中,划分的类簇中节点的数量小于或等于所述物流配送站点规划参数中的最大配送地址数量。The method according to claim 7, in the step of dividing the nodes in the specified geographic area into a plurality of clusters, the number of nodes in the divided clusters is less than or equal to a maximum distribution address in the planning parameters of the logistics distribution site Quantity.
  10. 如权利要求7所述的方法,在将指定地理区域内的节点划分为多个类簇以后,所述方法还包括:The method according to claim 7, after dividing the nodes in the specified geographic area into a plurality of clusters, the method further comprises:
    选取包含节点数量小于或等于所述物流配送站点规划参数中最小配送地址数量的类簇,作为第一目标类簇;将所述第一目标类簇中的节点划分至除去所述第一目标类簇以外的其它类簇。Selecting a class cluster including the number of nodes less than or equal to the minimum number of delivery addresses in the logistics distribution site planning parameters as the first target class cluster; dividing the nodes in the first target class cluster to remove the first target class Clusters other than clusters.
  11. 如权利要求10所述的方法,所述将所述第一目标类簇中的节点划分至除去所述第一目标类簇以外的其它类簇,包括:The method according to claim 10, wherein the dividing the nodes in the first target class cluster into clusters other than the first target class cluster comprises:
    针对所述第一目标类簇中的每个节点,计算该节点与除去所述第一目标类簇以外其它各个类簇中各个节点之间的地理距离;选取地理距离小于或等于第三预设值的节点;以选取的节点形成的集合为第二子节点集合,选取除去所述第一目标类簇以外在所述第二子节点集合中对应节点数量最多的类簇;将该节点划分至选取的类簇。For each node in the first target cluster, calculate a geographic distance between the node and each node in each cluster except the first target cluster; select a geographic distance that is less than or equal to a third preset Value nodes; using the set formed by the selected nodes as the second child node set, selecting the class cluster with the largest number of corresponding nodes in the second child node set except the first target class cluster; dividing the node to The selected cluster.
  12. 如权利要求1所述的方法,在将指定地理区域内的节点划分为多个类簇以后,所述方法还包括:The method according to claim 1, after dividing the nodes in the specified geographic area into a plurality of clusters, the method further comprises:
    以指定地理区域内的节点形成的集合为节点集合,从所述节点集合中识别出离群点;Using a set formed by nodes in a specified geographic area as a node set, and identifying outliers from the node set;
    针对识别出的离群点,将该离群点划分至除去该离群点所归属类簇以外的其它类簇。For the identified outlier, the outlier is divided into clusters other than the cluster to which the outlier belongs.
  13. 如权利要求12所述的方法,所述从所述节点集合中识别出离群点,包括:The method according to claim 12, wherein the identifying outliers from the set of nodes comprises:
    针对所述节点集合中的每个节点,以该节点归属的类簇为第二目标类簇;在该节点与所述第二目标类簇的聚类中心之间的地理距离,大于与除去所述第二目标类簇以外任一其它类簇的聚类中心之间的地理距离时,将该节点识别为离群点。For each node in the node set, the class cluster to which the node belongs is the second target class cluster; the geographical distance between the node and the cluster center of the second target class cluster is greater than and removed from When the geographic distance between the cluster centers of any other clusters other than the second target cluster is described, the node is identified as an outlier.
  14. 如权利要求7所述的方法,所述在所述指定地理区域内规划多个物流配送站点,包括:The method according to claim 7, wherein said planning a plurality of logistics distribution sites within said designated geographic area comprises:
    确定每个类簇的半径;Determine the radius of each cluster
    选取半径大于或等于所述物流配送站点规划参数中的最大配送距离的类簇;Selecting a cluster with a radius greater than or equal to the maximum distribution distance in the planning parameters of the logistics distribution site;
    基于除去选取类簇以外的其它类簇,在所述指定地理区域内规划多个物流配送站点。Based on the clusters other than the selected clusters, a plurality of logistics distribution sites are planned in the specified geographic area.
  15. 如权利要求14所述的方法,所述确定每个类簇的半径,包括:The method according to claim 14, wherein said determining the radius of each cluster includes:
    针对每个类簇,计算该类簇中每个节点与该类簇的聚类中心之间的地理距离;选取最大地理距离作为该类簇的半径。For each cluster, calculate the geographic distance between each node in the cluster and the cluster center of the cluster; select the maximum geographic distance as the radius of the cluster.
  16. 如权利要求1所述的方法,在在所述指定地理区域内规划多个物流配送站点的步骤中,类簇的聚类中心为物流配送站点的地理位置;类簇中节点对应的配送地址为物流配送站点覆盖的配送地址。The method according to claim 1, in the step of planning a plurality of logistics distribution sites in the designated geographic area, the cluster center of the cluster is the geographic location of the logistics distribution site; the distribution address corresponding to the node in the cluster is The delivery address covered by the logistics delivery site.
  17. 一种服务器,包括:A server including:
    接收单元,用于接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;A receiving unit, configured to receive planning parameters of a logistics distribution site; the planning parameters of the logistics distribution site include a geographic area identifier;
    划分单元,用于以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;A dividing unit, configured to divide the nodes in a specified geographical area into multiple clusters by using the geographical location corresponding to the delivery address as a node; the specified geographical area is a geographical area identified by the geographical area identifier;
    规划单元,用于基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。A planning unit is configured to plan a plurality of logistics distribution sites in the specified geographic area based on the divided clusters.
  18. 一种服务器,包括:A server including:
    存储器,用于存储计算机指令;Memory for storing computer instructions;
    处理器,用于执行所述计算机指令实现以下步骤:接收物流配送站点规划参数;所述物流配送站点规划参数包括地理区域标识;以配送地址对应的地理位置为节点,将指定地理区域内的节点划分为多个类簇;所述指定地理区域为所述地理区域标识所标识的地理区域;基于划分的类簇,在所述指定地理区域内规划多个物流配送站点。A processor configured to execute the computer instructions to implement the following steps: receiving logistics distribution site planning parameters; the logistics distribution site planning parameters including a geographic area identifier; and taking a geographic location corresponding to a distribution address as a node, the nodes within the designated geographic area Divided into a plurality of clusters; the designated geographic area is a geographic area identified by the geographic area identifier; and based on the divided clusters, a plurality of logistics distribution sites are planned in the designated geographic area.
PCT/CN2019/090509 2018-06-20 2019-06-10 Logistics distribution station planning method, and server WO2019242520A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810637029.9 2018-06-20
CN201810637029.9A CN110619412B (en) 2018-06-20 2018-06-20 Logistics distribution site planning method and server

Publications (1)

Publication Number Publication Date
WO2019242520A1 true WO2019242520A1 (en) 2019-12-26

Family

ID=68920708

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090509 WO2019242520A1 (en) 2018-06-20 2019-06-10 Logistics distribution station planning method, and server

Country Status (2)

Country Link
CN (1) CN110619412B (en)
WO (1) WO2019242520A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111260277A (en) * 2020-01-07 2020-06-09 西北工业大学 Multi-objective optimization-based urban shared logistics self-picking point selection method
CN111932302A (en) * 2020-07-31 2020-11-13 中国工商银行股份有限公司 Method, device, equipment and system for determining number of service sites in area
CN112132184A (en) * 2020-08-21 2020-12-25 浙江工业大学 Distribution center site selection method based on N-order neighbor analysis clustering
CN113128744A (en) * 2020-01-15 2021-07-16 北京沃东天骏信息技术有限公司 Distribution planning method and device
CN113240265A (en) * 2021-05-11 2021-08-10 西北工业大学 Urban space division method based on multi-mode traffic data
CN113766521A (en) * 2021-08-31 2021-12-07 中通服中睿科技有限公司 Planning method for 5G network tracking area
CN115759319A (en) * 2022-08-02 2023-03-07 日照市规划设计研究院集团有限公司 Express delivery network and transfer station site selection method considering job distribution
CN116911566A (en) * 2023-08-04 2023-10-20 北京丰赞科技有限公司 Method and device for hierarchical scheduling of transport capacity for group meal scene
US20240171509A1 (en) * 2022-11-04 2024-05-23 Zhejiang Lab Method and device for identification management and optimized forwarding in large-scale polymorphic network
US12015548B2 (en) * 2022-11-04 2024-06-18 Zhejiang Lab Method and device for identification management and optimized forwarding in large-scale polymorphic network

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268554B (en) * 2021-05-17 2024-05-17 阳光新能源开发股份有限公司 Region dividing method and device for photovoltaic power station and computer readable storage medium
CN114417964B (en) * 2021-12-10 2023-09-12 中国卫通集团股份有限公司 Satellite operator classification method and device and electronic equipment
CN114819852B (en) * 2022-05-24 2022-11-22 深圳市神州龙智慧城市科技有限公司 Logistics planning system and method for smart city

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127327A (en) * 2016-05-17 2016-11-16 北京京东尚科信息技术有限公司 Dispensing bus station position method and system based on GIS
CN106778872A (en) * 2016-12-19 2017-05-31 北京天广汇通科技有限公司 The clustering method and device of the connected graph based on density
CN106997494A (en) * 2017-03-22 2017-08-01 北京京东尚科信息技术有限公司 Logistics distribution planing method, Logistics Distribution Method and its device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473612B (en) * 2013-09-06 2016-09-28 周伟华 Addressing and transport optimizing method towards ultra-large logistics distribution
CN106372821B (en) * 2015-07-21 2020-05-08 菜鸟智能物流控股有限公司 Method and device for determining service site information
US10127519B2 (en) * 2015-10-23 2018-11-13 Prahfit, Inc. Apparatus and method for predictive dispatch for geographically distributed, on-demand services
CN105894234B (en) * 2016-04-05 2019-12-31 北京京东尚科信息技术有限公司 Data processing method and system for calculating delivery position of self-service cabinet
CN107958298A (en) * 2016-10-18 2018-04-24 上海师范大学 A kind of choosing method of the logistics node based on clustering algorithm
CN107481511A (en) * 2017-08-16 2017-12-15 深圳先进技术研究院 A kind of method and system for calculating candidate bus station

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127327A (en) * 2016-05-17 2016-11-16 北京京东尚科信息技术有限公司 Dispensing bus station position method and system based on GIS
CN106778872A (en) * 2016-12-19 2017-05-31 北京天广汇通科技有限公司 The clustering method and device of the connected graph based on density
CN106997494A (en) * 2017-03-22 2017-08-01 北京京东尚科信息技术有限公司 Logistics distribution planing method, Logistics Distribution Method and its device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111260277A (en) * 2020-01-07 2020-06-09 西北工业大学 Multi-objective optimization-based urban shared logistics self-picking point selection method
CN113128744A (en) * 2020-01-15 2021-07-16 北京沃东天骏信息技术有限公司 Distribution planning method and device
CN111932302B (en) * 2020-07-31 2024-02-13 中国工商银行股份有限公司 Method, device, equipment and system for determining number of service sites in area
CN111932302A (en) * 2020-07-31 2020-11-13 中国工商银行股份有限公司 Method, device, equipment and system for determining number of service sites in area
CN112132184A (en) * 2020-08-21 2020-12-25 浙江工业大学 Distribution center site selection method based on N-order neighbor analysis clustering
CN112132184B (en) * 2020-08-21 2024-05-10 浙江工业大学 Distribution center site selection method based on N-order neighbor analysis clustering
CN113240265A (en) * 2021-05-11 2021-08-10 西北工业大学 Urban space division method based on multi-mode traffic data
CN113240265B (en) * 2021-05-11 2023-10-27 西北工业大学 Urban space division method based on multi-mode traffic data
CN113766521A (en) * 2021-08-31 2021-12-07 中通服中睿科技有限公司 Planning method for 5G network tracking area
CN115759319A (en) * 2022-08-02 2023-03-07 日照市规划设计研究院集团有限公司 Express delivery network and transfer station site selection method considering job distribution
CN115759319B (en) * 2022-08-02 2024-02-20 日照市规划设计研究院集团有限公司 Express delivery network site and transfer site selection method considering job and location distribution
US20240171509A1 (en) * 2022-11-04 2024-05-23 Zhejiang Lab Method and device for identification management and optimized forwarding in large-scale polymorphic network
US12015548B2 (en) * 2022-11-04 2024-06-18 Zhejiang Lab Method and device for identification management and optimized forwarding in large-scale polymorphic network
CN116911566B (en) * 2023-08-04 2024-01-09 北京丰赞科技有限公司 Method and device for hierarchical scheduling of transport capacity for group meal scene
CN116911566A (en) * 2023-08-04 2023-10-20 北京丰赞科技有限公司 Method and device for hierarchical scheduling of transport capacity for group meal scene

Also Published As

Publication number Publication date
CN110619412B (en) 2024-03-08
CN110619412A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
WO2019242520A1 (en) Logistics distribution station planning method, and server
TWI665627B (en) Method and server for pushing information based on terminal geographic location
JP2020515976A (en) Method, apparatus and system for blockchain consensus
Taneja et al. Resource aware placement of data analytics platform in fog computing
TWI694700B (en) Data processing method and device, user terminal
WO2015078238A1 (en) Dispatching map matching tasks by cluster server in internet of vehicles
CN110069579B (en) Electronic fence partitioning method and device
TW201903636A (en) Method and device for determining index grids of geofence
CN104298541A (en) Data distribution algorithm and data distribution device for cloud storage system
US20210117453A1 (en) Spatial computing for location-based services
TWI697223B (en) Data processing method
CN109376758A (en) A kind of Identify chip method, system, device and storage medium based on figure
CN110209748B (en) Method and apparatus for indexing geofences
US20170374512A1 (en) Method for performing distributed geographic event processing and geographic event processing system
CN104283966A (en) Data distribution algorithm and device of cloud storage system
US20210311971A1 (en) Geocoding methods and systems of correcting latitude and longitude of a point of interest
KR20160037737A (en) Scheduler computing device, data node of distributed computing system having the same, and method thereof
Zhang et al. Personalized quality centric service recommendation
US11882181B2 (en) Method, device, and computer program product for data storage
CN109981726A (en) A kind of distribution method of memory node, server and system
CN114629951A (en) Address service switching method and device, computer equipment and storage medium
CN115866705A (en) Geographic routing
CN104090895A (en) Method, device, server and system for obtaining cardinal number
WO2020024649A1 (en) Data processing method and apparatus, and server
Fotakis et al. Online sum-radii clustering

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19823634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19823634

Country of ref document: EP

Kind code of ref document: A1