Ship stowage optimization method and device based on ant colony algorithm, equipment and medium

The ant colony algorithm is used to optimize ship stowage, which solves the high cost problem caused by inconsistent cargo module sizes and different loading and unloading ports in ship transportation, achieves the optimal stowage plan, and reduces transportation costs.

CN118657248AActive Publication Date: 2024-09-17COSCO SHIPPING

Patent Information

Application Number
CN202410770949.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-17
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In the existing technology, the sizes of cargo modules in ship transportation are inconsistent and the loading and unloading ports are different. As a result, multiple factors need to be considered when selecting the best voyage and carrier ship plan, resulting in high costs and difficulty in optimization.

Method used

A ship stowage optimization method based on the ant colony algorithm is used to construct a pheromone matrix, randomly select carrier ships, carry out cargo stowage based on node transfer strategies, iteratively calculate the optimal stowage plan, and combine heuristic factors and pheromone concentration optimization paths .

Benefits of technology

The optimal cargo stowage scheme is achieved under the constraints, reducing transportation costs, improving ship deck utilization, and significantly reducing transportation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657248A
    Figure CN118657248A
Patent Text Reader

Abstract

The invention provides a ship stowage optimization method based on an ant colony algorithm, which comprises a voyage cost function, and comprises the following steps: obtaining a ship set and a to-be-stowage cargo set to construct a pheromone matrix; establishing a solution item for each ant; establishing a single voyage number in the solution item, randomly selecting a carrier ship of the voyage number, and calculating the available area of a deck of the carrier ship according to a buoyancy tank scheme; selecting and establishing an alternative cargo set from the to-be-stowage cargoes based on a node transfer strategy, and stowage the alternative cargo set to a deck; deleting the alternative cargo set from the to-be-stowage cargo, replacing a carrier ship, performing stowage again until the to-be-stowage cargo is empty, and calculating a voyage number cost function of the solution item; an optimal solution item set is obtained through comparison operation, the pheromone matrix is updated, and iteration is repeated until the number of iterations reaches a preset value. According to the method, the optimal matching scheme of ships, ports and goods can be obtained, and the transportation cost is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of shipping software development, and in particular to a ship loading optimization method, device, equipment and medium based on ant colony algorithm. Background Art

[0002] In recent years, the shipping industry has developed rapidly. As ships have the advantages of large transportation volume and low cost, more and more people choose ships as a mode of transportation. For semi-submersible ships, the size of the cargo modules they transport is inconsistent, the loading and unloading ports between cargoes may be different, and the loading and unloading time may also be different. When choosing a carrier ship and assembly plan for a voyage and determining the transportation cost, many factors are involved. If there are multiple carrier ships to choose from, different transportation costs can be generated through different voyages and combinations of goods to be assembled. By comparing different plans and selecting the best plan, costs can be reduced.

[0003] At present, a single shipping project involves multiple carriers and a large amount of cargo transportation. Most of the loading is done by manual experience to complete the transportation of cargo. This loading method relying on manual experience requires a lot of manpower, and when the problem is too complicated, it is difficult to get the optimal solution. How to achieve the goal of reducing shipping costs through the optimal matching of ships, ports and cargo is a problem that needs to be solved at present. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention proposes a ship loading optimization method based on ant colony algorithm, including a voyage cost function, and the method comprises:

[0005] Obtain a set of ships and a set of cargoes to be loaded to construct a pheromone matrix; establish a solution for each ant;

[0006] Establish a single voyage in the solution, randomly select a carrier ship for the voyage, and calculate the available deck area of ​​the carrier ship according to the pontoon solution;

[0007] Select and establish a set of candidate cargoes from the cargoes to be loaded based on a node transfer strategy, and load the set of candidate cargoes onto the deck;

[0008] Deleting the candidate cargo set from the cargo to be loaded, replacing the carrier ship and loading again until the cargo to be loaded is empty, and calculating the voyage cost function of the solution item;

[0009] The optimal solution set is obtained through comparison operations and the pheromone matrix is ​​updated. The iteration is repeated until the number of iterations reaches the preset value to obtain the optimal loading solution.

