A method, device, electronic device and medium for generating a scheduling instruction

By calculating the order propagation popularity of candidate areas and determining the dispatch proportion, dispatch instructions are generated, which solves the problem that the vehicle dispatch scheme cannot meet the long-term supply and demand balance, and improves the order response rate and platform revenue.

CN112561330BActive Publication Date: 2024-10-15BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011486933.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-10-15
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

Existing vehicle scheduling solutions cannot meet the problem of long-term supply and demand balance of idle vehicles and ride orders over time.

Method used

By determining the target area, the order propagation heat of the candidate area is calculated, and the scheduling proportion of idle vehicles is determined based on the difference in order propagation heat, and dispatch instructions are generated to make the idle vehicles drive to the corresponding candidate areas to meet the long-term supply and demand balance.

Benefits of technology

It achieves long-term supply and demand balance of idle vehicles and ride orders, and improves the order response rate and platform revenue of the online ride-hailing platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112561330B_ABST
    Figure CN112561330B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and medium for generating a dispatch instruction, wherein the method includes: determining a target area where idle vehicles need to be dispatched to other areas; calculating the order propagation heat of each candidate area corresponding to the target area respectively; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference times in the future; determining the proportion of dispatching idle vehicles from the target area to each candidate area respectively according to the difference in order propagation heat of different candidate areas; generating a dispatch instruction for sending to idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction. The present application can meet the demand for long-term supply and demand balance of idle vehicles and ride orders over time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of fleet management, and in particular to a method, device, electronic device and medium for generating a dispatch instruction. Background Art

[0002] At present, in response to the imbalance between supply and demand of idle vehicles and ride orders, the existing vehicle scheduling solution is to schedule idle vehicles based on the predicted supply and demand distribution of idle vehicles and ride orders at a certain time in the future (for example, 30 minutes later).

[0003] During the research, the applicant found that the existing vehicle scheduling scheme only considers the supply and demand distribution of idle vehicles and ride orders at a certain moment in the future, and cannot meet the long-term supply and demand balance of idle vehicles and ride orders over time. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and medium for generating dispatch instructions, which can meet the needs of long-term supply and demand balance of idle vehicles and ride orders over time.

[0005] According to a first aspect of the present invention, there is provided a method for generating a scheduling instruction, comprising:

[0006] Determine the target area where idle vehicles need to be dispatched to other areas;

[0007] Calculate the order propagation heat of each candidate area corresponding to the target area respectively; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference moments in the future, the candidate area is an area whose distance from the target area is less than a preset value, and the order heat is predicted based on historical order data;

[0008] Determine the proportion of idle vehicles to be dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas;

[0009] According to the proportion, a dispatch instruction is generated for sending to the idle vehicles in the target area, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction.

[0010] In a possible implementation, respectively calculating the order propagation heat of each candidate area corresponding to the target area includes:

[0011] For each candidate area and any adjacent area of ​​the candidate area, the order popularity of the candidate area and each adjacent area corresponding to the candidate area at the corresponding reference time is calculated respectively; the difference between the current time and the reference time is positively correlated with the target distance; the reference time is the time after the current time, and the target distance is the distance between each candidate area or any adjacent area of ​​the candidate area and the candidate area;

[0012] For each candidate area, the order propagation heat of the candidate area is calculated based on the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance.

[0013] In a possible implementation, for each candidate region, the order propagation heat of the candidate region is calculated according to the order heat of the candidate region and each adjacent region corresponding to the candidate region and the corresponding target distance, including:

[0014] For each candidate area, the order propagation heat of the candidate area is calculated based on the attenuated order heat of the candidate area and each adjacent area corresponding to the candidate area; wherein the attenuation degree of the order heat is positively correlated with the target distance.

[0015] In a possible implementation, for each candidate area and any neighboring area of ​​the candidate area, respectively calculating the order heat of the candidate area and each neighboring area corresponding to the candidate area at a corresponding reference time, including:

[0016] For each candidate area, calculate the first order heat of the candidate area at the first reference time;

[0017] For each first neighboring area of ​​each candidate area, respectively calculate the second order heat of each first neighboring area at the second reference time;

[0018] For each second adjacent area of ​​each candidate area, respectively calculate the third order heat of each second adjacent area at a third reference time;

[0019] Among them, the first reference time, the second reference time, and the third reference time are all times after the current time, the difference between the second reference time and the current time is greater than the difference between the first reference time and the current time, and the difference between the third reference time and the current time is greater than the difference between the second reference time and the current time.

[0020] In a possible implementation, for each candidate region, based on the attenuated order heat of the candidate region and each adjacent region corresponding to the candidate region, the order propagation heat of the candidate region is calculated, including:

[0021] For each candidate area, the order propagation heat of the candidate area is calculated based on the attenuated first order heat, each second order heat and each third order heat; wherein the attenuation degree of the third order heat is greater than the attenuation degree of the second order heat, and the attenuation degree of the second order heat is greater than the attenuation degree of the first order heat.

