Method for calculating delivery route based on starting and ending points and passing points and related equipment

Through the tree structure calculation method based on the starting point, end point and waypoint, the problem of efficiency and accuracy when adjusting the cargo transportation route is solved, all possible transportation plans are generated, and the calculation efficiency and decision-making accuracy are improved.

CN118552114APending Publication Date: 2024-08-27FOSHAN BAITE INTELLIGENT IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410860355.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the transportation of goods, it is difficult for the existing technology to dynamically adjust the transportation route while maintaining efficiency and accuracy. Especially when adding waypoints, the amount of calculation is large, resulting in a decrease in decision-making efficiency.

Method used

Using a tree structure calculation method based on the starting point, end point and way point, by determining the transportation data between the starting point, way point and end point, and splicing and integrating by traversing the nodes, all possible delivery route plans are generated to improve calculation efficiency.

Benefits of technology

The calculation efficiency after adding route points in the original transportation plan is improved, and all possible transportation route plans are generated to facilitate comprehensive consideration based on traffic complexity and route priority.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552114A
    Figure CN118552114A
Patent Text Reader

Abstract

The invention relates to a method and related equipment for calculating a delivery route based on a starting point, an ending point and passing points. The method comprises the following steps: S101, respectively determining a starting point and an ending point of a tree structure according to a starting point and an ending point of an original cargo transportation route; s102, taking the increased path points of the original cargo transportation route as nodes, and adding the nodes into the tree structure; s103, respectively calculating first transportation data between the starting point and each path point, second transportation data between two different path points and third transportation data between each path point and the terminal point, wherein each transportation data comprises a transportation distance and a transportation duration; and S104, splicing and integrating the first transportation data, the second transportation data and the third transportation data in a mode of traversing the nodes, and obtaining a delivery route scheme according to all branches of the tree structure. According to the method, the calculation efficiency of increasing the approach points on the original transportation plan is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of route planning, and in particular to a method and related equipment for calculating a delivery route based on a starting point, an end point and a waypoint. Background Art

[0002] Generally, in the process of cargo transportation, the warehouse staff of the cargo company will contact the transportation staff to load and deliver the cargo at the cargo factory according to the shipping report provided by the PMC (Planner). However, as the customer base served by the cargo company grows day by day, the practice of determining the transportation method, delivery order and quantity by manual decision-making and past experience has not only declined in efficiency, but personnel changes have also become the biggest variable in this method.

[0003] In the process of cargo transportation, the cargo route is planned by personnel. Once the route is determined, if more locations are to be added to the transportation route, it needs to be re-planned. This requires a lot of calculations for manual methods such as planners, and it is impossible to balance efficiency and accuracy. Therefore, how to simplify the way to judge the delivery plan and improve the accuracy of decision-making is an urgent problem to be solved. Summary of the invention

[0004] The present invention provides a method and related equipment for calculating a delivery route based on a starting point, a destination and a waypoint, aiming to solve the technical problem that the planning process cannot take into account both efficiency and accuracy when adding a route plan to the original transportation route.

[0005] In order to solve the above technical problems, in a first aspect, the present invention provides a method for calculating a delivery route based on a starting point, a destination and a waypoint, the method comprising the following steps:

[0006] S101, determining the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route;

[0007] S102, adding the waypoints added to the original cargo transportation route as nodes to the tree structure;

[0008] S103, respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including transportation distance and transportation duration;

[0009] S104, by traversing the nodes, the first transportation data, the second transportation data, and the third transportation data are spliced ​​and integrated, and a delivery route plan is obtained according to all branches of the tree structure.

[0010] Furthermore, the number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

[0011] Furthermore, step S104 is specifically as follows:

[0012] The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein:

[0013] When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan;

[0014] When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

[0015] Furthermore, when m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

[0016] In a second aspect, the present invention further provides a system for calculating a delivery route based on a starting point, a destination point and a waypoint, comprising:

[0017] A tree initialization module is used to determine the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route;

[0018] A tree branching module, used to add waypoints added to the original cargo transportation route as nodes to the tree structure;

[0019] a route calculation module, for respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including a transportation distance and a transportation duration;

[0020] The route integration module is used to splice and integrate the first transportation data, the second transportation data, and the third transportation data by traversing the nodes, and obtain a delivery route plan according to all branches of the tree structure.