[0010] In one embodiment, the probability determining factors of the node transfer strategy of the ant colony algorithm include a heuristic factor and a pheromone concentration. The initial value of the pheromone concentration on each path is set to 50. The heuristic factor is the reciprocal of the difference in number of days between the planned loading time of the goods to be assembled and the earliest planned loading time of the voyage.

[0011] In one embodiment, after deleting the candidate cargo set from the cargo to be loaded, replacing the carrier ship and loading again until the cargo to be loaded is empty, calculating the voyage cost function of the solution item further includes:

[0012] After selecting the first carrier and the set of candidate cargoes, the first cost is calculated according to the voyage cost function;

[0013] Select a second carrier again according to the set of candidate cargoes, reassemble and calculate a second cost. Compare the first cost and the second cost, and retain the carrier with the lowest cost;

[0014] The carrier ship and the set of alternative cargoes for each voyage are obtained in sequence until all cargoes to be loaded are assembled, and the cost of each voyage is calculated by the voyage cost function and added up to obtain the total cost of the solution item.

[0015] In one embodiment, when calculating the available deck area of ​​the carrier vessel according to the pontoon solution, 3.5 times the actual available area of ​​the carrier vessel is used as the available deck area.

[0016] In one embodiment, when selecting and establishing a set of alternative cargoes from the cargoes to be loaded based on a node transfer strategy and loading the set of alternative cargoes onto a deck, it also includes: setting both the available deck area and cargo modules to rectangles, and filling the carrying ship by a residual matrix method.

[0017] In one embodiment, after selecting and establishing a set of candidate cargoes from the cargoes to be loaded based on the node transfer strategy and loading the set of candidate cargoes onto the deck, the method further includes:

[0018] Obtain the ship information of the carrier ship in the voyage, and obtain the loading and unloading port information and loading and unloading date information of each cargo module of the alternative cargo set on it;

[0019] The port sequence, route and speed of the voyage are calculated based on the ship information, loading and unloading port information and loading and unloading date information.

[0020] The present invention also provides a ship loading optimization device based on ant colony algorithm, comprising:

[0021] A condition setting module is used to obtain a set of ships and a set of cargoes to be loaded to construct a pheromone matrix; a solution item is established for each ant;

[0022] A ship selection module, which is used to establish a single voyage in the solution, randomly select a carrier ship for the voyage, and calculate the available deck area of ​​the carrier ship according to the pontoon solution;

[0023] A cargo selection module, which is used to select and establish a set of candidate cargoes from the cargoes to be loaded based on a node transfer strategy, and load the set of candidate cargoes onto the deck;

[0024] A cost calculation module, which is used to delete the candidate cargo set from the cargo to be loaded, replace the carrier ship and load again until the cargo to be loaded is empty, and calculate the voyage cost function of the solution item;

[0025] The optimization update module is used to obtain the optimal solution set through comparison operations and update the pheromone matrix, repeat the iteration until the number of iterations reaches a preset value, and obtain the optimal loading solution.

[0026] In one embodiment, the probability determining factors of the node transfer strategy of the ant colony algorithm include a heuristic factor and a pheromone concentration. The initial value of the pheromone concentration on each path is set to 1. The heuristic factor is the reciprocal of the difference in number of days between the planned loading time of the goods to be assembled and the earliest planned loading time of the voyage.

[0027] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned ship loading optimization method based on ant colony algorithm when executing the computer program.

[0028] The present invention also provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned ship loading optimization method based on ant colony algorithm is implemented.

[0029] The embodiment of the present invention optimizes the cargo loading of semi-submersible ships through the node transfer strategy of the ant colony algorithm, aiming at the characteristics of semi-submersible ship transportation projects, such as large amounts of semi-submersible cargo, large numbers of carrier ships, and large numbers of ports. By iteratively calculating the optimal cargo loading plan for each voyage, the ship, cargo, and port are matched, and the carrier ship and cargo with the optimal transportation cost for each voyage are obtained. This embodiment can speed up the acquisition of the optimal loading plan for the semi-submersible ship project, minimize the project transportation cost under the premise of satisfying the constraints, and greatly reduce the transportation cost of the semi-submersible ship. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0031] Figure 1 It is a flow chart of a ship loading optimization method based on ant colony algorithm according to a first embodiment of the present invention;