[0022] In a possible implementation, for each candidate region, the distances between each first neighboring region corresponding to the candidate region and the candidate region are the same, and the distances between each second neighboring region corresponding to the candidate region and the candidate region are the same.

[0023] In a possible implementation, for the target area, distances between each candidate area corresponding to the target area and the target area are the same.

[0024] In a possible implementation, the order propagation heat of the candidate area is positively correlated with the corresponding proportion of the candidate area.

[0025] In a possible implementation, determining a target area where idle vehicles need to be dispatched to other areas includes:

[0026] The areas in which the vehicle saturation exceeds a preset threshold and the vehicle saturation is higher than that of the surrounding areas are determined as target areas.

[0027] In a possible implementation, determining a target area where idle vehicles need to be dispatched to other areas includes:

[0028] Predict vehicle demand in each region after a preset time based on historical order data;

[0029] A target area is selected from the multiple areas according to the vehicle saturation in each area, the vehicle saturation difference and the vehicle demand after a preset time.

[0030] In a possible implementation, determining a target area where idle vehicles need to be dispatched to other areas includes:

[0031] After each idle vehicle is matched with an order, an area in each area where the number of idle vehicles that are not matched with an order is greater than a preset number is determined as a target area.

[0032] In a possible implementation, generating a dispatch instruction for sending to idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area drive to the corresponding candidate area according to the dispatch instruction, includes:

[0033] Obtaining the dispatching distances between each idle vehicle in the target area and each candidate area corresponding to the target area;

[0034] According to the proportion and the dispatching distance, a target idle vehicle to be dispatched to each candidate area corresponding to the target area is determined, and a dispatching instruction for sending to the target idle vehicle is generated to make the target idle vehicle travel to the candidate area.

[0035] According to a second aspect of the present invention, there is provided a device for generating a scheduling instruction, comprising:

[0036] An area determination module is used to determine a target area where idle vehicles need to be dispatched to other areas;

[0037] A heat calculation module, used to respectively calculate the order propagation heat of each candidate area corresponding to the target area; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference moments in the future, the candidate area is an area with a distance from the target area less than a preset value, and the order heat is predicted based on historical order data;

[0038] A proportion determination module, used to determine the proportion of idle vehicles dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas;

[0039] The instruction generation module is used to generate a dispatch instruction for sending to the idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction.

[0040] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of any one of the methods described in the first aspect above.

[0041] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are executed.

[0042] The embodiment of the present application provides a method for generating a dispatch instruction, which first determines a target area where idle vehicles need to be dispatched to other areas, and then calculates the order propagation heat of each candidate area corresponding to the target area. The order propagation heat not only considers the order heat of the candidate area at a certain moment in the future, but also considers the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference moments in the future over time. The candidate area is an area whose distance from the target area is less than a preset value, and the order heat is predicted based on historical order data. In this way, according to the difference in the order propagation heat of different candidate areas, the proportion of idle vehicles dispatched from the target area to each candidate area is determined, and a dispatch instruction for sending to the idle vehicles in the target area is generated according to the proportion, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction, which can meet the long-term supply and demand balance of idle vehicles and ride orders over time. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a method for generating a scheduling instruction provided in an embodiment of the present application is shown;

[0045] Figure 2 A flowchart showing a specific embodiment of a method for generating a scheduling instruction provided in an embodiment of the present application is shown;

[0046] Figure 3 The position distribution map of each candidate area corresponding to the target area is shown;

[0047] Figure 4 A schematic diagram of the structure of a device for generating a scheduling instruction provided in an embodiment of the present application is shown;

[0048] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0050] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0051] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0052] The terms "passenger", "requester", "service requester" and "customer" in this application are used interchangeably to refer to individuals, entities or tools that can request or order services. The terms "driver", "provider", "service provider" and "supplier" in this application are used interchangeably to refer to individuals, entities or tools that can provide services. The term "user" in this application may refer to an individual, entity or tool that requests a service, orders a service, provides a service, or facilitates the provision of a service. For example, a user may be a passenger, a driver, an operator, etc., or any combination thereof. In this application, "passenger" and "passenger terminal" are used interchangeably, and "driver" and "driver terminal" are used interchangeably.

[0053] The terms "service request" and "order" in this application are used interchangeably to refer to a request initiated by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. The "service request" or "order" may be accepted by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. A service request may be charged or free of charge.

[0054] In the traditional solution, in response to the imbalance between supply and demand of idle vehicles and ride orders, idle vehicles are dispatched based on the predicted supply and demand distribution of idle vehicles and ride orders at a certain time in the future (for example, 30 minutes later). However, the traditional solution only considers the supply and demand distribution of idle vehicles and ride orders at a certain time in the future, and cannot meet the long-term supply and demand balance of idle vehicles and ride orders over time. Based on this, the present application provides a method, device, electronic device and medium for generating a dispatch instruction, which are described in detail below.

