A method for dispatching cyclic drop-and-hook transport
By constructing and solving the tractor and trailer scheduling optimization model, combined with the time window and maximum operating time constraints, the column generation algorithm is used to optimize the cycle drop-and-trailer scheduling, which solves the problem of unbalanced transportation demand and resource waste, and achieves cost reduction and program rationality. effect.
Patent Information
- Application Number
- CN202111272033.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing cycle drop-and-pull scheduling method cannot be effectively optimized, resulting in unbalanced transportation demand, waste of tractor and trailer resources, and unreasonable scheduling plans, and cannot effectively reduce logistics transportation costs.
Construct a tractor dispatching optimization model and a trailer dispatching optimization model. By minimizing the transportation task penalties and line costs that are not involved in dumping and pulling, combined with constraints such as time windows and maximum operating hours, a heuristic algorithm based on column generation is used to solve the problem to optimize cyclic dumping. Hang transportation scheduling plan.
A more rational cycle drop-and-pull dispatching scheme has been realized, which significantly reduces logistics and transportation costs, avoids waste of trailer resources, and improves the rationality and feasibility of the dispatching scheme.
Smart Images

Figure CN113988424B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of transport scheduling, and in particular to a cyclic drop-and-hook transport scheduling method. Background Art
[0002] Drop-and-hook transport refers to a method of organization in which a truck train drops off and hooks on a designated trailer at each loading and unloading operation point according to a predetermined plan and continues to operate. This can minimize the downtime of the truck (or tractor), thereby maximizing the use of traction capacity and improving transportation efficiency. Under the same conditions, it has higher transportation efficiency than fixed-hook transport. In addition, the purchase cost of a tractor is much greater than that of a trailer. The use of drop-and-hook transport can reduce the number of tractors purchased, thereby saving investment costs and driver configuration costs in operation.
[0003] Drop-and-hook transport can be divided into one-line-two-point-one-end drop-and-hook, one-line-two-point-two-end drop-and-hook, and full-network circular drop-and-hook. Circular drop-and-hook means that the tractor runs on a closed route, unloads the towed trailer after arriving at a distribution center, and loads another loaded trailer to continue to the next distribution center. After several distribution centers, the tractor finally returns to the starting distribution center. The circular drop-and-hook mode is suitable for routes with large freight volumes and stable freight tasks, and can also solve the problem of unbalanced transportation demand between distribution centers. However, there is currently no systematic method to optimize large-scale circular drop-and-hook solutions, so usually only the simpler one-line-two-point (two distribution centers and a transportation route connecting the two distribution centers) drop-and-hook mode can be used. In the one-line two-point drop-and-hook mode, for routes with transportation demands in both directions (such as distribution A has a cargo transportation demand for distribution B, and distribution B also has a cargo transportation demand for distribution A), a tractor and several trailers can be arranged to perform drop-and-hook operations at one end of the route (such as distribution A or distribution B) or at both ends (at distribution A and distribution B at the same time). For routes with only one-way transportation demands, the tractor can only run empty on the reverse route. The one-line two-point drop-and-hook mode cannot solve the problem of unbalanced transportation demands well, and will generate a large number of empty runs, making the logistics transportation cost high. In addition, the existing drop-and-hook scheduling generally only focuses on the scheduling of tractors, without considering the scheduling of trailers, which may result in the deployment of too many trailer resources and cause waste. Moreover, in the actual optimization process of the drop-and-hook scheduling scheme, constraints such as the time window of the transportation task and the maximum operating time of the tractor are usually not considered, and the resulting scheduling scheme is unreasonable and cannot be implemented. Summary of the invention
[0004] The present invention provides a cyclic drop-and-hook transport scheduling scheme for the purpose of improving the rationality of the cyclic drop-and-hook scheduling scheme, maximizing the reduction of logistics transportation costs, and avoiding the waste of trailer resources.
[0005] To achieve this object, the present invention adopts the following technical solutions:
[0006] A method for scheduling cyclic drop-and-hook transport is provided, the steps comprising:
[0007] S1, with the optimization objectives of minimizing the penalty for transport tasks that do not participate in the drop-and-hook and minimizing the drop-and-hook route costs, a tractor scheduling optimization model is constructed, and with the optimization objective of minimizing the number of trailers, a trailer scheduling optimization model is constructed;
[0008] S2, according to the acquired transport task set of the drop-and-hook transport in the designated area, solving the tractor scheduling optimization model and the trailer scheduling optimization model, and outputting a cyclic drop-and-hook transport scheduling plan.
[0009] As a preferred solution of the present invention, the tractor dispatch optimization model is expressed by the following formula (1):
[0010]
[0011] In formula (1), T represents the transport task set;
[0012] t represents the transportation task in the transportation task set T;
[0013] R represents the set of routes where the tractor performs the transportation task;
[0014] r represents a line in the line set R;
[0015] x r is a 0-1 decision variable, x r =0 means that the tractor transport does not choose route r, x r =1 means the tractor transport selects route r
[0016] y t is a 0-1 decision variable, y t =0 means that transport task t participates in drop-and-hook, y t =1 means that transport task t does not participate in drop-and-hook;
[0017] c r represents the cost of performing the transport task on route r;
[0018] p t Indicates the penalty for transport task t not being able to participate in the drop-and-hook operation;
[0019] α tr Indicates whether route r contains transportation task t, α tr =1 means that route r contains transport task t, α tr =0 means that route r does not contain transport task t;
[0020] y t +∑ r∈Rα tr x r =1, It means that each transport task t is executed in a corresponding route r or does not participate in the drop-and-hook transport.
[0021] As a preferred solution of the present invention, in step S2, the tractor scheduling optimization model is solved with the number of times the transport task is executed by the tractor, the same starting and ending positions of the tractor, the time window for task execution, the maximum number of tasks on a single route, and the maximum operating time of the tractor as constraints.
[0022] As a preferred solution of the present invention, the constraint condition of the number of times the transport task is executed by the tractor is specifically: each transport task is executed once by the tractor;
[0023] As a preferred solution of the present invention, the constraint condition that the starting and ending positions of the tractor are the same is specifically: the tractor returns to the originating distribution after completing all transportation tasks from the originating distribution;
[0024] As a preferred solution of the present invention, the time window constraint condition for task execution is specifically: the departure time of each transportation task is within the time window between the set earliest departure time and the latest departure time;
[0025] As a preferred solution of the present invention, the constraint condition of the maximum number of tasks for a single route is specifically: the number of transportation tasks including empty driving tasks executed by each route does not exceed the preset number of route task executions L;
[0026] Preferably, the constraint condition of the maximum running time of the tractor is specifically: the total time of the tractor starting from the initial distribution and returning to the initial distribution does not exceed a given total time Q.
[0027] As a preferred solution of the present invention, in step S2, the tractor dispatching optimization model is solved based on a heuristic algorithm generated by a column, and the step of solving the tractor dispatching optimization model based on a heuristic algorithm generated by a column specifically includes:
[0028] S21, taking the tractor dispatch optimization model to be solved as the original problem of the heuristic algorithm based on column generation and constructing the original problem as a restricted main problem;
[0029] S22, solving the restricted main problem using a solver;
[0030] S23, construct and solve a sub-problem, and determine whether the optimal solution to the sub-problem is greater than or equal to 0,
[0031] If yes, the optimal solution of the restricted main problem obtained in step S22 is used as the optimal solution to the original problem;
[0032] If not, the newly generated columns in solving the sub-problem are added to the restricted main problem, and the process returns to step S22 to continue solving the problem until the optimal solution of the sub-problem is greater than or equal to 0.
[0033] As a preferred solution of the present invention, the restricted main problem constructed in step S21 is expressed by the following formula (2):
[0034]
[0035] In formula (2), is a subset of R.
[0036] As a preferred solution of the present invention, the trailer scheduling optimization model is expressed by the following formula (3):
[0037]
[0038] In formula (3), x ij is a 0-1 decision variable, x ij = 1 means that the trailer runs on the edge ij connecting node i and node j, x ij =0 means that the trailer is not running on the edge ij;
[0039] N represents the set of nodes in the trailer dispatching network of the drop-and-hook transport, including the distribution nodes corresponding to the distribution and the task nodes corresponding to the transport tasks;
[0040] N H represents the distribution node set;
[0041] represents the set of nodes directly connected to the node i by edges;
[0042] N L Represents the set of task nodes that have all loading tasks;
[0043] N D represents the set of task nodes that perform all empty driving tasks;
[0044] Represents the set of nodes that are directly connected to node i by edges;
[0045] t i is a decision variable, which indicates the departure time of cargo transportation of task node i;
[0046] T′ ij It represents the time required for the trailer to travel from the initial dispatch of task node i to the initial dispatch of task node j;
[0047] t j represents the departure time of cargo transportation of task node j;
[0048] M is a constant; A represents the set of edges in the trailer dispatching network of the drop-and-hook transport;
[0049] T ij It represents the time required for the tractor to travel from the initial dispatch of task node i to the initial dispatch of task node j;
[0050] r represents the route in the tractor route set R;
[0051] S r represents the set of adjacent tasks in the tractor route r;
[0052] t d(r) Indicates the departure time of the tractor to perform the last transport task;
[0053] t o(r) Indicates the departure time of the tractor to perform the first transport task;
[0054] T d(r)o(r) It indicates the running time of the tractor from the destination dispatch of the last task back to the origin dispatch of the first transport task;
[0055] Q represents the maximum operating time of the tractor;
[0056] d(r) represents the last transport task performed by the tractor;
[0057] o(r) represents the first transport task performed by the tractor;
[0058] b i represents the earliest departure time of task i;
[0059] e i represents the latest departure time of task i.
[0060] The present invention constructs a tractor scheduling optimization model and a trailer scheduling optimization model, and solves the two models with constraints such as the time window of the transportation task and the maximum operating time of the tractor as solution conditions. A systematic method is proposed to simultaneously solve the scheduling problems of tractors and trailers in the cyclic drop-and-hook. The obtained cyclic drop-and-hook scheduling scheme is more reasonable, which is conducive to significantly reducing logistics transportation costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1 It is a diagram of the implementation steps of the cyclic drop-and-hook transport scheduling method provided by one embodiment of the present invention;
[0063] Figure 2 It is a virtual network structure diagram applied to solve the tractor dispatching sub-problem;
[0064] Figure 3 It is a virtual network structure diagram for solving the trailer dispatch optimization model application;
[0065] Figure 4 It is a method step diagram for solving a tractor dispatch optimization model using a heuristic algorithm based on column generation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0066] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0067] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on this patent; in order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0068] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "inner", "outer", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as a limitation on this patent. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0069] In the description of the present invention, unless otherwise clearly specified and limited, if the term "connection" or the like appears to indicate the connection relationship between components, the term should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two components or the interaction relationship between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0070] The application scenarios of the cyclic drop-and-hook transport scheduling method provided by the embodiment of the present invention are exemplified as follows:
[0071] In a given drop-and-hook area, there are several distributions, and there is at least one cargo transportation demand between each distribution in a day. A cargo transportation demand means that a complete trailer is required to transport the cargo from distribution A to distribution B through a truck (such as a tractor). Each transportation demand has a given earliest departure time and latest departure time. The tractor needs to connect the trailer and depart before the latest departure time. If the tractor connects the trailer before the earliest departure time, it needs to wait until the earliest departure time before it can depart.
[0072] A circular drop-and-hook transport scheduling scheme needs to give the number of tractors and trailers required for each allocation, as well as the specific transport task execution order and execution time for each allocation. If two adjacent transport tasks are not continuous, that is, the destination allocation of the previous task is not equal to the origin allocation of the next task, an empty driving task needs to be added. At this time, the tractor can perform the empty driving task alone or with an empty trailer. For example, transport task 1 and transport task 2 are adjacent but not continuous, that is, after completing transport task 1, transport task 2 is performed (that is, the tasks are adjacent), but the origin allocation of the tractor for task 1 is A and the destination allocation is C, and the origin allocation for task 2 is B and the destination allocation is D (that is, the adjacent tasks are not continuous). At this time, an empty driving task needs to be added between the destination allocation C and the origin allocation B. After completing task 1, the tractor can perform the empty driving task alone from the destination allocation C or carry an empty trailer from the destination allocation C to perform the empty driving task and arrive at the origin allocation B before performing task 2.
[0073] In the drop-and-hook transport scheduling scheme, the time interval between two consecutive tasks performed by the tractor must be greater than the time to disconnect and connect the trailer, and the time interval between two consecutive tasks performed by the trailer must be greater than the time to unload and load the trailer. The constraints that the tractor needs to meet include: (1) The tractor needs to depart within the given time window of each transport task (i.e., the time period between the earliest departure time and the latest departure time of the transport task); (2) After completing all transport tasks, each tractor needs to return to the first departure allocation to ensure the balance of the number of tractors in each allocation; (3) The running time from departure to return of each tractor cannot exceed a given value; (4) The number of tasks (including empty driving tasks) executed by each tractor cannot exceed a given value; (5) Each transport task is executed once by one tractor. The constraints that the trailer needs to meet include: The number of trailers in each allocation is the same as when all transport tasks are completed and when they are started.
[0074] The goal of optimizing the circular drop-and-hook transport scheduling scheme of the present invention is to minimize the total cost while meeting all drop-and-hook transport needs. The total cost of the circular drop-and-hook transport scheduling scheme includes the sum of the cost of the tractor and the cost of the trailer, wherein the cost of the tractor includes the fixed cost of purchasing the tractor and the variable cost related to the transport mileage; the cost of the trailer only includes the fixed cost of purchasing the trailer.
[0075] like Figure 1 As shown, the method adopted by the present invention to optimize the circular drop-and-hook transport scheduling scheme includes:
[0076] Step S1, with minimizing the penalty of transport tasks that do not participate in drop-and-hook transportation (a constant, indicating that it is hoped that all tasks will participate in drop-and-hook transportation as much as possible) and minimizing the drop-and-hook route costs as optimization goals, a tractor scheduling optimization model is constructed, and with minimizing the number of trailers (since the trailer cost only includes the fixed cost of trailer procurement, minimizing the number of trailers used is equal to minimizing the trailer cost) as the optimization goal, a trailer scheduling optimization model is constructed;
[0077] Step S2, according to the acquired transport task set of the drop-and-hook transport in the designated area, solve the tractor scheduling optimization model and the trailer scheduling optimization model, and output the cyclic drop-and-hook transport scheduling plan.
[0078] The data details of a certain drop-and-hook route obtained (for example, from a task management system of a courier company) are as shown in Table 1 below:
[0079]
[0080] Table 1
[0081] In Table 1, "flight number" indicates the flight number of the transport task, "Guangzhou-Shenzhen" indicates the route connecting "Guangzhou" and "Shenzhen" with the demand for drop-and-hook transport; "D0" in "D0_2000" indicates the same day, "2000" indicates 20:00 in the evening, and "D0_2000" indicates that the earliest departure time for the transport task on the "Guangzhou-Shenzhen" route is 20:00 in the evening of the same day. The explanation of "D0_2100" is the same as that of "D0_2000" and will not be repeated here.
[0082] The routes with the demand for drop-and-hook transport, such as "Guangzhou-Shenzhen" recorded in Table 1, constitute a set of transport tasks. The task information of the transport task includes the earliest departure time, the latest departure time, the shift number of the tractor, the transport cost per kilometer of the tractor, and the mileage of the route.
[0083] In this embodiment, the tractor dispatch optimization problem can be expressed as: obtain a set of transport tasks, and find a set of tractor dispatch solutions with the lowest cost under the premise of satisfying the above-mentioned constraints (1)-(5) of the 5 tractor dispatch solutions. The tractor dispatch optimization problem can be abstracted as Multi Depot Vehicle Scheduling Problem with TimeWindows and Route Constraints (MDVSPTWRC for short). We use a set partitioning model based on continuous time. The basic idea is to enumerate all routes that meet the constraints, and then find a subset from these routes so that the cost of executing all transport tasks is the lowest. The tractor dispatch optimization model constructed in this embodiment of the present invention is expressed by the following formula (1):
[0084]
[0085] In formula (1), T represents the set of transportation tasks;
[0086] t represents the transportation task in the transportation task set T;
[0087] R represents the set of routes where the tractor performs the transportation task;
[0088] r represents a line in the line set R;
[0089] x r is a 0-1 decision variable, x r =0 means that the tractor transport does not choose route r, x r =1 means the tractor transport selects route r
[0090] y tis a 0-1 decision variable, y t =0 means that transport task t participates in drop-and-hook, y t =1 means that transport task t does not participate in drop-and-hook;
[0091] c r represents the cost of performing the transport task on route r;
[0092] p t Indicates the penalty for transport task t not being able to participate in the drop-and-hook operation;
[0093] α tr Indicates whether route r contains a transportation task, α tr =1 means that transport task t is executed on route r, α tr =0 means that transport task t is not executed on route r;
[0094] It means that each transport task t is executed in a corresponding route r or does not participate in the drop-and-hook transport.
[0095] Because some routes are too long and the time required for tractors to perform transportation tasks on these routes is too long, these routes may not be transported in the drop-and-hook mode together with other transportation tasks. Therefore, the objective function of solving the tractor scheduling optimization model is set to minimize the penalty for transportation tasks that do not participate in the drop-and-hook and minimize the drop-and-hook route costs. In addition, the constraints in formula (1) It means that each transport task t is either unable to participate in the drop-and-hook or belongs to a drop-and-hook route, that is, y t =1,∑ r∈R α tr x r =0, or y t =0,∑ r∈R α tr x r =1.
[0096] Generally speaking, the number of elements in the route set R increases exponentially with the increase of transportation tasks. Therefore, for a slightly larger scale tractor dispatch optimization problem, it is unrealistic to directly solve the tractor dispatch optimization model. Therefore, for this integer programming problem containing a large number of variables, the present invention adopts a heuristic algorithm based on column generation, that is, first ignore the integer constraints to make the integer programming problem a linear programming problem, then use column generation to solve the linear programming problem, and finally use all generated columns to solve the final integer programming problem. This method can usually obtain a very high quality solution.
[0097] The basic process of column generation is to first add only a small number of variables (also called columns) to construct a restricted main problem. After solving the restricted main problem, it is necessary to determine whether the optimality condition of the original problem (for the minimization problem, the optimality condition is that the reduced cost (test number) of all columns is greater than or equal to 0) is met. The optimality condition is generally determined by a sub-problem. If the optimal solution of the sub-problem is greater than or equal to 0, it means that the optimal solution has been found. Otherwise, the column obtained from the sub-problem is added to the main problem to continue solving until the optimality condition is met. Specifically, the method for solving the tractor scheduling optimization model based on the heuristic algorithm of column generation of the present invention includes:
[0098] Step S21, the tractor dispatch optimization model to be solved is used as the original problem of the heuristic algorithm based on column generation and the original problem is constructed as a restricted main problem. The restricted main problem is expressed by the following formula (2):
[0099]
[0100] in, is a subset of R.
[0101] Step S22, using the solver to solve the restricted main problem, after obtaining the optimal solution, we need to determine whether there are other tractor routes that meet the requirements and can further reduce the objective function value of the optimization problem. We do this by:
[0102] Step S23, construct and solve the sub-problem, and determine whether the optimal solution to the sub-problem is greater than or equal to 0,
[0103] If yes, the optimal solution of the restricted main problem obtained in step S22 is used as the optimal solution to the original problem;
[0104] If not, the newly generated columns in solving the sub-problem are added to the restricted main problem, and the process returns to step S22 to continue solving the problem until the optimal solution of the sub-problem is greater than or equal to 0.
[0105] The key to successful column generation is whether an efficient algorithm can be found to solve the sub-problem. In this embodiment, the sub-problem constructed is the Shortest Path Problem with Resource Constraints (SPPRC). Figure 2 The virtual network structure diagram used to solve the tractor dispatch subproblem is shown in Figure 2. We abstract the process of solving the subproblem into Figure 2 The problem of finding the shortest path in Figure 2 The source node is the starting point of the route, the sink node is the end point of the route, and the task node is the node corresponding to each transport task. Figure 2For example, there are three transport tasks, namely, the transport task AB from distribution A to distribution B, the transport task BC from distribution B to distribution C, and the transport task DA from distribution D to distribution A. The source node corresponds to all distributions (A, B, C, D), the sink node also corresponds to all distributions (in order to distinguish it from the source node, the sink node is recorded as (A', B', C', D'), and the task node corresponds to all tasks (AB (for example, Figure 2 Node T1 in the representation), BC (for example, Figure 2 Node T2 in the representation), DA (for example, Figure 2 Node T3 in represents), so there are 11 nodes in total.
[0106] Figure 2 There are also three types of edges in the , the first type is the edge from each source node (A, B, C, D) to each task node (AB, BC, DA), a total of 4 × 3 = 12 edges; the second type is the edge from each task node (AB, BC, DA) to each sink node (A', B', C', D'), a total of 3 × 4 = 12 edges; the third type is the edge that satisfies b i +T ij ≤e j The edges between the task nodes, that is, task i and task j can be connected, for example, from task AB to task BC. i represents the earliest departure time of the cargo from task node i; e j represents the latest departure time of the cargo from task node j; T ij represents the time spent by the tractor on edge ij, including the time to perform task i, the time required for the tractor to disconnect and connect the trailer after arriving at the destination allocation, and the time to travel from the destination allocation of task i to the starting allocation of task j. i +T ij ≤e j Explain how the constraint effect is achieved:
[0107] Assume that the destination allocation of task node i is C, the starting allocation of task node j is E, the earliest departure time from task node i is 8:00 am, and the latest departure time from task node j is 11:00 am. The time required for the tractor to travel from the starting allocation of task node i to its destination allocation C is 30 minutes, and the time required to travel from the destination allocation C to the starting allocation E of task node j is 20 minutes. The time for the tractor to disconnect and connect the trailer at the destination allocation node C is 10 minutes. Then T ij = 30 minutes + 20 minutes + 10 minutes = 1 hour, b i =8:00, e j =11:00. Substitute the data into formula b i +Tij ≤e j It can be obtained that 8:00+1 hour ≤ 11:00 meets the formula constraint, ensuring that there is an edge ij between task node i and task node j, that is, ensuring that the drop-and-hook transport task can be performed at task node i and task node j.
[0108] In this embodiment, the weights of each edge in the logistics network are set according to the following rules to ensure that the weight of the shortest path is equal to the minimum reduced cost:
[0109] 1. The weight of all edges from source node i to task node j is equal to f+cd ij , where f is the fixed cost of the tractor (mainly the purchase cost of the tractor), c is the cost of the tractor per kilometer, d ij is the distance from the distribution corresponding to source node i to the starting distribution of task node j. Assume that source node i corresponds to distribution A, and task node j corresponds to transportation task BC, that is, the goods are transported from distribution B to distribution C. When the tractor departs from source node i to perform the transportation task of route BC, the tractor's driving path is distribution A-distribution B-distribution C, so at this time d ij =The distance between distribution A and distribution B.
[0110] 2. The weight of all edges from task node i to other nodes j is equal to cd ij -λ i , where λ i represents the constraint corresponding to task i in the model (the corresponding constraint is the constraint for each task in the restricted main problem expressed in formula (2) (that is, the first constraint in formula (2) ) (The dual variable is directly obtained by the solver. For each transportation task t, solve formula (2) to obtain the dual variable λ corresponding to the constraint t , and each transport task t corresponds to a task node i, so we can get the λ of the task node i );
[0111] Therefore, the present invention uses three types of nodes and three types of edges to equate the subproblems into Figure 2 Find a source node (such as Figure 2 A, B, C, D) to the corresponding sink node (such as Figure 2 The shortest path between A', B', C', D' in the column, the weight of the path (the sum of the weights of each edge in the path) is equal to the reduced cost of the column. The path needs to meet the time window constraint of task execution, the total time constraint of the tractor traveling on the path, and the total length constraint of the path. The sub-problem can be solved using the label-based dynamic programming algorithm in the boost library (an existing open source standard algorithm).
[0112] In addition, in the process of implementing column generation, in order to reduce the number of iterations, multiple columns with negative reducedcost are usually added in one iteration. The strategy adopted here is to find the shortest path to the corresponding sink node for each source node and add all paths with negative weights to the traction vehicle route set R.
[0113] After solving the optimal dispatching scheme for the tractor, it is necessary to optimize the dispatching of the trailer to minimize the cost of using the trailer. Since the transportation of the trailer with the tractor will not increase the transportation cost, the cost of using the trailer is expressed by the number of trailers used. The fewer the number of trailers used, the fewer trailers need to be purchased, which directly reduces the cost of using the trailer.
[0114] The difference between trailers and tractors is that trailers are universal for each distribution and do not require them to return to the starting position after transportation is completed. They only require the number of trailers in each distribution to be balanced. At the same time, trailers are not subject to restrictions on the total duration and total length of the route. In the calculation of trailer costs, it is necessary to consider the idle tasks generated by the tractor optimization scheduling plan, and new idle tasks cannot be added. Therefore, the calculation of trailer costs needs to consider the following four constraints:
[0115] (1) Each loading task is served by exactly one trailer;
[0116] (2) Each empty driving task can be served by one trailer at most once;
[0117] (3) In two adjacent tasks using trailers, the destination allocation of the previous transport task is the origin allocation of the next transport task;
[0118] (4) The departure time of each transport task using a trailer must be within the set time window.
[0119] The trailer scheduling optimization problem can be abstracted into a network flow problem. The virtualized trailer scheduling network structure is as follows: Figure 3 As shown in the figure, there are two types of nodes: distribution nodes and task nodes. Each distribution corresponds to a distribution node. For example, the distribution location "Hangzhou" corresponds to a distribution node. Each transportation task corresponds to a task node. For example, the execution path of the transportation task is from distribution A to distribution B. The path AB can be expressed as Figure 3 A task node in . Figure 3 There are also three types of edges in it: the first type is the edge from each distribution to each task node starting from the distribution; the second type is the edge from each task node to the distribution node it reaches; the third type is the edge that satisfies The edges between the task nodes. i 、e jThey represent the earliest departure time of task i and the latest departure time of task j respectively; represents the time spent on edge ij, including the transportation time of task i and the time of trailer unloading and / or loading. This embodiment obtains a trailer scheduling solution by constructing and solving a trailer scheduling optimization model. The trailer scheduling optimization model is expressed by the following formula (3):
[0120]
[0121] Specifically, in formula (3), x ij is a 0-1 decision variable, x ij = 1 means that the trailer runs on the edge ij connecting node i and node j, x ij =0 means that the trailer is not running on the edge ij;
[0122] N represents the set of nodes in the trailer dispatching network of the drop-and-hook transport, including the distribution nodes corresponding to the distribution and the task nodes corresponding to the transport tasks;
[0123] N H represents the distribution node set;
[0124] represents the set of nodes directly connected to the node i by edges;
[0125] N L Represents the set of task nodes that have all loading tasks;
[0126] N D represents the set of task nodes that perform all empty driving tasks;
[0127] Represents the set of nodes that are directly connected to node i by edges;
[0128] t i is a decision variable, which indicates the departure time of cargo transportation of task node i;
[0129] T′ ij It represents the time required for the trailer to travel from the initial dispatch of task node i to the initial dispatch of task node j;
[0130] t j represents the departure time of cargo transportation of task node j;
[0131] M is a constant;
[0132] A represents the set of edges in the trailer dispatching network of the drop-and-hook transport;
[0133] T ijIt represents the time required for the tractor to travel from the initial dispatch of task node i to the initial dispatch of task node j;
[0134] r represents the route in the tractor route set R;
[0135] S r represents the set of adjacent tasks in the tractor route r;
[0136] t d(r) Indicates the departure time of the tractor to perform the last transport task;
[0137] t o(r) Indicates the departure time of the tractor to perform the first transport task;
[0138] T d(r)o(r) It indicates the running time of the tractor from the destination dispatch of the last task back to the origin dispatch of the first transport task;
[0139] Q represents the maximum operating time of the tractor;
[0140] d(r) represents the last transport task performed by the tractor;
[0141] o(r) represents the first transport task performed by the tractor;
[0142] b i represents the earliest departure time of task i;
[0143] e i represents the latest departure time of task i.
[0144] The first constraint in formula (3) is:
[0145]
[0146] To ensure that there is a trailer for each transport task that requires loading;
[0147] The second constraint in formula (3) is:
[0148]
[0149] Used to ensure that each empty driving task requires at most one trailer;
[0150] The third constraint in formula (3) is:
[0151]
[0152] It is used to ensure the balance of trailer inflow and outflow at each node, and also ensure that the number of trailers starting from each distribution node is equal to the number of trailers that eventually return to the distribution node;
[0153] The fourth constraint in formula (3) is:
[0154]
[0155] It is used to ensure the connection between two adjacent tasks of the trailer; the connection between two adjacent tasks of the trailer means that the trailer must spare time for loading and unloading goods when performing two adjacent tasks. For example, it takes 1 hour for the trailer to unload and load goods. If the trailer continues to perform task j after completing task i, the start time of task i must be at least 1 hour earlier than the start time of task j, that is, t i +1≤t j . This constraint means that when x ij = 1, that is, the trailer completes task i and then performs task j, and the constraint becomes t i +T′ ij ≤t j , to ensure that there is enough time between executing tasks i and j; when x ij = 0, that is, there is no relationship between tasks i and j, the constraint becomes t i +T′ ij ≤t j +M, since M is a large value, this constraint always holds.
[0156] The fifth constraint in formula (3) is:
[0157]
[0158] Used to ensure the connection relationship between the tractor and two adjacent transport tasks; the connection relationship between the tractor and two adjacent tasks is aimed at the tractor, and the meaning is the same as the connection relationship between the trailer and two adjacent transport tasks mentioned above, so it will not be repeated here.
[0159] The sixth constraint in formula (3) is:
[0160]
[0161] It is used to ensure that the total time for each tractor to complete all transportation tasks does not exceed the given maximum operating time Q;
[0162] The seventh constraint in formula (3) is:
[0163]
[0164] Used to ensure that the departure time of each transportation task is within the set time window.
[0165] The trailer scheduling optimization model expressed in formula (3) can directly use the solver to obtain the optimal solution, thereby obtaining the optimal trailer scheduling plan.
[0166] Finally, the scheduling schemes of the tractor and trailer are combined to obtain the scheduling scheme of the circular drop-and-hook transport. The expression of the scheduling scheme of the circular drop-and-hook transport is shown in Table 2 below, and the scheme is directly output to the business party for use.
[0167]
[0168] Table 2
[0169] The following takes a set of routes and a set of transport tasks in Guangdong Province that can participate in the drop-and-hook transport as an example to further illustrate the expression of the cyclic drop-and-hook transport scheduling solution ultimately obtained by using the cyclic drop-and-hook transport scheduling method provided by the embodiment of the present invention.
[0170] Table 3 shows the route set and transportation task set involved in drop-and-hook transportation in Guangdong Province, and Table 4 shows the distance between each distribution node.
[0171]
[0172]
[0173] Table 3
[0174]
[0175] Table 4
[0176] Assume that the driving speed of the tractor is 60 km / h, the time required for the tractor to disconnect and connect the trailer is 30 minutes, the time for unloading and loading the trailer is 90 minutes, the maximum operating time Q of the tractor is 11 hours a day, and the maximum number of transportation tasks L performed by a tractor in a day is 4. After calculation by the cyclic drop-and-hook transportation scheduling method provided by the present invention, the optimized cyclic drop-and-hook transportation scheduling scheme is shown in Table 5 below, which requires a total of 7 tractors and 17 trailers, and adds an empty driving task KS00001.
[0177]
[0178]
[0179] Table 5
[0180] The present invention constructs a tractor scheduling optimization model and a trailer scheduling optimization model, and solves the two models with constraints such as the time window of the transportation task and the maximum operating time of the tractor as the solution conditions, and proposes a systematic method to simultaneously solve the scheduling problems of the tractor and trailer in the cycle drop and hang. The obtained cycle drop and hang scheduling plan is more reasonable, which is conducive to significantly reducing the logistics transportation cost. In addition, the present invention uses a heuristic algorithm based on column generation to solve the tractor scheduling optimization model, which simplifies the model solution process, improves the solution speed, and significantly shortens the generation time of the cycle drop and hang transportation scheduling plan.
[0181] It should be noted that the above specific implementations are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art should understand that various modifications, equivalent substitutions, changes, etc. can be made to the present invention. However, as long as these changes do not deviate from the spirit of the present invention, they should be within the scope of protection of the present invention. In addition, some terms used in the specification and claims of this application are not restrictive, but are only for the convenience of description.
Claims
1. A method for scheduling cyclic drop-and-hook transport, characterized in that the steps include: S1, with the optimization objectives of minimizing the penalty for transport tasks that do not participate in the drop-and-hook and minimizing the drop-and-hook route costs, a tractor scheduling optimization model is constructed, and with the optimization objective of minimizing the number of trailers, a trailer scheduling optimization model is constructed; S2, according to the acquired transport task set of the drop-and-hook transport in the designated area, solving the tractor scheduling optimization model and the trailer scheduling optimization model, and outputting a cyclic drop-and-hook transport scheduling plan; The tractor dispatch optimization model is expressed by the following formula (1): In formula (1), T represents the transport task set; t represents the transportation task in the transportation task set T; R represents the set of routes where the tractor performs the transportation task; r represents a line in the line set R; x r is a 0-1 decision variable, x r =0 means that the tractor transport does not choose route r, x r =1 means the tractor transport selects route r y t is a 0-1 decision variable, y t =0 means that transport task t participates in drop-and-hook, y t =1 means that transport task t does not participate in drop-and-hook; c r represents the cost of performing the transport task on route r; p t Indicates the penalty for transport task t not being able to participate in the drop-and-hook operation; α tr Indicates whether route r contains transportation task t, α tr =1 means that route r contains transport task t, α tr =0 means that route r does not contain transport task t; y t +∑ r∈R α tr x r =1, Indicates that each transport task t is executed in a corresponding route r or does not participate in the drop-and-hook transport; The trailer scheduling optimization model is expressed by the following formula (3): In formula (3), x ij is a 0-1 decision variable, x ij = 1 means the trailer is running on the edge ij connecting node i and node j, x ij =0 means that the trailer is not running on the edge ij; N represents the set of nodes in the trailer dispatching network of the drop-and-hook transport virtualization, including the distribution nodes corresponding to the distribution and the task nodes corresponding to the transport tasks; N H represents the distribution node set; represents the set of nodes directly connected to the node i by edges; N L Represents the set of task nodes that have all loading tasks; N D represents the set of task nodes that perform all empty driving tasks; Represents the set of nodes that are directly connected to node i by edges; t i is a decision variable, which indicates the departure time of cargo transportation of task node i; T′ ij It represents the time required for the trailer to travel from the initial dispatch of task node i to the initial dispatch of task node j; t j represents the departure time of cargo transportation of task node j; M is a constant; A represents the set of edges in the trailer dispatching network of the drop-and-hook transport; T ij It represents the time required for the tractor to travel from the originating dispatch of task node i to the originating dispatch of task node j; r represents the route in the tractor route set R; S r represents the set of adjacent tasks in the tractor route r; t d(r) Indicates the departure time of the tractor to perform the last transport task; t o(r) Indicates the departure time of the tractor to perform the first transport task; T d(r)o(r) It indicates the running time of the tractor from the destination dispatch of the last task back to the origin dispatch of the first transport task; Q represents the maximum operating time of the tractor; d(r) represents the last transport task performed by the tractor; o(r) represents the first transport task performed by the tractor; b i represents the earliest departure time of task i; e i represents the latest departure time of task i; In step S2, the tractor scheduling optimization model is solved with the number of times the transport task is executed by the tractor, the same starting and ending positions of the tractor, the time window for task execution, the maximum number of tasks on a single route, and the maximum operating time of the tractor as constraints; The constraint condition on the number of times a transport task is executed by a tractor is as follows: each transport task is executed once by a tractor; The constraint condition that the starting and ending positions of the tractor are the same is specifically: the tractor starts from the originating distribution and returns to the originating distribution after completing all transportation tasks; The time window constraint for task execution is as follows: the departure time of each transport task is within the time window between the set earliest departure time and the latest departure time; The constraint condition of the maximum number of tasks for a single route is as follows: the number of transport tasks including empty-run tasks executed by each route shall not exceed the preset number of route tasks executed L; The constraint condition of the maximum running time of the tractor is specifically: the total time of the tractor starting from the initial distribution and returning to the initial distribution does not exceed a given total time Q.
2. The method for dispatching cyclic drop-and-hook transport according to claim 1 is characterized in that: In step S2, the tractor dispatching optimization model is solved based on the heuristic algorithm generated by the column. The step of solving the tractor dispatching optimization model based on the heuristic algorithm generated by the column specifically includes: S21, taking the tractor dispatch optimization model to be solved as the original problem of the heuristic algorithm based on column generation and constructing the original problem as a restricted main problem; S22, solving the restricted main problem using a solver; S23, construct and solve a sub-problem, and determine whether the optimal solution to the sub-problem is greater than or equal to 0, If yes, the optimal solution of the restricted main problem obtained in step S22 is used as the optimal solution to the original problem; If not, the newly generated columns in solving the sub-problem are added to the restricted main problem, and the process returns to step S22 to continue solving the problem until the optimal solution of the sub-problem is greater than or equal to 0.
3. The method for dispatching cyclic drop-and-hook transport according to claim 2 is characterized in that: The restricted master problem constructed in step S21 is expressed by the following formula (2): In formula (2), is a subset of R.