[0032] Figure 2 A detailed flow chart of a ship loading optimization method based on ant colony algorithm according to a first embodiment of the present invention;

[0033] Figure 3 is a detailed flow chart of step S4 of the first embodiment of the present invention;

[0034] Figure 4 It is a schematic diagram of the assembly of the cargo module after 20 generations of simulation iterations in the first embodiment of the present invention;

[0035] Figure 5 It is an iteration-cost convergence diagram of the ant colony algorithm in the first embodiment of the present invention;

[0036] Figure 6 It is a structural block diagram of a ship loading optimization device based on ant colony algorithm according to a second embodiment of the present invention;

[0037] Figure 7 This is a schematic diagram of the internal structure of a computer according to another embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and the well-known modules, units and their connections, links, communications or operations are not shown or described in detail. In addition, the described features, architectures or functions can be combined in any way in one or more embodiments. It should be understood by those skilled in the art that the various embodiments described below are only for illustration and not for limiting the scope of protection of the present invention. It can also be easily understood that the modules or units or processing methods in the various embodiments described herein and shown in the drawings can be combined and designed according to various different configurations. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0039] First embodiment:

[0040] Please refer to Figures 1 to 5 As shown, for the problem of matching ships, cargoes and ports for semi-submersible ship transportation projects, the embodiment of the present invention discloses a ship loading optimization method based on an ant colony algorithm to obtain the loading project with the lowest transportation cost. First, a mathematical model of the cost of each voyage needs to be established to obtain a voyage cost function to provide a reference for subsequent cost calculation. The method includes:

[0041] S1 obtains a set of ships and a set of cargoes to be loaded to construct a pheromone matrix; a solution item is established for each ant;

[0042] It is understandable that the basic idea of ​​the ant colony algorithm is to use the walking path of the ants to represent the feasible solution of the problem to be optimized, and all the paths of the entire ant colony constitute the solution space of the problem to be optimized. The ants with shorter paths release more pheromones. As time goes on, the accumulated pheromone concentration on the shorter path gradually increases, and the number of ants choosing this path also increases. In the end, the entire ant will be concentrated on the best path under the action of positive feedback, and the corresponding path is the optimal solution to the problem to be optimized. Since the optimization of ship module loading is a random search problem, the heuristic algorithm such as the ant colony algorithm is considered to be used for solution. In the ant colony algorithm, the node transfer probability is determined by pheromones and heuristic factors. The heuristic factor is the reciprocal of the difference between the planned loading time of the cargo to be loaded and the earliest planned loading time of the voyage. The initial value of the pheromone concentration on each path is 50. When constructing the pheromone matrix, since it is necessary to randomly select carrier ships and cargo modules, it is assumed that the number of carrier ships to be selected is m, the number of cargo to be loaded is n, and the scale of the pheromone matrix is ​​m*n.

[0043] Specifically, each ant in the ant colony algorithm creates a solution item, each solution item is a solution, and the set of all loading schemes is the solution set of each generation in the ant colony algorithm. The solution of each solution item includes the voyage information of all voyages in the loading scheme, including at least the selected carrier ship, loading cargo information, route and speed of the voyage. Steps S2 to S4 are the solution process of each ant:

[0044] S2: establishing a single voyage in the solution, randomly selecting a carrier ship for the voyage, and calculating the available deck area of ​​the carrier ship according to the pontoon solution;

[0045] It is understandable that when calculating the available deck area of ​​the carrier ship according to the pontoon scheme, it is necessary to determine the pontoon scheme of the ship. One can be selected from the pontoon scheme of the ship, or one can be selected randomly, and 3.5 times the actual available area of ​​the carrier ship is used as the available deck area. When the cargo is placed on the deck of a semi-submersible ship, the deck can be appropriately extended outward. Using 3.5 parts of the actual available area of ​​the ship as the available deck area can effectively improve the utilization rate of the ship deck, thereby improving the economic benefits of the voyage. In this embodiment, 3.5 times is a preferred embodiment, but the specific multiple is not limited.