[0055] Please refer to Figure 1 , Figure 1 A flowchart of a method for generating a scheduling instruction provided in an embodiment of the present application. Figure 1 As shown, the following steps may be included:

[0056] S101, determining a target area where idle vehicles need to be dispatched to other areas;

[0057] S102, respectively calculating the order propagation heat of each candidate area corresponding to the target area; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference times in the future, the candidate area is an area with a distance from the target area less than a preset value, and the order heat is predicted based on historical order data;

[0058] S103, determining the proportion of idle vehicles to be dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas;

[0059] S104: generating a dispatch instruction for sending to idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area travel to corresponding candidate areas according to the dispatch instruction.

[0060] In step S101, the physical area is generally divided into several areas, and the target area refers to an area in the several areas where idle vehicles need to be dispatched to other areas. Idle vehicles refer to vehicles that have not received orders. In specific implementations, at least one of the following possible implementations can be used to determine the target area.

[0061] In a first possible implementation, the areas where the vehicle saturation exceeds a preset threshold and the vehicle saturation is higher than that of the surrounding areas are determined as target areas. The vehicle saturation refers to the ratio of the actual vehicle demand in the current area to the maximum vehicle demand that can be carried. The maximum vehicle demand that can be carried is determined based on the number of online-hailing cars, the distribution of online-hailing cars, and the number of online-hailing car users in the current area. In this embodiment, the target area is determined based on the vehicle saturation, and the idle vehicles in the target area are dispatched to other candidate areas with lower vehicle saturation. This can balance the vehicle saturation in each area and solve the problem of long waiting time for drivers to receive orders in areas with too high vehicle saturation.

[0062] In a second possible implementation, the demand for vehicles in each region after a preset time is predicted based on historical order data; the target region is selected from the multiple regions according to the vehicle saturation, the difference in vehicle saturation and the demand for vehicles after a preset time in each region. Among them, vehicle saturation refers to the ratio of the actual number of online-hailing vehicles in the current region to the reasonable number of online-hailing vehicles. Regarding the reasonable number of online-hailing vehicles, if an area adds one more online-hailing vehicle, from the perspective of the driver, the intensity of competition increases; and from the perspective of the passenger, the waiting time may be reduced if there is one more online-hailing vehicle. For the increase in the number of vehicles, the driver and the passenger are in a state of conflict of interest. When the waiting time of the driver and the waiting time of the vehicle in the current area reach a balance point, that is, the reasonable number of online-hailing vehicles in the area. In this embodiment, the demand for vehicles in each region after a preset time (for example, 1 hour) is first predicted. If the current vehicle saturation in a certain area is high, the vehicle saturation is high, and the predicted demand for vehicles after the preset time is reduced, the area is determined as the target area, and then the idle vehicles in the target area are dispatched to other candidate areas. The idle vehicles can be dispatched in advance to respond to future orders and improve the order completion rate.

[0063] In a third possible implementation, after each idle vehicle is matched with an order, that is, after each order is dispatched, the area in each area where the number of idle vehicles that have not matched the order is greater than the preset number is determined as the target area. The traditional solution only considers order dispatch, and does not consider vehicle scheduling, that is, does not consider the management method of idle vehicles that have not matched the order after order dispatch. This will cause drivers in some areas to waste resources (time, fuel consumption, etc.) to find passengers, while passengers in some areas cannot get a car. In other words, the mismatch between vehicle distribution and order distribution leads to a large number of orders being abandoned and a high driver idle rate, which directly affects the order response rate and platform revenue of the online car-hailing platform. This embodiment considers both order dispatch and order scheduling. After each order dispatch, there will be some areas where there are idle vehicles that have not matched the order. If the number of idle vehicles in a certain area that have not matched the order is greater than the preset number of areas, the area is determined as the target area, and then the idle vehicles in the target area are dispatched to other candidate areas, so that the vehicle distribution and order distribution are balanced, and the order response rate and platform revenue of the online car-hailing platform are improved.

[0064] In step S102, order heat refers to the number of orders contained in a certain area at a certain moment, and order heat is predicted based on historical order data. In this embodiment, the order heat prediction process may include: first, using historical order data to train a recurrent neural network model of a gated recurrent unit until the recurrent neural network model converges; then inputting the order data of the first M time periods into the trained recurrent neural network model to predict the order heat of each area in the M+1 time period. This embodiment is not limited to this, and other prediction methods may also be used to predict order heat.

[0065] The candidate area of ​​the target area refers to an area whose distance to the target area is less than a preset value, such as an area adjacent to the target area or an area located near the target area. Preferably, for the target area, the distances between each candidate area corresponding to the target area and the target area are the same. The neighboring area of ​​the candidate area refers to an area adjacent to the candidate area or an area located near the candidate area. Different future reference moments refer to multiple different moments after the current moment.