[0021] Furthermore, the number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

[0022] Furthermore, the route integration module is specifically used for:

[0023] The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein:

[0024] When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan;

[0025] When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

[0026] Furthermore, when m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

[0027] In a third aspect, the present invention further provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the method for calculating a delivery route based on starting and ending points and waypoints as described in any one of the above embodiments are implemented.

[0028] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for calculating a delivery route based on starting and ending points and waypoints as described in any one of the above embodiments are implemented.

[0029] The beneficial effect achieved by the present invention is that a method for calculating a delivery route based on a starting point, a destination and a waypoint is proposed. The method constructs a tree structure with the starting point, the destination and the waypoints, performs route analysis on the waypoints that may be added to the transportation route, and calculates the combination between each waypoint by traversing, thereby reflecting all possible transportation route solutions in the tree structure. The present invention improves the calculation efficiency after adding waypoints to the original transportation plan. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of the steps of a method for calculating a delivery route based on a starting point, a destination point and a waypoint provided by an embodiment of the present invention;

[0031] Figure 2 is a schematic diagram of a repeated arrangement tree structure provided by an embodiment of the present invention;

[0032] Figure 3 It is a schematic diagram of a traversal random permutation tree structure provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0034] Please refer to Figure 1 , Figure 1 1 is a flow chart of steps of a method for calculating a delivery route based on a starting point, a destination point and a waypoint provided by an embodiment of the present invention, the method comprising the following steps:

[0035] S101, determining the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route;

[0036] S102, adding the waypoints added to the original cargo transportation route as nodes to the tree structure;

[0037] S103, respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including transportation distance and transportation duration;

[0038] S104, by traversing the nodes, the first transportation data, the second transportation data, and the third transportation data are spliced ​​and integrated, and a delivery route plan is obtained according to all branches of the tree structure.

[0039] Specifically, assuming that there is only one starting point and a specified destination needs to be delivered, before considering delivery, we need to consider whether there are other waypoints that can be included in this delivery route. If we simply arrange all the waypoints repeatedly, the resulting solution is incomplete, such as Figure 2 shown.

[0040] In the embodiment of the present invention, a tree structure is used to analyze all possible waypoint path branches, such as Figure 3 shown.

[0041] The number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

[0042] Step S104 is specifically as follows:

[0043] The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein:

[0044] When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan;

[0045] When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

[0046] When m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

[0047] Depend on Figure 3 It can be seen that if there are n waypoints, there will be n solutions from the starting point to the waypoint, 2n solutions between different waypoints, and n solutions from the waypoint to the end point. Therefore, excluding the starting point and the end point, the route in the middle is the random arrangement of the paths corresponding to the m second transportation data.

[0048] When all traversals are completed, the complete tree structure is obtained, and each branch can be used as a complete delivery route plan. During the implementation process, the selection of a delivery route plan can be comprehensively considered based on factors such as traffic complexity and route priority.

[0049] The beneficial effect achieved by the present invention is that a method for calculating a delivery route based on a starting point, a destination and a waypoint is proposed. The method constructs a tree structure with the starting point, the destination and the waypoints, performs route analysis on the waypoints that may be added to the transportation route, and calculates the combination between each waypoint by traversing, thereby reflecting all possible transportation route solutions in the tree structure. The present invention improves the calculation efficiency after adding waypoints to the original transportation plan.

[0050] The embodiment of the present invention further provides a system for calculating a delivery route based on a starting point, a destination point and a waypoint, including:

[0051] A tree initialization module is used to determine the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route;

[0052] A tree branching module, used to add waypoints added to the original cargo transportation route as nodes to the tree structure;

[0053] a route calculation module, for respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including a transportation distance and a transportation duration;

[0054] The route integration module is used to splice and integrate the first transportation data, the second transportation data, and the third transportation data by traversing the nodes, and obtain a delivery route plan according to all branches of the tree structure.

[0055] The number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

[0056] The route integration module is specifically used for:

[0057] The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein:

[0058] When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan;

[0059] When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

[0060] When m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

