Order data management method and system
By calculating the regional constraint coefficient and penalty time weight, the order matching area and vehicle matching are optimized to solve the problem of unreasonable vehicle scheduling in the taxi-hailing platform, reduce waiting time and resource waste, and improve user experience and vehicle utilization.
Patent Information
- Application Number
- CN202410076109.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-01-18
AI Technical Summary
In taxi-hailing platforms, due to the large number of people taking taxis in the same area with different destinations, the vehicle scheduling is unreasonable, which wastes driver time and fuel, and users have long waiting times and poor customer experience.
By obtaining the order information and current location sent by the requester, the area constraint coefficient and penalty time weight are calculated, the order matching area and the best vehicle are determined, and vehicle matching and scheduling are optimized.
Reduce the waiting time of requesters, improve user experience, rationally schedule idle vehicles, avoid resource waste, and improve vehicle utilization.
Smart Images

Figure CN118114791B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to an order data management method and system. Background Art
[0002] Taking a taxi is a common way for people to travel. At present, people often take taxis on some platforms. However, due to the large number of people taking taxis in the same area and different destinations, it is often impossible to reasonably dispatch orders. Unreasonable vehicle dispatch will cause drivers to drive for a long time to pick up and drop off customers in order to complete an order. On the one hand, it wastes the driver's time and consumes a lot of fuel. On the other hand, for users who are in a hurry, the waiting time is long, so they will be late, and the customer experience is very poor. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes an order data management method and system.
[0004] The technical solution of the present invention is: an order data management method comprises the following steps:
[0005] S1. Obtain the order information of the order sent by the requester and the current location of the requester;
[0006] S2. Determine the order matching area according to the order information of the sent order;
[0007] S3. In the order matching area, the best vehicle is matched for the requester according to the current location of the requester.
[0008] Furthermore, in S1, the order information includes the order starting point location and the order ending point location.
[0009] Furthermore, S2 includes the following sub-steps:
[0010] S21. Determine the regional constraint coefficient according to the order starting point and the order end point;
[0011] S22. Determine the matching length of the order matching area according to the area constraint coefficient;
[0012] S23. Determine the order matching area according to the matching length of the order matching area.
[0013] The beneficial effect of the above further scheme is: in the present invention, the present invention determines the coefficient restricting the radius of the order matching area, that is, the regional constraint coefficient, according to the traffic flow conditions of the longest / shortest driving path between the order starting point and the order key location and the driver's preference for the longest / shortest driving path. The regional constraint coefficient shall not exceed half of the straight-line distance between the order starting point and the order end point. This can ensure that the best vehicle is matched within a limited area near the order starting point. On the one hand, it is convenient for the best vehicle to reach the order starting point as quickly as possible, reducing the waiting time of the requester. On the other hand, it minimizes the impact on the matching of vehicles for other requesters.
[0014] Furthermore, in S21, the calculation formula of the regional constraint coefficient C is: ; In the formula, f0 represents the traffic flow of the shortest driving path between the order starting point and the order end point, f1 represents the traffic flow of the longest driving path between the order starting point and the order end point, M represents the number of vehicles on the longest driving path between the order starting point and the order end point, N represents the number of vehicles on the shortest driving path between the order starting point and the order end point, P m represents the preference of the mth vehicle on the longest driving path between the order starting point and the order ending point for the longest driving path, Q n It represents the preference of the nth vehicle on the shortest driving path between the order starting point and the order ending point for the longest driving path, and e represents the index.
[0015] The vehicle's preference for the route can be calculated using the G1-TOPSIS method. The longest / shortest driving route between the starting location and the order end location can be generated using an electronic map or existing navigation software.
[0016] Furthermore, in S22, the calculation formula of the matching length R of the order matching area is: R=CL; wherein L represents the straight-line distance between the order starting position and the order ending position, and C represents the area constraint coefficient.
[0017] Furthermore, in S23, the specific method for determining the order matching area is: taking the order starting point position as the center of the circle and the matching length of the order matching area as the radius, a circular area is determined as the order matching area.
[0018] Furthermore, S3 includes the following sub-steps:
[0019] S31, obtaining idle vehicles in the order matching area, and determining the penalty time weight of each idle vehicle according to the location of each idle vehicle, the current location of the requester, and the starting location of the order;
[0020] S32. Match the best vehicle for the requester based on the penalty time weights of each idle vehicle.
[0021] The beneficial effect of the above further scheme is: in the present invention, a time coefficient that can reflect each idle vehicle, namely the penalty time weight, is determined based on three parameters: the current location of the requester, the acceptable waiting time of the requester, and the time it takes for the idle vehicle to travel to the starting point of the order. The smaller the penalty time weight, the sooner the idle vehicle can reach the starting point of the order, thereby avoiding waste of vehicle scheduling resources.
[0022] Furthermore, in S31, the calculation formula of the penalty time weight λ of the idle vehicle is: ; Where J represents a 0-1 decision variable, t0 represents the acceptable waiting time for the requester, t1 represents the time it takes for an idle vehicle to travel to the order starting point, t2 represents the time it takes for the requester to travel from the current location to the order starting point, max(·) represents the maximum value operation, min(·) represents the minimum value operation, and ln(·) represents the logarithmic function.
[0023] J=1 means that the requester's location is different from the order's starting point, and J=0 means that the requester's location is the same as the order's starting point.
[0024] Furthermore, in S32, the specific method of matching the best ride vehicle for the requester is: taking the idle vehicle corresponding to the minimum penalty time weight as the best ride vehicle.
[0025] The beneficial effects of the present invention are as follows: the order data management method proposed in the present invention can divide the starting point and the end point of the order sent by the requester into regions, define an order matching area of appropriate size and sufficient vehicle supply, and match the best vehicle for the requester within the order matching area, thereby minimizing the waiting time of the requester and improving the user experience; at the same time, it also reasonably dispatches idle vehicles to avoid waste of resources.
[0026] Based on the above method, the present invention also proposes an order data management system, including a data acquisition unit, an order matching area generation unit and an optimal ride vehicle matching unit;
[0027] The data acquisition unit is used to acquire the order information of the order sent by the requester and the current location of the requester;
[0028] The order matching area generating unit is used to determine the order matching area according to the order information of the sent order;
[0029] The best ride vehicle matching unit is used to match the best ride vehicle for the requester within the order matching area.
[0030] The beneficial effects of the present invention are as follows: the order data management system proposed by the present invention allocates idle vehicles in divided areas to meet the riding needs of requesters and improve the utilization rate of idle vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of the order data management method;
[0032] Figure 2 This is a structural diagram of the order data management system. DETAILED DESCRIPTION
[0033] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0034] like Figure 1 As shown, the present invention provides an order data management method, comprising the following steps:
[0035] S1. Obtain the order information of the order sent by the requester and the current location of the requester;
[0036] S2. Determine the order matching area according to the order information of the sent order;
[0037] S3. In the order matching area, the best vehicle is matched for the requester according to the current location of the requester.
[0038] In the embodiment of the present invention, in S1, the order information includes the order starting point location and the order ending point location.
[0039] In this embodiment of the present invention, S2 includes the following sub-steps:
[0040] S21. Determine the regional constraint coefficient according to the order starting point and the order end point;
[0041] S22. Determine the matching length of the order matching area according to the area constraint coefficient;
[0042] S23. Determine the order matching area according to the matching length of the order matching area.
[0043] In the present invention, the present invention determines the coefficient restricting the radius of the order matching area, i.e., the area constraint coefficient, according to the traffic flow conditions of the longest / shortest driving path between the order starting point and the order key location and the degree of preference of the driver on the longest / shortest driving path. The area constraint coefficient is not more than half of the straight-line distance between the order starting point and the order end point. This ensures that the best vehicle is matched within a limited area near the order starting point. On the one hand, it is convenient for the best vehicle to reach the order starting point as quickly as possible, reducing the waiting time of the requester. On the other hand, it minimizes the impact on the matching of vehicles for other requesters.
[0044] In the embodiment of the present invention, in S21, the calculation formula of the area constraint coefficient C is: ; In the formula, f0 represents the traffic flow of the shortest driving path between the order starting point and the order end point, f1 represents the traffic flow of the longest driving path between the order starting point and the order end point, M represents the number of vehicles on the longest driving path between the order starting point and the order end point, N represents the number of vehicles on the shortest driving path between the order starting point and the order end point, P m represents the preference of the mth vehicle on the longest driving path between the order starting point and the order ending point for the longest driving path, Q n It represents the preference of the nth vehicle on the shortest driving path between the order starting point and the order ending point for the longest driving path, and e represents the index.
[0045] The vehicle's preference for the route can be calculated using the G1-TOPSIS method. The longest / shortest driving route between the starting location and the order end location can be generated using an electronic map or existing navigation software.
[0046] In an embodiment of the present invention, in S22, the calculation formula of the matching length R of the order matching area is: R=CL; wherein L represents the straight-line distance between the order starting position and the order ending position, and C represents the area constraint coefficient.
[0047] In an embodiment of the present invention, in S23, the specific method for determining the order matching area is: taking the order starting point position as the center of the circle and the matching length of the order matching area as the radius, a circular area is determined as the order matching area.
[0048] In this embodiment of the present invention, S3 includes the following sub-steps:
[0049] S31, obtaining idle vehicles in the order matching area, and determining the penalty time weight of each idle vehicle according to the location of each idle vehicle, the current location of the requester, and the starting location of the order;
[0050] S32. Match the best vehicle for the requester based on the penalty time weights of each idle vehicle.
[0051] In the present invention, a time coefficient that can reflect each idle vehicle, namely, a penalty time weight, is determined based on three parameters: the current location of the requester, the acceptable waiting time of the requester, and the time it takes for the idle vehicle to travel to the starting point of the order. The smaller the penalty time weight, the sooner the idle vehicle can reach the starting point of the order, thereby avoiding waste of vehicle scheduling resources.
[0052] In the embodiment of the present invention, in S31, the calculation formula of the penalty time weight λ of the idle vehicle is: ; Where J represents a 0-1 decision variable, t0 represents the acceptable waiting time for the requester, t1 represents the time it takes for an idle vehicle to travel to the order starting point, t2 represents the time it takes for the requester to travel from the current location to the order starting point, max(·) represents the maximum value operation, min(·) represents the minimum value operation, and ln(·) represents the logarithmic function.
[0053] J=1 means that the requester's location is different from the order's starting point, and J=0 means that the requester's location is the same as the order's starting point.
[0054] In the embodiment of the present invention, in S32, the specific method of matching the best ride vehicle for the requester is: taking the idle vehicle corresponding to the minimum penalty time weight as the best ride vehicle.
[0055] Based on the above method, the present invention also proposes an order data management system, such as Figure 2 As shown, it includes a data acquisition unit, an order matching area generation unit and an optimal ride vehicle matching unit;
[0056] The data acquisition unit is used to acquire the order information of the order sent by the requester and the current location of the requester;
[0057] The order matching area generating unit is used to determine the order matching area according to the order information of the sent order;
[0058] The best ride vehicle matching unit is used to match the best ride vehicle for the requester within the order matching area.
[0059] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. An order data management method, characterized in that: The following steps are involved: S1. Obtain the order information of the order sent by the requester and the current location of the requester; S2. Determine the order matching area according to the order information of the sent order; S3. In the order matching area, the best ride vehicle is matched for the requester according to the current location of the requester; The S2 comprises the following sub-steps: S21. Determine the regional constraint coefficient according to the order starting point and the order end point; S22. Determine the matching length of the order matching area according to the area constraint coefficient; S23, determining the order matching area according to the matching length of the order matching area; In S21, the calculation formula of the area constraint coefficient C is: ; In the formula, f0 represents the traffic flow of the shortest driving path between the order starting point and the order end point, f1 represents the traffic flow of the longest driving path between the order starting point and the order end point, M represents the number of vehicles on the longest driving path between the order starting point and the order end point, N represents the number of vehicles on the shortest driving path between the order starting point and the order end point, P m represents the preference of the mth vehicle on the longest driving path between the order starting point and the order ending point for the longest driving path, Q n It represents the preference of the nth vehicle on the shortest driving path between the order starting point and the order ending point for the longest driving path, and e represents the index; The S3 comprises the following sub-steps: S31, obtaining idle vehicles in the order matching area, and determining the penalty time weight of each idle vehicle according to the location of each idle vehicle, the current location of the requester, and the starting location of the order; S32, matching the best ride vehicle for the requester according to the penalty time weights of each idle vehicle; In S31, the calculation formula of the penalty time weight λ of the idle vehicle is: ; Where J represents a 0-1 decision variable, t0 represents the acceptable waiting time for the requester, t1 represents the time it takes for an idle vehicle to travel to the order starting point, t2 represents the time it takes for the requester to travel from the current location to the order starting point, max(·) represents the maximum value operation, min(·) represents the minimum value operation, and ln(·) represents the logarithmic function.
2. The order data management method according to claim 1, characterized in that: In S1, the order information includes the order starting point and the order ending point.
3. The order data management method according to claim 1, characterized in that: In S22, the calculation formula of the matching length R of the order matching area is: R=CL; where L represents the straight-line distance between the order starting point and the order ending point, and C represents the area constraint coefficient.
4. The order data management method according to claim 1, characterized in that: In S23, the specific method for determining the order matching area is: taking the order starting point position as the center of the circle and the matching length of the order matching area as the radius, a circular area is determined as the order matching area.
5. The order data management method according to claim 1, characterized in that: In the above S32, the specific method of matching the best ride vehicle for the requester is: taking the idle vehicle corresponding to the minimum penalty time weight as the best ride vehicle.
6. An order data management system, characterized in that: It includes a data acquisition unit, an order matching area generation unit and an optimal ride vehicle matching unit; The data acquisition unit is used to acquire the order information of the order sent by the requester and the current location of the requester; The order matching area generating unit is used to determine the order matching area according to the order information of the sent order; The best ride vehicle matching unit is used to match the best ride vehicle for the requester in the order matching area; The order data management system is implemented based on an order data management method, which includes the following steps: S1. Obtain the order information of the order sent by the requester and the current location of the requester; S2. Determine the order matching area according to the order information of the sent order; S3. In the order matching area, the best ride vehicle is matched for the requester according to the current location of the requester; The S2 comprises the following sub-steps: S21. Determine the regional constraint coefficient according to the order starting point and the order end point; S22. Determine the matching length of the order matching area according to the area constraint coefficient; S23, determining the order matching area according to the matching length of the order matching area; In S21, the calculation formula of the area constraint coefficient C is: ; In the formula, f0 represents the traffic flow of the shortest driving path between the order starting point and the order end point, f1 represents the traffic flow of the longest driving path between the order starting point and the order end point, M represents the number of vehicles on the longest driving path between the order starting point and the order end point, N represents the number of vehicles on the shortest driving path between the order starting point and the order end point, P m represents the preference of the mth vehicle on the longest driving path between the order starting point and the order ending point for the longest driving path, Q n It represents the preference of the nth vehicle on the shortest driving path between the order starting point and the order ending point for the longest driving path, and e represents the index; The S3 comprises the following sub-steps: S31, obtaining idle vehicles in the order matching area, and determining the penalty time weight of each idle vehicle according to the location of each idle vehicle, the current location of the requester, and the starting location of the order; S32, matching the best ride vehicle for the requester according to the penalty time weights of each idle vehicle; In S31, the calculation formula of the penalty time weight λ of the idle vehicle is: ; Where J represents a 0-1 decision variable, t0 represents the acceptable waiting time for the requester, t1 represents the time it takes for an idle vehicle to travel to the order starting point, t2 represents the time it takes for the requester to travel from the current location to the order starting point, max(·) represents the maximum value operation, min(·) represents the minimum value operation, and ln(·) represents the logarithmic function.