[0066] The order propagation heat is used to characterize the order heat of the candidate area and multiple neighboring areas with different distances from the candidate area at different reference times in the future. That is, the order propagation heat not only considers the order heat of the candidate area at a certain moment in the future, but also considers the order heat of the candidate area and multiple neighboring areas with different distances from the candidate area at different reference times in the future over time.

[0067] The following is an explanation of the calculation process of the order propagation heat of the candidate area.

[0068] Step S102 may include the following sub-steps:

[0069] S1021. For each candidate area and any adjacent area of ​​the candidate area, respectively calculate the order heat of the candidate area and each adjacent area corresponding to the candidate area at a corresponding reference time;

[0070] S1022. For each candidate area, the order propagation heat of the candidate area is calculated according to the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance.

[0071] In step S1021, the reference time is a time after the current time, that is, a time in the future. The difference between the current time and the reference time is positively correlated with the target distance, that is, as the reference time is delayed, the target distance gradually becomes farther.

[0072] The target distance is the distance between each candidate region or any adjacent region of the candidate region and the candidate region. The target distance between each candidate region and the candidate region is zero, and the target distance between each adjacent region and the candidate region is the straight-line distance between the centers of the two regions.

[0073] For example, if the neighboring areas of each candidate area include multiple first neighboring areas and second neighboring areas, firstly, the first order heat h of each candidate area at the first reference time t1 is calculated. t1 , and then calculate the second order heat h of each first neighboring area of ​​each candidate area at the second reference time t2 t2 ; Finally, calculate the third order heat h of each second adjacent area of ​​each candidate area at the third reference time t3 t3 . Among them, the first reference time t1, the second reference time t2, and the third reference time t3 are all times after the current time t. The first target distance L1 represents the distance between each candidate area and the candidate area, the second target distance L2 represents the distance between the first adjacent area and the candidate area, and the third target distance L3 represents the distance between the second adjacent area and the candidate area. The difference between t2 and t is greater than the difference between t1 and t, and the difference between t3 and t is greater than the difference between t2 and t; L3 is greater than L2, and L2 is greater than L1. That is, the difference between the current moment and the reference moment is positively correlated with the target distance, and as the reference moment is delayed, the target distance gradually becomes farther.

[0074] In step S1022, for each candidate area, the order propagation heat of the candidate area is calculated based on the attenuated order heat of the candidate area and each adjacent area corresponding to the candidate area; wherein the attenuation degree of the order heat is positively correlated with the target distance.

[0075] For example, for each candidate area, based on the attenuated first order heat h' t1 , the heat of each second order h' t2 and the heat of each third order h' t3 , calculate the order propagation heat H = h' of the candidate area t1 +∑h' t2 +∑h' t3 Among them, the third order heat h t3 The decay degree is greater than the second order heat h t2 The decay degree of the second order heat h t2 The decay degree is greater than the first order heat h t1 The attenuation degree of the first order. The attenuated heat h' t1 =λ H1 h t1 ,λ H1 Indicates the heat of the first order h t1 The discount factor is usually 1. The heat of the second order after attenuation h' t2 =λ H2 h t2 ,λ H2 Indicates the heat of the first order h t2 The discount factor is generally a constant γ, and the value range of γ is [0,1]. The attenuated heat of the third order h' t3 =λ H3 h t3 ,λ H3 Indicates the heat of the first order h t3 The discount factor is usually a constant γ 2 , the value range of γ is [0,1]. Then, the order propagation heat of the candidate area is H = λ H1 h t1 +∑λ H2 h t2 +∑λ H3 h t3 .

[0076] It should be noted that the order propagation heat H of the candidate area may also take into account the fourth order heat h of each third neighboring area of ​​the candidate area at the fourth reference time t4. t4 , calculate the order propagation heat H = λ of the candidate area H1 h t1 +∑λ H2 h t2 +∑λ H3 h t3 +∑λ H4 h t4 ,λH4 Indicates the heat of the fourth order h t4 The discount factor is usually a constant γ 3 , the value range of γ is [0,1]. That is, as the target distance increases, the discount factor of the corresponding order heat decreases, the influence of the corresponding order heat on the order propagation heat decreases, and the attenuation degree of the corresponding order heat increases.

[0077] In a possible implementation, for each candidate area, the distances between each first adjacent area corresponding to the candidate area and the candidate area are the same, and the distances between each second adjacent area corresponding to the candidate area and the candidate area are the same. Then, the second order heat h of each first adjacent area corresponding to each candidate area is t2 The attenuation degree is the same, and the corresponding discount factor λ H2 The second order heat h of each second adjacent area corresponding to each candidate area t3 The attenuation degree is the same, and the corresponding discount factor λ H3 Therefore, the order propagation heat of the candidate area can also be expressed as H = λ H1 h t1 +λ H2 ∑h t2 +λ H3 ∑h t3 .

[0078] In order to understand step S102 more clearly, Figure 2 and Figure 3 The above steps S1021 and S1022 are described in detail.