[0046] Furthermore, considering the cost of demobilization, priority is given to ships that are already sailing, provided that the sailing date meets the conditions. When all ships are sailing and the return date cannot meet the loading time requirements of the cargo to be loaded, the cargo extension operation is required and an optimal "extension ship" is selected. The sailing date of the selected ship needs to meet the requirements.

[0047] S3 selects and establishes a set of candidate cargoes from the cargoes to be loaded based on the node transfer strategy, and loads the set of candidate cargoes onto the deck;

[0048] It is understandable that after selecting a ship, it is necessary to remove the cargo that does not meet the constraints from the cargo to be loaded, and then establish a set of alternative cargoes. The constraints include that the carrier ship can berth at the loading and unloading ports corresponding to all cargoes.

[0049] Specifically, the cargo of a semi-submersible vessel is usually loaded on board in a roll-on / roll-off manner. When the roll-on / roll-off cargo is assembled, its assembly path may be blocked by other cargo. In order to achieve the effect of non-interference between the assembly paths of the loaded and unloaded cargoes while completing the assembly, the present application also proposes a residual matrix algorithm based on group sorting to load the candidate cargo set onto the deck. Specifically, the method includes the following steps: obtaining semi-submersible vessel transportation project information, wherein the semi-submersible vessel transportation project information includes the available deck area of ​​the vessel and a set of cargoes to be loaded including several cargoes; grouping the set of cargoes to be loaded according to the loading port to obtain a port grouping set including several cargo groups, sorting the cargo groups in the port grouping set according to the loading time, and sorting the cargoes in each cargo grouping according to the cargo length; taking cargoes from the cargo grouping with the first grouping sequence, establishing a first column on the side of the available deck area close to the bow, filling the cargoes in the first column, wherein the length of the first column is equal to the length of the cargo module; selecting cargoes from the cargo groups in sequence and filling the first column with cargoes using the residual matrix algorithm until the first column cannot be filled with any cargoes, creating a second column on the side of the first column away from the bow and filling the cargoes in the first order into the column, and filling the second column with the residual matrix algorithm again; repeating the step until the set of cargoes to be loaded is empty, and then the loading optimization of the ship is completed. Through the grouping and sorting strategy, the cargo collection to be loaded is grouped into port sequence and sorted by time and cargo length. When arranging cargo loading, the cargo with earlier port sequence and earlier loading time is given priority to be loaded into the interior of the semi-submersible vessel deck. At the same time, the cargo is filled according to the cargo length using the residual matrix algorithm to ensure that the cargo at the same loading port is filled in the same column of the overtime available area as much as possible. A separate column is generated for cargo with larger volume, and large and small volume cargoes are filled in the same column to make full use of the deck and avoid blocking the roll-on / roll-off path of subsequent port cargoes. This improves the deck utilization rate while meeting the loading requirements.

[0050] S4: deleting the candidate cargo set from the cargo to be loaded, replacing the carrier ship and loading again until the cargo to be loaded is empty, and calculating the voyage cost function of the solution item;

[0051] Further, such as Figure 3 As shown, step S4 also includes the following steps:

[0052] S41 After selecting the first carrier ship and the set of candidate cargoes, a first cost is calculated according to the voyage cost function;

[0053] S42 selects a second carrier again according to the candidate cargo set, refits and calculates the second cost. Compares the first cost with the second cost, retains the carrier with the lowest cost; the second carrier's schedule needs to meet the requirements, and refits and calculates the cost of all carriers whose schedules meet the requirements in turn, so as to select the ship with the lowest voyage cost.

[0054] It is understandable that ships with smaller deck area have relatively lower sailing costs. By retaining the route and cargo and calculating the cost of the original assembled cargo on the second carrier, the lowest-cost ship can be obtained, thereby reducing sailing costs.

[0055] S43 sequentially obtains the carrier ship and the set of alternative cargoes for each voyage until all cargoes to be loaded are assembled, calculates the cost of each voyage through the voyage cost function and adds them up to obtain the total cost of the solution item.

[0056] It can be understood that the total cost of the solution is one of the solutions of the contemporary ants. The optimal solution is selected by obtaining the total cost of each contemporary solution and comparing the costs.