[0061] The system for calculating the delivery route based on the starting and ending points and the waypoints can implement the steps in the method for calculating the delivery route based on the starting and ending points and the waypoints in the above embodiment, and can achieve the same technical effects. Please refer to the description in the above embodiment and will not be repeated here.

[0062] An embodiment of the present invention further provides a computer device, which includes: a memory processor and a computer program stored in the memory and executable on the processor.

[0063] The processor calls the computer program stored in the memory to execute the steps of the method for calculating a delivery route based on the starting point, the end point and the waypoints provided in the embodiment of the present invention. Figure 1 , specifically including the following steps:

[0064] S101, determining the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route;

[0065] S102, adding the waypoints added to the original cargo transportation route as nodes to the tree structure;

[0066] S103, respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including transportation distance and transportation duration;

[0067] S104, by traversing the nodes, the first transportation data, the second transportation data, and the third transportation data are spliced ​​and integrated, and a delivery route plan is obtained according to all branches of the tree structure.

[0068] The number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

[0069] Step S104 is specifically as follows:

[0070] The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein:

[0071] When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan;

[0072] When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

[0073] When m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

[0074] The computer device provided in the embodiment of the present invention can implement the steps in the method of calculating the delivery route based on the starting and ending points and the waypoints in the above embodiment, and can achieve the same technical effect. Please refer to the description in the above embodiment and will not be repeated here.

[0075] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes and steps in the method for calculating a delivery route based on starting and ending points and waypoints provided in an embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0076] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0077] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0079] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for calculating a delivery route based on the starting and ending points and the passing points. It is characterized in that The method comprises the following steps: S101, determining the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route; S102, adding the waypoints added to the original cargo transportation route as nodes to the tree structure; S103, respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including transportation distance and transportation duration; S104, by traversing the nodes, the first transportation data, the second transportation data, and the third transportation data are spliced ​​and integrated, and a delivery route plan is obtained according to all branches of the tree structure.

2. The method for calculating a delivery route based on a starting point, a destination point and a waypoint according to claim 1, It is characterized in that The number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

3. The method for calculating a delivery route based on a starting point, a destination point and a waypoint according to claim 2, It is characterized in that Step S104 is specifically as follows: The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein: When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan; When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

4. The method for calculating a delivery route based on a starting point, a destination point and a waypoint according to claim 3, It is characterized in that When m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

5. A system for calculating delivery routes based on the starting and ending points and the passing points. It is characterized in that include: A tree initialization module is used to determine the starting point and the end point of the tree structure respectively based on the starting point and the end point of the original cargo transportation route; A tree branching module, used to add waypoints added to the original cargo transportation route as nodes to the tree structure; a route calculation module, for respectively calculating first transportation data between the starting point and each of the waypoints, second transportation data between two different waypoints, and third transportation data between each waypoint and the end point, each of the transportation data including a transportation distance and a transportation duration; The route integration module is used to splice and integrate the first transportation data, the second transportation data, and the third transportation data by traversing the nodes, and obtain a delivery route plan according to all branches of the tree structure.

6. The system for calculating a delivery route based on the starting and ending points and the waypoints according to claim 5, It is characterized in that The number of the waypoints is defined as n, and the number of the second transportation data calculated between two different waypoints is defined as m, where 0≤m<n.

7. The system for calculating a delivery route based on the starting and ending points and the passing points according to claim 6, It is characterized in that The route integration module is specifically used for: The head nodes and tail nodes of the first transportation data, the second transportation data, and the third transportation data are compared, and the first transportation data, the second transportation data, and the third transportation data connected head to tail are spliced, wherein: When m=0, the first transportation data, the second transportation data, and the third transportation data are sequentially concatenated to obtain the delivery route plan; When m≥1, define the traversal number i=1, select i from the second transportation data, and splice and integrate them with the first transportation data and the third transportation data to obtain the delivery route plan, then make i=i+1, and re-execute this step until i=m.

8. The system for calculating a delivery route based on the starting and ending points and the passing points according to claim 7, It is characterized in that When m≥1, in each traversal, the splicing order between different second transport data is randomly arranged.

9. A computer device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the method for calculating a delivery route based on a starting point, a terminal point, and a waypoint as described in any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the method for calculating a delivery route based on a starting point, a terminal point and a waypoint as described in any one of claims 1 to 4.