IP Library › Granted Patent US 11,282,026
Granted Patent B2
US 11,282,026 · App. 16/269,182 · Granted Mar 22, 2022

Method and apparatus for planning route

Inventor: Junxiang Fan (Beijing, CN)
Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
G06Q10/08355G06Q10/047G06Q30/0284
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,282,026
App. No.
16/269,182
Granted
Mar 22, 2022
Kind
B2
Abstract

Embodiments of the present disclosure disclose a method and apparatus for planning a route. A specific embodiment of the method includes: acquiring task information; generating initial route information based on the task information; performing the updating step including: updating the second sequence in the second sequence set based on a preset rule; updating the first sequence in the first sequence set based on the updated second sequence set; and determining a delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set; and the method further includes: determining, based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition.

Claims (63)

1. A method for planning a route, the method, performed by one or more processors, comprising:

acquiring task information, the task information comprising a location of an initial node where to-be-delivered items are located, a location of a destination node of the to-be-delivered items, and a location of an intermediate node between the initial node and the destination node;

generating initial route information based on the task information, the initial route information comprising a first sequence set and a second sequence set, the first sequence set comprising at least one first sequence, the first sequence being used to indicate a route of a delivery unit delivering the to-be-delivered items from the initial node to one of the intermediate node, the second sequence set comprising at least one second sequence, and the second sequence being used to indicate a route of the delivery unit delivering the to-be-delivered items from one of the intermediate node to the destination node of the to-be-delivered items;

performing an updating step for a plurality of times until a preset update termination condition is met, the updating step comprising:

i) removing randomly a predetermined number of the destination node comprised in the second sequence in the second sequence set to obtain a third sequence set;

ii) adding randomly the removed destination node to a third sequence in the third sequence set to generate an updated second sequence set;

iii) updating the first sequence in the first sequence set based on the updated second sequence sets; and determining a delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set;

iv) determining the delivery cost is not less than a target delivery cost, and counting a number of continuous determinations in performing the updating step for the plurality of times, in response to the delivery cost being not less than the target delivery cost, the determination including determining that the deliver cost is not less than the target delivery cost; and

v) selecting randomly an intermediate node associated with a plurality of destination nodes, removing a destination node of the plurality of destination nodes associated with the selected intermediate node comprised in the second sequence in the second sequence set to obtain a fourth sequence set, adding the removed destination node randomly to a fourth sequence in the fourth sequence set to generate the updated second sequence, updating the first sequence in the first sequence set based on the updated second sequence set, and determining the delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set, in response to the counted number being greater than a preset threshold, wherein the plurality of destination nodes associated with the selected intermediate node are destination nodes of a route of a delivery unit delivering to-be-delivered items from the selected intermediate node;

determining, in response to the preset update termination condition being met and based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition; and

controlling a vehicle in transportation based on the route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node.

2. The method according to claim 1 , wherein the generating initial route information based on the task information comprises:

generating the second sequence in the second sequence set based on the task information using a large-scale neighborhood search algorithm;

determining, based on the generated second sequence, item information of the to-be-delivered items to be stored by each intermediate node; and

generating the first sequence in the first sequence set based on the determined item information using the large-scale neighborhood search algorithm.

3. The method according to claim 1 , wherein the updating the first sequence in the first sequence set based on the updated second sequence set comprises:

determining, based on the updated second sequence set, item information of the to-be-delivered item to be stored by the intermediate node; and

generating the first sequence in the first sequence set based on the determined item information using a large-scale neighborhood search algorithm.

4. The method according to claim 1 , wherein after determining the delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set, the updating step further comprise:

determining the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set as the target delivery cost, in response to the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set being less than the target delivery cost.

5. The method according to claim 1 , wherein the updating step further comprise:

determining the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set as the target delivery cost.

6. The method according to claim 1 , wherein the determining, based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition comprises:

acquiring a minimum delivery cost in the determined delivery cost in response to meeting a preset update termination condition; and

determining the route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node based on a first sequence set and a second sequence set associated with the acquired delivery cost.

7. An apparatus for planning a route, the apparatus comprising:

at least one processor; and

a memory storing instructions, wherein the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

acquiring task information, the task information comprising a location of an initial node where to-be-delivered items are located, a location of a destination node of the to-be-delivered items, and a location of an intermediate node between the initial node and the destination node;

generating initial route information based on the task information, the initial route information comprising a first sequence set and a second sequence set, the first sequence set comprising at least one first sequence, the first sequence being used to indicate a route of a delivery unit delivering the to-be-delivered items from the initial node to one of the intermediate node, the second sequence set comprising at least one second sequence, and the second sequence being used to indicate a route of the delivery unit delivering the to-be-delivered items from the one of the intermediate node to the destination node of the to-be-delivered items;

performing an updating step for a plurality of times until a preset update termination condition is met, the updating step comprising:

i) removing randomly a predetermined number of the destination node comprised in the second sequence in the second sequence set to obtain a third sequence set;