[0057] S5 obtains the optimal solution set through comparison operations and updates the pheromone matrix. It repeats the iteration until the number of iterations reaches the preset value to obtain the optimal loading solution. After each generation cycle, the pheromone matrix is ​​updated to make the random selection of ants more inclined. This step is the key to make the algorithm converge and tend to a better solution.

[0058] Preferably, in this embodiment, when selecting and establishing a set of alternative cargoes from the cargoes to be loaded based on the node transfer strategy and loading the set of alternative cargoes onto the deck, it also includes: setting the available deck area and cargo modules to rectangles, and filling the carrying ship by the residual matrix method.

[0059] In this embodiment, preferably, in order to make the voyage have a reasonable port sequence, route and speed, so as to plan the route in advance and reduce the navigation cost, after selecting and establishing a set of alternative cargoes from the cargoes to be loaded based on the node transfer strategy and loading the set of alternative cargoes onto the deck, the following is further included:

[0060] Obtain the ship information of the carrier ship in the voyage, and obtain the loading and unloading port information and loading and unloading date information of each cargo module of the alternative cargo set on it;

[0061] The port sequence, route and speed of the voyage are calculated based on the ship information, loading and unloading port information and loading and unloading date information.

[0062] The embodiment of the present invention optimizes the cargo loading of semi-submersible ships through the node transfer strategy of the ant colony algorithm, aiming at the characteristics of semi-submersible ship transportation projects, such as large amounts of semi-submersible cargo, large numbers of carrier ships, and large numbers of ports. By iteratively calculating the optimal cargo loading plan for each voyage, the ship, cargo, and port are matched, and the carrier ship and cargo with the optimal transportation cost for each voyage are obtained. This embodiment can speed up the acquisition of the optimal loading plan for the semi-submersible ship project, minimize the project transportation cost under the premise of satisfying the constraints, and greatly reduce the transportation cost of the semi-submersible ship.

[0063] For ease of understanding, this embodiment takes an actual semi-submersible ship project as an example to perform the following simulation description:

[0064] The available ship types are shown in the following table:

[0065]

[0066]

[0067] In this embodiment, no estimated unloading date is set for the cargo to be loaded, the longitudinal spacing between the cargoes is 2m, the transverse spacing is 2m, and the maximum extension length is 3m.

[0068] The cargo to be loaded is shown in the following table:

[0069]

[0070]

[0071]

[0072] The loading port and unloading port are PO1 and PO2 respectively;

[0073] The routes are as follows:

[0074] route Starting port Canal Code distance Persian Gulf route PO1 1 10000 Cape of Good Hope Route PO2 0 16000

[0075] like Figure 4 As shown, the above cargo module is optimized by the hybrid optimization method for semi-submersible ship module loading proposed in this embodiment to obtain the following assembly scheme:

[0076] The first voyage is: V01_XYK_01, start date: 2021-04-29 00:00:00, end date: 2021-07-04 21:41:29.142857, deck utilization rate: 62.68%, and a total of 19 cargoes were loaded.

[0077] The second voyage is: V02_DONGBANGGIANTNO.7_01, start date: 2021-04-29 00:00:00, end date: 2021-07-17 02:00:37.565217, deck utilization rate: 83.97%, a total of 7 cargoes loaded:

[0078] The third voyage is: V03_DBG3_01, start date: 2021-04-29 00:00:00, end date: 2021-07-02 05:22:17.142857, deck utilization rate: 57.58%, and a total of 4 cargoes were loaded.

[0079] The 4th voyage is: V04_XHK_01, start date: 2021-05-01 00:00:00, end date: 2021-07-07 14:58:17.142857, deck utilization rate: 69.73%, with a total of 11 cargoes loaded.

[0080] The 5th voyage is: V05_HXL_01, start date: 2021-05-03 00:00:00, end date: 2021-07-20 05:22:13.565217, deck utilization: 72.11%, and a total of 8 cargoes loaded.

[0081] The 6th voyage is: V06_XAK_01, start date: 2021-05-04 00:00:00, end date: 2021-07-10 07:17:29.142857, deck utilization: 72.14%, with a total of 13 cargoes loaded.

