Method, device, computer equipment and storage medium for determining transportation plan
By constructing a transportation plan decision-making model and automatically solving it, the problem of long time and high cost in determining the transportation plan in container international logistics transportation is solved, and the automatic determination of the optimal transportation plan and the saving of transportation costs are achieved.
Patent Information
- Application Number
- CN202410487777.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-23
AI Technical Summary
In the international logistics transportation of containers, the existing technology requires manual analysis of various factors, which results in a long time to determine the transportation plan and the inability to judge whether the formulated plan is optimal, and cannot effectively save transportation costs.
By obtaining shipment data, capacity data, share data, shipping schedule data and transportation quotation data, a transportation plan decision-making model is constructed, including objective functions and constraints, and is automatically solved to determine the target transportation plan with the minimum total transportation cost, taking into account containers and trailers Supplier, departure port, ship supplier, ship, destination port, delivery supplier, container type and other factors can reduce decision variables and improve the speed and accuracy of model solution.
It realizes the automatic determination of the optimal transportation plan, saves plan determination time and transportation costs, improves the efficiency and accuracy of transportation plan determination, and ensures that the total transportation cost is minimized.
Smart Images

Figure CN118095993B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of transportation schemes, and in particular to a method, apparatus, computer equipment and storage medium for determining a transportation scheme. Background Art
[0002] In the process of international container logistics transportation, affected by many factors, the international transportation scheduling of containers is very complex and dynamically changing.
[0003] Currently, the formulation of transportation plans usually involves manual analysis of all the available options involved. Experienced business personnel can make decisions on transportation plans based on the factors that need to be considered. However, this process generally consumes a lot of business personnel's time, and this method cannot determine whether the transportation plan they formulate is the best. Summary of the invention
[0004] Based on the above problems, the present application provides a method, apparatus, computer device and storage medium for determining a transportation plan, which can determine a better transportation plan, thereby saving plan determination time and transportation costs.
[0005] In a first aspect, the present application provides a method for determining a transportation plan, the method comprising: obtaining shipment data, capacity data, share data, shipping schedule data and transportation quotation data; constructing a transportation plan decision model, wherein the transportation plan decision model comprises an objective function and constraints, the objective function takes minimizing the total transportation cost of the transportation plan as the goal, the objective function comprises: the total transportation cost is the sum of the first transportation cost and the second transportation cost; the first transportation cost is the sum of the transportation cost in units of containers, and the second transportation cost is the sum of the transportation cost in units of bills, the constraints comprise basic constraints, capacity constraints, share constraints, guaranteed space constraints and project constraints; the transportation plan decision model is solved according to the shipment data, capacity data, share data, shipping schedule data and transportation quotation data to obtain a target transportation plan with the minimum total transportation cost.
[0006] The technical solution of the embodiment of the present application can not only automatically determine the transportation plan, thereby saving the time for determining the plan; but also take into account the various influencing factors such as containers, trailer suppliers, departure ports, ship suppliers, ships, destination ports, delivery suppliers, cabinet types, as well as capacity, share, guaranteed space and projects, and can determine a better target transportation plan, thereby saving transportation costs. In addition, in the transportation plan decision model, the container is grouped into bills, which can reduce the number of decision variables in the transportation plan decision model, thereby improving the model solution speed, shortening the model solution time, and thus improving the efficiency of plan determination.
[0007] In some embodiments, the basic constraint condition indicates that each container or each bill corresponds to a transportation plan; the capacity constraint condition includes the upper limit of the capacity; the share constraint condition includes the share range of each supplier; the guaranteed space constraint condition includes the upper limit of the guaranteed space of the ship supplier's ship for the container type; the project constraint condition includes the upper limit of the number of containers on the same ship in a project. In the technical solution of the embodiment of the present application, the multiple constraints provided can be solved to obtain an exact solution to achieve the goal of minimizing the total transportation cost, thereby saving transportation costs.
[0008] In some embodiments, the capacity constraints include ship capacity constraints and delivery company capacity constraints; the ship capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the upper capacity limit of the ship supplier; the delivery company capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the upper capacity limit of the delivery company. In the technical solution of the embodiment of the present application, the ship capacity and the delivery company capacity are constrained respectively, and a more accurate solution can be solved according to these constraints, and a better transportation plan can be determined, so as to achieve the goal of minimizing the total transportation cost, thereby saving transportation costs.
[0009] In some embodiments, the share constraints include: trailer supplier share constraints, ship supplier share constraints and delivery supplier share constraints; trailer supplier share constraints include: the share ratio of all containers using alternative transportation solutions is within the trailer supplier's share range at the port of departure; ship supplier constraints include: the share ratio of all containers using alternative transportation solutions is within the ship supplier's share range at the port of destination; delivery supplier share constraints include: the share ratio of all containers using alternative transportation solutions is within the delivery supplier's share range at the port of destination. In the technical solution of the embodiment of the present application, the trailer supplier share, ship supplier share and delivery supplier share are constrained respectively. According to these constraints, a more accurate solution can be solved to determine a better transportation plan, thereby achieving the goal of minimizing the total transportation cost and saving transportation costs.
[0010] In some embodiments, the above-mentioned solution processing of the transportation scheme decision model based on the shipping data, capacity data, share data, shipping schedule data and transportation quotation data to obtain the target transportation scheme with the minimum total transportation cost includes: filtering the capacity data, share data and transportation quotation data according to the shipping data and shipping schedule data, and inputting the filtered data into the transportation scheme decision model; dividing the objective function of the transportation scheme decision model into multiple linear programming problems, and determining the solution of each linear programming problem according to the constraints of the transportation scheme decision model; determining the upper and lower bounds of the solution of the objective function according to the solutions of multiple linear programming problems; reducing the interval between the upper and lower bounds, and obtaining the target transportation scheme according to the reduced upper and lower bounds. In the technical solution of the embodiment of the present application, data screening can reduce the amount of data to be solved, thereby speeding up the solution speed and shortening the solution time; and, solving the problem through problem division can avoid falling into the problem of local optimality, thereby obtaining a better transportation scheme.
[0011] In some embodiments, the method further includes: adjusting the values of the decision variables in the transportation scheme decision model multiple times, and calculating the total transportation cost after each adjustment; determining the variable adjustment direction according to the multiple total transportation costs, and adjusting the values of the decision variables according to the variable adjustment direction to obtain an initial transportation scheme, wherein the variable adjustment direction is to make the total transportation cost change in a smaller direction; inputting the initial transportation scheme and the screened data into the transportation scheme decision model. In the technical solution of the embodiment of the present application, the initial transportation scheme is first determined, and then the solution is performed based on the initial transportation scheme and the screened data, which can speed up the model solution speed, thereby improving the efficiency of scheme determination.
[0012] In some embodiments, the above-mentioned acquisition of shipping data, capacity data, share data, shipping schedule data and transportation quotation data includes: acquiring a shipping plan table, a capacity table, a share table, a shipping schedule table and a transportation quotation table; respectively checking the shipping plan table, the capacity table, the share table, the shipping schedule table and the transportation quotation table; if the check passes, respectively performing data structure conversion processing on the shipping plan table, the capacity table, the share table, the shipping schedule table and the transportation quotation table to obtain the shipping data, the capacity data, the share data, the shipping schedule data and the transportation quotation data. In the technical solution of the embodiment of the present application, checking the data in the table and converting the data structure can avoid problems such as no solution to the model due to data anomalies or structure mismatches, which can not only improve the model solution speed, but also improve the accuracy of the solution, thereby obtaining a better transportation plan.
[0013] In some embodiments, the above-mentioned respective checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table include: respectively performing validity checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table to obtain validity check results; wherein the validity check results characterize whether the data format and data type in each table are normal; when the validity check results indicate that the data format and data type in each table are normal, it is determined that the check has passed. In the technical solution of the embodiment of the present application, performing validity checks on each table can reduce data anomalies and errors in the table before solving the model, and can also delete redundant data, reduce the number of decision variables and constraints, thereby speeding up the model solution speed and improving the accuracy of the solution, thereby obtaining a better transportation plan.
[0014] In some embodiments, the above-mentioned checking of the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table respectively includes: performing matching checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table respectively to obtain matching check results; wherein the matching check results indicate whether the same items in multiple tables match; when the matching check results indicate that the same items in multiple tables match, it is determined that the check is passed. In the technical solution of the embodiment of the present application, matching checks are performed on each table, which can reduce data anomalies and errors in the table before solving the model, and can also delete redundant data, reduce the number of decision variables and constraints, thereby speeding up the model solving speed and improving the accuracy of the solution, so as to obtain a better transportation plan.
[0015] In a second aspect, the present application further provides a device for determining a transportation plan, the device comprising:
[0016] Data acquisition module, used to obtain shipment data, capacity data, share data, shipping schedule data and transportation quotation data;
[0017] The model building module is used to build a transportation plan decision model, wherein the transportation plan decision model includes an objective function and constraints. The objective function takes the minimum total transportation cost of the transportation plan as the goal, and the constraints include basic constraints, capacity constraints, share constraints, guaranteed capacity constraints, and project constraints.
[0018] The model solving module is used to solve the transportation plan decision model according to the shipment data, capacity data, share data, shipping schedule data and transportation quotation data to obtain the target transportation plan with the minimum total transportation cost.
[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the optional embodiments below. The accompanying drawings are only used for the purpose of illustrating the optional embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0022] Figure 1 A schematic diagram of a flow chart of a method for determining a transportation plan according to an embodiment of the present application;
[0023] Figure 2 It is a flowchart of the solution processing steps of an embodiment of the present application;
[0024] Figure 3 This is a flow chart of the steps of obtaining an initial transportation plan according to an embodiment of the present application;
[0025] Figure 4 It is a flowchart of the step of obtaining data in one embodiment of the present application;
[0026] Figure 5 It is a flowchart of the steps of checking the form in one embodiment of the present application;
[0027] Figure 6 It is a flowchart of the steps of checking the form in one embodiment of the present application;
[0028] Figure 7 This is a structural block diagram of a device for determining a transportation plan according to an embodiment of the present application;
[0029] Figure 8 This is a structural block diagram of a device for determining a transportation plan according to an embodiment of the present application;
[0030] Fig. 9 This is a diagram of the internal structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0033] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0036] In the process of international container logistics transportation, affected by many factors, the international container transportation scheduling is very complex and dynamic. At present, the formulation of transportation plans usually involves manual analysis of all the options involved. Experienced business personnel can make decisions on transportation plans based on the factors that need to be considered. However, this process generally consumes a lot of time for business personnel, and this method cannot determine whether the transportation plan they formulate is the best.
[0037] In response to the above problems, the present application provides a method for determining a transportation plan, which first obtains shipping data, capacity data, share data, shipping schedule data and transportation quotation data; then constructs a transportation plan decision model; and then solves the transportation plan decision model based on the shipping data, capacity data, share data, shipping schedule data and transportation quotation data to obtain a target transportation plan. The technical solution of the embodiment of the present application can not only automatically determine the transportation plan, thereby saving the time for determining the plan; but also takes into account a variety of influencing factors such as containers, trailer suppliers, ports of departure, ship suppliers, ships, ports of destination, delivery suppliers, cabinet types, as well as capacity, share, guaranteed space and projects, and can determine a better target transportation plan, thereby saving transportation costs.
[0038] According to some embodiments of the present application, referring to Figure 1 , a method for determining a transportation plan is provided, and the method is applied to a terminal for example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The method can include the following steps:
[0039] Step 101, obtaining shipment data, capacity data, share data, shipping schedule data and transportation quotation data.
[0040] Among them, the shipping data includes the shipping date, shipping volume, container type, etc. The container type refers to the type of container transported, and different types have different transportation quotations. The container types can include 20-foot dry containers, 20-foot frozen containers, 40-foot dry containers, 40-foot frozen containers, etc. The capacity data includes the supplier's transportation capacity, the ships used, etc. The transportation capacity refers to the maximum transportation volume that can be completed within a certain period of time using various technical facilities. The share data includes the share of each supplier in the total transportation volume. For example, the share of supplier 1 is 40% of the total transportation volume, and the share of supplier 2 is 60% of the total transportation volume. The shipping schedule data includes the departure time, transportation duration and arrival time of the ship. The transportation quotation data includes the transportation quotation of each operator.
[0041] The terminal can obtain shipment data, capacity data, share data, shipping schedule data and transportation quotation data in a variety of ways. For example, the terminal can display a data acquisition interface and obtain various data input by business personnel one by one based on the data acquisition interface. Alternatively, the terminal can search for various data from a database, application system, etc. through an API (Application Program Interface).
[0042] It should be noted that the data acquisition method is not limited to the above description. In practical applications, methods such as importing historical data can also be used.
[0043] Step 102: construct a transportation solution decision model.
[0044] Among them, the transportation plan decision model includes objective functions and constraints. The objective function aims to minimize the total transportation cost of the transportation plan. The constraints include basic constraints, capacity constraints, share constraints, guaranteed capacity constraints and project constraints.
[0045] The embodiment of the present application constructs an objective function with the goal of minimizing the total transportation cost of the transportation plan, determines multiple constraints based on various influencing factors that need to be considered in the transportation process, and constructs a transportation plan decision model based on the objective function and the constraints.
[0046] In some embodiments, the objective function includes: the total transportation cost is the sum of the first transportation cost and the second transportation cost; the first transportation cost is the sum of the transportation costs in units of containers, and the second transportation cost is the sum of the transportation costs in units of bills.
[0047] The objective function of the transportation plan decision model can be expressed as formula (1):
[0048] --(1)
[0049] Among them, i is the container shipped from factory f, j is the trailer supplier, k is the port of departure, m is the ship supplier, s is the ship, n is the destination port, and p is the delivery supplier.
[0050] MinCost represents the goal of minimizing the total transportation cost. is the first transportation cost, For the second transportation cost.
[0051] is a 0-1 decision variable for whether container i adopts the alternative transportation plan jkmsnp, that is, if container i adopts the alternative transportation plan jkmsnp, the decision variable is 1, and if container i does not adopt the alternative transportation plan jkmsnp, the decision variable is 0. The transportation cost for a single container using the alternative transportation option jkmsnp.
[0052] It is a 0-1 decision variable for whether the bill tick adopts the alternative transportation solution jkmsnp. If the bill tick adopts the alternative transportation solution jkmsnp, the decision variable is 1; if the bill tick does not adopt the alternative transportation solution jkmsnp, the decision variable is 0. The shipping cost using the alternate shipping option jkmsnp for a single ticket.
[0053] It can be understood that grouping containers into tickets in the transportation plan decision model can reduce the number of decision variables in the transportation plan decision model, thereby increasing the model solution speed, shortening the model solution time, and thus improving the plan determination efficiency.
[0054] The above-mentioned basic constraints, capacity constraints, share constraints, guaranteed space constraints and project constraints can restrict the transportation plan, the capacity and share of each supplier during the transportation process, the guaranteed space of the ship for the container type, and the number of containers on the same ship in the same project.
[0055] Step 103, solving the transportation plan decision model according to the shipment data, transportation capacity data, share data, shipping schedule data and transportation quotation data to obtain the target transportation plan that minimizes the total transportation cost.
[0056] The transportation plan includes containers, trailer suppliers, departure ports, ship suppliers, ships, destination ports, delivery suppliers, and container types. For example, each container i of container type t shipped from factory f is first transported to departure port k using trailers from trailer supplier j, then transported to destination port n using ship supplier m’s ship s, and finally transported to the client / overseas warehouse by delivery supplier p.
[0057] After obtaining a variety of data and building a transportation plan decision model, the shipment data, capacity data, share data, shipping schedule data and transportation quotation data can be input into the transportation plan decision model, and then the transportation plan decision model can be solved using heuristic algorithms such as genetic algorithms to obtain the target transportation plan.
[0058] For example, multiple target containers of the target cabinet type shipped from the factory are transported to the target departure port using the trailer of the target trailer supplier, then transported to the target destination port using the target ship of the target ship supplier, and finally transported to the client by the target delivery supplier, so as to minimize the total transportation cost.
[0059] In the above embodiment, the shipping data, capacity data, share data, ship schedule data and transport quotation data are obtained; then a transport scheme decision model is constructed; and then the transport scheme decision model is solved according to the shipping data, capacity data, share data, ship schedule data and transport quotation data to obtain a target transport scheme with the minimum total transport cost. The technical scheme of the embodiment of the present application can not only automatically determine the transport scheme, thereby saving the time for scheme determination; but also takes into account a variety of influencing factors such as containers, trailer suppliers, ports of departure, ship suppliers, ships, ports of destination, delivery suppliers, cabinet types, as well as capacity, share, guaranteed space and projects, and can determine a better target transport scheme, thereby saving transportation costs.
[0060] According to some embodiments of the present application, the basic constraint condition characterizes that each container or each bill corresponds to a transportation plan; the capacity constraint condition includes the capacity upper limit; the share constraint condition includes the share range of each supplier; the guaranteed capacity constraint condition includes the guaranteed capacity upper limit of the ship supplier's ship for the container type; the project constraint condition includes the upper limit of the number of containers on the same ship in a project.
[0061] The above basic constraint conditions may include basic constraint conditions for containers, such as formula (2), which indicates that each container corresponds to only one transportation solution.
[0062] ----------------------------(2)
[0063] in, is a 0-1 decision variable for whether container i adopts the alternative transportation plan jkmsnp.
[0064] The above basic constraint conditions may include the basic constraint conditions of the bill, such as formula (3), which indicates that each bill corresponds to only one transportation plan.
[0065] ----------------------- (3)
[0066] in, A 0-1 decision variable for whether the ticket tick adopts the alternative transportation solution jkmsnp.
[0067] The above capacity constraints are to constrain the capacity of alternative transportation solutions according to the capacity of each supplier, so the capacity constraints include a capacity cap.
[0068] The above-mentioned share constraint condition is to constrain the share of each supplier in the alternative transportation scheme, and therefore, the share constraint condition includes a share upper limit.
[0069] The above-mentioned guaranteed space constraint condition is to constrain the guaranteed space capacity of the ship supplier's ship for the container type. Therefore, the guaranteed space constraint condition includes the upper limit of the guaranteed space capacity of the ship supplier's ship for the container type, as shown in formula (4):
[0070] ------------------(4)
[0071] in, A 0-1 decision variable that represents whether container i is of type t. That is, if container i is of type t, the decision variable is 1; if container i is not of type t, the decision variable is 0. It is the upper limit of the guaranteed capacity of container type t of vessel s of vessel supplier m.
[0072] The above project constraints are constraints on the number of containers on the same ship in a project. Therefore, the project constraints include the upper limit of the number of containers on the same ship in a project, as shown in formula (5):
[0073] ----------------(5)
[0074] in, A 0-1 decision variable that represents whether container i belongs to project h. That is, if container i belongs to project h, the decision variable is 1; if container i does not belong to project h, the decision variable is 0. N is the upper limit of the number of containers of project h on the same ship.
[0075] In the above embodiment, the basic constraint condition constrains each container or each bill to correspond to a transportation plan; the capacity constraint condition constrains the capacity; the share constraint condition constrains the share of each supplier; the guaranteed space constraint condition constrains the guaranteed space of the ship supplier's ship for the container type; the project constraint condition constrains the number of containers on the same ship in a project. In the technical solution of the embodiment of the present application, the multiple constraints provided can solve the exact solution to achieve the goal of minimizing the total transportation cost, thereby saving transportation costs.
[0076] According to some embodiments of the present application, the capacity constraints include ship capacity constraints and delivery provider capacity constraints; the ship capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the ship supplier's capacity limit; the delivery provider capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the delivery provider's capacity limit.
[0077] The transport capacity in an alternative transport plan may include the ship capacity and the delivery company capacity. By constraining the ship capacity and the delivery company capacity respectively, the ship capacity constraint conditions and the delivery company capacity constraint conditions can be obtained.
[0078] The above ship capacity constraint condition is as shown in formula (6):
[0079] --------------------(6)
[0080] in, The upper limit of the capacity of ship supplier m.
[0081] The above-mentioned delivery capacity constraint conditions are as shown in formula (7):
[0082] ----------------(7)
[0083] in, is the upper limit of the delivery capacity of the delivery supplier p.
[0084] In the above embodiment, the capacity constraints include ship capacity constraints and courier capacity constraints. In the technical solution of the embodiment of the present application, the ship capacity and the courier capacity are constrained respectively, and a more accurate solution can be solved according to these constraints to determine a better transportation plan, thereby achieving the goal of minimizing the total transportation cost, thereby saving transportation costs.
[0085] According to some embodiments of the present application, share constraints include: trailer supplier share constraints, ship supplier share constraints and delivery supplier share constraints; the trailer supplier share constraints include: the share ratio corresponding to all containers using alternative transportation solutions is within the share range of the trailer supplier at the port of departure; the ship supplier constraints include: the share ratio corresponding to all containers using alternative transportation solutions is within the share range of the ship supplier at the port of destination; the delivery supplier share constraints include: the share ratio corresponding to all containers using alternative transportation solutions is within the share range of the delivery supplier at the port of destination.
[0086] The shares in an alternative transportation plan may include trailer supplier shares, ship supplier shares and delivery supplier shares. By constraining the trailer supplier shares, ship supplier shares and delivery supplier shares respectively, we can obtain trailer supplier share constraints, ship supplier share constraints and delivery supplier share constraints.
[0087] The above trailer supplier share constraint is as shown in formula (8):
[0088] -----(8)
[0089] in, is the share of all containers using alternative transport options, is the share of trailer supplier j at the departure port k, and e is the error value allowed for the share to fluctuate up and down. and e can determine the share range of trailer supplier j at departure port k.
[0090] The above ship supplier share constraint is as shown in formula (9):
[0091] ----(9)
[0092] in, is the share of all containers using alternative transport options, is the share of ship supplier m at destination port n, e is the error value allowed for the share to fluctuate up and down, according to and e can determine the share range of vessel supplier m at destination port n.
[0093] The above delivery supplier share constraint condition is as shown in formula (10):
[0094] ----(10)
[0095] in, is the share of all containers using alternative transport options, is the share of the delivery supplier p at the destination port n, and e is the error value allowed for the share to fluctuate up and down. and e can determine the share range of delivery supplier p at destination port n.
[0096] In the above embodiment, the share constraint condition includes the trailer supplier share constraint condition, the vessel supplier share constraint condition and the delivery supplier share constraint condition. In the technical solution of the embodiment of the present application, the trailer supplier share, the vessel supplier share and the delivery supplier share are constrained respectively, and a more accurate solution can be solved according to these constraints, and a better transportation plan can be determined, so as to achieve the goal of minimizing the total transportation cost, thereby saving transportation costs.
[0097] According to some embodiments of the present application, referring to Figure 2 In the above embodiment, one implementation method of "solving the transportation plan decision model according to the shipment data, transportation capacity data, share data, shipping schedule data and transportation quotation data to obtain the target transportation plan" may include the following steps:
[0098] Step 201, filter the capacity data, share data and transportation quotation data according to the shipment data and the shipping schedule data, and input the filtered data into the transportation plan decision model.
[0099] The terminal can determine the shipping plan of the container based on the shipping data, and the departure time, transportation duration and arrival time of the ship based on the shipping schedule data; the time window can be determined based on the shipping plan of the container, the departure time, transportation duration and arrival time of the ship. Then, the capacity data, share data and transportation quotation data are filtered according to the time window, and the capacity data, share data and transportation quotation data outside the time window are eliminated, and the capacity data, share data and transportation quotation data within the time window are retained to obtain the filtered data.
[0100] In some embodiments, data can also be filtered according to the tank discharge cycle to obtain filtered data.
[0101] By inputting the filtered data into the transportation plan decision model, the upper limits of each decision variable and constraint conditions can be determined.
[0102] Step 202, divide the objective function of the transportation plan decision model into multiple linear programming problems, and determine the solutions of each linear programming problem according to the constraints of the transportation plan decision model, determine the upper and lower bounds of the solution of the objective function according to the solutions of the multiple linear programming problems, narrow the interval between the upper and lower bounds, and obtain the target transportation plan according to the narrowed upper and lower bounds.
[0103] To solve the transportation plan decision model, a heuristic algorithm such as a genetic algorithm can be used. However, under certain conditions, the heuristic algorithm will fall into a local optimum, so the solved transportation plan is not necessarily the optimal plan. To address this problem, the embodiment of the present application uses a mathematical optimization solver to solve the transportation plan decision model to obtain a target transportation plan. The mathematical optimization solver may include at least one of CPLEX, gurobi (a new generation of large-scale mathematical programming optimizer) and SCIP (Solving Constraint Integer Programs).
[0104] The mathematical optimization solver divides the objective function of the transportation plan decision model into multiple linear programming problems, and determines the solution of each linear programming problem according to the constraints of the transportation plan decision model, determines the upper and lower bounds of the solution of the objective function according to the solutions of the multiple linear programming problems, narrows the interval between the upper and lower bounds, and obtains the target transportation plan according to the narrowed upper and lower bounds.
[0105] In one embodiment, if there is no solution found in the process of solving the transportation solution decision model, the terminal can prompt the business personnel to take measures such as correcting the data, re-importing the data, etc. After that, the terminal solves the transportation solution decision model again.
[0106] In the above embodiment, the capacity data, share data and transportation quotation data are screened according to the shipping data and the shipping schedule data, and the screened data are input into the transportation scheme decision model; the objective function of the transportation scheme decision model is divided into multiple linear programming problems, and the solutions of each linear programming problem are determined according to the constraints of the transportation scheme decision model, and the upper and lower bounds of the solution of the objective function are determined according to the solutions of the multiple linear programming problems, and the interval between the upper and lower bounds is narrowed, and the target transportation scheme is obtained according to the narrowed upper and lower bounds. In the technical solution of the embodiment of the present application, data screening can reduce the amount of data to be solved, thereby speeding up the solution speed and shortening the solution time; and, by solving the problem through problem division, it is possible to avoid falling into the problem of local optimality, thereby obtaining a better transportation scheme.
[0107] According to some embodiments of the present application, referring to Figure 3 Before using the mathematical optimization solver to solve the problem, the embodiment of the present application may further include the following steps:
[0108] Step 301, the values of the decision variables in the transportation plan decision model are adjusted multiple times, and the total transportation cost is calculated after each adjustment.
[0109] The terminal can make a first adjustment to the values of each decision variable in the transportation solution decision model, such as adjusting the value of one decision variable from 0 to 1, and then calculating the first total transportation cost based on the adjusted value. After that, the values of each decision variable in the transportation solution decision model are adjusted for the second time, and the total transportation cost for the second time is calculated based on the adjusted value. Similarly, the values of each decision variable in the transportation solution decision model can be adjusted multiple times, and the total transportation cost can be calculated based on the adjusted value to obtain each time.
[0110] The above adjustment may be made according to preset rules, for example, randomly sorting multiple decision variables and adjusting the values of each decision variable in turn according to the sorting result; or, combining multiple decision variables and adjusting the values of one group of decision variables each time.
[0111] Step 302, determining the variable adjustment direction according to the plurality of total transportation costs, and adjusting the values of the decision variables according to the variable adjustment direction to obtain an initial transportation plan.
[0112] Among them, the direction of variable adjustment is to make the total transportation cost change in a smaller direction.
[0113] According to the total transportation cost of the first time and the total transportation cost of the second time, the variable adjustment direction can be determined. For example, if the total transportation cost of the second time is less than the total transportation cost of the first time, it indicates that the variable adjustment direction of the second time is correct, and the value of the decision variable can be adjusted in this direction; if the total transportation cost of the second time is greater than the total transportation cost of the first time, it indicates that the variable adjustment direction of the second time is wrong, and the value of the decision variable can be adjusted in the opposite direction.
[0114] By analogy, the total transportation cost can be calculated after each adjustment, and the total transportation cost calculated this time can be compared with the total transportation cost adjusted last time to determine the variable adjustment direction that will make the total transportation cost change toward a smaller change. After multiple adjustments, the initial transportation plan can be obtained.
[0115] Correspondingly, the above-mentioned “inputting the filtered data into the transportation plan decision model” may include: inputting the initial transportation plan and the filtered data into the transportation plan decision model.
[0116] After obtaining the initial transportation plan, the initial transportation plan and the data filtered by the time window can be input into the transportation plan decision model, and then the transportation plan decision model is solved by a mathematical optimization solver to obtain the target transportation plan.
[0117] In the above embodiment, the values of the decision variables in the transportation scheme decision model are adjusted multiple times, and the total transportation cost is calculated after each adjustment; the variable adjustment direction is determined according to the multiple total transportation costs, and the values of the decision variables are adjusted according to the variable adjustment direction to obtain an initial transportation scheme; the initial transportation scheme and the screened data are input into the transportation scheme decision model; the transportation scheme decision model is solved using a mathematical optimization solver to obtain a target transportation scheme. In the technical solution of the embodiment of the present application, the initial transportation scheme is first determined, and then solved according to the initial transportation scheme and the screened data, which can speed up the model solution speed and thus improve the efficiency of scheme determination.
[0118] According to some embodiments of the present application, referring to Figure 4 In one implementation of the above embodiment of “obtaining shipment data, capacity data, share data, shipping schedule data and transportation quotation data”, the following steps may be included:
[0119] Step 401, obtain the shipping plan, capacity table, share table, shipping schedule and transportation quotation table.
[0120] The terminal can display the data acquisition interface and set the data import control in the data acquisition interface. If the data import control is detected to be triggered based on the data acquisition interface, the data import interface is displayed. The data import interface displays multiple importable tables, such as the shipping plan table, the capacity table, the share table, the shipping schedule table, and the transportation quotation table. After the above tables are selected, the terminal imports the shipping plan table, the capacity table, the share table, the shipping schedule table, and the transportation quotation table.
[0121] Alternatively, the terminal may query the shipping plan table, the transportation capacity table, the share table, the shipping schedule table and the transportation quotation table from the database according to the table information of the above table, such as the table identifier.
[0122] It should be noted that the table acquisition method is not limited to the above description and can be set according to actual conditions.
[0123] Step 402, respectively check the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table.
[0124] There may be problems in the table, such as data format error, data type error, data inconsistency, and data outside the normal range. The terminal can set inspection rules for the above problems, and after obtaining the above table, check the above table according to the inspection rules.
[0125] If the check passes, step 403 is executed. If the check fails, the terminal may pop up a prompt box so that the business personnel can modify the form; or the terminal may directly remove abnormal data according to the check rules.
[0126] It should be noted that the processing after the inspection fails can be set according to the actual situation and is not limited to the method described above.
[0127] Step 403, if the check is passed, the data structure conversion processing is performed on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table respectively to obtain the shipping data, capacity data, share data, shipping schedule data and transportation quotation data.
[0128] Since the structures of the data in each table may be different, it is not conducive to the subsequent solution of the transportation plan decision model. Therefore, after the inspection is passed, the data in the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table are converted into preset data structures to obtain shipping data, capacity data, share data, shipping schedule data and transportation quotation data.
[0129] The preset data structure may include one or more of Dataframe (a data structure type with a table structure), dictionary type data, and list type data.
[0130] In the above embodiment, a shipping plan, a capacity table, a share table, a shipping schedule and a transportation quotation table are obtained; the shipping plan, the capacity table, the share table, the shipping schedule and the transportation quotation table are checked respectively; if the check passes, the shipping plan, the capacity table, the share table, the shipping schedule and the transportation quotation table are converted into data structures to obtain shipping data, capacity data, share data, shipping schedule data and transportation quotation data. In the technical solution of the embodiment of the present application, the data in the table is checked and the data structure is converted, which can avoid problems such as no solution of the model due to data anomalies or structure mismatch, which can not only improve the speed of model solution, but also improve the accuracy of the solution, thereby obtaining a better transportation plan.
[0131] According to some embodiments of the present application, referring to Figure 5 In one implementation of the above embodiment, "checking the shipping plan table, the capacity table, the share table, the shipping schedule table and the transportation quotation table respectively" may include the following steps:
[0132] Step 501, respectively perform validity checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table to obtain validity check results.
[0133] The validity check result indicates whether the data format and data type in each table are normal.
[0134] The terminal can pre-set the data format and data type in each table. After obtaining the above tables, it can perform validity checks on each table according to the format and type requirements corresponding to each table, so as to determine whether the data format and data type in each table are normal and obtain validity check results.
[0135] For example, if the port name is a character type and numeric values are not allowed, and the port name in the table is HAMBURGER, then the table is normal, and the port name in the table is 45, then the table is abnormal. For another example, if the quotation is a numeric type and characters are not allowed, 900 in the quotation field in the table is normal data, and 800 yuan is abnormal data.
[0136] Step 502: If the validity check result indicates that the data formats and data types in each table are normal, determine that the check is passed.
[0137] If the validity check result indicates that the data format and data type in each table are normal, the validity check is determined to have passed; if the validity check result indicates that the data format and / or data type in each table are abnormal, the validity check is determined to have failed.
[0138] In the above embodiment, the validity check is performed on the shipping plan table, capacity table, share table, sailing schedule table and transport quotation table respectively to obtain the validity check result; when the validity check result shows that the data format and data type in each table are normal, it is determined that the check has passed. In the technical solution of the embodiment of the present application, the validity check is performed on each table, which can reduce data anomalies and errors in the table before the model is solved, and can also delete redundant data, reduce the number of decision variables and constraints, thereby speeding up the model solution speed and improving the accuracy of the solution, so as to obtain a better transportation plan.
[0139] According to some embodiments of the present application, referring to Figure 6 In one implementation of the above embodiment, "checking the shipping plan table, the capacity table, the share table, the shipping schedule table and the transportation quotation table respectively" may include the following steps:
[0140] Step 601, respectively perform matching checks on the shipping plan table, the transportation capacity table, the share table, the shipping schedule table and the transportation quotation table to obtain matching check results.
[0141] The matching check result indicates whether the same items in multiple tables match.
[0142] Normally, for the same data, the data format, data type and value should match in the shipping plan, capacity table, share table, shipping schedule table and transportation quotation table. If they do not match, it is easy to cause the subsequent model to have no solution or get an erroneous solution.
[0143] The terminal can pre-set a retrieval matching algorithm to first retrieve identical items from the shipping plan table, capacity table, share table, sailing schedule table and transport quotation table, and then compare the identical items to determine whether the identical items match and obtain a matching check result.
[0144] For example, if the port name in the transport quotation table is HAM and in the share table is HAMBURGER, it is determined that the same item does not match.
[0145] Step 602: If the matching check result indicates that the same items in multiple tables match, determine that the check is passed.
[0146] If the matching check result indicates that the same items in multiple tables match, it is determined that the matching check passes; if the matching check result indicates that the same items in multiple tables do not match, it is determined that the matching check fails.
[0147] In some embodiments, if the validity check passes and the match check passes, it is determined that the check passes.
[0148] In the above embodiment, the shipping plan table, capacity table, share table, sailing schedule table and transport quotation table are matched and checked respectively to obtain matching check results; when the matching check results show that the same items in multiple tables match, it is determined that the check has passed. In the technical solution of the embodiment of the present application, matching checks are performed on each table, which can reduce data anomalies and errors in the table before solving the model, and can also delete redundant data, reduce the number of decision variables and constraints, thereby speeding up the model solving speed and improving the accuracy of the solution, so as to obtain a better transportation plan.
[0149] According to some embodiments of the present application, a method for determining a transportation solution is provided, and the method may include the following steps:
[0150] Step 1: Obtain the shipping plan, capacity table, share table, shipping schedule and transportation quotation table.
[0151] Step 2, respectively perform validity checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table to obtain validity check results.
[0152] The validity check result indicates whether the data format and data type in each table are normal.
[0153] Step 3, respectively, perform matching checks on the shipping plan table, capacity table, share table, shipping schedule table and transportation quotation table to obtain matching check results.
[0154] The matching check result indicates whether the same items in multiple tables match.
[0155] Step 4: If the validity check result shows that the data format and data type in each table are normal, and the matching check result shows that the same items in multiple tables match, determine that the check is passed.
[0156] Step 5, converting the shipping plan table, capacity table, share table, sailing schedule table and transportation quotation table into preset data structures respectively, and obtaining shipping data, capacity data, share data, sailing schedule data and transportation quotation data.
[0157] Step 6: Construct a transportation plan decision model.
[0158] Among them, the transportation plan decision model includes objective functions and constraints. The objective function aims to minimize the total transportation cost of the transportation plan. The constraints include basic constraints, capacity constraints, share constraints, guaranteed capacity constraints and project constraints.
[0159] Step 7, adjust the values of each decision variable in the transportation plan decision model multiple times, and calculate the total transportation cost after each adjustment.
[0160] Step 8, determining the variable adjustment direction according to the multiple total transportation costs, and adjusting the values of the decision variables according to the variable adjustment direction to obtain an initial transportation plan.
[0161] Step 9, filter the capacity data, share data and transportation quotation data according to the shipment data and the shipping schedule data, and input the initial transportation plan and the filtered data into the transportation plan decision model.
[0162] Step 10, divide the objective function of the transportation plan decision model into multiple linear programming problems, and determine the solution of each linear programming problem according to the constraints of the transportation plan decision model; determine the upper and lower bounds of the solution of the objective function according to the solutions of the multiple linear programming problems; narrow the interval between the upper and lower bounds, and obtain the target transportation plan according to the narrowed upper and lower bounds.
[0163] In the above embodiment, a shipping plan, a capacity table, a share table, a shipping schedule table and a transportation quotation table are obtained; multiple checks are performed on each table to reduce data anomalies and errors in the table, so that not only the model solution speed can be accelerated, but also the accuracy of the solution can be improved. Afterwards, the shipping plan, the capacity table, the share table, the shipping schedule table and the transportation quotation table are converted into preset data structures respectively to facilitate subsequent solutions. At the same time, a transportation scheme decision model is constructed based on a variety of influencing factors. Afterwards, the initial transportation scheme is first determined, and the capacity data, share data and transportation quotation data are screened according to the shipping data and the shipping schedule data; then, the initial transportation scheme and the screened data are input into the transportation scheme decision model. Finally, the objective function of the transportation scheme decision model is divided into multiple linear programming problems, and the solutions of each linear programming problem are determined according to the constraints of the transportation scheme decision model; the upper and lower bounds of the solution of the objective function are determined according to the solutions of multiple linear programming problems; the interval between the upper and lower bounds is reduced, and the target transportation scheme is obtained according to the reduced upper and lower bounds. In the technical solution of the embodiment of the present application, determining the initial transportation plan and screening the data can speed up the model solution speed; and automatically determining a better transportation plan can not only save the time for determining the transportation plan, but also save transportation costs.
[0164] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0165] Based on the same inventive concept, the embodiment of the present application also provides a transport scheme determination device for implementing the transport scheme determination method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more transport scheme determination devices provided below can refer to the limitations of the transport scheme determination method above, and will not be repeated here.
[0166] According to some embodiments of the present application, referring to Figure 7 , a device for determining a transportation plan is provided, the device comprising:
[0167] Data acquisition module 701, used to acquire shipment data, capacity data, share data, shipping schedule data and transport quotation data;
[0168] The model building module 702 is used to build a transportation scheme decision model, wherein the transportation scheme decision model includes an objective function and constraints. The objective function takes the minimum total transportation cost of the transportation scheme as the goal. The objective function includes: the total transportation cost is the sum of the first transportation cost and the second transportation cost; the first transportation cost is the sum of the transportation cost in units of containers, and the second transportation cost is the sum of the transportation cost in units of bills. The constraints include basic constraints, capacity constraints, share constraints, guaranteed space constraints, and project constraints.
[0169] The model solving module 703 is used to solve the transportation plan decision model according to the shipment data, transportation capacity data, share data, shipping schedule data and transportation quotation data to obtain the target transportation plan with the minimum total transportation cost.
[0170] In some embodiments, the basic constraint conditions represent that each container or each bill corresponds to a transportation plan; the capacity constraint conditions include the capacity upper limit; the share constraint conditions include the share range of each supplier; the guaranteed capacity constraint conditions include the guaranteed capacity upper limit of the ship supplier's ship for the container type; the project constraint conditions include the upper limit of the number of containers on the same ship in a project.
[0171] In some embodiments, the capacity constraints include ship capacity constraints and delivery provider capacity constraints; the ship capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the ship supplier's capacity limit; the delivery provider capacity constraints include: the sum of the capacity consumed by containers using alternative transportation solutions is less than or equal to the delivery provider's capacity limit.
[0172] In some embodiments, the share constraints include: a trailer supplier share constraint, a vessel supplier share constraint and a delivery supplier share constraint; the trailer supplier share constraint includes: the share ratio corresponding to all containers using alternative transportation options is within the share range of the trailer supplier at the port of departure; the vessel supplier constraint includes: the share ratio corresponding to all containers using alternative transportation options is within the share range of the vessel supplier at the port of destination; the delivery supplier share constraint includes: the share ratio corresponding to all containers using alternative transportation options is within the share range of the delivery supplier at the port of destination.
[0173] In some embodiments, the model solving module 703 is specifically used to filter the capacity data, share data and transportation quotation data according to the shipment data and the shipping schedule data, and input the filtered data into the transportation scheme decision model; divide the objective function of the transportation scheme decision model into multiple linear programming problems, and determine the solution of each linear programming problem according to the constraints of the transportation scheme decision model; determine the upper and lower bounds of the solution of the objective function according to the solutions of the multiple linear programming problems; reduce the interval between the upper and lower bounds, and obtain the target transportation scheme according to the reduced upper and lower bounds.
[0174] In some embodiments, reference Figure 8 , the device further comprises:
[0175] The variable adjustment module 704 is used to adjust the values of the decision variables in the transportation plan decision model multiple times and calculate the total transportation cost after each adjustment;
[0176] The initial plan determination module 705 is used to determine the variable adjustment direction according to the plurality of total transportation costs, and adjust the values of the decision variables according to the variable adjustment direction to obtain an initial transportation plan, wherein the variable adjustment direction is to make the total transportation cost change in a smaller direction;
[0177] Correspondingly, the model solving module 703 is also used to input the initial transportation plan and the filtered data into the transportation plan decision model.
[0178] In some embodiments, the data acquisition module 701 is specifically used to obtain a shipping plan, a capacity table, a share table, a sailing schedule and a transport quotation table; and to check the shipping plan, the capacity table, the share table, the sailing schedule and the transport quotation table respectively; and if the check passes, to perform data structure conversion processing on the shipping plan, the capacity table, the share table, the sailing schedule and the transport quotation table respectively to obtain shipping data, capacity data, share data, sailing schedule data and transport quotation data.
[0179] In some embodiments, the data acquisition module 701 is specifically used to perform validity checks on the shipping plan table, capacity table, share table, sailing schedule table and transport quotation table respectively to obtain validity check results; wherein the validity check results indicate whether the data format and data type in each table are normal; when the validity check results indicate that the data format and data type in each table are normal, it is determined that the check has passed.
[0180] In some embodiments, the data acquisition module 701 is specifically used to perform matching checks on the shipping plan table, capacity table, share table, sailing schedule table and transport quotation table respectively to obtain matching check results; wherein the matching check results indicate whether the same items in multiple tables match; when the matching check results indicate that the same items in multiple tables match, it is determined that the check is passed.
[0181] Each module in the above-mentioned transport scheme determination device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0182] According to some embodiments of the present application, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for determining a transportation plan is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0183] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0184] According to some embodiments of the present application, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0185] According to some embodiments of the present application, a computer program product is also provided, and when the computer program is executed by a processor, the above method can be implemented. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, part or all of the above method can be implemented in whole or in part according to the process or function described in the embodiment of the present application.
[0186] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0187] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0188] The above-described embodiments only express several implementation methods of the present application, which is convenient for understanding the technical solutions of the present application in detail, but cannot be understood as limiting the scope of protection of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. It should be understood that the technical solutions obtained by those skilled in the art through logical analysis, reasoning or limited experiments on the basis of the technical solutions provided in the present application are all within the protection scope of the attached claims described in the present application. Therefore, the protection scope of the patent of this application shall be based on the contents of the attached claims, and the description and drawings can be used to explain the contents of the claims.
Claims
1. A method for determining a transportation plan, It is characterized in that The method comprises: Obtain shipment data, capacity data, share data, shipping schedule data and transportation quotation data; A transport scheme decision model is constructed, wherein the transport scheme decision model includes an objective function and constraints. The objective function takes the minimum total transport cost of the transport scheme as the goal, and the objective function includes: the total transport cost is the sum of the first transport cost and the second transport cost; the first transport cost is the sum of the transport cost in units of containers, and the second transport cost is the sum of the transport cost in units of bills; the constraints include basic constraints, capacity constraints, share constraints, guaranteed space constraints and project constraints; the basic constraints indicate that each container or each bill corresponds to a transport scheme; the capacity constraints include the upper limit of capacity; the share constraints include the share range of each supplier; the guaranteed space constraints include the upper limit of the guaranteed space of the ship supplier's ship for the container type; the project constraints include the upper limit of the number of containers on the same ship in a project; Screening the transport capacity data, the share data and the transport quotation data according to the shipment data and the shipping schedule data, and inputting the screened data into the transport solution decision model; The objective function of the transportation scheme decision model is divided into multiple linear programming problems, and the solutions of each linear programming problem are determined according to the constraints of the transportation scheme decision model. The upper and lower bounds of the solution of the objective function are determined according to the solutions of the multiple linear programming problems, the interval between the upper and lower bounds is narrowed, and the target transportation scheme is obtained according to the narrowed upper and lower bounds.
2. The method according to claim 1, It is characterized in that The transport capacity constraints include vessel transport capacity constraints and delivery operator transport capacity constraints; The vessel capacity constraint condition includes: the sum of the capacity consumed by containers using the alternative transportation scheme is less than or equal to the upper capacity limit of the vessel supplier; The transport capacity constraint condition of the delivery operator includes: the sum of the transport capacity consumed by the containers using the alternative transport solution is less than or equal to the transport capacity upper limit of the delivery operator.
3. The method according to claim 1, It is characterized in that The share constraints include: trailer supplier share constraints, vessel supplier share constraints and delivery supplier share constraints; The trailer supplier share constraint condition includes: the share ratio corresponding to all containers using the alternative transportation solution is within the trailer supplier's share range at the departure port; The ship supplier constraint condition includes: the share ratio corresponding to all containers using the alternative transportation solution is within the share range of the ship supplier at the destination port; The delivery supplier share constraint condition includes: the share ratio corresponding to all containers using the alternative transportation solution is within the delivery supplier's share range at the destination port.
4. The method according to claim 1, It is characterized in that The method further comprises: Adjusting the values of the decision variables in the transportation plan decision model multiple times, and calculating the total transportation cost after each adjustment; Determining a variable adjustment direction according to the plurality of total transportation costs, and adjusting the values of the decision variables according to the variable adjustment direction to obtain an initial transportation plan, wherein the variable adjustment direction is to make the total transportation cost change in a smaller direction; Correspondingly, the inputting the filtered data into the transportation solution decision model includes: The initial transportation plan and the screened data are input into the transportation plan decision model.
5. The method according to any one of claims 1 to 4, It is characterized in that The acquisition of shipment data, capacity data, share data, shipping schedule data and transportation quotation data includes: Obtain shipping plans, capacity tables, share tables, sailing schedules and transport quotations; Checking the shipping plan, the capacity table, the share table, the shipping schedule and the transport quotation table respectively; If the inspection is passed, the data structure conversion processing is performed on the shipping plan table, the capacity table, the share table, the shipping schedule table and the transportation quotation table respectively to obtain the shipping data, the capacity data, the share data, the shipping schedule data and the transportation quotation data.
6. The method according to claim 5, It is characterized in that The checking of the shipping plan table, the transport capacity table, the share table, the shipping schedule table and the transport quotation table respectively includes: Performing validity checks on the shipping plan table, the capacity table, the share table, the shipping schedule table, and the transportation quotation table respectively to obtain validity check results; wherein the validity check results indicate whether the data format and data type in each table are normal; When the validity check result indicates that the data formats and data types in each table are normal, it is determined that the check has passed.
7. The method according to claim 5, It is characterized in that The checking of the shipping plan table, the transport capacity table, the share table, the shipping schedule table and the transport quotation table respectively includes: Performing matching checks on the shipping plan table, the capacity table, the share table, the shipping schedule table, and the transportation quotation table respectively to obtain matching check results; wherein the matching check results indicate whether the same items in multiple tables are matched; In the case where the matching check result indicates that the same items in the plurality of tables match, it is determined that the check is passed.
8. A device for determining a transportation plan, It is characterized in that The device comprises: Data acquisition module, used to obtain shipment data, capacity data, share data, shipping schedule data and transportation quotation data; A model building module is used to build a transportation scheme decision model, wherein the transportation scheme decision model includes an objective function and constraints. The objective function takes the minimum total transportation cost of the transportation scheme as the goal, and the objective function includes: the total transportation cost is the sum of the first transportation cost and the second transportation cost; the first transportation cost is the sum of the transportation cost in units of containers, and the second transportation cost is the sum of the transportation cost in units of bills; the constraints include basic constraints, capacity constraints, share constraints, guaranteed space constraints and project constraints; the basic constraints represent that each container or each bill corresponds to a transportation scheme; the capacity constraints include the upper limit of capacity; the share constraints include the share range of each supplier; the guaranteed space constraints include the upper limit of the guaranteed space of the ship supplier's ship for the container type; the project constraints include the upper limit of the number of containers on the same ship in a project; The model solving module is used to screen the capacity data, the share data and the transportation quotation data according to the shipment data and the shipping schedule data, and input the screened data into the transportation scheme decision model; divide the objective function of the transportation scheme decision model into multiple linear programming problems, and determine the solution of each linear programming problem according to the constraints of the transportation scheme decision model, determine the upper and lower bounds of the solution of the objective function according to the solutions of the multiple linear programming problems, narrow the interval between the upper and lower bounds, and obtain the target transportation scheme according to the narrowed upper and lower bounds.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is 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.
