Method and device for planning target logistics path
The logistics path is solved through the integer programming model and solver, which solves the problem of difficulty in locating the sorting function of the logistics network in the existing technology, and realizes efficient and accurate logistics path planning, which is suitable for large-scale logistics scenarios.
Patent Information
- Application Number
- CN202410954831.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-17
AI Technical Summary
The existing logistics network uses a heuristic algorithm based on simple business rules when positioning the sorting function, which makes it difficult to obtain applicable result data under complex business constraints, resulting in poor solution results and difficulty in meeting the needs of large-scale logistics scenarios.
Through the integer programming model, a logistics list is generated based on historical waybill data, model parameters and constraints are set, and a solver is used to solve the model to obtain target logistics path data and improve solution quality and efficiency.
It realizes logistics path planning in large-scale logistics scenarios, improves the quality and accuracy of solutions, can obtain the global optimal solution, and improves the efficiency and accuracy of logistics planning.
Smart Images

Figure CN118657466A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for planning a target logistics path. Background Art
[0002] At present, with the rapid development of the e-commerce industry, the logistics industry closely related to it also urgently needs to develop rapidly to adapt to the development speed of the e-commerce industry, and then provide complete e-commerce services to improve the user's shopping experience. The existing logistics network has a huge warehouse and distribution network, and an efficient short-chain fulfillment network is built based on warehouses, sorting centers, and sales departments. Therefore, building and optimizing an efficient sorting network has become one of the core tasks.
[0003] When positioning the sorting function, the related technology adopts the expert method, that is, a heuristic algorithm based on simple business rules to solve the problem. However, due to the complexity of the business constraints, the solution process is very difficult and it is difficult to obtain result data suitable for the current scenario, resulting in poor solution effect. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method for planning a target logistics path, which can solve the logistics network in a large-scale logistics scenario through an integer programming model.
[0005] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for planning a target logistics path is provided, comprising:
[0006] Get historical waybill data;
[0007] Generate a logistics list based on historical waybill data. The logistics list is a list of logistics paths between upstream and downstream outlets based on the target node.
[0008] Set model parameters and constraints based on the logistics network corresponding to historical waybill data;
[0009] Based on the logistics list and model parameters, an integer programming model is established;
[0010] Based on the constraints, the solver is used to solve the model and obtain the target logistics path data.
[0011] Optionally, generating a logistics list based on historical waybill data includes: filtering logistics path data containing the target node in the historical waybill data; determining the upstream outlets and downstream outlets of the target node based on the logistics path data; generating a logistics list based on the logistics path data containing the target node, the target node, the upstream outlets of the target node, and the downstream outlets of the target node.
[0012] Optionally, a logistics list is generated based on logistics path data including the target node, the target node, the upstream outlets of the target node and the downstream outlets of the target node, including: determining the flow type of the upstream outlets of the target node flowing into the target node and the flow type of the target node flowing out of the downstream outlets of the target node based on the logistics path data of the target node; and generating a logistics list containing priority information based on the flow type and preset priority.
[0013] Optionally, the model parameters include logistics cost parameters and sorting capacity parameters of the target node.
[0014] Optionally, a solver is used to solve the model based on constraints to obtain target logistics path data, including: based on the priority information and constraints of the logistics list, each group of data in the logistics list is grouped and solved in order of priority; based on the group solution results, the target logistics path data is summarized.
[0015] Optionally, before using a solver to solve the model based on constraint conditions to obtain target logistics path data, the method further includes: acquiring logistics cost data of the logistics network; and setting an objective function of the integer programming model based on the logistics cost data.
[0016] Optionally, after solving the model using a solver based on constraint conditions to obtain target logistics path data, the method further includes: based on the objective function, determining the path with the smallest objective function value in the target logistics path represented by the target logistics path data as the final logistics path.
[0017] According to a second aspect of an embodiment of the present invention, a device for planning a target logistics path is provided, comprising:
[0018] Acquisition module, used to obtain historical waybill data;
[0019] A generation module is used to generate a logistics list based on historical waybill data. The logistics list is a list of logistics paths between upstream and downstream outlets based on the target node.
[0020] The setting module is used to set model parameters and constraints based on the logistics network corresponding to the historical waybill data;
[0021] Establish a module for building an integer programming model based on the logistics list and model parameters;
[0022] The solution module is used to solve the model using a solver based on constraint conditions to obtain target logistics path data.
[0023] Optionally, a generation module is used to generate a logistics list based on historical waybill data, including: a screening module, used to screen the logistics path data containing the target node in the historical waybill data; a determination module, used to determine the upstream outlets and downstream outlets of the target node based on the logistics path data; a generation module, used to generate a logistics list based on the logistics path data containing the target node, the target node, the upstream outlets of the target node and the downstream outlets of the target node.
[0024] Optionally, a generation module is used to generate a logistics list based on logistics path data including a target node, the target node, upstream outlets of the target node and downstream outlets of the target node, including: a determination module is used to determine the flow type of the upstream outlets of the target node flowing into the target node and the flow type of the target node flowing out of the downstream outlets of the target node based on the logistics path data of the target node; a generation module is used to generate a logistics list containing priority information based on the flow type and a preset priority.
[0025] Optionally, the model parameters include logistics cost parameters and sorting capacity parameters of the target node.
[0026] Optionally, a solution module is used to solve the model using a solver based on constraints to obtain target logistics path data, including: a solution module is used to group and solve each group of data in the logistics list in order of priority based on the priority information and constraints of the logistics list; a summary module is used to summarize the target logistics path data based on the group solution results.
[0027] Optionally, the device also includes: an acquisition module for acquiring logistics cost data of the logistics network; and a setting module for setting the objective function of the integer programming model based on the logistics cost data.
[0028] Optionally, the device also includes: a determination module, which is used to determine, based on the objective function, the path with the smallest objective function value among the target logistics paths represented by the target logistics path data as the finally determined logistics path.
[0029] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0030] One or more processors; a storage device for storing one or more programs,
[0031] When one or more programs are executed by one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0032] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0033] According to a fifth aspect of an embodiment of the present invention, there is provided a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, the method provided in the first aspect of the embodiment is implemented.
[0034] One embodiment of the above invention has the following advantages or beneficial effects: it can generate a corresponding logistics list based on historical waybill data, and at the same time establish an integer programming model and set relevant parameters and constraints of the model. The logistics list data is solved by a solver to obtain target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality. In addition, the generated logistics list is grouped to achieve multi-order solution of the model, which can be applied to large-scale data scenarios to obtain the global optimal solution of the modeling. Solving the logistics path through the model can effectively improve the efficiency and accuracy of logistics planning.
[0035] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a schematic diagram of the main process of a method for planning a target logistics path according to an embodiment of the present invention;
[0037] Figure 2 is a flow chart of a model calculation method according to an embodiment of the present invention;
[0038] Figure 3 is a schematic diagram of main modules of a target logistics path planning device according to an embodiment of the present invention;
[0039] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0040] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0042] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0043] Figure 1 FIG. 1 is a schematic diagram of the main process of the target logistics path planning method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps S101 to S105.
[0044] Step S101, obtaining historical waybill data.
[0045] Read in the historical waybill data of the logistics network. This data is the historical OD (O: Origin; D: Distination, referring to the logistics path from O to D) routing data within a certain period of time, including logistics date data, logistics flow location data, logistics inflow and outflow types, waybill quantity and other data.
[0046] Optionally, the historical waybill data obtained may be all waybill data in the entire logistics network in the historical time period, or may be waybill data of a part of the logistics network, such as waybill data of a set target city (one or more) or a city in a specific area.
[0047] Step S102, generating a logistics list based on historical waybill data, where the logistics list is a list of logistics paths between upstream outlets and downstream outlets based on the target node.
[0048] Generate a list of logistics routes between the upstream and downstream outlets of the target node based on the read historical waybills, where the target node is the city to be measured. The logistics route is the route of the sorting center based on the target node, for example, upstream outlet-target node sorting 1-target node sorting 2-downstream outlet. Summarize all the city logistics routes to be measured to obtain the list data.
[0049] Step S103, setting model parameters and constraints based on the logistics network corresponding to the historical waybill data.
[0050] Determine the logistics network where the historical waybill data is obtained, and set the parameters and constraints of the model according to the structural characteristics of the logistics network, transportation costs and other data. Optionally, the model parameters include logistics cost parameters and sorting capacity parameters of the target node; the constraints are set based on the sorting capacity in the logistics network, the number of logistics routes, etc.
[0051] Optionally, set the model parameter Dis to the distance matrix (in kilometers), represents the distance between any two points (mn); L is the limit of the number of functions of the sorting function, Indicates the limit on the number of sorting centers with u function. There are 4 sorting functions, namely, trunk line inbound, branch line inbound, trunk line outbound, and branch line outbound. FF is the sorting function configuration parameter. Indicates that sorting center j has function u; Cap is the capacity limit of the sorting center, represents the capacity limit of the number of orders processed by sorting center j; Vol is the vehicle capacity limit, represents the capacity limit of vehicle type p; OD is the waybill quantity parameter, Represents the number of waybills from upstream i to downstream l; M is an auxiliary variable. Set the model cost parameters: is the vehicle fixed cost (unit: yuan), the fixed cost of vehicle model p; is the variable cost of the vehicle (yuan / km), the variable cost of vehicle type p; op is the sorting operation cost (unit: yuan / order), represents the operating cost of sorting center j; rent is the rental cost of the sorting center (unit: yuan), represents the rental cost of sorting center j.
[0052] Optionally, set the model constraints as follows:
[0053] (Constraint 1) (Constraint 2)
[0054] (Constraint 3)
[0055] (Constraint 4)
[0056] (Constraint 5)
[0057] (Constraint 6)
[0058] (Constraint 7)
[0059] (Constraint 8)
[0060] (Constraint 9)
[0061] (Constraint 10)
[0062] (Constraint 11)
[0063] (Constraint 12)
[0064] (Constraint 13).
[0065] Among them, constraint 1: OD flow balance, for each OD, the number of units flowing through the relevant route is equal to the demand of the OD; constraint 2: bind the integer routing variable r to the flow variable q, that is, if If the order quantity of > 0, then =1; Constraint 3: For each group of OD, there is only one route from O to D; Constraint 4: The number of orders flowing through each sorting center ≤ the upper limit of the sorting center's production capacity; Constraint 5: The total number of orders flowing through the sorting center is equal to the sum of the number of orders flowing through all routes; Constraint 6: Bind the variable of whether the sorting center is turned on with the flow variable of the sorting center; Constraints 7 and 8: Bind the trunk and branch line entry / exit variables of the sorting center with the variables of the route flow; Constraint 9: Constrain the number of sorting centers with a certain function not to exceed the number parameter with this function; Constraint 10: Constrain a certain sorting center to have a certain sorting function; Constraints 11, 12 and 13: Constrain the total number of orders flowing through the three-level routes (ij, jk, kl) not to exceed the total vehicle volume (number of vehicles × vehicle capacity).
[0066] Step S104, establishing an integer programming model based on the logistics list and model parameters.
[0067] According to the set model parameter data and logistics list, set the integer programming model variables, including: u, whether the sorting center enables the variable set, the element is a 0-1 variable, Indicates whether sorting center j is open; b, the number of orders processed by the sorting center, the element is a 0-1 variable, represents the total number of orders flowing through sorting center j; g, a set of sorting function variables, the elements of which are 0-1 variables, Indicates whether the u function of sorting center j is turned on; q, a set of routing flow variables, the elements of which are integer variables, Indicates the number of orders routed from ijkl, ; r, routing decision variable set, elements are 0-1 variables, represents the decision variable of the routing ijkl, ; t, the number of vehicles used on the line variable set, the elements are integer variables, Indicates the number of vehicles of model p required for route ij. Models include 4.2m, 7.5m, 9.6m, 17.6m, etc. Note: This represents the route or edge between any two layers. An integer programming model is established based on the routing data in the logistics list and the above model variables.
[0068] Step S105, using a solver to solve the model based on the constraint conditions to obtain target logistics path data.
[0069] Solve the established integer programming model using a commercial solver, such as Gurobi (a commercial solver), to obtain a solution that satisfies the constraints. , keep the routes ijkl greater than 0, and use route to identify the parsed results. Indicates the order quantity of route ijkl. Among them, route ijkl is the logistics line of OD, that is, upstream node-target node sorting 1-target node sorting 2-downstream node.
[0070] Optionally, the functional positioning of each sorting center is obtained based on the model solution result, and the sorting function configuration parameter FF is updated.
[0071] Optionally, the symbol set in the model is as shown in Table 1. For example, the symbol W, described as a warehouse, is a warehouse set, belongs to a type of point O, and the subscripts include i, m, and o.
[0072]
[0073] According to the target logistics path planning method provided by the embodiment of the present invention, it is possible to generate a corresponding logistics list based on historical waybill data, establish an integer programming model at the same time, and set relevant parameters and constraints of the model based on the data of the logistics network where the historical waybill is located. The logistics list data is solved by a solver to obtain target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality.
[0074] Optionally, generating a logistics list based on historical waybill data includes: filtering logistics path data containing the target node in the historical waybill data; determining the upstream outlets and downstream outlets of the target node based on the logistics path data; generating a logistics list based on the logistics path data containing the target node, the target node, the upstream outlets of the target node, and the downstream outlets of the target node.
[0075] When generating a corresponding logistics list based on historical waybill data, first screen the historical waybill data according to the determined list of cities to be measured to obtain the waybill data containing the city to be measured, that is, the logistics path data containing the target node. Among them, the number of cities to be measured is at least one. After obtaining the waybill data containing the city to be measured, all upstream outlets and downstream outlets of the city to be measured are obtained according to the waybill data, as well as the corresponding logistics path of upstream outlets-sorting 1 of the city to be measured-sorting 2 of the city to be measured-downstream outlets. Among them, the logistics path in the waybill data may only pass through one sorting center of the city to be measured, then the corresponding logistics path is upstream outlets-sorting 1 of the city to be measured-downstream outlets. According to the logistics path data containing the target node, the target node, and the upstream and downstream outlets of the target node, a logistics list is generated according to the same target node. Table 2 shows an example of data in a partial logistics list. For example, a piece of data in the logistics list is: date 20230520, sorting city (city to be calculated) Wuhan, upstream outlet Zhengzhou Fengqi, inflow type trunk line entry, sorting 1 Wuhan Hanyang, sorting 2 Wuhan Changfu, downstream outlet Wuhan Hankou Sales Department, outflow type indoor transfer station, and the number of waybills is 1200.
[0076]
[0077] Optionally, a logistics list is generated based on logistics path data including the target node, the target node, the upstream outlets of the target node and the downstream outlets of the target node, including: determining the flow type of the upstream outlets of the target node flowing into the target node and the flow type of the target node flowing out of the downstream outlets of the target node based on the logistics path data of the target node; and generating a logistics list containing priority information based on the flow type and preset priority.
[0078] According to the logistics path data of the determined target node, the flow types of the upstream and downstream outlets are determined, specifically the inflow type and the outflow type. Among them, the inflow type includes ferry inbound, branch line inbound, trunk line inbound and return from the station; the outflow type includes transfer to the station, branch line outbound and trunk line outbound. According to the pre-set priority of the inflow type and the priority of the outflow type, the corresponding logistics list is generated, and the logistics data is sorted according to the priority. As shown in Table 3, it is the priority data of the preset OD logistics route based on the inflow and outflow types. For example, O is a warehouse, D is a station, the inbound type (inflow type) is ferry inbound, and the outbound type (outflow type) is transfer to the station, the set priority is A, where priority A is higher than priority B.
[0079]
[0080] Optionally, the priority data is data set according to user input, that is, the priority is set according to the importance of various inbound and outbound types defined by the user.
[0081] Optionally, when generating the corresponding logistics list, the list may be sorted according to the cities to be measured, that is, the logistics data of the same cities to be measured are stored together, or sorted according to priority, that is, the data is arranged in order from A to B.
[0082] Optionally, a solver is used to solve the model based on constraints to obtain target logistics path data, including: based on the priority information and constraints of the logistics list, each group of data in the logistics list is grouped and solved in order of priority; based on the group solution results, the target logistics path data is summarized.
[0083] Each data in the logistics list is taken as a group. According to the priority of the flow type in Table 2, the priority of each group of data is determined, and each group is solved in order of priority. Specifically, the group data with priority A is solved first, and then the group data with priority B is solved; for the group data with the same priority A / B, they can be sorted according to the priority of the city to be measured, the number of waybills and other data, and then solved in order. The solution results of each group of data are summarized to obtain the final logistics path data in the city to be measured, and then the functional positioning of the sorting center in each city to be measured is obtained.
[0084] Optionally, after obtaining the solver solution, analyze the functional positioning of each sorting center and update the parameter FF of the sorting functional positioning, and add constraints in the next stage of modeling , constrain and bind the u function of sorting center j.
[0085] Optionally, during the group solving process, the groups to be solved first can be flexibly selected according to actual needs to meet the needs of different application scenarios and different user scales.
[0086] Optionally, before solving the model using a solver based on the constraint conditions to obtain the target logistics path data, the method further includes: obtaining logistics cost data of the logistics network; and setting an objective function of the integer programming model based on the logistics cost data. Before solving the model, the logistics cost data of each link of the logistics network where the waybill data is located is obtained, and the objective function is set according to the logistics cost data to obtain the logistics path data with the lowest cost from the results output by the integer programming model.
[0087] Specifically, the model objective function is set as follows.
[0088]
[0089] in, The vehicle usage cost of each route, including the fixed cost of the vehicle and the variable cost related to the route distance; represents the order handling cost of all sorting centers; represents the rental cost of all sorting centers.
[0090] Optionally, after solving the model using a solver based on constraint conditions to obtain target logistics path data, the method further includes: based on the objective function, determining the path with the smallest objective function value in the target logistics path represented by the target logistics path data as the final logistics path.
[0091] Based on the above objective function, the target logistics path output by the calculation model has the smallest objective function value, that is, the path with the lowest cost is determined as the logistics path.
[0092] According to the target logistics path planning method provided by the embodiment of the present invention, it is possible to generate a corresponding logistics list based on historical waybill data, establish an integer programming model at the same time, and set the relevant parameters and constraints of the model based on the data of the logistics network where the historical waybill is located. The logistics list data is solved by the solver to obtain the target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality. In addition, the generated logistics list is grouped to realize the multi-order solution of the model, which can be applied to large-scale data scenarios to obtain the global optimal solution of the modeling. Solving the logistics path by means of the model can effectively improve the efficiency and accuracy of logistics planning.
[0093] like Figure 2 The flow chart of the model calculation method of the present invention is shown in the figure. As shown in the figure, first read in the configuration parameters, that is, the various parameters of the model, read in the historical OD routing data, parse the OD grouping and generate an ordered list (logistics list) od_group_list=[od_group1,od_group2,…]. Obtain the data in the ordered list, establish an integer programming model based on the OD routing data in the acquired list data, and solve it through the solver. According to the solution result, parse and generate new sorting positioning parameters, and return the generated parameters as adjusted parameters to the model, and repeat the above process until there is no remaining data in the ordered list. Summarize the results of each stage and generate all sorting function positioning solutions, and end the process.
[0094] Figure 3 is a schematic diagram of the main modules of the target logistics path planning device 300 according to an embodiment of the present invention, as shown in the figure, including:
[0095] Acquisition module 301, used to acquire historical waybill data;
[0096] A generation module 302 is used to generate a logistics list based on historical waybill data, where the logistics list is a list of logistics paths between upstream and downstream outlets based on a target node;
[0097] A setting module 303 is used to set model parameters and constraints based on the logistics network corresponding to the historical waybill data;
[0098] Establishing module 304, for establishing an integer programming model based on the logistics list and model parameters;
[0099] The solution module 305 is used to solve the model using a solver based on constraint conditions to obtain target logistics path data.
[0100] According to the planning device of the target logistics path of the embodiment of the present invention, it is possible to generate a corresponding logistics list based on the historical waybill data, establish an integer programming model at the same time, and set relevant parameters and constraints of the model based on the data of the logistics network where the historical waybill is located. The logistics list data is solved by a solver to obtain the target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality.
[0101] Optionally, generation module 302 is used to generate a logistics list based on historical waybill data, including: a screening module 306, used to screen the logistics path data containing the target node in the historical waybill data; a determination module 307, used to determine the upstream outlets and downstream outlets of the target node based on the logistics path data; generation module 302 is used to generate a logistics list based on the logistics path data containing the target node, the target node, the upstream outlets of the target node and the downstream outlets of the target node.
[0102] Optionally, the generation module 302 is used to generate a logistics list based on the logistics path data of the target node, the target node, the upstream outlets of the target node and the downstream outlets of the target node, including: a determination module 307 is used to determine the flow type of the upstream outlets of the target node flowing into the target node and the flow type of the target node flowing out of the downstream outlets of the target node based on the logistics path data of the target node; the generation module 302 is used to generate a logistics list containing priority information based on the flow type and the preset priority.
[0103] Optionally, the model parameters include logistics cost parameters and sorting capacity parameters of the target node.
[0104] Optionally, a solution module 305 is used to solve the model using a solver based on constraints to obtain target logistics path data, including: a solution module 305 is used to group and solve each group of data in the logistics list in order of priority based on the priority information and constraints of the logistics list; a summary module 308 is used to summarize the target logistics path data based on the group solution results.
[0105] Optionally, the device further includes: an acquisition module 301 for acquiring logistics cost data of the logistics network; and a setting module 303 for setting an objective function of the integer programming model based on the logistics cost data.
[0106] Optionally, the device further includes: a determination module 307, which is used to determine, based on the objective function, a path with the smallest objective function value among the target logistics paths represented by the target logistics path data as the finally determined logistics path.
[0107] According to the target logistics path planning device provided by the embodiment of the present invention, it is possible to generate a corresponding logistics list based on historical waybill data, establish an integer programming model at the same time, and set the relevant parameters and constraints of the model based on the data of the logistics network where the historical waybill is located. The logistics list data is solved by the solver to obtain the target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality. In addition, the generated logistics list is grouped to realize the multi-order solution of the model, which can be applied to large-scale data scenarios to obtain the global optimal solution of the modeling. Solving the logistics path by means of the model can effectively improve the efficiency and accuracy of logistics planning.
[0108] Figure 4 An exemplary system architecture 400 is shown to which a method for planning a target logistics path or an apparatus for planning a target logistics path according to an embodiment of the present invention can be applied.
[0109] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0110] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0111] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0112] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as the logistics planning request, and feed back the processing results (such as the logistics route - only an example) to the terminal device.
[0113] It should be noted that the target logistics path planning method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the target logistics path planning device is generally set in the server 405 .
[0114] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0115] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0116] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0117] The following components are 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.
[0118] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains 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 central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0119] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. 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.
[0121] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a generation module, a setting module, a building module and a solution module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the acquisition module may also be described as a "module for acquiring historical waybill data".
[0122] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0123] Get historical waybill data;
[0124] Generate a logistics list based on historical waybill data. The logistics list is a list of logistics paths between upstream and downstream outlets based on the target node.
[0125] Set model parameters and constraints based on the logistics network corresponding to historical waybill data;
[0126] Based on the logistics list and model parameters, an integer programming model is established;
[0127] Based on the constraints, the solver is used to solve the model and obtain the target logistics path data.
[0128] According to the technical solution of the embodiment of the present invention, it is possible to generate a corresponding logistics list based on historical waybill data, establish an integer programming model, and set relevant parameters and constraints of the model based on the data of the logistics network where the historical waybill is located. The logistics list data is solved by a solver to obtain target logistics path data that meets the constraints, thereby realizing the planning of the logistics path and improving the solution quality.
[0129] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for planning a target logistics path, characterized in that: The method comprises: Get historical waybill data; Generate a logistics list based on the historical waybill data, where the logistics list is a list of logistics paths between upstream and downstream outlets based on the target node; Based on the logistics network corresponding to the historical waybill data, setting model parameters and constraints; Establishing an integer programming model based on the logistics list and the model parameters; Based on the constraints, a solver is used to solve the model to obtain target logistics path data.
2. The method according to claim 1, characterized in that The generating of the logistics list based on the historical waybill data includes: Filter the historical waybill data to include logistics path data of the target node; Determine the upstream network point and the downstream network point of the target node based on the logistics path data; The logistics list is generated based on the logistics path data including the target node, the target node, the upstream network point of the target node and the downstream network point of the target node.
3. The method according to claim 2, characterized in that The generating the logistics list based on the logistics path data including the target node, the target node, the upstream network point of the target node and the downstream network point of the target node comprises: Based on the logistics path data of the target node, determine the flow type of the upstream network point of the target node flowing into the target node and the flow type of the target node flowing out of the downstream network point of the target node; Based on the flow type and preset priority, a logistics list containing priority information is generated.
4. The method according to claim 1, characterized in that The model parameters include logistics cost parameters and sorting capacity parameters of the target node.
5. The method according to claim 3, characterized in that: The method of using a solver to solve the model based on the constraint conditions to obtain target logistics path data includes: Based on the priority information of the logistics list and the constraint conditions, each set of data in the logistics list is grouped and solved in order of priority; Based on the grouping solution results, the target logistics path data are summarized and obtained.
6. The method according to any one of claims 1 to 5, characterized in that: Before solving the model using a solver based on the constraint conditions to obtain target logistics path data, the method further includes: Obtaining logistics cost data of the logistics network; Based on the logistics cost data, an objective function of the integer programming model is set.
7. The method according to claim 6, characterized in that After the solver is used to solve the model based on the constraint conditions to obtain the target logistics path data, the method further includes: Based on the objective function, the path with the smallest objective function value among the target logistics paths represented by the target logistics path data is determined as the finally determined logistics path.
8. A device for planning a target logistics path, characterized in that: The device includes: Acquisition module, used to obtain historical waybill data; A generation module, used to generate a logistics list based on the historical waybill data, wherein the logistics list is a list of logistics paths between upstream outlets and downstream outlets based on a target node; A setting module, used to set model parameters and constraints based on the logistics network corresponding to the historical waybill data; An establishment module is used to establish an integer programming model based on the logistics list and the model parameters; The solution module is used to solve the model using a solver based on the constraint conditions to obtain target logistics path data.
9. An electronic device, characterized in that: include: 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 according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