[0079] like Figure 2 As shown in FIG, the physical area is divided into several hexagonal areas of the same size, and the target area A is surrounded by six candidate areas A1-A6 adjacent to the target area A. Figure 3 As shown, the neighboring areas of the candidate area A1 include first neighboring areas B1-B6 and second neighboring areas C1-C12.

[0080] In step S1021, the first order heat h of candidate area A1 at the first reference time t1 is calculated. t1 , the second order heat h of the first adjacent area B1-B6 at the second reference time t2 t2 And the third order heat h of the second adjacent area C1-C12 at the third reference time t3 t3. Among them, the first reference time t1, the second reference time t2, and the third reference time t3 are all times after the current time t. The first target distance L1 represents the distance between the candidate area A1 and the candidate area A1, the second target distance L2 represents the distance between the first adjacent area B1-B6 and the candidate area A1, and the third target distance L3 represents the distance between the second adjacent area C1-C12 and the candidate area A1. The difference between t2 and t is greater than the difference between t1 and t, and the difference between t3 and t is greater than the difference between t2 and t; L3 is greater than L2, and L2 is greater than L1. That is, the difference between the current moment and the reference moment is positively correlated with the target distance, and as the reference moment is delayed, the target distance gradually becomes farther.

[0081] In step S1022, firstly, the attenuated heat h' of the first order is calculated. t1 , the heat of each second order h' t2 and the heat of each third order h' t3 Specifically, the attenuated heat of the first order h' t1 =λ H1 h t1 ,λ H1 Indicates the heat of the first order h t1 The discount factor is usually 1. The heat of the second order after attenuation h' t2 =λ H2 h t2 ,λ H2 Indicates the heat of the first order h t2 The discount factor is generally a constant γ, and the value range of γ is [0,1]. The attenuated heat of the third order h' t3 =λ H3 h t3 ,λ H3 Indicates the heat of the first order h t3 The discount factor is usually a constant γ 2 , the value range of γ is [0,1]. Then calculate the order propagation heat of candidate area A1. Since the distances between each first neighboring area B1-B6 corresponding to candidate area A1 and candidate area A1 are the same, and the distances between each second neighboring area C1-C12 corresponding to candidate area A1 and candidate area A1 are the same, then the second order heat h of each first neighboring area B1-B6 corresponding to candidate area A1 is t2 The attenuation degree is the same, and the corresponding discount factor λ H2 The second order heat h of each second adjacent area C1-C12 corresponding to the candidate area A1 is the same; t3 The attenuation degree is the same, and the corresponding discount factor λ H3 Therefore, the order propagation heat of candidate area A1 can be expressed as Among them, the value range of constant γ is [0,1], h t2i represents the second order heat of the first adjacent area Bi at the second reference time t2, h t3j Represents the third order heat of the second neighboring area Cj at the third reference time t3.

[0082] In step S103, the order propagation heat of the candidate area represents the order heat of the candidate area and its neighboring areas at multiple different moments in the future. The order propagation heat of different candidate areas is different. According to the difference of each candidate area, the proportion of idle vehicles dispatched from the target area to each candidate area is determined. Preferably, the order propagation heat of the candidate area is positively correlated with the proportion corresponding to the candidate area.

[0083] by Figure 2 For example, the order propagation heat H of candidate area A1 is calculated through step 102. A1 Similarly, the order propagation heat H of candidate areas A2-A6 is calculated A2 -H A6 First, taking candidate area A1 as an example, the scheduling probability p1 of candidate area A1 is calculated. The scheduling probability p1 of candidate area A1 is the ratio of the order propagation heat of candidate area A1 to the sum of the order propagation heat of each candidate area A1-A6 corresponding to the target area A, that is, Similarly, the scheduling probabilities p2-p6 of candidate areas A2-A6 are calculated, which will not be repeated here. Then, based on the scheduling probabilities p1-p6 of candidate areas A1-A6 corresponding to target area A, virtual orders for each candidate area are generated. The scheduling probability of a candidate area is positively correlated with the number of virtual orders in the candidate area, and the number of virtual orders in the candidate area is positively correlated with the corresponding proportion of the candidate area. This embodiment dispatches idle vehicles in target area A to corresponding candidate areas according to the scheduling probabilities p1-p6 of candidate areas A1-A6 corresponding to target area A, rather than blindly dispatching idle vehicles in target area A to the candidate areas with the highest order propagation heat. This can effectively prevent the situation where too many idle vehicles are dispatched in the candidate areas with the highest order propagation heat, and too few idle vehicles are dispatched in other candidate areas.

[0084] In step S104, according to the proportion of idle vehicles dispatched from the target area to each of the candidate areas, for example, the first candidate area has a corresponding proportion of 10%, the second candidate area has a corresponding proportion of 20%, the third candidate area has a corresponding proportion of 40%, and the fourth candidate area has a corresponding proportion of 30%. Assuming that the total number of idle vehicles that need to be dispatched in the target area is ten, one vehicle is dispatched to the first candidate area, two vehicles are dispatched to the second candidate area, four vehicles are dispatched to the third candidate area, and three vehicles are dispatched to the fourth candidate area. A dispatch instruction is generated for sending to the idle vehicles in the target area according to the proportion, and the dispatch instruction is sent to the ten idle vehicles in the target area respectively, so that the idle vehicles in the target area travel to the corresponding candidate areas according to the dispatch instruction.

