Method, device, computing equipment and medium for adjusting item delivery path
By considering dynamic demands in vehicle route planning, constructing spatio-temporal networks and service arcs, and optimizing delivery routes to maximize net income, the problem that delivery route planning in the existing technology cannot respond to new demands in a timely manner is solved, and customer satisfaction and delivery are improved. benefit.
Patent Information
- Application Number
- CN202011351010.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-11-26
AI Technical Summary
The existing technology fails to effectively consider the service time of delivery personnel at customer points in vehicle route planning, resulting in an inability to respond in time when emergency delivery or pickup needs occur, resulting in reduced customer satisfaction and long waiting times.
By obtaining distribution network information and task information, the initial path is determined, and a path optimization model is established when dynamic demand information is received. Distribution tasks are allowed to be interrupted to optimize the path, and the distribution path is adjusted to meet new demands. Space-time arcs and service arcs are used to build dynamic Vehicle route optimization model optimizes delivery routes to maximize net revenue.
It improves customer satisfaction and overall distribution efficiency, can better respond to new demands generated during the service process, reduces invalid waiting time, and improves distribution efficiency.
Smart Images

Figure CN113780609B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a method, apparatus, computing device, and medium for adjusting an item delivery path. Background Art
[0002] In the process of planning vehicle routes, related technologies do not take the service time of delivery personnel at customer points into consideration, or regard the service time of delivery personnel at customer points as an indivisible period of time. This means that if a delivery personnel receives a delivery or pickup request with a tight time window while performing delivery service at a customer point, it is likely that they will not be able to fulfill the contract on time due to the constraints of existing modeling and optimization solution methods, resulting in reduced customer satisfaction. Summary of the invention
[0003] In view of this, the present disclosure provides a method, apparatus, computing device, and medium for adjusting an item delivery path.
[0004] One aspect of the present disclosure provides a method for adjusting an item delivery path, comprising: acquiring delivery network information and delivery task information; determining a delivery path based on the delivery network information and the delivery task information; executing an item delivery task via the delivery path; in the process of executing the delivery task, in response to receiving dynamic demand information, establishing a path optimization model based on the dynamic demand information, the path optimization model being used to optimize the delivery path while allowing the delivery task to be interrupted; and adjusting the delivery path using the path optimization model.
[0005] According to an embodiment of the present disclosure, the distribution network information includes: the locations of multiple areas to be delivered and the travel time between the multiple areas to be delivered; the distribution task information includes: the departure time of the site, the latest return time of the site and the remaining service time of each of the multiple areas to be delivered.
[0006] According to an embodiment of the present disclosure, determining the delivery path based on the delivery network information and the delivery task information includes: determining the shortest path passing through the multiple areas to be delivered based on the locations of the multiple areas to be delivered, the travel time between the multiple areas to be delivered, the station departure time, the latest return time of the station, and the remaining service time of each area to be delivered among the multiple areas to be delivered, wherein the shortest path satisfies τ+ST+TT≤LAT, wherein τ is the current time, LAT is the latest return time to the station, TT is the time spent on the delivery path, and ST is the sum of the remaining service times of the multiple areas to be delivered.
[0007] According to an embodiment of the present disclosure, the dynamic demand information includes: the location of the newly added area to be delivered, the remaining service time and the time window of the newly added area to be delivered, and the time window includes the planned start service time and the planned end service time; establishing a path optimization model based on the dynamic demand information includes: updating the distribution network information and the distribution task information according to the location of the newly added area to be delivered, the remaining service time and the time window of the newly added area to be delivered; and establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information.
[0008] According to an embodiment of the present disclosure, establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information includes: determining the objective function of the path optimization model according to the following formula:
[0009]
[0010] Among them, the x i,j,t,t′ (τ) is a decision variable used to indicate whether to select the space-time arc (i, j, t, t′) at time τ. ,j,t,t′ is the utility of choosing a spacetime arc (i, j, t, t′), where tt i,j,t,t′ is the cost of selecting the space-time arc (i, j, t, t′), the space-time arc (i, j, t, t′) is a directed arc from the space-time point (i, t) to the space-time point (i, t′), the space-time point (i, t) includes the location information of the area to be delivered i and the time information at time t, the space-time point (i, t′) includes the location information of the area to be delivered i and the time information at time t′, i is a positive integer, and i is less than or equal to the total number of the current areas to be delivered, and A is a set of space-time arcs.
[0011] According to an embodiment of the present disclosure, the step of establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information further includes: determining the constraint conditions of the path optimization model according to the following formula:
[0012]
[0013]
[0014] Among them, the c τ is the delivery area where the delivery task is being performed at time t = τ, the LAT is the latest return time to the station, and the ST i is the remaining service time of the delivery area i, the T i (τ) is the length of time that the delivery area i has been served up to time t=τ, and the P τA collection of areas to be delivered that have not met the service time requirements.
[0015] According to an embodiment of the present disclosure, the use of the path optimization model to adjust the delivery path includes: establishing a recursive relationship according to the following formula:
[0016]
[0017] Where i, j∈N, N is the set of areas to be delivered, N″ is a subset of N-{i}, and F i,N″ is the shortest time from the planned start time of service in the delivery area i to the return to the station after passing all points in N″. ij is the travel time between delivery areas i and j, the ST j is the time required to serve in the delivery area j; and solves the path optimization model to obtain a new delivery path.
[0018] Another aspect of the present disclosure provides a device for adjusting an item delivery path, including an acquisition module for acquiring delivery network information and delivery task information; a determination module for determining a delivery path based on the delivery network information and the delivery task information; an execution module for executing the item delivery task via the delivery path; and an adjustment module for adjusting the delivery path according to the dynamic demand information received during the execution of the delivery task.
[0019] Another aspect of the present disclosure provides a computing device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
[0020] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0021] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed.
[0022] According to the embodiments of the present disclosure, a path optimization model is established based on dynamic demand information. The path optimization model is used to optimize the delivery path while allowing the delivery task to be interrupted. This can solve the problem that the existing modeling and optimization methods are unable to respond in a timely manner to new demands generated during the service process, resulting in long invalid waiting times and reduced customer satisfaction. Compared with related technologies, it can better improve customer satisfaction and overall delivery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0024] Figure 1 The application scenario of the method and device for adjusting the item delivery path according to the embodiment of the present disclosure is schematically shown;
[0025] Figure 2 A flowchart of a method for adjusting an item delivery path according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 3 A flowchart of a method for adjusting an item delivery path according to another embodiment of the present disclosure is schematically shown;
[0027] Figure 4 A structural block diagram schematically shows an apparatus for adjusting an item delivery path according to an embodiment of the present disclosure; and
[0028] Figure 5 The block diagram of a computer system suitable for implementing the method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0032] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0033] The embodiment of the present disclosure provides a method for adjusting the delivery path of an item and a device capable of applying the method. The method includes acquiring delivery network information and delivery task information; determining the delivery path according to the delivery network information and the delivery task information; executing the delivery task of the item via the delivery path; and in the process of executing the delivery task, in response to receiving dynamic demand information, adjusting the delivery path according to the dynamic demand information.
[0034] Figure 1 The exemplary application scenario 100 to which the method for adjusting the item delivery path according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown are merely examples of application scenarios to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0035] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a site 10 , a delivery vehicle 20 , and delivery areas 31 , 32 , 33 , and 34 .
[0036] The delivery vehicle 20 starts from the station 10, and according to the planned path, it passes through the delivery areas 31, 32, and 33 in turn to perform the delivery task, and returns to the station 10 after the task is completed. At the beginning, the system will perform initial vehicle path planning according to the distribution of orders at each customer point. If new demands are dynamically generated during the delivery process, the delivery route will be adjusted according to the new demands. The delivery vehicle 20 starts from the station 10 at the beginning, and according to the initial vehicle path planning, it goes to the delivery areas 31, 32, and 33 to perform the delivery task. Subsequently, in the process of performing the delivery task, the state deduction is performed according to the preset time step (unit time interval), and the state information such as the location information of the delivery vehicle 20 and the order service status of each delivery area is updated at each time step. If no new delivery demand is generated during the execution of the delivery task, the delivery vehicle 20 travels according to the original planned path. If a new delivery demand is generated at a certain moment, and the delivery area corresponding to the new demand is, for example, the delivery area 34, then the optimization process is turned into. The current state information of the delivery vehicle 20 is used as the input of the subsequent optimization model. According to the remaining service time of the delivery areas 31, 32, 33, and 34, the path planning is re-performed to obtain a new vehicle path and enter the next time step. The above process is repeated, and the state deduction process and the optimization process are repeatedly iterated until the delivery vehicle 20 returns to the station 10 before the specified time.
[0037] It should be understood that Figure 1 The number of sites, delivery vehicles and delivery areas in the embodiment is only illustrative. According to the implementation requirements, there can be any number of sites, delivery vehicles and delivery areas.
[0038] It should be noted that the method for adjusting the item delivery path provided in the embodiment of the present disclosure can generally be executed by a terminal device, such as a handheld terminal device used by a delivery person or an on-board computer on a delivery vehicle. Accordingly, the device for adjusting the item delivery path provided in the embodiment of the present disclosure can generally be set in a terminal device. The method for adjusting the item delivery path provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the terminal device and can communicate with the terminal device. Accordingly, the device for adjusting the item delivery path provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the terminal device and can communicate with the terminal device.
[0039] Figure 2 The flowchart of the method for adjusting the item delivery path according to the embodiment of the present disclosure is schematically shown.
[0040] like Figure 2 As shown, the method includes, in operation S210, obtaining distribution network information and distribution task information.
[0041] According to an embodiment of the present disclosure, the distribution network information may include, for example, the locations of multiple areas to be distributed and the travel time between the multiple areas to be distributed, etc. The distribution task information may include, for example, the departure time of the station, the latest return time of the station, and the remaining service time of each of the multiple areas to be distributed, etc.
[0042] Then, in operation S220, a delivery path is determined according to the delivery network information and the delivery task information.
[0043] According to an embodiment of the present disclosure, the shortest path passing through multiple areas to be delivered can be determined based on the locations of multiple areas to be delivered, the travel time between multiple areas to be delivered, the departure time of the station, the latest return time of the station, and the remaining service time of each area to be delivered in the multiple areas to be delivered, wherein the shortest path satisfies τ+ST+TT≤LAT, wherein τ is the current time, LAT is the latest return time of the station, TT is the time spent on the delivery path, and ST is the sum of the remaining service times of multiple areas to be delivered. When performing initial path planning (the delivery vehicle does not depart from the station), τ=EDT, and EDT is the departure time of the station.
[0044] In operation S230, a delivery task of the item is performed via the delivery path.
[0045] According to an embodiment of the present disclosure, if no dynamic demand information is received during the execution of a delivery task, that is, no new delivery demand is generated, the delivery task of the item is executed according to the original delivery route.
[0046] In operation S240, during the execution of the delivery task, in response to receiving the dynamic demand information, a path optimization model is established according to the dynamic demand information, the path optimization model being used to optimize the delivery path while allowing the delivery task to be interrupted.
[0047] In operation S250, the delivery route is adjusted using the route optimization model.
[0048] According to an embodiment of the present disclosure, during the delivery process, the order system sometimes receives delivery orders or pickup orders from the client, and needs to process these delivery orders. The dynamic demand information corresponding to these orders includes: the location of the newly added area to be delivered, the remaining service time of the newly added area to be delivered, and the time window. Among them, the time window refers to the fulfillment time required by the dynamic demand. For example, if a new order is received at 9:15 am and requires door-to-door pickup in a certain area within 1 hour, the time window of the dynamic demand is 9:15-10:15 am.
[0049] According to the embodiments of the present disclosure, the distribution network information and distribution task information can be updated according to the location of the newly added distribution area, the remaining service time and time window of the newly added distribution area. A path optimization model with the goal of maximizing net profit is established based on the updated distribution network information and distribution task information. Then, the path optimization model is used to determine the target path as the new distribution path.
[0050] According to an embodiment of the present disclosure, the net benefit is equal to the total utility that can be obtained by delivering in each delivery area minus the sum of the travel costs incurred when moving between the delivery areas. In this embodiment, an objective function can be established with the maximum net benefit as the goal, and constraint conditions can be established based on the flow balance constraint and the delivery area service time constraint, so as to determine the path optimization model.
[0051] After the path optimization model is established, the path optimization model can be solved by a recursive method to obtain the target path.
[0052] According to the embodiments of the present disclosure, a path optimization model is established based on dynamic demand information. The path optimization model is used to optimize the delivery path while allowing the delivery task to be interrupted. This can solve the problem that the existing modeling and optimization methods are unable to respond in a timely manner to new demands generated during the service process, resulting in long invalid waiting times and reduced customer satisfaction. Compared with related technologies, it can better improve customer satisfaction and overall delivery efficiency.
[0053] In addition, the related art cannot reasonably explain and describe the situation of multiple round trips between different delivery areas by delivery vehicles from the perspective of models and algorithms. According to the embodiments of the present disclosure, by representing the changes of the delivery vehicle's location, orders, and service status of the responsible areas over time, it is possible to describe the dynamic state of the delivery vehicle.
[0054] The following is a further description of the method for adjusting the delivery path according to the dynamic demand information in conjunction with a specific embodiment. Those skilled in the art can understand that the following exemplary embodiments are only used to understand the present disclosure, and the present disclosure is not limited thereto.
[0055] Step 1: Use the state deduction method to represent the changes of delivery vehicle related information over time.
[0056] The state deduction process is a transformation process that describes the distribution state-related information at each time step over time. According to the embodiments of the present disclosure, the state information of the delivery vehicle changes over time, and this information includes the location of the delivery vehicle at each moment, the set of delivery areas that have not met the service time, the set of delivery areas that have met the service time, the set of service time of the delivery areas that have not met the service time, etc. The purpose of establishing the state deduction process is to sort out and integrate the delivery vehicle and order information at each moment to form the input information of the optimization model.
[0057] Step 2: Establish an abstract space-time network. The construction of the space-time network may include the following steps:
[0058] Step 2.1: Abstracting physical nodes from the actual scene According to the embodiments of the present disclosure, the actual scene includes physical areas such as sites and delivery areas (customer points), which can be abstracted as nodes of no size in the space-time network.
[0059] Step 2.2: Configure the time coordinate for each node to form a space-time point.
[0060] For example, in this embodiment, the earliest departure time of the station is EDT, and the latest return time is LAT (LT), that is, the latest time when the delivery vehicle returns to the station. Determine n discrete time points (n is a positive integer) within the time range between EDT and LAT, and for each node, assign these discrete time points to the node to obtain n space-time points. The space-time point contains both the spatial coordinates and the time coordinates of the node. More specifically, let the delivery area set be M, the time point set be R, and for Add (i, t) to the space-time point set V.
[0061] Step 2.3: Calculate the travel time between two nodes based on the topological relationship in the physical network, where the physical network refers to the distribution network consisting of nodes (stations or distribution areas) and road segments (roads connecting various areas).
[0062] Step 2.4: Use directed arcs to connect two spacetime points to form a spacetime arc (i.e., a line between two spacetime points).
[0063] According to the embodiments of the present disclosure, the space-time arc can be divided into a travel arc and a service arc, and the construction processes of the two are respectively described below.
[0064] (1) Construct a collection of space-time travel arcs.
[0065] According to an embodiment of the present disclosure, let the arc set be E, and the travel time cost of the travel arc (referred to as the travel arc cost) be tt i,j,t,t′In this embodiment, the travel arc cost = travel time * unit time cost. The unit time cost includes unit time operation cost, maintenance cost, etc. Add a spacetime arc (i, j, t, t+tt) between the spacetime point pair (i, t) and (j, t′) i,j,t,t′ ,) and add it to the space-time travel arc set A T middle.
[0066] (2) Construct a set of spatiotemporal service arcs.
[0067] According to the embodiments of the present disclosure, spatiotemporal service arcs can be divided into scheduled service arcs and dynamic service arcs according to their types, and the construction processes of the two are respectively described below.
[0068] 1) Construct a set of reservation service arcs.
[0069] According to the embodiment of the present disclosure, a service arc is a space-time arc connecting the same place at different times, that is, a directed arc (i, i, t, t′) from (i, t) to (i, t′). The specific construction method is: Add the space-time arc (i, i, t, t′) to the space-time point pair (i, t) and (i, t′) and add it to the reservation service arc set A Sd middle.
[0070] 2) Build a dynamic service arc set.
[0071] According to the embodiments of the present disclosure, as time goes by, dynamic demand may appear in a certain delivery area at some point in the delivery process. In order to distinguish the scheduled demand from the dynamic demand in the same delivery area, a corresponding number of 0s are added after the area number according to the number of dynamic demands in the area as virtual points of the area to distinguish them. Assuming that a new demand is generated for the first time in delivery area i, the time window is [t s , t e ], where t s is the earliest service start time in delivery area i, t e is the latest service start time. The corresponding virtual delivery area iO is (iO, t s ) and (iO, t e ) is added to the space-time point set V, and (iO, iO, t s , t e ) Join the dynamic service arc set A Sr middle.
[0072] Step 2.5: Set the cost (actual cost or generalized cost) corresponding to each space-time arc
[0073] According to an embodiment of the present disclosure, the cost of the travel arc is the travel time cost tt i,j,t,t′, the cost of the service arc is the service time benefit u i,j,t,t′ In this embodiment, the service duration income u i,j,t,t′ It refers to the commission or reward brought by the orders processed within the service time (t'-t). In addition, when a new demand is generated, the arc connecting the virtual area needs to define a fee. Taking the first new demand generated in the delivery area i as an example, the fee is u i0,i0,t,t′ =u i,i,t,t′ ,tt i,j0,t,t′ =tt i,j,t,t′ ,tt j0,i,t,t′ =tt j,i,t,t′ .
[0074] Step 3: Establish a dynamic vehicle routing optimization model considering interruptible services.
[0075] Step 3.1: Identify decision variables.
[0076]
[0077] According to the embodiment of the present disclosure, as shown in formula (1), x i,j,t,t′ (τ) is a decision variable, indicating whether the space-time arc (i, j, t, t′) is selected by the delivery person in the path planning at time τ. If selected, it is equal to 1, otherwise it is 0.
[0078] Step 3.2: Construct the objective function.
[0079] According to the embodiment of the present disclosure, the solution goal of this model is to maximize the net benefit (net benefit = utility - cost) obtained by the delivery person when performing delivery service under the premise of allowing interruptible service and requiring return to the station before the specified time, as shown in formula (2).
[0080]
[0081] The first term is the total utility that can be obtained by providing services in the distribution area, and the second term is the sum of the travel costs incurred when moving between distribution areas. The difference between the two terms is the total benefit. i,j,t,t′ is the utility of selecting a spatiotemporal service arc (i, j, t, t′) if (i, j, t, t′)∈A S , then u i,j,t,t′ Not 0, otherwise u i,j,t,t′ is 0. i,j,t,t′ is the cost of choosing a spacetime travel arc (i, j, t, t′) if (i, j, t, t′)∈A T , then tt i,j,t,t′ Not 0, otherwise tt i,j,t,t′ is 0.
[0082] Step 3.3: Establish spatiotemporal network flow balance constraints.
[0083] According to an embodiment of the present disclosure, the spatiotemporal network flow balance constraint is used to ensure the balance of inflow and outflow of each spatiotemporal point (i, t). Specifically, the spatiotemporal network flow balance constraint includes: for the starting point, there is only outflow flow, no inflow flow; for the end point, there is only inflow flow, no outflow flow; for the point between the starting point and the end point, the inflow flow is equal to the outflow flow. Exemplarily, the spatiotemporal network flow balance constraint is shown in formula (3).
[0084]
[0085] Step 3.4: Establish delivery area service time constraints.
[0086] According to an embodiment of the present disclosure, the delivery area service time constraint requires that the delivery area set P that does not meet the service time length τ The service time of any area in is less than or equal to the remaining unserviced time of the area. Considering the case where the service time is less than the remaining unserviced time, it is because the deliveryman may reduce the service time in some areas due to returning to the station before the specified time, as shown in formula (4).
[0087]
[0088] Among them, ST i is the total time required to serve in area i, T i (τ) is the length of time that region i has been served up to time t=τ.
[0089] Step 4: Solve using dynamic programming.
[0090] According to the embodiments of the present disclosure, the dynamic vehicle path optimization process considering interruptible services is the core process and will only be activated when dynamic demands are generated. The process uses the state information generated by the state deduction process as input information, and optimizes the vehicle path for the delivery area (including the area with new dynamic demands) that does not meet the delivery time, taking into account the interruptible services and meeting the time window of dynamic demands, and obtains the optimal delivery path as the driving plan of the delivery vehicle before arriving at the next decision moment, and performs state deduction according to the plan.
[0091] Step 4.1: Construct basic data.
[0092] According to the embodiments of the present disclosure, first, it is necessary to define the delivery area, the service time in each area, the time to return to the depot, etc., and the specific method is as follows: i, j represents the delivery area, Depot is the depot, N is the delivery set, i, j∈N, N″ is a subset of N-{i}, and m(N″) represents the number of elements in the N″ set; F i,N″is the shortest time from the start of service in area i to the return to the station after passing all points in N″, tt ij is the travel time between delivery areas i and j, ST j is the time required to serve in area j.
[0093] Step 4.2: Establish a recursive relationship.
[0094] According to an embodiment of the present disclosure, the recursive relationship is shown in formula (5):
[0095]
[0096] Step 4.3: Solve according to the recursive relationship.
[0097] More specifically, in step 4.3.1, the number of elements in the N″ set m(N″)=0, according to the recursive relation Find F i,N″ The value of As a post node.
[0098] In step 4.3.2, m(N″)=m(N″)+1, N″ is any set containing a delivery area, all possible N″ are traversed, and according to Find F i,N″ The value of As a post node.
[0099] In step 4.3.3, repeat step 4.3.2 until N″ is a set that includes all delivery areas except the site, that is, N″=N.
[0100] In step 4.3.4, output F Depot,N The value of is taken as the time consumed by the shortest path.
[0101] Step 4.4: Backtrack to get the shortest path.
[0102] More specifically, in step 4.4.1, the path sequence is set to Seq = {Depot}, and the backtracking node is j.
[0103] In step 4.4.2, backtracking is performed starting from the site j=pred_node (Depot).
[0104] In step 4.4.3, j = pred_node(j) and is added to Seq.
[0105] In step 4.4.4, step (3) is repeated until j = Depot (i.e., returning to the site).
[0106] In step 4.4.5, the output Seq is the shortest path.
[0107] According to the embodiments of the present disclosure, modeling is performed based on the space-time network, time is discretized, spatial points are formed according to discrete time points and nodes in the physical space, space-time arcs are formed between different spatial points, service arcs are used to represent the delivery process of the delivery personnel in the delivery area, and travel space-time arcs are used to represent the movement process of the delivery personnel between the site and the delivery area and between different delivery areas. Then, a dynamic vehicle path optimization model considering the interruptibility of the delivery service is established, and a dynamic programming algorithm is used to perform a step-by-step solution, which solves the technical problem that the related technology cannot model and solve the situation where the delivery service is interruptible.
[0108] Reference below Figure 3 , combined with specific embodiments Figure 2 Those skilled in the art will appreciate that the following exemplary embodiments are only used to understand the present disclosure, and the present disclosure is not limited thereto.
[0109] Figure 3 The flowchart of adjusting the item delivery path according to another embodiment of the present disclosure is schematically shown.
[0110] exist Figure 3 As shown in FIG. 1 , at the initial time (time step t=0), the initial path planning is performed according to the distribution network information and the distribution task information to obtain the distribution path, that is, the original path. Then, the distribution task of the item is performed according to the original path.
[0111] In the process of executing the delivery task, as time goes by, the time step gradually accumulates (t=t+1). The delivery status information is updated at each time step. The delivery status information may include, for example, the location of the delivery vehicle at each moment, the set of delivery areas that have not met the service time (i.e., the areas to be delivered), the set of delivery areas that have met the service time, and the set of service time of delivery areas that have not met the service time. After updating the delivery status information, it is determined whether the delivery vehicle has returned to the station. If the delivery vehicle has returned to the station, the delivery is completed. If the delivery vehicle has not returned to the station, it is determined whether dynamic demand has been generated.
[0112] If no dynamic demand is generated, the service will continue along the original route. If a dynamic demand is generated, the dynamic demand will be received. The dynamic demand may include, for example, the distribution area where the dynamic demand is generated, the estimated service time of the dynamic demand, and the dynamic demand time window. Then, the distribution status is updated according to the dynamic demand. After the distribution status is updated, the route is re-optimized for the distribution area that does not meet the service time to obtain the optimized distribution route. Then, the distribution service will continue along the updated distribution route.
[0113] Figure 4The block diagram schematically shows a device for adjusting an item delivery path according to an embodiment of the present disclosure.
[0114] like Figure 4 As shown, the device 400 for adjusting the item delivery path includes an acquisition module 410 , a determination module 420 , an execution module 430 , a modeling module 440 and an adjustment module 450 .
[0115] The acquisition module 410 can be used to acquire the delivery network information and the delivery task information.
[0116] The determination module 420 may be used to determine a delivery path according to the delivery network information and the delivery task information.
[0117] The execution module 430 may be used to execute the delivery task of the item via the delivery path.
[0118] The modeling module 440 is used to establish a path optimization model in response to receiving dynamic demand information during the execution of the delivery task, according to the dynamic demand information, and the path optimization model is used to optimize the delivery path while allowing the delivery task to be interrupted.
[0119] The adjustment module 450 uses the path optimization model to adjust the delivery path.
[0120] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0121] For example, any multiple of the acquisition module 410, the determination module 420, the execution module 430, the modeling module 440, and the adjustment module 450 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 410, the determination module 420, the execution module 430, the modeling module 440, and the adjustment module 450 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 410 , the determination module 420 , the execution module 430 , the modeling module 440 , and the adjustment module 450 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0122] Figure 5 The block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0123] like Figure 5 As shown, the computer system 500 according to the embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the random access memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0124] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other through bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0125] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0126] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0127] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0128] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0129] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0130] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0131] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for adjusting an item delivery path, comprising: Obtain distribution network information and distribution task information; Determining a delivery path according to the delivery network information and the delivery task information; Executing the task of delivering items via the delivery route; In the process of executing the delivery task, in response to receiving the dynamic demand information, a path optimization model is established according to the dynamic demand information, wherein the path optimization model is used to optimize the delivery path while allowing the delivery task to be interrupted; Using the route optimization model, adjusting the delivery route; The dynamic demand information includes: the location of the newly added delivery area, the remaining service time and time window of the newly added delivery area, and the time window includes the planned service start time and the planned service end time; The step of establishing a path optimization model according to the dynamic demand information includes: updating the delivery network information and the delivery task information according to the location of the newly added area to be delivered, the remaining service time and the time window of the newly added area to be delivered; and Based on the updated distribution network information and distribution task information, a path optimization model with the goal of maximizing net profit is established; The step of establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information includes: Establishing an abstract space-time network, wherein the space-time network is established by connecting two space-time points with directed arcs to form space-time arcs; According to the space-time arcs formed in the space-time network, a path optimization model with the goal of maximizing net benefits is established; Wherein, using the path optimization model to adjust the delivery path includes: The recursive relationship is established according to the following formula: in, , where N is the set of areas to be delivered, yes A subset of From the delivery area The scheduled service start time is The shortest time to return to the station after all points Is the delivery area and The travel time between In the delivery area The length of time the service is required; According to the recursive relationship, the path optimization model is solved to obtain a new delivery path.
2. The method according to claim 1, wherein: The distribution network information includes: locations of multiple areas to be delivered and travel times between the multiple areas to be delivered; The delivery task information includes: a station departure time, a station latest return time, and a remaining service time for each of the multiple delivery areas.
3. The method according to claim 2, wherein: The step of determining a delivery path according to the delivery network information and the delivery task information includes: Determine the shortest path through the multiple delivery areas according to the locations of the multiple delivery areas, the travel time between the multiple delivery areas, the station departure time, the latest station return time and the remaining service time of each of the multiple delivery areas, The shortest path satisfies τ+ST+TT≤LAT, wherein τ is the current time, LAT is the latest time to return to the site, TT is the time taken for the delivery path, and ST is the sum of the remaining service times of the multiple areas to be delivered.
4. The method according to claim 1, wherein: The method of establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information includes: The objective function of the path optimization model is determined according to the following formula: Among them, the is a decision variable used to represent Whether to select the space-time arc at the moment , Select the space-time arc The utility of Select the space-time arc The cost of the space-time arc Space-time point Pointing to a point in space and time The directed arc of the spacetime point It includes the location information of the delivery area i and the time information of time t. It includes the location information of the area to be delivered i and the time information at time t', wherein i is a positive integer, and i is less than or equal to the total number of the current areas to be delivered, and A is a set of space-time arcs.
5. The method according to claim 4, wherein: The method of establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information also includes: The constraint conditions of the path optimization model are determined according to the following formula: Among them, the yes The delivery area where the delivery task is being performed at the moment, the LAT is the latest return time to the station, the is the remaining service time of the delivery area i, is as of The length of time that the delivery area i has been served at the moment, A collection of areas to be delivered that have not met the service time requirements.
6. A device for adjusting an item delivery path, comprising: The acquisition module is used to obtain the distribution network information and distribution task information; A determination module, used to determine a delivery path according to the delivery network information and the delivery task information; An execution module, used for executing the delivery task of the item via the delivery path; as well as A modeling module, configured to establish a path optimization model in response to receiving dynamic demand information during the execution of the delivery task, according to the dynamic demand information, wherein the path optimization model is used to optimize the delivery path while allowing the delivery task to be interrupted; An adjustment module, using the path optimization model to adjust the delivery path; The dynamic demand information includes: the location of the newly added area to be delivered, the remaining service time and time window of the newly added area to be delivered; The modeling module is further used to: update the delivery network information and the delivery task information according to the location of the newly added area to be delivered, the remaining service time and the time window of the newly added area to be delivered; and Based on the updated distribution network information and distribution task information, a path optimization model with the goal of maximizing net profit is established; The step of establishing a path optimization model with the goal of maximizing net profit based on the updated distribution network information and distribution task information includes: Establishing an abstract space-time network, wherein the space-time network is established by connecting two space-time points with directed arcs to form space-time arcs; According to the space-time arcs formed in the space-time network, a path optimization model with the goal of maximizing net benefits is established; The adjustment module is further used to establish a recursive relationship according to the following formula: in, , where N is the set of areas to be delivered, yes A subset of From the delivery area The scheduled service start time is The shortest time to return to the station after all points Is the delivery area and The travel time between In the delivery area The length of time the service is required; According to the recursive relationship, the path optimization model is solved to obtain a new delivery path.
7. A computing device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1 to 5.
8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to implement the method of any one of claims 1 to 5.
