Area division method, device, server and storage medium
Multiple sub-regions are divided into clusters through clustering processing, and unified strategic arrangements are carried out based on the characteristic information of the clusters, which solves the problem of imbalance of supply and demand on the online car-hailing platform and low efficiency of preferential strategy formulation, and improves processing efficiency and accuracy.
Patent Information
- Application Number
- CN202310738313.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-06-20
AI Technical Summary
When online ride-hailing platforms deal with multiple sub-regions, the supply and demand imbalance and the formulation of preferential strategies are inefficient, resulting in heavy workload and low efficiency.
Through clustering processing, multiple sub-regions are divided into fewer cluster groups, and unified strategic arrangements are made based on the characteristic information of the cluster groups to reduce the processing workload and improve efficiency.
It achieves more efficient supply and demand balance and strategic arrangement, and improves the processing efficiency and accuracy of the online ride-hailing platform.
Smart Images

Figure CN116777514B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of online car-hailing technology, and in particular to a method, device, server and storage medium for dividing an area. Background Art
[0002] During the online car-hailing service, the online car-hailing platform assigns passenger orders to online cars based on the dispatching rules. Generally speaking, the online car-hailing platform divides the area into multiple sub-areas. When processing, it will process multiple sub-areas one by one. For example, in some sub-areas, the number of orders initiated by passengers is relatively large, and there are relatively few idle vehicles in the sub-areas, resulting in a shortage of supply. In some sub-areas, the number of orders initiated by passengers is relatively small, and there are relatively many idle vehicles in the sub-areas, resulting in supply overflow. In this way, the online car-hailing platform will arrange scheduling strategies for each sub-area one by one, and perform scheduling processing on the sub-areas to balance the supply and demand of multiple sub-areas. For another example, the preferential strategy for orders in each sub-area needs to be formulated for each sub-area based on the order situation in each sub-area. If each sub-area is processed one by one in this way, the workload will be relatively large and the efficiency will be relatively low. Summary of the invention
[0003] The present invention provides a region division method, device, server and storage medium, which can cluster multiple sub-regions of a target region, divide the multiple sub-regions into clusters with a smaller number than the number of sub-regions, and perform processing based on the clusters, thereby reducing the processing workload and improving efficiency.
[0004] In a first aspect, an embodiment of the present invention provides a method for dividing a region, including:
[0005] Determine characteristic information of multiple sub-regions within the target region;
[0006] According to the characteristic information of the multiple sub-regions in the target region, the multiple sub-regions are clustered to obtain multiple clusters, so as to process the target region according to the multiple clusters.
[0007] The above method can determine the characteristic information of the sub-regions in the target area, and cluster the multiple sub-regions of the target area based on the characteristic information to obtain multiple clusters. In this way, the multiple sub-regions are divided into clusters that are relatively small compared to the number of sub-regions, and the clusters are processed. In this way, the same strategy can be arranged for the sub-regions in the same cluster. Compared with arranging strategies for each sub-region one by one, the processing workload is reduced and the efficiency is improved.
[0008] In one possible implementation, the characteristic information includes: a historical demand vector, a historical supply vector, and location information; wherein the elements in the historical demand vector of the sub-area include the number of orders in multiple historical time periods within the sub-area; the elements in the historical supply vector of the sub-area include the number of cruising vehicles in multiple historical time periods within the sub-area.
[0009] The above method can determine the characteristic information of the sub-area from the supply, demand, and actual location conditions, and perform clustering based on the characteristic information. In this way, the similarities between sub-areas can be found from the supply, demand, location, etc., thereby forming clusters and improving the accuracy of subsequent strategy arrangements.
[0010] In a possible implementation, clustering is performed on multiple sub-regions, including:
[0011] Iterative processing is performed on multiple sub-regions before the clustering termination condition is met;
[0012] In each iterative process, multiple cluster centers for each iterative process are determined, and each sub-region is assigned to the cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center for each iterative process; the cluster center corresponding to the sub-region is the cluster center with the closest distance to the sub-region and each iterative cluster process;
[0013] The distance between each sub-region and each cluster center processed in each iteration is determined based on the historical demand vector, the historical supply vector and the location information between each sub-region and each cluster center processed in each iteration.
[0014] The above method can form the distance between two sub-areas based on the demand distance, supply distance, and actual location distance. In this way, considering multiple supply and demand factors for distance calculation can more accurately determine the similarity of supply and demand between the two sub-areas.
[0015] In one possible implementation, the distance between each sub-region and each cluster center processed in each iteration is determined in the following manner:
[0016] According to the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration, the demand distance between each sub-region and each cluster center processed in each iteration is determined; according to the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration, the supply distance between each sub-region and each cluster center processed in each iteration is determined; according to the location information of each sub-region and the location information of each cluster center processed in each iteration, the geographical distance between each sub-region and each cluster center processed in each iteration is determined;
[0017] The distance between each sub-region and each cluster center processed in each iteration is determined based on the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographic distance, the demand distance, the supply distance and the geographic distance between each sub-region and each cluster center processed in each iteration.
[0018] The above method, by weighting each factor differently through the weights between demand, supply and location, can better distinguish different factors, determine the contribution of different factors to the similarity of supply and demand between two sub-regions, and more accurately determine the similarity of supply and demand between two sub-regions.
[0019] In one possible implementation, a plurality of preset arrays are determined; wherein each preset array includes preset values of a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographic distance;
[0020] According to each preset array, clustering is performed on multiple sub-regions to obtain a cluster group corresponding to each preset array;
[0021] The preset values included in the preset array with the largest degree of closure are used as the weights corresponding to the demand distance, the weights corresponding to the supply distance, and the weights corresponding to the geographical distance;
[0022] The closure degree is determined according to the ratio between the number of orders received by vehicles in the cluster corresponding to the preset array and the number of orders initiated in the cluster corresponding to the preset array; the target order is that the vehicle in the cluster corresponding to the preset array receives the order initiated in the cluster corresponding to the preset array;
[0023] Among them, the sum of the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance is equal to 1.
[0024] The above method can determine the weights corresponding to demand, supply, and distance by detecting the actual closure, thereby improving the accuracy of the contribution of different factors to the similarity of supply and demand between two sub-regions.
[0025] In a possible implementation, based on feature information of multiple sub-regions in the target region, clustering is performed on the multiple sub-regions to obtain multiple clusters, including:
[0026] Determine the number k of clusters into which the multiple sub-regions are divided;
[0027] Based on the characteristic information of multiple sub-regions in the target region, multiple regions are clustered to obtain k clusters;
[0028] The value of k is determined as follows:
[0029] Determine multiple initial values of k;
[0030] For each initial value of k, the k-means clustering algorithm is used to cluster the multiple sub-regions according to the characteristic information of the multiple sub-regions in the target region to obtain the clusters of the initial value of k;
[0031] For each cluster, the clustering error corresponding to the cluster is determined according to the difference between the distance corresponding to each sub-region in the cluster and the average distance of the cluster; wherein the distance corresponding to the sub-region is the distance between the sub-region and the cluster center of the cluster where the sub-region is located;
[0032] The sum of the clustering errors corresponding to the clusters of the initial value of k is taken as the error value corresponding to the initial value of k;
[0033] The initial value of k corresponding to the inflection point of the curve composed of error values corresponding to multiple initial values of k is taken as the value of k.
[0034] The above method can determine the value of k through the inflection point of the curve composed of the clustering errors corresponding to multiple clusters, so as to find the change of similarity between clusters, and set the initial value of k when the change tends to be smaller as the value of k, thereby improving the differentiation of clustering.
[0035] In a possible implementation, based on feature information of multiple sub-regions in the target region, clustering is performed on the multiple sub-regions to obtain multiple clusters, including:
[0036] From multiple sub-regions, select k sub-regions as initial cluster centers;
[0037] According to the characteristic information of multiple sub-regions in the target area and the initial cluster centers, multiple sub-regions are clustered to obtain multiple clusters;
[0038] The initial cluster centers are determined as follows:
[0039] Add the sub-region with the largest preset feature among multiple sub-regions to the cluster set;
[0040] Iteratively process the sub-regions, and use the sub-regions in the cluster set after the iterative process as the initial cluster center;
[0041] The iterative processing process of each time is as follows: determining the distance between the other sub-regions with the largest preset features in the other sub-regions and the sub-regions in the cluster set; the other sub-regions are the sub-regions of the multiple sub-regions excluding the sub-regions in the cluster set;
[0042] If each distance between the other sub-region with the largest preset feature and the sub-region in the cluster set exceeds the preset value, then the other sub-region with the largest preset feature is added to the cluster set;
[0043] If the number of sub-regions in the cluster set is the value of k, the iterative processing of the sub-regions is stopped;
[0044] If the number of sub-regions in the cluster set is less than the value of k after iterative processing of all sub-regions is completed, sub-regions are randomly selected from multiple sub-regions and added to the cluster set, and the sum of the number of randomly selected sub-regions and the number of sub-regions in the cluster set that are not added to the randomly selected sub-regions is equal to the value of k.
[0045] The above method determines the initial cluster center by the distance between the sub-regions, which makes the clustering effect better than the randomly selected initial cluster center.
[0046] In a second aspect, an embodiment of the present invention provides a region division device, including:
[0047] A determination module, used to determine feature information of multiple sub-regions within the target region;
[0048] The clustering module is used to perform clustering processing on multiple sub-regions according to feature information of multiple sub-regions in the target region to obtain multiple clusters, so as to process the target region according to the multiple clusters.
[0049] In a third aspect, an embodiment of the present invention provides a server, including:
[0050] processor;
[0051] A processor is used to execute the computer program or instructions in the memory so that the area division method as described in any one of the first aspects is executed.
[0052] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any area division method as described in the first aspect.
[0053] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising: a computer program code, which, when executed on a computer, enables the computer to execute any of the area division methods described in the first aspect.
[0054] In addition, the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flowchart of a method for dividing a region provided by an embodiment of the present invention;
[0057] Figure 2 A schematic diagram of a cluster obtained by clustering multiple sub-regions provided in an embodiment of the present invention;
[0058] Figure 3 A flow chart of clustering multiple sub-regions provided by an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of a curve formed by multiple clustering errors provided by an embodiment of the present invention;
[0060] Figure 5 A flowchart of another area division method provided by an embodiment of the present invention;
[0061] Figure 6 A schematic diagram of the structure of a region division device provided by an embodiment of the present invention;
[0062] Figure 7 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] The present invention is described in detail below with reference to the accompanying drawings:
[0065] Combination Figure 1 As shown, an embodiment of the present invention provides a method for dividing a region, including:
[0066] S100: Determine feature information of multiple sub-regions within the target region;
[0067] The sub-regions may be hexagonal grids, and the sub-regions within the target region are connected but do not overlap.
[0068] The characteristic information includes: historical demand vector, historical supply vector and location information; wherein, the elements in the historical demand vector of the sub-region include the number of orders in multiple historical time periods in the sub-region; the elements in the historical supply vector of the sub-region include the number of cruising vehicles in multiple historical time periods in the sub-region.
[0069] Cruising vehicles are vehicles that have not received any orders in multiple historical time periods.
[0070] For example, the historical demand vector of the sub-region is: each grid counts the historical orders for 7 days and each hour. X = (x1, x2...x168), a total of 7*24 = 168 dimensional data, which is organized in chronological order, that is, a vector containing 168 elements is generated;
[0071] Sub-region historical supply vector: Each grid counts the number of cruise vehicles without duplicates every hour for 7 days. Y = (y1, y2…y168), a total of 7*24 = 168-dimensional data, which is organized in chronological order, that is, a vector with 168 elements is generated; among them, the number of cruise vehicles without duplicates every hour is the same repeated visiting vehicles in each hour, and only one is retained to calculate the number of cruise vehicles.
[0072] The location information of the sub-region is the longitude and latitude data Z (lat, lng) of the center point of the sub-region.
[0073] S101: performing clustering processing on the multiple sub-regions according to feature information of the multiple sub-regions in the target region to obtain multiple clusters, so as to process the target region according to the multiple clusters.
[0074] Exemplarily, a scheduling strategy may be specified for each cluster, and then the scheduling strategy corresponding to each cluster is used to perform scheduling processing on each sub-area in the cluster.
[0075] Combination Figure 2 As shown, there are three clusters in total. The first cluster includes sub-areas 1 to 3 (black hexagons), the second cluster includes sub-areas 4 to 12 (grey hexagons), and the third cluster includes sub-areas 13 to 21 (white hexagons). Scheduling strategies are set for the three clusters. Sub-areas 1 to 3 in the first cluster can all use the scheduling strategy corresponding to the first cluster for vehicle scheduling; sub-areas 4 to 12 in the second cluster can all use the scheduling strategy corresponding to the second cluster for vehicle scheduling; and sub-areas 13 to 21 in the third cluster can all use the scheduling strategy corresponding to the third cluster for vehicle scheduling.
[0076] For example, a preferential policy may be specified for each cluster, and then the preferential policy corresponding to each cluster is applied to each sub-region in the cluster. Based on the order pick-up rate of a sub-region in a cluster, the preferential policy of the sub-region may be determined, that is, the discount for orders is 95%, and the preferential policy of the sub-region is used as the preferential policy of the cluster to which the sub-region belongs.
[0077] Another example Figure 2As shown, sub-regions 1 to 3 in the first cluster can all be processed using the preferential policies corresponding to the first cluster; sub-regions 4 to 12 in the second cluster can all be processed using the preferential policies corresponding to the second cluster; and sub-regions 13 to 20 in the third cluster can all be processed using the preferential policies corresponding to the third cluster.
[0078] The process of clustering multiple sub-regions based on feature information including historical demand vectors, historical supply vectors and location information includes:
[0079] Iterative processing is performed on multiple sub-regions before the clustering termination condition is met;
[0080] In each iterative process, multiple cluster centers for each iterative process are determined, and each sub-region is assigned to the cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center for each iterative process; the cluster center corresponding to the sub-region is the cluster center with the closest distance to the sub-region and each iterative cluster process;
[0081] It should be noted that the cluster center processed in each iteration can be understood as follows: in the first iteration, the cluster center processed in each iteration is the initial cluster center; in the second iteration, the cluster center processed in each iteration is the cluster center used in the second iteration; in the third iteration, the cluster center processed in each iteration is the cluster center used in the third iteration, and so on.
[0082] The distance between each sub-region and each cluster center processed in each iteration is determined based on the historical demand vector, the historical supply vector and the location information between each sub-region and each cluster center processed in each iteration;
[0083] According to the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration, the demand distance between each sub-region and each cluster center processed in each iteration is determined by the cosine similarity between the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration;
[0084] According to the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration, the supply distance between each sub-region and each cluster center processed in each iteration is determined by: the cosine similarity between the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration;
[0085] According to the location information of each sub-region and the location information of each cluster center processed in each iteration, the geographical distance between each sub-region and each cluster center processed in each iteration is determined, and the implementation method is: the distance between the location information of each sub-region and the location information of each cluster center processed in each iteration.
[0086] The algorithm for the required distance between two sub-regions is: the required distance between sub-region A and sub-region B (characterized by cosine similarity) is:
[0087]
[0088] Among them, X A is the historical demand vector of sub-region A, X B is the historical demand vector of sub-region B.
[0089] The supply distance between sub-region A and sub-region B (characterized by cosine similarity) is:
[0090]
[0091] Among them, Y A is the historical supply vector of sub-region A, Y B is the historical supply vector of sub-region B.
[0092] The geographical distance (that is, the geographic spatial distance) between sub-region A and sub-region B is:
[0093] Line_dis(A,B)=R*arccos(cos(lat2)*cos(lat1)
[0094] *cos(lng2-lng1)+sin(lat2)*sin(lat1))
[0095] in:
[0096] R is the radius of the Earth;
[0097] Sub-area A center latitude and longitude Z A =(lat1,lng1);
[0098] The center latitude and longitude of sub-area B Z B =(lat2,lng2).
[0099] Furthermore, the distance between each sub-region and each cluster center processed in each iteration is determined based on the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographical distance, the demand distance, the supply distance and the geographical distance between each sub-region and each cluster center processed in each iteration.
[0100] Exemplarily, the distance between two sub-regions is calculated using the following formula:
[0101] dis(A,B)=a*Demand dis +b*Supply dis +c*Line_dis
[0102] Among them, a represents the weight corresponding to the demand distance, b represents the weight corresponding to the supply distance, and c represents the weight corresponding to the geographical distance.
[0103] The distance between two sub-regions can be: the demand distance between the two sub-regions multiplied by the weight corresponding to the demand distance, the supply distance between the two sub-regions multiplied by the weight corresponding to the supply distance, and the geographical distance between the two sub-regions multiplied by the weight corresponding to the geographical distance, and the accumulated value of their products.
[0104] Based on the above scheme, combined with Figure 3 As shown, a clustering method provided by an embodiment of the present invention includes:
[0105] S300: Determine multiple cluster centers for this iterative processing;
[0106] S301: Determine the distance between each sub-region and each cluster center processed in this iteration according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographical distance, the demand distance, the supply distance and the geographical distance between each sub-region and each cluster center processed in this iteration;
[0107] S302: assigning each sub-region to a cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center processed in this iteration, thereby obtaining a plurality of clusters;
[0108] S303: Determine whether the multiple clusters meet the termination condition; if yes, end; otherwise, execute S300.
[0109] based on Figure 3, the clustering process is described in detail: first randomly select K sub-regions as the initial cluster centers. Then, according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographical distance, the demand distance, the supply distance and the geographical distance between each sub-region and each cluster center processed in this iteration, determine the distance between each sub-region and the initial cluster center; according to the distance between each sub-region and each initial cluster center, assign each sub-region to the cluster center closest to it. The cluster centers and the sub-regions assigned to them represent a cluster. Once all sub-regions are assigned, it is determined whether the termination condition is met. If the termination condition is not met, the cluster center is recalculated, and then based on the cluster center, multiple sub-regions are reallocated. This process will be repeated until the termination condition is met and multiple clusters are obtained.
[0110] An embodiment of the present invention provides a method for determining a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographical distance, which specifically includes:
[0111] Determine a plurality of preset arrays; wherein each preset array includes preset values of a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographic distance;
[0112] According to each preset array, clustering is performed on multiple sub-regions to obtain a cluster group corresponding to each preset array;
[0113] The preset values included in the preset array with the largest degree of closure are used as the weights corresponding to the demand distance, the weights corresponding to the supply distance, and the weights corresponding to the geographical distance;
[0114] The closure degree is determined according to the ratio between the number of orders received by vehicles in the cluster corresponding to the preset array and the number of orders initiated in the cluster corresponding to the preset array; the target order is that the vehicle in the cluster corresponding to the preset array receives the order initiated in the cluster corresponding to the preset array;
[0115] Among them, the sum of the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance is equal to 1.
[0116] The vehicle within the cluster corresponding to the preset array can be understood as the vehicle being within the range of the cluster corresponding to the preset array when the order is picked up;
[0117] Initiating an order within the cluster corresponding to the preset array can be understood as that the passenger initiating the order is within the cluster corresponding to the preset array when the order is initiated.
[0118] Specifically, a plurality of preset values are set for the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance, and they are organized into a plurality of preset arrays, each of which includes a preset value of the weight corresponding to the demand distance, a preset value of the weight corresponding to the supply distance, and a preset value of the weight corresponding to the geographical distance. The sum of the preset value of the weight corresponding to the demand distance, the preset value of the weight corresponding to the supply distance, and the preset value of the weight corresponding to the geographical distance in each preset array is equal to 1;
[0119] According to the plurality of preset arrays, clustering processing is performed on the plurality of sub-areas to obtain clusters corresponding to each preset array; that is, the target area is divided into clusters corresponding to each preset array;
[0120] After the division is completed, take the order situation for n days, count the number of orders picked up by vehicles in the clusters corresponding to each preset array, and the number of orders initiated in the clusters corresponding to each preset array.
[0121] For example, there are 10 preset arrays in total, each preset array is divided into 3 clusters, and for each preset array, the ratio between the number of orders initiated by the first cluster of the preset array received by vehicles in the first cluster of the preset array and the number of orders initiated within the first cluster of the preset array is determined; wherein, the vehicle in the first cluster of the preset array is the vehicle that is within the range of the first cluster of the preset array when the order is received; initiating an order within the first cluster of the preset array can be understood as that the passenger who initiates the order is within the first cluster of the preset array when the order is initiated.
[0122] Similarly, determine the ratio between the number of orders initiated by the second cluster group of the preset array and received by vehicles in the second cluster group of the preset array to the number of orders initiated within the second cluster group of the preset array; determine the ratio between the number of orders initiated by the third cluster group of the preset array and received by vehicles in the third cluster group of the preset array to the number of orders initiated within the third cluster group of the preset array; and take the sum of the ratios of these three clusters as the degree of closure corresponding to the preset array.
[0123] By analogy, the closure degrees corresponding to the other 9 preset arrays are calculated in turn, and the closure degrees corresponding to the 10 preset arrays are compared. The preset value of the weight corresponding to the demand distance in the preset array with the maximum closure degree is used as the weight corresponding to the demand distance, the preset value of the weight corresponding to the supply distance is used as the weight corresponding to the supply distance, and the preset value of the weight corresponding to the geographic distance is used as the weight corresponding to the geographic distance.
[0124] In some embodiments, clustering is performed on the multiple sub-regions according to feature information of the multiple sub-regions in the target region to obtain multiple clusters, including:
[0125] Determine the number k of clusters into which the multiple sub-regions are divided;
[0126] Based on the characteristic information of multiple sub-regions in the target region, multiple regions are clustered to obtain k clusters;
[0127] The value of k is determined as follows:
[0128] Determine multiple initial values of k;
[0129] For each initial value of k, the k-means clustering algorithm is used to cluster the multiple sub-regions according to the characteristic information of the multiple sub-regions in the target region to obtain the clusters of the initial value of k;
[0130] For each cluster, the clustering error corresponding to the cluster is determined according to the difference between the distance corresponding to each sub-region in the cluster and the average distance of the cluster; wherein the distance corresponding to the sub-region is the distance between the sub-region and the cluster center of the cluster where the sub-region is located;
[0131] The sum of the clustering errors corresponding to the clusters of the initial value of k is taken as the error value corresponding to the initial value of k;
[0132] The initial value of k corresponding to the inflection point of the curve composed of error values corresponding to multiple initial values of k is taken as the value of k.
[0133] Specifically, multiple initial values of k are randomly set, for example, k is equal to 3, 4, 5, 6, 7, 8, 9, 10. For each initial value of k, for example, k is equal to 3, three initial cluster centers are randomly selected, and then the distance between each sub-region and the three initial cluster centers is determined according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographical distance, the demand distance, the supply distance and the geographical distance between each sub-region and the three initial cluster centers; according to the distance between each sub-region and the three initial cluster centers, each sub-region is assigned to the cluster center closest to it. Three clusters are obtained, and it is determined whether the three clusters meet the termination condition. If the termination condition is not met, the three cluster centers are recalculated, and then based on the three cluster centers, multiple sub-regions are reallocated. This process will be repeated until the termination condition is met and three clusters are obtained.
[0134] Calculate the clustering error of the first cluster; which can be calculated by the following formula:
[0135]
[0136] Where p is the distance between a sub-region in the first cluster and the cluster center of the first cluster, m is the average distance between all sub-regions in the first cluster and the cluster center of the first cluster, and pm is i is the difference between the two distances, SSE is the clustering error of the first cluster; the clustering error represents the quality of the clustering effect;
[0137] By analogy, the clustering error of the second cluster and the clustering error of the third cluster are calculated respectively, and the sum of the clustering error of the first cluster, the clustering error of the second cluster and the clustering error of the third cluster is taken as the error value corresponding to k=3.
[0138] Based on the above algorithm, calculate in sequence the error value corresponding to k=4, the error value corresponding to k=5, the error value corresponding to k=6, the error value corresponding to k=7, the error value corresponding to k=8, the error value corresponding to k=9, and the error value corresponding to k=10.
[0139] According to the size order of the 8 error values, the 8 error values are sorted and the sorted error values are combined into a curve. Figure 4 As shown, the order of the 8 error values from large to small is: error value B corresponding to k=4, error value D corresponding to k=6, error value E corresponding to k=7, error value A corresponding to k=3, error value F corresponding to k=8, error value G corresponding to k=9, error value H corresponding to k=10, and error value C corresponding to k=5.
[0140] The starting point of the curve composed of 8 error values is the error value B corresponding to k=4, and the inflection point is the error value E corresponding to k=7, so the value of k is 7.
[0141] The inflection point of the curve can be calculated as follows:
[0142] According to the sorted clustering error, calculate the slope between the error value B corresponding to k=4 and the error value D corresponding to k=6, calculate the slope between the error value D corresponding to k=6 and the error value E corresponding to k=7, calculate the slope between the error value E corresponding to k=7 and the error value A corresponding to k=3, calculate the slope between the error value A corresponding to k=3 and the error value F corresponding to k=8, calculate the slope between the error value F corresponding to k=8 and the error value G corresponding to k=9, calculate the slope between the error value G corresponding to k=9 and the error value H corresponding to k=10, and calculate the slope between the error value H corresponding to k=10 and the error value C corresponding to k=5.
[0143] Since the slope between the error value D corresponding to k=6 and the error value E corresponding to k=7, and the slope between the error value E corresponding to k=7 and the error value A corresponding to k=3, these two slopes change greatly, then the error value E corresponding to k=7 is the inflection point of the curve.
[0144] The embodiment of the present invention provides a method for implementing, according to feature information of multiple sub-regions in a target region, clustering multiple sub-regions to obtain multiple clusters, including:
[0145] From multiple sub-regions, select k sub-regions as initial cluster centers;
[0146] According to the characteristic information of multiple sub-regions in the target area and the initial cluster centers, multiple sub-regions are clustered to obtain multiple clusters;
[0147] The initial cluster centers are determined as follows:
[0148] Add the sub-region with the largest preset feature among multiple sub-regions to the cluster set;
[0149] Iteratively process the sub-regions, and use the sub-regions in the cluster set after the iterative process as the initial cluster center;
[0150] The iterative processing process of each time is as follows: determining the distance between the other sub-regions with the largest preset features in the other sub-regions and the sub-regions in the cluster set; the other sub-regions are the sub-regions of the multiple sub-regions excluding the sub-regions in the cluster set;
[0151] If each distance between the other sub-region with the largest preset feature and the sub-region in the cluster set exceeds the preset value, then the other sub-region with the largest preset feature is added to the cluster set;
[0152] If the number of sub-regions in the cluster set is the value of k, the iterative processing of the sub-regions is stopped;
[0153] If the number of sub-regions in the cluster set is less than the value of k after iterative processing of all sub-regions is completed, sub-regions are randomly selected from multiple sub-regions and added to the cluster set, and the sum of the number of randomly selected sub-regions and the number of sub-regions in the cluster set that are not added to the randomly selected sub-regions is equal to the value of k.
[0154] Exemplarily, the preset feature may be the number of orders or the number of cruising vehicles. When the demand factor is given more importance, the number of orders may be used as the preset feature. If the supply factor is given more importance, the number of cruising vehicles may be used as the preset feature. Taking the emphasis on demand as an example, the number of orders in multiple sub-regions in the past 7 days is counted. Each sub-region forms a historical demand vector, the historical demand vector A1 of sub-region 1, the historical demand vector A2 of sub-region 2, the historical demand vector A3 of sub-region 3, the historical demand vector A4 of sub-region 4, and so on, to determine the historical demand vectors of all sub-regions in the target area.
[0155] Then, the multiple sub-areas are sorted in descending order according to the sum of all elements in the historical demand vector, for example, {A1, A2, A3, A4, A5...} in descending order.
[0156] First, the historical demand vector A1 of sub-region 1 is selected as the first initial cluster center, and the historical demand vector A1 of sub-region 1 is added to the cluster set, and the cluster set is represented as {A1};
[0157] Secondly, the distance between the location information of sub-region 2 and the location information of the sub-regions in the cluster set is calculated. If the distances are all greater than the preset threshold, sub-region 2 is selected to be added to the cluster set. If some of the distances are not greater than the preset threshold, sub-region 2 is abandoned and added to the cluster set. The distance between the location information of two sub-regions is calculated using the above-mentioned geographic distance formula.
[0158] Repeat the previous step until the number of sub-regions in the cluster set is K or all sub-regions are traversed. If the number of sub-regions in the cluster set is less than K after traversal, randomly select sub-regions from the sub-regions until the number of sub-regions in the cluster set is K.
[0159] Based on the above scheme, combined with Figure 5 As shown, an embodiment of the present invention provides another area division method, including:
[0160] S500: Determine historical demand vectors, historical supply vectors, and location information of multiple sub-regions within a target region;
[0161] S501: selecting k sub-regions from a plurality of sub-regions as initial clustering centers according to the sizes of the preset features of the sub-regions;
[0162] The specific implementation process of step 501 may refer to the above-mentioned solution for determining the initial cluster center, and the specific value of k may refer to the above-mentioned solution for determining the value of k.
[0163] S502: Determine the distance between each sub-region and the k initial cluster centers according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographic distance, the demand distance, the supply distance, and the geographic distance between each sub-region and the k initial cluster centers;
[0164] S503: assigning each sub-region to an initial cluster center corresponding to each sub-region according to the distance between each sub-region and the k initial cluster centers; wherein the initial cluster center corresponding to the sub-region is the initial cluster center with the shortest distance to the sub-region among the k initial cluster centers;
[0165] S504: Determine whether the k allocated clusters meet the termination condition; if yes, execute S505; otherwise, execute S506;
[0166] S505: Processing the target area according to the multiple clusters;
[0167] S506: Select k sub-regions from the multiple sub-regions as cluster centers, and reallocate each sub-region based on the cluster centers until the k allocated clusters meet a termination condition.
[0168] like Figure 6 As shown, the present invention also provides a region division device, comprising:
[0169] A determination module 600 is used to determine feature information of multiple sub-regions within a target region;
[0170] The clustering module 601 is used to perform clustering processing on multiple sub-regions in the target region according to feature information of multiple sub-regions to obtain multiple clusters, so as to process the target region according to the multiple clusters.
[0171] Optionally, the characteristic information includes: a historical demand vector, a historical supply vector and location information; wherein, the elements in the historical demand vector of the sub-area include the number of orders in multiple historical time periods within the sub-area; the elements in the historical supply vector of the sub-area include the number of cruising vehicles in multiple historical time periods within the sub-area.
[0172] Optionally, the clustering module 601 is specifically used for:
[0173] Iterative processing is performed on multiple sub-regions before the clustering termination condition is met;
[0174] In each iterative process, multiple cluster centers for each iterative process are determined, and each sub-region is assigned to the cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center for each iterative process; the cluster center corresponding to the sub-region is the cluster center with the closest distance to the sub-region and each iterative cluster process;
[0175] The distance between each sub-region and each cluster center processed in each iteration is determined based on the historical demand vector, the historical supply vector and the location information between each sub-region and each cluster center processed in each iteration.
[0176] Optionally, the clustering module 601 is specifically used for:
[0177] According to the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration, the demand distance between each sub-region and each cluster center processed in each iteration is determined; according to the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration, the supply distance between each sub-region and each cluster center processed in each iteration is determined; according to the location information of each sub-region and the location information of each cluster center processed in each iteration, the geographical distance between each sub-region and each cluster center processed in each iteration is determined;
[0178] The distance between each sub-region and each cluster center processed in each iteration is determined based on the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographic distance, the demand distance, the supply distance and the geographic distance between each sub-region and each cluster center processed in each iteration.
[0179] Optionally, the device further comprises a regulating module, and the regulating module is used for:
[0180] Determine a plurality of preset arrays; wherein each preset array includes preset values of a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographic distance;
[0181] According to each preset array, clustering is performed on multiple sub-regions to obtain a cluster group corresponding to each preset array;
[0182] The preset values included in the preset array with the largest degree of closure are used as the weights corresponding to the demand distance, the weights corresponding to the supply distance, and the weights corresponding to the geographical distance;
[0183] The closure degree is determined according to the ratio between the number of orders received by vehicles in the cluster corresponding to the preset array and the number of orders initiated in the cluster corresponding to the preset array; the target order is that the vehicle in the cluster corresponding to the preset array receives the order initiated in the cluster corresponding to the preset array;
[0184] Among them, the sum of the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance is equal to 1.
[0185] Optionally, the clustering module 601 is specifically used for:
[0186] Determine the number k of clusters into which the multiple sub-regions are divided;
[0187] Based on the characteristic information of multiple sub-regions in the target region, multiple regions are clustered to obtain k clusters;
[0188] The value of k is determined as follows:
[0189] Determine multiple initial values of k;
[0190] For each initial value of k, the k-means clustering algorithm is used to cluster the multiple sub-regions according to the characteristic information of the multiple sub-regions in the target region to obtain the clusters of the initial value of k;
[0191] For each cluster, the clustering error corresponding to the cluster is determined according to the difference between the distance corresponding to each sub-region in the cluster and the average distance of the cluster; wherein the distance corresponding to the sub-region is the distance between the sub-region and the cluster center of the cluster where the sub-region is located;
[0192] The sum of the clustering errors corresponding to the clusters of the initial value of k is taken as the error value corresponding to the initial value of k;
[0193] The initial value of k corresponding to the inflection point of the curve composed of error values corresponding to multiple initial values of k is taken as the value of k.
[0194] Optionally, the clustering module 601 is specifically used for:
[0195] From multiple sub-regions, select k sub-regions as initial cluster centers;
[0196] According to the characteristic information of multiple sub-regions in the target area and the initial cluster centers, multiple sub-regions are clustered to obtain multiple clusters;
[0197] The initial cluster centers are determined as follows:
[0198] Add the sub-region with the largest preset feature among multiple sub-regions to the cluster set;
[0199] Iteratively process the sub-regions, and use the sub-regions in the cluster set after the iterative process as the initial cluster center;
[0200] The iterative processing process of each time is as follows: determining the distance between the other sub-regions with the largest preset features in the other sub-regions and the sub-regions in the cluster set; the other sub-regions are the sub-regions of the multiple sub-regions excluding the sub-regions in the cluster set;
[0201] If each distance between the other sub-region with the largest preset feature and the sub-region in the cluster set exceeds the preset value, then the other sub-region with the largest preset feature is added to the cluster set;
[0202] If the number of sub-regions in the cluster set is the value of k, the iterative processing of the sub-regions is stopped;
[0203] If the number of sub-regions in the cluster set is less than the value of k after iterative processing of all sub-regions is completed, sub-regions are randomly selected from multiple sub-regions and added to the cluster set, and the sum of the number of randomly selected sub-regions and the number of sub-regions in the cluster set that are not added to the randomly selected sub-regions is equal to the value of k.
[0204] In addition, combined Figure 1-Figure 6 The area division method and device described in the embodiments of the present invention may be implemented by a server.
[0205] Server, including: processor;
[0206] a memory for storing instructions executable by the processor;
[0207] The processor is configured to execute the instructions to implement any of the area division methods described above.
[0208] Based on the above introduction, an exemplary Figure 7 The server structure.
[0209] The server may include a processor 710 and a memory 720 storing computer program instructions.
[0210] Specifically, the processor 710 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0211] The memory 720 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 720 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 720 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 720 may be inside or outside the data processing device. In a specific embodiment, the memory 720 is a non-volatile solid-state memory. In a specific embodiment, the memory 720 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0212] The processor 710 implements any one of the methods for performing tasks in the above embodiments by reading and executing computer program instructions stored in the memory 720 .
[0213] In one example, the server may further include a communication interface 730 and a bus 740. Figure 7 As shown, the processor 710, the memory 720, and the communication interface 730 are connected via a bus 740 and communicate with each other.
[0214] The communication interface 730 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.
[0215] Bus 740 includes hardware, software or both, and the components of the server are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnect (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 740 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0216] The server can execute the area division method in the embodiment of the present invention based on the received task, thereby realizing the combination Figure 1-Figure 6 The described area division method and device.
[0217] In addition, in combination with the server in the above embodiment, an embodiment of the present invention may provide a storage medium, and when the instructions in the storage medium are executed by the processor of the server, the server can execute the area division method as described in any one of the above items.
[0218] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0219] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0220] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0221] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0222] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for dividing a region, characterized in that: include: Determine characteristic information of multiple sub-regions within the target region; The characteristic information includes: a historical demand vector, a historical supply vector, and location information; wherein the elements in the historical demand vector of the sub-region include the number of orders in multiple historical time periods in the sub-region; the elements in the historical supply vector of the sub-region include the number of cruising vehicles in multiple historical time periods in the sub-region; According to the characteristic information of multiple sub-regions in the target region, before the clustering termination condition is not met, the multiple sub-regions are iteratively processed; multiple clusters are obtained to achieve processing of the target region for the multiple clusters; In each iterative process, multiple cluster centers for each iterative process are determined, and each sub-region is assigned to the cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center for each iterative process; the cluster center corresponding to the sub-region is the cluster center with the closest distance to the sub-region and each iterative cluster process; The distance between each sub-region and each cluster center processed at each iteration is determined as follows: According to the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration, the demand distance between each sub-region and each cluster center processed in each iteration is determined; according to the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration, the supply distance between each sub-region and each cluster center processed in each iteration is determined; according to the location information of each sub-region and the location information of each cluster center processed in each iteration, the geographical distance between each sub-region and each cluster center processed in each iteration is determined; Determine the distance between each sub-region and each cluster center processed in each iteration according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographic distance, the demand distance, the supply distance, and the geographic distance between each sub-region and each cluster center processed in each iteration; The weights corresponding to the demand distance, supply distance, and geographic distance are determined in the following way: Determine a plurality of preset arrays; wherein each preset array includes preset values of a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographic distance; According to each preset array, clustering is performed on multiple sub-regions to obtain a cluster group corresponding to each preset array; The preset values included in the preset array with the largest degree of closure are used as the weights corresponding to the demand distance, the weights corresponding to the supply distance, and the weights corresponding to the geographical distance; The closure degree is determined according to the ratio between the number of target orders received by vehicles in the cluster corresponding to the preset array and the number of orders initiated in the cluster corresponding to the preset array; the target order is the order received by vehicles in the cluster corresponding to the preset array and initiated in the cluster corresponding to the preset array; Among them, the sum of the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance is equal to 1.
2. The area division method according to claim 1, characterized in that: Based on the characteristic information of multiple sub-regions in the target area, multiple sub-regions are clustered to obtain multiple clusters, including: Determine the number k of clusters into which the multiple sub-regions are divided; Based on the characteristic information of multiple sub-regions in the target region, multiple regions are clustered to obtain k clusters; The value of k is determined as follows: Determine multiple initial values of k; For each initial value of k, clustering is performed on the multiple sub-regions according to the characteristic information of the multiple sub-regions in the target region to obtain a cluster of the initial value of k; For each cluster, the clustering error corresponding to the cluster is determined according to the difference between the distance corresponding to each sub-region in the cluster and the average distance of the cluster; wherein the distance corresponding to the sub-region is the distance between the sub-region and the cluster center of the cluster where the sub-region is located; The sum of the clustering errors corresponding to the clusters of the initial value of k is taken as the error value corresponding to the initial value of k; The initial value of k corresponding to the inflection point of the curve composed of error values corresponding to multiple initial values of k is taken as the value of k.
3. The area division method according to claim 2, characterized in that: Based on the characteristic information of multiple sub-regions in the target area, multiple sub-regions are clustered to obtain multiple clusters, including: From multiple sub-regions, select k sub-regions as initial cluster centers; According to the characteristic information of multiple sub-regions in the target area and the initial cluster centers, multiple sub-regions are clustered to obtain multiple clusters; The initial cluster centers are determined as follows: Add the sub-region with the largest preset feature among multiple sub-regions to the cluster set; Iteratively process the sub-regions, and use the sub-regions in the cluster set after the iterative process as the initial cluster center; The iterative processing process of each time is as follows: determining the distance between the other sub-regions with the largest preset features in the other sub-regions and the sub-regions in the cluster set; the other sub-regions are the sub-regions of the multiple sub-regions excluding the sub-regions in the cluster set; If each distance between the other sub-region with the largest preset feature and the sub-region in the cluster set exceeds the preset value, then the other sub-region with the largest preset feature is added to the cluster set; If the number of sub-regions in the cluster set is the value of k, the iterative processing of the sub-regions is stopped; If the number of sub-regions in the cluster set is less than the value of k after iterative processing of all sub-regions is completed, sub-regions are randomly selected from multiple sub-regions and added to the cluster set, and the sum of the number of randomly selected sub-regions and the number of sub-regions in the cluster set that are not added to the randomly selected sub-regions is equal to the value of k.
4. A region dividing device, characterized in that: include: A determination module, used to determine feature information of multiple sub-regions within the target region; The characteristic information includes: a historical demand vector, a historical supply vector, and location information; wherein the elements in the historical demand vector of the sub-region include the number of orders in multiple historical time periods in the sub-region; the elements in the historical supply vector of the sub-region include the number of cruising vehicles in multiple historical time periods in the sub-region; A clustering module is used to iteratively process the multiple sub-regions according to the characteristic information of the multiple sub-regions in the target region before the clustering termination condition is met, and obtain multiple clusters to realize processing of the target region for the multiple clusters; In each iterative process, multiple cluster centers for each iterative process are determined, and each sub-region is assigned to the cluster center corresponding to each sub-region according to the distance between each sub-region and each cluster center for each iterative process; the cluster center corresponding to the sub-region is the cluster center with the closest distance to the sub-region and each iterative cluster process; The distance between each sub-region and each cluster center processed at each iteration is determined as follows: According to the historical demand vector of each sub-region and the historical demand vector of each cluster center processed in each iteration, the demand distance between each sub-region and each cluster center processed in each iteration is determined; according to the historical supply vector of each sub-region and the historical supply vector of each cluster center processed in each iteration, the supply distance between each sub-region and each cluster center processed in each iteration is determined; according to the location information of each sub-region and the location information of each cluster center processed in each iteration, the geographical distance between each sub-region and each cluster center processed in each iteration is determined; Determine the distance between each sub-region and each cluster center processed in each iteration according to the weight corresponding to the demand distance, the weight corresponding to the supply distance, the weight corresponding to the geographic distance, the demand distance, the supply distance, and the geographic distance between each sub-region and each cluster center processed in each iteration; The weights corresponding to the demand distance, supply distance, and geographic distance are determined in the following way: Determine a plurality of preset arrays; wherein each preset array includes preset values of a weight corresponding to a demand distance, a weight corresponding to a supply distance, and a weight corresponding to a geographic distance; According to each preset array, clustering is performed on multiple sub-regions to obtain a cluster group corresponding to each preset array; The preset values included in the preset array with the largest degree of closure are used as the weights corresponding to the demand distance, the weights corresponding to the supply distance, and the weights corresponding to the geographical distance; The closure degree is determined according to the ratio between the number of target orders received by vehicles in the cluster corresponding to the preset array and the number of orders initiated in the cluster corresponding to the preset array; the target order is the order received by vehicles in the cluster corresponding to the preset array and initiated in the cluster corresponding to the preset array; Among them, the sum of the weight corresponding to the demand distance, the weight corresponding to the supply distance, and the weight corresponding to the geographical distance is equal to 1.
5. A server, characterized in that: include: Memory, used to store computer programs or instructions; A processor is used to execute the computer program or instructions in the memory so that the area division method as described in any one of claims 1 to 3 is executed.
6. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the area division method as described in any one of claims 1 to 3.