ii) adding randomly the removed destination node to a third sequence in the third sequence set to generate an updated second sequence set;

iii) updating the first sequence in the first sequence set based on the updated second sequence set, and determining a delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set;

iv) determining whether the delivery cost is not less than a target delivery cost, and counting a number of continuous determinations in performing the updating step for the plurality of times, in response to the delivery cost being not less than the target delivery cost, the determination including determining that the deliver cost is not less than the target delivery cost; and

v) selecting randomly an intermediate node associated with a plurality of destination nodes, removing a destination node of the plurality of destination nodes associated with the selected intermediate node comprised in the second sequence in the second sequence set to obtain a fourth sequence set, adding the removed destination node randomly to a fourth sequence in the fourth sequence set to generate the updated second sequence, updating the first sequence in the first sequence set based on the updated second sequence set, and determining the delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set, in response to the counted number being greater than a preset threshold, wherein the plurality of destination nodes associated with the selected intermediate node are destination nodes of a route of a delivery unit delivering to-be-delivered items from the selected intermediate node;

determining, based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition; and

controlling a vehicle in transportation based on the route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node.

8. The apparatus according to claim 7 , wherein the generating initial route information based on the task information comprises:

generating the second sequence in the second sequence set based on the task information using a large-scale neighborhood search algorithm;

determining, based on the generated second sequence, item information of the to-be-delivered items to be stored by each intermediate node; and

generating the first sequence in the first sequence set based on the determined item information using the large-scale neighborhood search algorithm.

9. The apparatus according to claim 7 , wherein the updating the first sequence in the first sequence set based on the updated second sequence set comprises:

determining, based on the updated second sequence set, item information of the to-be-delivered item to be stored by the intermediate node; and

generating the first sequence in the first sequence set based on the determined item information using a large-scale neighborhood search algorithm.

10. The apparatus according to claim 7 , wherein after determining the delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set, the updating step further comprise:

determining the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set as the target delivery cost, in response to the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set being less than the target delivery cost.

11. The apparatus according to claim 7 , wherein the updating step further comprise:

determining the delivery cost of the delivery unit determined based on the updated first sequence set and the updated second sequence set as the target delivery cost.

12. The apparatus according to claim 7 , wherein the determining, based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition comprises:

acquiring a minimum delivery cost in the determined delivery cost in response to meeting a preset update termination condition; and

determining the route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node based on a first sequence set and a second sequence set associated with the acquired delivery cost.

13. A non-transitory computer readable medium, storing a computer program thereon, the program, when executed by a processor, causes the processor to perform operations, the operations comprising:

acquiring task information, the task information comprising a location of an initial node where to-be-delivered items are located, a location of a destination node of the to-be-delivered items, and a location of an intermediate node between the initial node and the destination node;

generating initial route information based on the task information, the initial route information comprising a first sequence set and a second sequence set, the first sequence set comprising at least one first sequence, the first sequence being used to indicate a route of a delivery unit delivering the to-be-delivered items from the initial node to one of the intermediate node, the second sequence set comprising at least one second sequence, and the second sequence being used to indicate a route of the delivery unit delivering the to-be-delivered items from one of the intermediate node to the destination node of the to-be-delivered items;

performing an updating step for a plurality of times until a preset update termination condition is met, the updating step comprising:

i) removing randomly a predetermined number of the destination node comprised in the second sequence in the second sequence set to obtain a third sequence set;

ii) adding randomly the removed destination node to a third sequence in the third sequence set to generate an updated second sequence;

iii) updating the first sequence in the first sequence set based on the updated second sequence set, and determining a delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set;

iv) determining whether the delivery cost is not less than a target delivery cost, and counting a number of continuous determinations in performing the updating step for the plurality of times, in response to the delivery cost being not less than the target delivery cost, the determination including determining that the deliver cost is not less than the target delivery cost; and

v) selecting randomly an intermediate node associated with a plurality of destination nodes, removing a destination node of the plurality of destination nodes associated with the selected intermediate node comprised in the second sequence in the second sequence set to obtain a fourth sequence set, adding the removed destination node randomly to a fourth sequence in the fourth sequence set to generate the updated second sequence, updating the first sequence in the first sequence set based on the updated second sequence set, and determining the delivery cost of the delivery unit based on the updated first sequence set and the updated second sequence set, in response to the counted number being greater than a preset threshold, wherein the plurality of destination nodes associated with the selected intermediate node are destination nodes of a route of a delivery unit delivering to-be-delivered items from the selected intermediate node;

determining, based on the updated first sequence set and the updated second sequence set, a route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node, in response to the determined delivery cost meeting a preset delivery cost condition; and

controlling a vehicle in transportation based on the route of the to-be-delivered items delivered from the initial node to the destination node via the intermediate node.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 6, 2019
From: FAN, JUNXIANG
To: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
Reel/Frame 048278/0117 →
Priority Claims (1)
CN 201810242130.4 · Mar 22, 2018 · national
Continuity (1)
Related Publication 20190295036A1 · Sep 26, 2019