[0085] In a specific implementation, the dispatch distances between each idle vehicle in the target area and each candidate area corresponding to the target area are first obtained; then, according to the proportion and the dispatch distance, the target idle vehicle to be dispatched to each candidate area corresponding to the target area is determined, and a dispatch instruction for sending to the target idle vehicle is generated so that the target idle vehicle drives to the candidate area. This embodiment dispatches the target idle vehicle in the target area to the corresponding candidate area according to the proportion and the dispatch distance, and preferentially dispatches the target idle vehicle in the target area to the candidate area with a shorter dispatch distance, which can reduce the overall vehicle dispatch distance, thereby reducing the overall vehicle dispatch cost.

[0086] by Figure 2For example, first obtain the current position information (longitude and latitude) of each idle vehicle in the target area A, and the position information (longitude and latitude) of the regional center of each candidate area A1-A6 corresponding to the target area A, and then calculate the dispatch distance between each idle vehicle in the target area A and each candidate area A1-A6 corresponding to the target area A. Secondly, according to the proportion of idle vehicles dispatched from the target area A to the candidate areas A1-A6, the number of idle vehicles dispatched from the target area A to the candidate areas A1-A6 is determined. For example: the corresponding proportion of candidate areas A1-A3 is 10%, the corresponding proportion of candidate area A4 is 20%, the corresponding proportion of candidate area A5 is 30%, and the corresponding proportion of candidate area A6 is 20%. Assuming that the total number of idle vehicles that need to be dispatched in the target area A is ten, then one vehicle is dispatched to the candidate areas A1-A3, two vehicles are dispatched to the candidate area A4, three vehicles are dispatched to the candidate area A5, and two vehicles are dispatched to the candidate area A6. Finally, according to the proportion and the dispatching distance, the target idle vehicles to be dispatched to each candidate area corresponding to the target area A are determined, and a dispatching instruction for sending to the target idle vehicles is generated, so that the target idle vehicles in the target area are preferentially dispatched to the adjacent candidate areas with a shorter dispatching distance, without the need for cross-area dispatching, which can reduce the overall vehicle dispatching distance, thereby reducing the overall vehicle dispatching cost and improving driver willingness.

[0087] The embodiment of the present application provides a method for generating a dispatch instruction, which first determines a target area where idle vehicles need to be dispatched to other areas, and then calculates the order propagation heat of each candidate area corresponding to the target area. The order propagation heat not only considers the order heat of the candidate area at a certain moment in the future, but also considers the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference moments in the future over time. The candidate area is an area whose distance from the target area is less than a preset value, and the order heat is predicted based on historical order data. In this way, according to the difference in the order propagation heat of different candidate areas, the proportion of idle vehicles dispatched from the target area to each candidate area is determined, and a dispatch instruction for sending to the idle vehicles in the target area is generated according to the proportion, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction, which can meet the long-term supply and demand balance of idle vehicles and ride orders over time.

[0088] Based on the same technical concept, the embodiments of the present application also provide a scheduling instruction generation device, an electronic device, and a computer storage medium, etc. For details, please refer to the following embodiments.

[0089] Please refer to Figure 4 , Figure 4A schematic diagram of the structure of a device for generating a scheduling instruction provided in an embodiment of the present application. Figure 4 As shown, the device may include:

[0090] An area determination module 10 is used to determine a target area where idle vehicles need to be dispatched to other areas;

[0091] The heat calculation module 20 is used to respectively calculate the order propagation heat of each candidate area corresponding to the target area; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference moments in the future, the candidate area is an area with a distance from the target area less than a preset value, and the order heat is predicted based on historical order data;

[0092] A proportion determination module 30 is used to determine the proportion of idle vehicles dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas;

[0093] The instruction generation module 40 is used to generate a dispatch instruction for sending to the idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area travel to the corresponding candidate area according to the dispatch instruction.

[0094] In a possible implementation, the heat calculation module 20 may include:

[0095] A first calculation unit is used to calculate, for each candidate area and any adjacent area of ​​the candidate area, the order heat of the candidate area and each adjacent area corresponding to the candidate area at a corresponding reference time; the difference between the current time and the reference time is positively correlated with the target distance; the reference time is a time after the current time, and the target distance is the distance between each candidate area or any adjacent area of ​​the candidate area and the candidate area;

[0096] The second calculation unit is used to calculate, for each candidate area, the order propagation heat of the candidate area according to the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance.