[0082] The 7th voyage is: V07_TAK_01, start date: 2021-05-04 00:00:00, end date: 2021-07-08 02:58:17.142857, deck utilization: 77.70%, and a total of 4 cargoes loaded.

[0083] The 8th voyage is: V08_HSL_01, start date: 2021-05-05 00:00:00, end date: 2021-07-21 11:36:37.565217, deck utilization: 61.42%, and a total of 9 cargoes loaded.

[0084] The 9th voyage is: V09_ZYK_01, start date: 2021-06-22 00:00:00, end date: 2021-08-24 18:19:53.142857, deck utilization rate: 38.52%, and a total of 9 cargoes loaded.

[0085] This simulation was repeated 20 times through the ant colony algorithm, and the optimal solution of each generation of the objective function is as follows: Figure 5 As shown, the final minimum cost ($) is: 52742260.533126295, and the total time is 11.00s. It can be seen that this application can quickly calculate and obtain the semi-submersible ship freight solution with the lowest cost under the premise of meeting the actual constraints.

[0086] Second embodiment:

[0087] Please refer to Figure 6 As shown, the present invention also provides a ship loading optimization device 100 based on ant colony algorithm, including a condition setting module 110, which is used to obtain a ship set and a cargo set to be loaded to construct a pheromone matrix; a solution item is established for each ant;

[0088] A ship selection module 120, which is used to establish a single voyage in the solution, randomly select a carrier ship for the voyage, and calculate the available deck area of ​​the carrier ship according to the pontoon solution;

[0089] A cargo selection module 130, which is used to select and establish a set of candidate cargoes from the cargoes to be loaded based on a node transfer strategy, and load the set of candidate cargoes onto the deck;

[0090] A cost calculation module 140, which is used to delete the candidate cargo set from the cargo to be loaded, replace the carrier ship and load again until the cargo to be loaded is empty, and calculate the voyage cost function of the solution item;

[0091] The optimization and updating module 150 is used to obtain the optimal solution item set through comparison operation and update the pheromone matrix, and repeat the iteration until the number of iterations reaches a preset value to obtain the optimal loading solution.

[0092] As a preferred solution but not a limitation, the probability determining factors of the node transfer strategy of the ant colony algorithm include a heuristic factor and a pheromone concentration. The initial value of the pheromone concentration on each path is set to 1. The heuristic factor is the reciprocal of the difference in number of days between the planned loading time of the goods to be assembled and the earliest planned loading time of the voyage.

[0093] The modules of this embodiment are the same as the corresponding steps of the above method embodiment, and will not be repeated here.

[0094] The embodiment of the present invention optimizes the cargo loading of a semi-submersible ship through the node transfer strategy of the ant colony algorithm, targeting the characteristics of a semi-submersible ship transportation project, such as a large amount of semi-submersible cargo, a large number of carrier ships, and a large number of ports. The optimal cargo loading plan for each voyage is iteratively calculated to match the ship, cargo, and port, and to obtain the carrier ship and cargo with the optimal transportation cost for each voyage. This embodiment can speed up the acquisition of the optimal loading plan for the semi-submersible ship project, minimize the project transportation cost under the premise of satisfying the constraints, and greatly reduce the transportation cost of the semi-submersible ship.

[0095] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0096] An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the ship loading optimization method based on the ant colony algorithm as described in the above embodiments is implemented.

[0097] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.

[0098] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the ship loading optimization method based on the ant colony algorithm as in the above-mentioned embodiments is implemented.

[0099] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, 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 network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a ship loading optimization method based on an ant colony algorithm is implemented. The display screen of the computer device 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 covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0100] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above 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.

[0101] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A ship loading optimization method based on ant colony algorithm, characterized in that: Including a voyage cost function, the method comprises: Obtain a set of ships and a set of cargoes to be loaded to construct a pheromone matrix; establish a solution for each ant; Establish a single voyage in the solution, randomly select a carrier ship for the voyage, and calculate the available deck area of ​​the carrier ship according to the pontoon solution; Select and establish a set of candidate cargoes from the cargoes to be loaded based on a node transfer strategy, and load the set of candidate cargoes onto the deck; Deleting the candidate cargo set from the cargo to be loaded, replacing the carrier ship and loading again until the cargo to be loaded is empty, and calculating the voyage cost function of the solution item; The optimal solution set is obtained through comparison operations and the pheromone matrix is ​​updated. The iteration is repeated until the number of iterations reaches the preset value to obtain the optimal loading solution.

