Port berth and quay crane joint scheduling optimization method based on solution set merging algorithm
Through the joint dispatching optimization method of port berths and quay cranes based on the deaggregation and merging algorithm, the problem of resource coordination in port dispatching is solved, efficient terminal resource utilization and operational efficiency improvement are achieved, and technical support is provided for intelligent terminal management.
Patent Information
- Application Number
- CN202410820371.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technologies are difficult to effectively coordinate and optimize berth and quay crane resources in port dispatching, resulting in low overall loading and unloading efficiency and operational performance. Especially under large-scale and complex constraints, it is easy to fall into local optimal solutions.
A joint scheduling optimization method for port berths and quay cranes based on the solution set merging algorithm is adopted. By obtaining berth and quay crane information and ship attributes, a scheduling optimization model is constructed, a variety of constraints are introduced, and a parallel genetic algorithm and mixed integer programming are used to solve the problem. Get the optimal scheduling plan.
It achieves the rational dispatch of berth and quay crane resources, maximizes the use of terminal resources, shortens the time of ships in port, reduces the offset distance, improves terminal operation efficiency and competitiveness, and provides technical support for terminal automation and intelligent management.
Smart Images

Figure CN118691177A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of port logistics management and intelligent scheduling, and specifically relates to a port berth and quay crane joint scheduling optimization method based on a solution-merge algorithm. Background Art
[0002] With the global economic integration and the booming development of international trade, ports, as important hubs for international cargo distribution and transportation, play an increasingly important role. Modern large-scale container terminals need to make full use of limited berths and quay cranes and other loading and unloading equipment resources to improve overall loading and unloading efficiency and operational benefits.
[0003] Traditional port scheduling methods usually only focus on the optimization of a single level of berths or quay cranes, and it is difficult to give full play to the overall synergy of the system. However, port berths and quay crane resources are closely related, and joint scheduling is required to achieve optimal resource utilization. For example, reasonable arrangement of berth locations and allocation of quay crane numbers can reduce the waiting time of ships, while adjusting the working range of quay cranes will affect the efficiency of berth utilization. Therefore, it is difficult to achieve global optimality by optimizing only from a single dimension.
[0004] In addition, with the continuous expansion of port scale and the rapid growth of business volume, the dynamic coordination and scheduling of port loading and unloading equipment has become more complex. The arrival time of ships and the loading and unloading requirements are highly dynamic and uncertain, which brings greater challenges to port scheduling. How to respond to dynamic changes quickly and accurately and reasonably allocate limited loading and unloading resources has become the key to improving the operation level of modern container terminals.
[0005] Therefore, how to effectively coordinate and optimize the dynamic scheduling of port loading and unloading equipment is of great significance to improving the overall loading and unloading efficiency and operational performance of the port.
[0006] At present, there is a lack of research on port logistics management and intelligent scheduling issues, and there is still a gap in invention patents for optimization methods for dynamic coordinated scheduling of port loading and unloading equipment.
[0007] The invention patent of Jiang Meixian et al., "A method for joint scheduling of berths and quay cranes in multi-terminal tidal ports under uncertain environments" (Jiang Meixian, Zhou Jian, Feng Jiajia, Zhou Lin, Ma Fangzheng. A method for joint scheduling of berths and quay cranes in multi-terminal tidal ports under uncertain environments [P]. Chinese Patent: CN114626754A, 2022.06.14), proposes a method for joint scheduling optimization of berths and quay cranes in multi-terminal tidal ports under uncertain environments. First, a mathematical model for joint scheduling of multi-terminal berths and quay cranes under uncertain conditions was established, and the initial population was generated by combining the two strategies of random generation and greedy construction, and the gene repair algorithm was used to convert the infeasible solution into a feasible solution. Next, the elite retention and roulette selection strategies were used to generate the offspring population, and the crossover mutation operator driven by the fitness value was used for preliminary search of the solution space. Finally, a local search algorithm based on simulated annealing was used for further optimization. This method was verified to be effective under uncertain conditions by comparing the performance of different algorithm variants. However, the model parameter setting of the invention is relatively difficult, and the setting of these parameters has a significant impact on the scheduling results. In actual operation, it is not easy to accurately obtain these parameters, which requires a large amount of historical data and experience.
[0008] The invention patent of Liu Qingjin et al., "A multi-objective quay crane-berth scheduling optimization method based on ant colony algorithm" (Liu Qingjin, Li Peng, Chen Junwei. A multi-objective quay crane-berth scheduling optimization method based on ant colony algorithm [P]. Chinese Patent: CN107330561B, 2017.11.07), discloses a multi-objective quay crane-berth scheduling optimization method based on ant colony algorithm, which belongs to the field of port scheduling. For the multi-objective quay crane-berth scheduling model, the invention proposes two solution algorithms based on ant colony algorithm, which can optimize the scheduling of container ships arriving at the port, improve the algorithm execution efficiency, and obtain the Pareto optimal solution in a relatively short time, thereby improving the port operation efficiency and reducing the operating cost, which is of great significance to promoting regional and national economic development. Finally, the superiority of the proposed algorithm was verified by simulation experiments, which is superior to other algorithms in terms of convergence and execution time. However, the invention only simulates and verifies the instance scale of a small scale, which makes it difficult to fully verify the applicability of the algorithm in actual large-scale complex problems.
[0009] The invention patent "A quay crane-AVG joint scheduling method based on multi-objective optimization" by Ren Hongxiang et al. (Ren Hongxiang, Duan Yating, Meng Yao, Xu Fuquan, Pan Mingyang, Liang Xiao, Tao Rui, Sun Jiawen, Dong Yaxin. A quay crane-AVG joint scheduling method based on multi-objective optimization [P]. Chinese Patent: CN116882665A, 2023.10.13) discloses a quay crane-AGV joint scheduling method based on multi-objective optimization. First, the port data is obtained and the joint scheduling assumptions are designed, and then a multi-objective optimization model is constructed based on this, including the scheduling objective function and constraints. Next, the multi-objective optimization algorithm is designed and improved, and the scheduling objective function is calculated according to the optimization algorithm. After obtaining the results, the quay crane and AGV are scheduled. The invention adopts the improved NSGA-II algorithm, which can effectively solve the joint scheduling problem of the quay crane and AGV and improve the port operation efficiency. However, this method is prone to fall into the local optimal solution when dealing with large-scale and complex constrained problems. Summary of the invention
[0010] In order to solve the above problems existing in the prior art, the present invention provides a method and device for optimizing the joint scheduling of port berths and quay cranes based on a solution and merging algorithm. The technical problem to be solved by the present invention is achieved through the following technical solutions:
[0011] In a first aspect, an embodiment of the present invention provides a method for optimizing the joint scheduling of port berths and quay cranes based on a solution-merge algorithm, the method comprising:
[0012] Obtain information on multiple berths and quay cranes at the port and the ship attributes of all ships arriving at the port; wherein each berth corresponds to a quay crane, and the quay crane has a corresponding working efficiency; the ship attributes include the estimated arrival time, the estimated departure time, the loading and unloading container volume, and the preferred berth;
[0013] On the premise that all ships complete their loading and unloading tasks, based on the information of all berths and quay cranes and the ship attributes of the arriving ships, a berth quay crane scheduling optimization model is constructed by introducing multiple constraints with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths.
[0014] The berth quay crane scheduling optimization model is solved based on the solution set merging algorithm to obtain the optimal solution representing the complete scheduling plan; wherein the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship and the quay crane number assigned to each ship.
[0015] In one embodiment of the present invention, the various constraints introduced include basic constraints, and the basic constraints include:
[0016] Time constraints mean that the working hours of any two ships cannot overlap; and the ship must arrive at the port before it can start working;
[0017] Spatial constraints mean that the berthing positions of any two ships cannot overlap, and a preset interval is maintained between adjacent ships;
[0018] Quay crane constraint means that a single quay crane can only serve one ship at a time.
[0019] In one embodiment of the present invention, the multiple constraints introduced include additional constraints, and the additional constraints include:
[0020] The working range constraint of the quay crane refers to the berth position of the ship covered by the service range of the quay crane;
[0021] The quay crane continuity constraint refers to the continuity of multiple quay cranes serving the same ship;
[0022] The total number of quay cranes is limited, which means that at any point in time, the number of quay cranes in operation does not exceed the total number of quay cranes.
[0023] Ship safety distance constraint means that there is a minimum safety distance between two ships;
[0024] The safe distance constraint for quay crane vessels refers to the minimum safe distance between two vessels;
[0025] The quay crane service limitation means that the quay crane cannot cross the service range of multiple ships at the same time;
[0026] Variable constraints: constraints on variables 0 and 1.
[0027] In one embodiment of the present invention, the berth quay crane scheduling optimization model is expressed as:
[0028]
[0029] st
[0030]
[0031] Where j is the ship number, v is the total number of ships expected to arrive at the port during the scheduling period; AE j is the actual end-of-work time of ship j; EA j is the estimated arrival time of ship j; LOC j is the berthing position of ship j, expressed as the bow position; TAR j is the preferred berth position of ship j, represented by the bow position; st represents the constraint condition, with 1 to 10 representing different constraints; AS jis the actual start time of ship j; j∈V={1,2,3,…,v}, V is the set of ships expected to arrive at the port during the scheduling period; L is the total length of the coastline; l j is the length of ship j; W jk Indicates whether quay crane k serves ship j, W jk =1 means service, W jk =0 means no service; EFF k N represents the working efficiency of the quay crane k; j is the total loading and unloading volume of ship j; c is the total number of quay cranes in the port; T ij Indicates whether the working hours of ship i and ship j overlap, T ij =1 means there is overlap, T ij =0 means no overlap; P ij Indicates whether the berthing positions of ship i and ship j overlap, P ij =1 means there is overlap, P ij =0 means no overlap; S k is the minimum working position of the quay crane k; E k is the maximum working position of the quay crane k; k∈C={1,2,3,…,c}, C is the set of quay cranes in the port; t∈T={AS j ,AE j |j∈V}, T represents the set of time points of starting and ending work of all ships.
[0032] In one embodiment of the present invention, the berth quay crane scheduling optimization model is solved based on the solution set merging algorithm to obtain the optimal solution representing the complete scheduling solution, including:
[0033] Step a1, initialize the berth quay crane scheduling instance, and set the number of scheduling solutions ns, the total calculation time t_total, the MIP solver time limit t_iter for each iteration, and the number of random subsets K of the variable set;
[0034] Step a2, generating an initial solution set of the berth-quay crane scheduling optimization model using a heuristic algorithm;
[0035] Step a3, dividing the current initial solution set into multiple subsets according to preset rules;
[0036] Step a4, constructing a MIP model according to the obtained subset information; wherein the MIP model includes an objective function and constraint conditions;
[0037] Step a5, using the MIP solver to solve the MIP model, obtain a combined solution, and add it to the solution set, and obtain an updated solution set after selecting the best one;
[0038] Step a6, determine whether the total calculation time t_total has been reached; if so, execute step a7; if not, replace the initial solution set with the updated solution set and return to step a3;
[0039] Step a7, determining the optimal solution representing the complete scheduling solution in the updated solution set.
[0040] In one embodiment of the present invention, step a2, using a heuristic algorithm to generate an initial solution set of the berth-quay crane scheduling optimization model, includes:
[0041] The initial solution set of the berth-quay crane scheduling optimization model is generated by using a parallel genetic algorithm.
[0042] In one embodiment of the present invention, the method of generating an initial solution set of the berth quay crane scheduling optimization model by using a parallelized genetic algorithm includes:
[0043] Initialize the parallel computing environment and set the number of available processors;
[0044] For each scheduling scheme, the berth-quay crane scheduling optimization model is encoded with chromosomes, where the chromosome is composed of a 2×v matrix, the jth column of the coloring represents the information of ship j; v is the total number of ships expected to arrive at the port during the scheduling period; the first row of the matrix represents the waiting time for the ship to berth at the berth after the expected arrival time until the start of work, and the second row represents the location of the ship berth;
[0045] Complete population initialization; when initializing population individuals, determine the number of fixed quay cranes assigned to the ship according to its berthing position, and derive the working time and departure time of the ship according to the number of fixed quay cranes to ensure that each individual solution of the ship's information generated during the initialization process is a feasible solution;
[0046] Calculate the fitness of individuals in the current population; the fitness calculation takes waiting time and offset distance as the minimization optimization target. The lower the values of the two indicators, the greater the individual fitness.
[0047] Based on the calculated individual fitness, the parent individuals are selected using elite selection and roulette wheel methods;
[0048] Perform a crossover operation on any two selected parent individuals; when two parent individuals perform a crossover operation, randomly select a time period of variable length and exchange the information of all ships expected to arrive during the time period;
[0049] Perform mutation operation to obtain new offspring, where the mutation operation randomly selects two ship information with similar arrival time to exchange;
[0050] Merge all the obtained offspring into the previous population, and obtain an updated population based on individual fitness calculations;
[0051] Return to the parent individual selection step, and after a preset number of iterations, select the optimal solution in the population;
[0052] The obtained ns optimal solutions are added to the solution set to obtain the initial solution set of the berth quay crane scheduling optimization model.
[0053] In one embodiment of the present invention, the objective function in the MIP model is expressed as:
[0054]
[0055] Among them, α and β are weight coefficients, which are automatically adjusted according to the subset information; the constraints in the MIP model include basic constraints and additional constraints.
[0056] In one embodiment of the present invention, step a7, determining the optimal solution representing the complete scheduling solution in the updated solution set, includes:
[0057] Each solution in the updated solution set is substituted into the objective function represented by the berth-quay crane scheduling optimization model, and the solution that minimizes it is determined as the optimal solution that represents the complete scheduling solution.
[0058] In a second aspect, an embodiment of the present invention provides a port berth and quay crane joint scheduling optimization device based on a solution-merge algorithm, the device comprising:
[0059] The data acquisition module is used to obtain information on multiple berths and quay cranes at the port and the ship attributes of all ships arriving at the port; each berth corresponds to a quay crane, and the quay crane has a corresponding working efficiency; the ship attributes include the estimated arrival time, the estimated departure time, the loading and unloading container volume, and the preferred berth;
[0060] The optimization model building module is used to introduce multiple constraints to build a berth-quay crane scheduling optimization model based on the information of all berths and quay cranes and the ship attributes of the arriving ships, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, under the premise that all ships have completed their loading and unloading tasks;
[0061] A solution module is used to solve the berth quay crane scheduling optimization model based on a solution set merging algorithm to obtain an optimal solution representing a complete scheduling plan; wherein the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship, and the quay crane number assigned to each ship.
[0062] Beneficial effects of the present invention:
[0063] In view of the problems of limited shoreline resources at the terminal, limited number of quay cranes, uncertain arrival time of ships, etc., the present invention proposes a port berth and quay crane joint scheduling optimization method based on a solution-and-merge algorithm. First, the information of multiple berths and quay cranes at the port and the ship attributes of all arriving ships are obtained; then, on the premise that all ships complete the loading and unloading tasks, based on the information of all berths and quay cranes and the ship attributes of the arriving ships, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, multiple constraints are introduced to construct a berth-quay crane scheduling optimization model; finally, the berth-quay crane scheduling optimization model is solved based on the solution-and-merge algorithm to obtain the optimal solution representing the complete scheduling plan; wherein, the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship and the quay crane number assigned to each ship. The model provided by the embodiment of the present invention can reasonably dispatch ship berths and quay crane resources, maximize the use of terminal resources, and improve overall operational efficiency; with the goal of minimizing the total time in port and the total offset distance, it can significantly shorten the ship's time in port, reduce the offset distance, and enhance the competitiveness of the terminal; at the same time, it provides technical support for the automation and intelligent management of the terminal, and promotes the intelligent development of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic diagram of a process flow of a port berth and quay crane joint scheduling optimization method based on a solution-merge algorithm provided in an embodiment of the present invention;
[0065] Figure 2 A flow chart of modeling the berth-quay crane scheduling problem according to an embodiment of the present invention;
[0066] Figure 3 A schematic diagram of a process of constructing an initial solution to a berth-quay crane scheduling problem using a genetic algorithm according to an embodiment of the present invention;
[0067] Figure 4 A schematic diagram of a process for solving a berth quay crane scheduling optimization model based on a solution merging algorithm according to an embodiment of the present invention;
[0068] Figure 5 This is a schematic diagram of outputting berth quay crane scheduling results according to an embodiment of the present invention;
[0069] Figure 6 A schematic diagram of the structure of a port berth and quay crane joint scheduling optimization device based on a solution-merge algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0070] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0071] Traditional berth scheduling and quay crane scheduling are carried out separately, which cannot fully utilize port resources and it is difficult to achieve the best overall scheduling effect. For the complex optimization model of port scheduling problems, the existing precise solution methods and heuristic algorithms have limitations in efficiency and solution quality when dealing with large-scale instances, and cannot quickly provide high-quality solutions, which affects the efficiency and decision-making quality in port management and production scheduling. The present invention aims to solve the problems of the existing port scheduling optimization algorithms having limitations in efficiency and solution quality when dealing with large-scale, multi-constraint, and multi-objective problems.
[0072] To this end, the present invention proposes an optimization model based on the joint scheduling of dynamic continuous berths and quay cranes, and designs a corresponding solution merging algorithm solution method. This joint scheduling model and optimization algorithm can effectively handle complex port scheduling problems, improve the utilization efficiency of port resources, and provide better decision support for relevant staff.
[0073] Specifically, the embodiment of the present invention provides a port berth and quay crane joint scheduling optimization method based on the solution and merge algorithm to solve the berth quay crane scheduling problem, such as Figure 1 As shown, the method may include the following steps:
[0074] S1, obtain the information of multiple berths and quay cranes in the port and the ship attributes of all ships arriving at the port;
[0075] In a typical large port, there are usually dozens of berths and dozens of quay cranes providing loading and unloading services. The information of each berth includes the location and number of the berth. Each berth corresponds to a quay crane, which has a corresponding working efficiency. The working efficiency indicates the number of containers that can be loaded and unloaded per hour. The information of the quay crane includes the location, number, corresponding berth, working efficiency, etc. of the quay crane. Taking a port with 30 berths and 30 quay cranes as an example, its loading and unloading scheduling problem can be described as follows:
[0076] Every day, 50 ships need to load and unload at the port. These ships have different ship attributes, including estimated arrival time, estimated departure time, loading and unloading volume, and preferred berth. The preferred berth refers to the preferred berthing position, that is, which berth is preferred.
[0077] For example, 30 berths are distributed on a coastline with a total length of 3,000 meters. Each berth has a corresponding quay crane, and the working efficiency of the quay crane can be 25 boxes / hour.
[0078] The above information of multiple berths and quay cranes in the port, as well as the ship attributes of all ships arriving at the port, can be obtained to facilitate the subsequent construction of a berth and quay crane scheduling optimization model.
[0079] S2, under the premise that all ships have completed their loading and unloading tasks, based on the locations of all berths and the ship attributes of all arriving ships, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, introduces multiple constraints and constructs a berth crane scheduling optimization model;
[0080] In the complex environment described in S1, an optimized loading and unloading scheduling plan needs to be developed, such as minimizing the total port time of all 50 ships and minimizing the offset distance of each ship's berthing position from its preferred berth. At the same time, multiple constraints need to be met to ensure the feasibility of the final plan.
[0081] In an optional implementation manner, the multiple constraints introduced include basic constraints, and the basic constraints include:
[0082] Time constraints mean that the working hours of any two ships cannot overlap, and the ships must arrive at the port before they can start working;
[0083] Spatial constraints mean that the berthing positions of any two ships cannot overlap, and a preset interval is maintained between adjacent ships;
[0084] Quay crane constraint means that a single quay crane can only serve one ship at a time.
[0085] In an optional implementation manner, multiple constraints are introduced based on the basic constraints, including additional constraints, and the additional constraints include:
[0086] The working range constraint of the quay crane refers to the berth position of the ship covered by the service range of the quay crane;
[0087] The quay crane continuity constraint refers to the continuity of multiple quay cranes serving the same ship;
[0088] The total number of quay cranes is limited, which means that at any point in time, the number of quay cranes in operation does not exceed the total number of quay cranes.
[0089] Ship safety distance constraint means that there is a minimum safety distance between two ships;
[0090] The safe distance constraint for quay crane vessels refers to the minimum safe distance between two vessels;
[0091] The quay crane service limitation means that the quay crane cannot cross the service range of multiple ships at the same time;
[0092] Variable constraints: constraints on variables 0 and 1.
[0093] The embodiment of the present invention not only takes into account the preferred berth of the ship and introduces minimization of the offset distance as one of the optimization objectives, but also takes into account the working efficiency of the quay crane and takes it as one of the important bases for allocating the quay crane. Figure 2 Modeling flow chart for berth-quay crane scheduling problem.
[0094] The embodiment of the present invention models the berth-quay crane scheduling problem according to the above requirements, that is, constructs a berth-quay crane scheduling optimization model, and the objective function is to minimize the port time of all arriving ships and minimize the offset distance of all arriving ships from their preferred berths.
[0095] The berth crane scheduling optimization model is expressed as:
[0096]
[0097] st
[0098]
[0099] Where j is the ship number, v is the total number of ships expected to arrive at the port during the scheduling period, and is a natural number greater than 0; AE j is the actual end time of work for ship j; EA j is the estimated arrival time of ship j; LOC j is the berthing position of ship j, expressed as the bow position; TAR j is the preferred berth position of ship j, represented by the bow position; st represents the constraint condition, with 1 to 10 representing different constraints, including time constraint, space constraint, quay crane constraint and work efficiency constraint, etc.; AS j is the actual start time of ship j; j∈V={1,2,3,…,v}, V is the set of ships expected to arrive at the port during the scheduling period; L is the total length of the coastline; l j is the length of ship j; W jk Indicates whether quay crane k serves ship j, W jk =1 means service, W jk =0 means no service; EFF k N represents the working efficiency of the quay crane k; j is the total loading and unloading volume of ship j; c is the total number of quay cranes in the port; T ij Indicates whether the working hours of ship i and ship j overlap, T ij =1 means there is overlap, T ij =0 means no overlap; P ij Indicates whether the berthing positions of ship i and ship j overlap, P ij =1 means there is overlap, P ij =0 means no overlap; S kis the minimum working position of the quay crane k; E k is the maximum working position of the quay crane k; k∈C={1,2,3,…,c}, C is the set of quay cranes in the port; t∈T={AS j ,AE j |j∈V}, T represents the set of time points of starting and ending work of all ships.
[0100] For the constraints 1 to 10 above, 1 to 4 represent basic constraints; 5 to 10 represent additional constraints, where:
[0101] Constraint 1 restricts the ship to arrive at the port before it can start operations; (indicates time constraint)
[0102] Constraint 2 restricts the berthing position of the ship to within the shoreline (representing a spatial constraint);
[0103] Constraint 3 requires that all ships complete loading and unloading before leaving the port; (indicates time constraint)
[0104] Constraint 4 restricts any two ships from coinciding with each other in time and space (representing a time constraint);
[0105] Constraint 5 is the working range constraint of the quay crane, which requires that the service range of the quay crane covers the berth of the ship;
[0106] Constraint 6 is the quay crane continuity constraint, which means that multiple quay cranes serving the same ship must be continuous;
[0107] Constraint 7 is the total number of quay cranes. The number of quay cranes in operation at the same time cannot exceed the total number of quay cranes.
[0108] Constraint 8 is the berthing safety distance constraint, that is, the distance between two adjacent ships should not be less than 10% of the ship length;
[0109] Constraint 9 is the safety distance constraint of the quay cranes, that is, the distance between the quay cranes operating at the same time should not be less than 24 meters;
[0110] Constraint 10 is a 0, 1 constraint on the variable.
[0111] S3, solving the berth quay crane scheduling optimization model based on a solution merging algorithm to obtain an optimal solution representing a complete scheduling solution;
[0112] The complete scheduling plan includes the estimated operating time period of each ship, the actual berthing position of each ship and the quay crane number assigned to each ship.
[0113] The embodiment of the present invention adopts a merge search (MS for short, i.e. a solution merge algorithm) for solving the problem, which is a heuristic optimization algorithm for solving complex problems.
[0114] In an optional implementation manner, S3 may include the following steps:
[0115] Step a1, initialize the berth quay crane scheduling instance, and set the number of scheduling solutions ns, the total calculation time t_total, the MIP solver time limit t_iter for each iteration, and the number of random subsets K of the variable set;
[0116] Exemplarily, the number of scheduling schemes ns=10, the total computing time t_total=3600 seconds, the MIP solver time limit for each iteration t_iter=300 seconds (5 minutes), and the number of random subsets of the variable set K=3 can be set.
[0117] Step a2, generating an initial solution set of the berth-quay crane scheduling optimization model using a heuristic algorithm;
[0118] Among them, heuristic algorithms may include genetic algorithms, ant colony optimization, etc. The embodiment of the present invention utilizes heuristic algorithms to generate a set of initial solution sets in parallel to characterize the scheduling scheme; heuristic algorithms such as genetic algorithms and ant colony optimization iteratively generate a series of feasible solutions by simulating the process of natural evolution or group behavior. In the initial solution generation stage, a relatively simple heuristic method is used to quickly generate feasible solutions. These methods can rely on some basic rules and strategies without the need for complex optimization models. The generation of the initial solution is mainly to quickly obtain a set of feasible solutions, which are not necessarily optimal. In order to quickly generate a feasible solution set, the most basic basic constraints are usually used to generate the initial solution set.
[0119] In an optional implementation manner, step a2, using a heuristic algorithm to generate an initial solution set of the berth-quay crane scheduling optimization model, includes:
[0120] The initial solution set of the berth-quay crane scheduling optimization model is generated by using a parallel genetic algorithm.
[0121] Exemplarily, a genetic algorithm may be used to generate a set of initial solution sets S ten times in parallel. The population size is determined to be 30 and the number of iterations is determined to be 500.
[0122] Specifically, using a parallel genetic algorithm to generate an initial solution set of the berth-quay crane scheduling optimization model may include the following steps:
[0123] ① Initialize the parallel computing environment and set the number of available processors;
[0124] The number of available processors is denoted by P.
[0125] ② For each scheduling scheme, the berth-quay crane scheduling optimization model is encoded with chromosomes, where the chromosome is composed of a 2×v matrix, the jth column of the coloring represents the information of ship j; v is the total number of ships expected to arrive at the port during the scheduling period; the first row of the matrix represents the waiting time for the ship to berth at the berth after the expected arrival time until the start of work, and the second row represents the location of the ship berth;
[0126] Exemplarily, the waiting berthing time for the ship to berth at the berth after the estimated arrival time until the work starts may be 30, which means that the ship berths at the berth and starts the work 30 minutes after the estimated arrival time.
[0127] The position of the ship's berth is indicated by the position of the bow for continuous berths.
[0128] In step a1, the number of scheduling schemes ns is set, and each execution of ② processes a scheduling scheme. In the genetic algorithm, each individual is composed of a chromosome representing a gene set. For continuous berths, the position of the ship's berth is represented by the position of the bow.
[0129] ③ Complete population initialization; when initializing population individuals, the number of fixed quay cranes assigned to the ship is determined according to the berthing position of the ship, and the working time and departure time of the ship are obtained according to the number of fixed quay cranes, so as to ensure that each individual solution of the ship information generated during the initialization process is a feasible solution;
[0130] Specifically, an initial population P0 is generated. Taking the population size of 30 as an example, 30 initial populations P0 are generated, which contain N random solutions S i When initializing individuals, the number of fixed quay cranes assigned to the ship can be determined based on the ship's berthing position, and the working time and departure time of the ship can be obtained based on the fixed quay cranes, ensuring that each individual solution generated during the initialization process (each column of the chromosome) is a feasible solution.
[0131] ④ Calculate the fitness of individuals in the current population; the fitness calculation takes waiting time and offset distance as the minimization optimization target. The lower the values of the two indicators, the greater the individual fitness;
[0132] The fitness calculation formula is as follows:
[0133]
[0134] Among them, ind_score represents the score of the current individual; ind_code[0][j] represents the waiting time of the jth element of the individual; represents the total waiting time of all ships; ind[1][j] represents the current position of the jth element of the individual; TAR jrepresents the preferred berth position of ship j, expressed as the bow position, which is its target position; v is the total number of ships expected to arrive at the port during the scheduling period; It represents the total offset distance of all ships; ind_fitness represents the fitness value; max(score) represents the maximum score of all individuals in the berth crane scheduling optimization model.
[0135] This fitness function normalizes the difference between the individual's score and the maximum score, so that individuals with lower scores (i.e., individuals with smaller waiting time and offset distance) have higher fitness.
[0136] ⑤ Based on the calculated individual fitness, the parent individuals are selected using the elite selection and roulette method;
[0137] This step uses elite selection and roulette wheel methods to select individuals with higher fitness as parent individuals.
[0138] ⑥Perform a crossover operation on any two selected parent individuals;
[0139] Individuals with higher fitness have lower crossover probability.
[0140] Among them, when two parent individuals perform a crossover operation, they randomly select a time period of unfixed length and exchange the information of all ships expected to arrive during that time period;
[0141] ⑦ Perform mutation operation to obtain new offspring, where the mutation operation randomly selects two ship information with similar arrival time to exchange;
[0142] ⑧Merge all the obtained offspring into the previous population, and obtain an updated population based on individual fitness calculations;
[0143] Specifically, all the obtained offspring are merged into the previous population, the fitness of all individuals is calculated, and the individuals with higher fitness are retained. For example, an elite retention strategy can be used to retain the individuals with the highest fitness, and the updated population is obtained after maintaining the population size.
[0144] ⑨ Return to the parent individual selection step, and after a preset number of iterations, select the optimal solution in the population;
[0145] This step is to return to ⑤ and continue until a preset number of iterations (such as 500 iterations in the above example) has passed, and the optimal solution in the population is selected as the initial solution of the current scheduling plan.
[0146] ⑩ Add the obtained ns optimal solutions to the solution set to obtain the initial solution set of the berth crane scheduling optimization model.
[0147] Each scheduling scheme can obtain a corresponding initial solution according to the above processing, and the obtained ns optimal solutions are added to the solution set S to obtain the initial solution set of the berth quay crane scheduling optimization model.
[0148] As in the example above, ns = 10, then the ten solutions obtained are added to the solution set S, which is represented by S = {S1, S2, ..., S 10}. The genetic algorithm solution process mentioned above can be found in Figure 3 understand.
[0149] It should be noted that the embodiment of the present invention accelerates each link of the genetic algorithm through a parallelization framework to significantly improve the efficiency of generating an initial solution set.
[0150] Step a3, dividing the current initial solution set into multiple subsets according to preset rules;
[0151] After obtaining the initial solution set S, it is necessary to improve the quality of the solution set by updating the solution set.
[0152] In step a3, the preset rule may be random selection or based on the similarity of solutions.
[0153] Taking the random subset number K=3 of the variable set set in the previous text as an example, the initial solution set is randomly divided into 3 subsets, namely:
[0154] Subset M1 = {S1, S2, S3}, Subset M2 = {S4, S5, S6, S7}, Subset M3 = {S8, S9, S 10}.
[0155] Step a4, constructing a MIP model according to the obtained subset information;
[0156] MIP (Mixed Integer Programming) is a mathematical modeling method used to solve linear programming problems. The MIP model contains objective functions and constraints;
[0157] In this step, more complex objective functions and constraints are set to ensure that all practical operational restrictions and rules are met. Specifically, the objective function here will gradually adjust the weights in the multi-objective optimization according to the subset information to ensure that the optimal solution can be obtained. The constraints are the basic constraints in the problem modeling plus all the constraints in the additional constraints.
[0158] Specifically, the objective function corresponding to the berth quay crane scheduling optimization model in formula (1) is adjusted, and the objective function in the MIP model is expressed as:
[0159]
[0160] Among them, α and β are weight coefficients, which are automatically adjusted according to the subset information; the constraints in the MIP model include basic constraints and additional constraints.
[0161] Step a5, using the MIP solver to solve the MIP model, obtain a combined solution, and add it to the solution set, and obtain an updated solution set after selecting the best one;
[0162] Specifically, the obtained solution is brought into the MIP solver, and the MIP solver is used to solve the above model to obtain a new combined solution S new , and add it to the solution set to form an updated solution set; for example, the solution set obtained from M1 is {S 11 ,S 12 ,S 13}, the solution set obtained from M2 is {S 14 ,S 15 ,S 16 ,S 17}, the solution set obtained from M3 is {S 18 ,S 19 ,S 20}, then the new solution S new ={S 11 ,S 12 ,S 13 ,S 14 ,S 15 ,S 16 ,S 17 ,S 18 ,S 19 ,S 20}.
[0163] The optimal solution can be selectively retained or the solution with poor fitness can be replaced to form an updated solution set.
[0164] Step a6, determine whether the total calculation time t_total has been reached; if so, execute step a7; if not, replace the initial solution set with the updated solution set and return to step a3;
[0165] The embodiment of the present invention continuously repeats the process of generating new solutions and merging solutions until the total computing time limit is reached.
[0166] Step a7, determining the optimal solution representing the complete scheduling solution in the updated solution set.
[0167] This step includes:
[0168] Each solution in the updated solution set is substituted into the objective function represented by the berth-quay crane scheduling optimization model, and the solution that minimizes it is determined as the optimal solution that represents the complete scheduling solution.
[0169] Specifically, each solution of the final solution set obtained by iteration is brought into the initial objective function, that is, the objective function in formula (1), and the solution that minimizes it is the optimal solution. Figure 4 understand.
[0170] Characterize the optimal solution of the complete scheduling solution, including the complete scheduling solution including:
[0171] The actual operation time period of each ship: including the actual start time of operation AS j , actual end time of operation AE j ;
[0172] The actual berthing position of each ship: berthing position LOC j , expressed as the bow position;
[0173] The quay crane number assigned to each ship: The quay crane number C assigned to ship j j1 , C j2 ,......,C jk .
[0174] The output scheduling plan not only includes the operation time and location information of each ship, but also lists in detail the specific quay crane number assigned to each ship. This comprehensive output result can provide an intuitive reference for port scheduling managers, which is helpful for further optimization and implementation of scheduling plans. Figure 5 understand.
[0175] In view of the problems of limited terminal shoreline resources, limited number of quay cranes, and uncertain arrival time of ships, the present invention proposes a port berth and quay crane joint scheduling optimization method based on the solution and merge algorithm, and specifically provides a dynamic continuous berth-quay crane joint scheduling model and its optimization algorithm. First, the information of multiple berths and quay cranes in the port and the ship attributes of all ships arriving at the port are obtained; then, under the premise that all ships have completed their loading and unloading tasks, based on the information of all berths and quay cranes and the ship attributes of the ships arriving at the port, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, multiple constraints are introduced to construct a berth-quay crane scheduling optimization model; finally, the berth-quay crane scheduling optimization model is solved based on the solution and merge algorithm to obtain the optimal solution that represents the complete scheduling plan; wherein, the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship, and the quay crane number assigned to each ship. The model provided by the embodiment of the present invention can reasonably dispatch ship berths and quay crane resources, maximize the use of terminal resources, and improve overall operational efficiency; with the goal of minimizing the total time in port and the total offset distance, it can significantly shorten the ship's time in port, reduce the offset distance, and enhance the competitiveness of the terminal; at the same time, it provides technical support for the automation and intelligent management of the terminal, and promotes the intelligent development of the terminal.
[0176] In the second aspect, corresponding to the above method embodiment, the embodiment of the present invention also provides a port berth and quay crane joint scheduling optimization device based on a solution and merging algorithm, such as Figure 6 As shown, the device comprises:
[0177] The data acquisition module is used to obtain information on multiple berths and quay cranes at the port and the ship attributes of all ships arriving at the port; each berth corresponds to a quay crane, and the quay crane has a corresponding working efficiency; the ship attributes include the estimated arrival time, the estimated departure time, the loading and unloading container volume, and the preferred berth;
[0178] The optimization model building module is used to introduce multiple constraints to build a berth-quay crane scheduling optimization model based on the information of all berths and quay cranes and the ship attributes of the arriving ships, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, under the premise that all ships have completed their loading and unloading tasks;
[0179] A solution module is used to solve the berth quay crane scheduling optimization model based on a solution set merging algorithm to obtain an optimal solution representing a complete scheduling plan; wherein the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship, and the quay crane number assigned to each ship.
[0180] For the specific processing process of each module of the device, please refer to the relevant content of the first aspect and will not be repeated here.
[0181] The port berth and quay crane joint scheduling optimization device based on the solution and merge algorithm provided in the embodiment of the present invention can reasonably schedule ship berths and quay crane resources, maximize the use of terminal resources, and improve overall operational efficiency; with the goal of minimizing the total time in port and the total offset distance, it can significantly shorten the ship's time in port, reduce the offset distance, and enhance the competitiveness of the terminal; at the same time, it provides technical support for the automation and intelligent management of the terminal, and promotes the intelligent development of the terminal.
[0182] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0183] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for optimizing the joint scheduling of port berths and quay cranes based on a solution-merge algorithm, characterized in that: include: Obtain information on multiple berths and quay cranes at the port and the ship attributes of all ships arriving at the port; wherein each berth corresponds to a quay crane, and the quay crane has a corresponding working efficiency; the ship attributes include the estimated arrival time, the estimated departure time, the loading and unloading container volume, and the preferred berth; On the premise that all ships complete their loading and unloading tasks, based on the information of all berths and quay cranes and the ship attributes of the arriving ships, a berth quay crane scheduling optimization model is constructed by introducing multiple constraints with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths. The berth quay crane scheduling optimization model is solved based on the solution set merging algorithm to obtain the optimal solution representing the complete scheduling plan; wherein the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship and the quay crane number assigned to each ship.
2. The port berth and quay crane joint scheduling optimization method based on solution and merging algorithm according to claim 1 is characterized in that: The various constraints introduced include basic constraints, which include: Time constraints mean that the working hours of any two ships cannot overlap; and the ship must arrive at the port before it can start working; Spatial constraints mean that the berthing positions of any two ships cannot overlap, and a preset interval is maintained between adjacent ships; Quay crane constraint means that a single quay crane can only serve one ship at a time.
3. The port berth and quay crane joint scheduling optimization method based on solution and merging algorithm according to claim 1 is characterized in that: The various constraints introduced include additional constraints, which include: The working range constraint of the quay crane refers to the berth position of the ship covered by the service range of the quay crane; The quay crane continuity constraint refers to the continuity of multiple quay cranes serving the same ship; The total number of quay cranes is limited, which means that at any point in time, the number of quay cranes in operation does not exceed the total number of quay cranes. Ship safety distance constraint means that there is a minimum safety distance between two ships; The safe distance constraint for quay crane vessels refers to the minimum safe distance between two vessels; The quay crane service limitation means that the quay crane cannot cross the service range of multiple ships at the same time; Variable constraints: constraints on variables 0 and 1.
4. The method for optimizing the joint scheduling of port berths and quay cranes based on the solution-merge algorithm according to claim 1 is characterized in that: The berth crane scheduling optimization model is expressed as: Where j is the ship number, v is the total number of ships expected to arrive at the port during the scheduling period; AE j is the actual end time of work for ship j; EA j is the estimated arrival time of ship j; LOC j is the berthing position of ship j, expressed as the bow position; TAR j is the preferred berth position of ship j, represented by the bow position; st represents the constraint condition, with 1 to 10 representing different constraints; AS j is the actual start time of ship j; j∈V={1,2,3,…,v}, V is the set of ships expected to arrive at the port during the scheduling period; L is the total length of the coastline; l j is the length of ship j; W jk Indicates whether quay crane k serves ship j, W jk =1 means service, W jk =0 means no service; EFF k N represents the working efficiency of the quay crane k; j is the total loading and unloading volume of ship j; c is the total number of quay cranes in the port; T ij Indicates whether the working hours of ship i and ship j overlap, T ij =1 means there is overlap, T ij =0 means no overlap; P ij Indicates whether the berthing positions of ship i and ship j overlap, P ij =1 means there is overlap, P ij =0 means no overlap; S k is the minimum working position of the quay crane k; E k is the maximum working position of the quay crane k; k∈C={1,2,3,…,c}, C is the set of quay cranes in the port; t∈T={ASj,AEj|j∈V}, T represents the set of time points for the start and end of work of all ships.
5. The port berth and quay crane joint scheduling optimization method based on the solution and merge algorithm according to any one of claims 1 to 4, characterized in that: The berth-quay crane scheduling optimization model is solved based on the solution set merging algorithm to obtain the optimal solution representing the complete scheduling solution, including: Step a1, initialize the berth quay crane scheduling instance, and set the number of scheduling solutions ns, the total calculation time t_total, the MIP solver time limit t_iter for each iteration, and the number of random subsets K of the variable set; Step a2, generating an initial solution set of the berth-quay crane scheduling optimization model using a heuristic algorithm; Step a3, dividing the current initial solution set into multiple subsets according to preset rules; Step a4, constructing a MIP model according to the obtained subset information; wherein the MIP model includes an objective function and constraint conditions; Step a5, using the MIP solver to solve the MIP model, obtain a combined solution, and add it to the solution set, and obtain an updated solution set after selecting the best one; Step a6, determine whether the total calculation time t_total has been reached; if so, execute step a7; if not, replace the initial solution set with the updated solution set and return to step a3; Step a7, determining the optimal solution representing the complete scheduling solution in the updated solution set.
6. The method for optimizing the joint scheduling of port berths and quay cranes based on the solution-merge algorithm according to claim 5 is characterized in that: Step a2, using a heuristic algorithm to generate an initial solution set of the berth-quay crane scheduling optimization model, including: The initial solution set of the berth-quay crane scheduling optimization model is generated by using a parallel genetic algorithm.
7. The method for optimizing the joint scheduling of port berths and quay cranes based on the solution-merge algorithm according to claim 6 is characterized in that: The method of generating an initial solution set of the berth-quay crane scheduling optimization model by using a parallelized genetic algorithm includes: Initialize the parallel computing environment and set the number of available processors; For each scheduling scheme, the berth-quay crane scheduling optimization model is encoded with chromosomes, where the chromosome is composed of a 2×v matrix, the jth column of the coloring represents the information of ship j; v is the total number of ships expected to arrive at the port during the scheduling period; the first row of the matrix represents the waiting time for the ship to berth at the berth after the expected arrival time until the start of work, and the second row represents the location of the ship berth; Complete population initialization; when initializing population individuals, determine the number of fixed quay cranes assigned to the ship according to its berthing position, and derive the working time and departure time of the ship according to the number of fixed quay cranes to ensure that each individual solution of the ship's information generated during the initialization process is a feasible solution; Calculate the fitness of individuals in the current population; the fitness calculation takes waiting time and offset distance as the minimization optimization target. The lower the values of the two indicators, the greater the individual fitness. Based on the calculated individual fitness, the parent individuals are selected using elite selection and roulette wheel methods; Perform a crossover operation on any two selected parent individuals; when two parent individuals perform a crossover operation, randomly select a time period of variable length and exchange the information of all ships expected to arrive during the time period; Perform mutation operation to obtain new offspring, where the mutation operation randomly selects two ship information with similar arrival time to exchange; Merge all the obtained offspring into the previous population, and obtain an updated population based on individual fitness calculations; Return to the parent individual selection step, and after a preset number of iterations, select the optimal solution in the population; The obtained ns optimal solutions are added to the solution set to obtain the initial solution set of the berth quay crane scheduling optimization model.
8. The method for optimizing the joint scheduling of port berths and quay cranes based on the solution-merge algorithm according to claim 5 is characterized in that: The objective function in the MIP model is expressed as: Among them, α and β are weight coefficients, which are automatically adjusted according to the subset information; the constraints in the MIP model include basic constraints and additional constraints.
9. The method for optimizing the joint scheduling of port berths and quay cranes based on the solution-merge algorithm according to claim 8, characterized in that: Step a7, determining the optimal solution representing the complete scheduling solution in the updated solution set, including: Each solution in the updated solution set is substituted into the objective function represented by the berth-quay crane scheduling optimization model, and the solution that minimizes it is determined as the optimal solution that represents the complete scheduling solution.
10. A port berth and quay crane joint scheduling optimization device based on solution and merging algorithm, characterized in that: include: The data acquisition module is used to obtain information on multiple berths and quay cranes at the port and the ship attributes of all ships arriving at the port; each berth corresponds to a quay crane, and the quay crane has a corresponding working efficiency; the ship attributes include the estimated arrival time, the estimated departure time, the loading and unloading container volume, and the preferred berth; The optimization model building module is used to introduce multiple constraints to build a berth-quay crane scheduling optimization model based on the information of all berths and quay cranes and the ship attributes of the arriving ships, with the goal of minimizing the port time of all arriving ships and minimizing the offset distance of all arriving ships from their preferred berths, under the premise that all ships have completed their loading and unloading tasks; A solution module is used to solve the berth quay crane scheduling optimization model based on a solution set merging algorithm to obtain an optimal solution representing a complete scheduling plan; wherein the complete scheduling plan includes the actual operating time period of each ship, the actual berthing position of each ship, and the quay crane number assigned to each ship.
Citation Information
Cited By
Container terminal automatic scheduling method and system based on reinforcement learning
CN119047794A
A container terminal automated scheduling method and system based on reinforcement learning
CN119047794B
Intelligent control system for bulk cargo port full-process equipment
CN119444016A
Parking scheduling method, system and equipment based on movable slipway
CN119647888A
A method, system and apparatus for docking scheduling based on a movable berth
CN119647888B