[0097] In a possible implementation, the second calculation unit is specifically used to: for each candidate area, calculate the order propagation heat of the candidate area based on the attenuated order heat of the candidate area and each adjacent area corresponding to the candidate area; wherein the attenuation degree of the order heat is positively correlated with the target distance.

[0098] In a possible implementation manner, the first computing unit is specifically configured to:

[0099] For each candidate area, calculate the first order heat of the candidate area at the first reference time;

[0100] For each first neighboring area of ​​each candidate area, respectively calculate the second order heat of each first neighboring area at the second reference time;

[0101] For each second adjacent area of ​​each candidate area, respectively calculate the third order heat of each second adjacent area at a third reference time;

[0102] Among them, the first reference time, the second reference time, and the third reference time are all times after the current time, the difference between the second reference time and the current time is greater than the difference between the first reference time and the current time, and the difference between the third reference time and the current time is greater than the difference between the second reference time and the current time.

[0103] In a possible implementation, the second calculation unit is specifically used to: for each candidate area, calculate the order propagation heat of the candidate area based on the attenuated first order heat, each second order heat and each third order heat; wherein the attenuation degree of the third order heat is greater than the attenuation degree of the second order heat, and the attenuation degree of the second order heat is greater than the attenuation degree of the first order heat.

[0104] In a possible implementation, for each candidate region, the distances between each first neighboring region corresponding to the candidate region and the candidate region are the same, and the distances between each second neighboring region corresponding to the candidate region and the candidate region are the same.

[0105] In a possible implementation, for the target area, distances between each candidate area corresponding to the target area and the target area are the same.

[0106] In a possible implementation, the order propagation heat of the candidate area is positively correlated with the corresponding proportion of the candidate area.

[0107] In a possible implementation, the area determination module 10 is specifically configured to: determine, as a target area, an area in which the vehicle saturation exceeds a preset threshold and the vehicle saturation is higher than that of surrounding areas.

[0108] In a possible implementation, the region determination module 10 is specifically used to: predict the vehicle demand situation in each region after a preset time based on historical order data; and select a target region from the multiple regions according to the vehicle saturation in each region, the vehicle saturation difference and the vehicle demand situation after a preset time.

[0109] In a possible implementation, the area determination module 10 is specifically configured to: after each idle vehicle is matched with an order, determine an area in each area where the number of idle vehicles that are not matched with an order is greater than a preset number as a target area.

[0110] In a possible implementation, the instruction generation module 40 includes:

[0111] An acquisition unit, used for acquiring the dispatching distances between each idle vehicle in the target area and each candidate area corresponding to the target area;

[0112] A generating unit is used to determine the target idle vehicle to be dispatched to each candidate area corresponding to the target area according to the proportion and the dispatching distance, and to generate a dispatching instruction to be sent to the target idle vehicle so that the target idle vehicle drives to the candidate area.

[0113] The present application embodiment discloses an electronic device, such as Figure 5 As shown, it includes: a processor 501, a memory 502 and a bus 503. The memory 502 stores machine-readable instructions executable by the processor 501. When the electronic device is running, the processor 501 communicates with the memory 502 through the bus 503. When the machine-readable instructions are executed by the processor 501, the method described in the previous method embodiment is performed. For specific implementation, please refer to the method embodiment, which will not be repeated here.

[0114] The computer program product for interacting with virtual cards provided in the embodiments of the present application includes a computer-readable storage medium storing a non-volatile program code executable by the processor 501. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0115] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0116] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0117] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0118] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0119] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for generating a scheduling instruction, It is characterized in that include: Determine the target area where idle vehicles need to be dispatched to other areas; The order propagation heat of each candidate area corresponding to the target area is calculated respectively; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference times in the future, the candidate area is an area with a distance from the target area less than a preset value, the order heat is obtained based on the prediction of historical order data, and the order heat refers to the number of orders contained in a certain area at a certain time; Determine the proportion of idle vehicles to be dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas; According to the proportion, a dispatch instruction is generated for sending to the idle vehicles in the target area, so that the idle vehicles in the target area drive to the corresponding candidate area according to the dispatch instruction; The step of respectively calculating the order propagation heat of each candidate area corresponding to the target area includes: For each candidate area and any adjacent area of ​​the candidate area, the order popularity of the candidate area and each adjacent area corresponding to the candidate area at the corresponding reference time is calculated respectively; the difference between the current time and the reference time is positively correlated with the target distance; the reference time is the time after the current time, and the target distance is the distance between each candidate area or any adjacent area of ​​the candidate area and the candidate area; For each candidate area, the order propagation heat of the candidate area is calculated according to the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance; The order propagation heat of the candidate area is the sum of the order heat of the candidate area and the attenuated order heat of each adjacent area corresponding to the candidate area, and the attenuated order heat is determined according to the target distance.

2. The method according to claim 1, It is characterized in that For each candidate area, the order propagation heat of the candidate area is calculated according to the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance, including: For each candidate area, the order propagation heat of the candidate area is calculated based on the attenuated order heat of the candidate area and each adjacent area corresponding to the candidate area; wherein the attenuation degree of the order heat is positively correlated with the target distance.