2. The method according to claim 1, characterized in that The probability determining factors of the node transfer strategy of the ant colony algorithm include a heuristic factor and a pheromone concentration. The initial value of the pheromone concentration on each path is set to 50. The heuristic factor is the reciprocal of the difference in days between the planned loading time of the goods to be assembled and the earliest planned loading time of the voyage.

3. The method according to claim 1, characterized in that After deleting the candidate cargo set from the cargo to be loaded, replacing the carrier ship and loading again until the cargo to be loaded is empty, calculating the voyage cost function of the solution item, further comprising: After selecting the first carrier and the set of candidate cargoes, the first cost is calculated according to the voyage cost function; Select a second carrier again according to the set of candidate cargoes, reassemble and calculate a second cost. Compare the first cost and the second cost, and retain the carrier with the lowest cost; The carrier ship and the set of alternative cargoes for each voyage are obtained in sequence until all cargoes to be loaded are assembled, and the cost of each voyage is calculated by the voyage cost function and added up to obtain the total cost of the solution item.

4. The method according to claim 1, characterized in that When calculating the available deck area of ​​the carrier vessel according to the pontoon solution, 3.5 times the actual available area of ​​the carrier vessel is used as the available deck area.

5. The method according to claim 1, characterized in that When selecting and establishing a set of alternative cargoes from the cargoes to be loaded based on the node transfer strategy and loading the set of alternative cargoes onto the deck, the method also includes: setting the available deck area and cargo modules to rectangles, and filling the carrying ship by the residual matrix method.

6. The method according to claim 1, characterized in that After selecting and establishing a set of candidate cargoes from the cargoes to be loaded based on the node transfer strategy and loading the set of candidate cargoes onto the deck, the method further includes: Obtain the ship information of the carrier ship in the voyage, and obtain the loading and unloading port information and loading and unloading date information of each cargo module of the alternative cargo set on it; The port sequence, route and speed of the voyage are calculated based on the ship information, loading and unloading port information and loading and unloading date information.

7. A ship loading optimization device based on ant colony algorithm, characterized in that: include: A condition setting module is used to obtain a set of ships and a set of cargoes to be loaded to construct a pheromone matrix; a solution item is established for each ant; A ship selection module, which is used to establish a single voyage in the solution, randomly select a carrier ship for the voyage, and calculate the available deck area of ​​the carrier ship according to the pontoon solution; A cargo selection module, which is used to select and establish a set of candidate cargoes from the cargoes to be loaded based on a node transfer strategy, and load the set of candidate cargoes onto the deck; A cost calculation module, which is used to delete the candidate cargo set from the cargo to be loaded, replace the carrier ship and load again until the cargo to be loaded is empty, and calculate the voyage cost function of the solution item; The optimization update module is used to obtain the optimal solution set through comparison operations and update the pheromone matrix, repeat the iteration until the number of iterations reaches a preset value, and obtain the optimal loading solution.

8. The device according to claim 7, characterized in that The probability determining factors of the node transfer strategy of the ant colony algorithm include a heuristic factor and a pheromone concentration. The initial value of the pheromone concentration on each path is set to 1. The heuristic factor is the reciprocal of the difference in days between the planned loading time of the goods to be assembled and the earliest planned loading time of the voyage.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the ship loading optimization method based on the ant colony algorithm as described in any one of claims 1 to 6 is implemented.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the ship loading optimization method based on ant colony algorithm as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Multi-object quay crane-berth scheduling optimization method based on ant colony algorithm

    CN107330561A

  • Task ship determination method and device

    CN116663800A

  • Ship scheduling and berth allocation collaborative optimization method based on demand prediction

    CN117332996A

Cited By

  • Container ship stowage method based on improved ant colony algorithm under adaptive multiple targets

    CN120911863A

  • Ship selection method for semi-submerged ship / heavy lift ship industrial module joint stowage ant colony optimization algorithm

    CN121352573A