3. The method according to claim 2, It is characterized in that For each candidate area and any neighboring area of ​​the candidate area, the order heat of the candidate area and each neighboring area corresponding to the candidate area at the corresponding reference time is calculated respectively, including: For each candidate area, calculate the first order heat of the candidate area at the first reference time; For each first neighboring area of ​​each candidate area, respectively calculate the second order heat of each first neighboring area at the second reference time; For each second adjacent area of ​​each candidate area, respectively calculate the third order heat of each second adjacent area at a third reference time; Among them, the first reference time, the second reference time, and the third reference time are all times after the current time, the difference between the second reference time and the current time is greater than the difference between the first reference time and the current time, and the difference between the third reference time and the current time is greater than the difference between the second reference time and the current time.

4. The method according to claim 3, It is characterized in that For each candidate area, based on the attenuated order heat of the candidate area and each adjacent area corresponding to the candidate area, the order propagation heat of the candidate area is calculated, including: For each candidate area, the order propagation heat of the candidate area is calculated based on the attenuated first order heat, each second order heat and each third order heat; wherein the attenuation degree of the third order heat is greater than the attenuation degree of the second order heat, and the attenuation degree of the second order heat is greater than the attenuation degree of the first order heat.

5. The method according to claim 2, It is characterized in that For each candidate region, the distances between each first neighboring region corresponding to the candidate region and the candidate region are the same, and the distances between each second neighboring region corresponding to the candidate region and the candidate region are the same.

6. The method according to claim 1, It is characterized in that For the target area, the distances between each candidate area corresponding to the target area and the target area are the same.

7. The method according to claim 1, It is characterized in that The order propagation heat of the candidate area is positively correlated with the corresponding proportion of the candidate area.

8. The method according to claim 1, It is characterized in that Determine the target area where idle vehicles need to be dispatched to other areas, including: The areas in which the vehicle saturation exceeds a preset threshold and the vehicle saturation is higher than that of the surrounding areas are determined as target areas.

9. The method according to claim 1, It is characterized in that Determine the target area where idle vehicles need to be dispatched to other areas, including: Predict vehicle demand in each region after a preset time based on historical order data; A target area is selected from the multiple areas according to the vehicle saturation in each area, the vehicle saturation difference and the vehicle demand after a preset time.

10. The method according to claim 1, It is characterized in that Determine the target area where idle vehicles need to be dispatched to other areas, including: After each idle vehicle is matched with an order, an area in each area where the number of idle vehicles that are not matched with an order is greater than a preset number is determined as a target area.

11. The method according to claim 1, It is characterized in that Generating, according to the proportion, a dispatch instruction for sending to the idle vehicles in the target area, so that the idle vehicles in the target area drive to the corresponding candidate area according to the dispatch instruction, including: Obtaining the dispatching distances between each idle vehicle in the target area and each candidate area corresponding to the target area; According to the proportion and the dispatching distance, a target idle vehicle to be dispatched to each candidate area corresponding to the target area is determined, and a dispatching instruction for sending to the target idle vehicle is generated to make the target idle vehicle travel to the candidate area.

12. A device for generating a scheduling instruction, It is characterized in that include: An area determination module is used to determine a target area where idle vehicles need to be dispatched to other areas; A heat calculation module is used to respectively calculate the order propagation heat of each candidate area corresponding to the target area; wherein the order propagation heat is used to characterize the order heat of the candidate area and multiple adjacent areas with different distances from the candidate area at different reference times in the future, the candidate area is an area whose distance from the target area is less than a preset value, the order heat is obtained based on the prediction of historical order data, and the order heat refers to the number of orders contained in a certain area at a certain time; A proportion determination module, used to determine the proportion of idle vehicles dispatched from the target area to each of the candidate areas according to the difference in the order propagation heat of different candidate areas; An instruction generation module, used for generating a dispatch instruction for sending to the idle vehicles in the target area according to the proportion, so that the idle vehicles in the target area drive to the corresponding candidate area according to the dispatch instruction; Wherein, the heat calculation module is specifically used for: For each candidate area and any adjacent area of ​​the candidate area, the order popularity of the candidate area and each adjacent area corresponding to the candidate area at the corresponding reference time is calculated respectively; the difference between the current time and the reference time is positively correlated with the target distance; the reference time is the time after the current time, and the target distance is the distance between each candidate area or any adjacent area of ​​the candidate area and the candidate area; For each candidate area, the order propagation heat of the candidate area is calculated according to the order heat of the candidate area and each adjacent area corresponding to the candidate area and the corresponding target distance; The order propagation heat of the candidate area is the sum of the order heat of the candidate area and the attenuated order heat of each adjacent area corresponding to the candidate area, and the attenuated order heat is determined according to the target distance.

13. An electronic device, It is characterized in that include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of any method as claimed in claims 1 to 11.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are executed.