Multi-berth port ship scheduling method, device and medium based on blockchain
By adopting blockchain technology and smart contracts in multi-beat ports, the berths are automatically determined for ships to be operated, which solves the problem of lack of orderliness in port management and scheduling, and achieves efficient ship scheduling and port management.
Patent Information
- Application Number
- CN202010448803.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-25
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2040-05-25
AI Technical Summary
The management and dispatch of incoming ships in multiple berth ports lack orderly, resulting in the incoming ships incoming ships in time, which is prone to accumulation and affecting the good management of the port.
The multi-beat port ship scheduling method based on blockchain is adopted. By collecting the information and berth information of the ship to be operated, the preset smart contract is used to determine the dispatched berth for the ship to be operated based on this information, and the scheduling results are written into the blockchain.
It has realized the automation of ship scheduling, saved manpower, improved the intelligent level of ship scheduling in multi-beat ports, and ensured good port management.
Smart Images

Figure CN111754075B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of ship berthing management, and in particular to a multi-berth port ship scheduling method, equipment, and medium based on blockchain. Background Art
[0002] The process for ships to enter most domestic ports is usually as follows: first, the ship submits a port entry declaration and can only enter the port after it is reviewed and approved; secondly, after entering the port, the ship enters the anchorage and waits for the management personnel to establish a berthing plan and designate a berth for it; finally, the ship can enter the designated berth for operations.
[0003] At present, the management and dispatch of ships entering the multi-berth ports lack orderliness. Ships entering the ports cannot complete their operations in a timely manner, which easily leads to accumulation and affects the good management of the ports. Summary of the invention
[0004] The embodiments of the present application provide a blockchain-based multi-berth port ship scheduling method, equipment, and medium to solve the following technical problems in the prior art: the multi-berth port lacks order in the management and scheduling of incoming ships, and incoming ships cannot complete operations in a timely manner, which easily leads to accumulation and affects the good management of the port.
[0005] The present application embodiment adopts the following technical solutions:
[0006] A multi-berth port ship scheduling method based on blockchain, comprising:
[0007] Collect information of ships to be operated;
[0008] Determine the berth information in the blockchain;
[0009] Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined;
[0010] Write the berth scheduling results into the blockchain.
[0011] Optionally, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined, including: according to the cargo capacity of the ship to be operated and the loading and unloading capacity of each berth, determining the corresponding operation time of the ship to be operated at each berth; according to the fastest start operation time and operation time of each berth, calculating the operation end time of each berth; from all berths, determining the berth with the earliest operation end time as the berth allocated to the ship to be operated.
[0012] Optionally, the method further comprises: when it is determined that the berth type is inconsistent with the ship type of the ship to be operated, setting the operation end time of the corresponding berth to infinity.
[0013] Optionally, the method further comprises: if there are multiple berths with the earliest operation completion time, determining the berth closest to the channel of the ship to be operated as the berth allocated to the ship to be operated.
[0014] Optionally, the method further includes: after determining that the operation of the ship to be operated is completed, modifying the berth information of the corresponding berth and writing it into the blockchain.
[0015] Optionally, the method further includes: collecting information of ships expected to arrive at the port; and determining a pre-scheduled berth for the ships expected to arrive at the port based on a preset smart contract and the information of the ships expected to arrive at the port and the berth information.
[0016] Optionally, the method further includes: monitoring the actual operation end time of the ship to be operated; when it is determined that the actual operation end time is later than the calculated operation end time, collecting the cause of the operation delay, and writing the cause of the operation delay into the blockchain.
[0017] Optionally, the method further includes: determining information of a number of ships to be operated; determining the berthing priorities corresponding to the number of ships to be operated respectively according to a preset berthing priority system; and allocating a berth to each ship to be operated according to the berthing priorities of the number of ships to be operated.
[0018] A device for multi-berth port ship scheduling based on blockchain, comprising:
[0019] at least one processor; and,
[0020] a memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0022] Collect information of ships to be operated;
[0023] Determine the berth information in the blockchain;
[0024] Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined;
[0025] Write the berth scheduling results into the blockchain.
[0026] A non-volatile computer storage medium for multi-berth port ship scheduling based on blockchain, storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0027] Collect information of ships to be operated;
[0028] Determine the berth information in the blockchain;
[0029] Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined;
[0030] Write the berth scheduling results into the blockchain.
[0031] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0032] Through the smart contract preset in the blockchain network, each berth node performs calculations separately to obtain the fastest completion time for the ship operation, which is used as the basis for judging the rationality of the ship to be operated berthing at this berth.
[0033] In this way, the technical features of blockchain consensus mechanism, smart contracts, etc. can be utilized to realize the automation of ship scheduling, which is conducive to saving manpower, and can effectively improve the intelligence level of ship scheduling in multi-berth ports and realize good management of ports. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 A flowchart of a multi-berth port ship scheduling method based on blockchain provided in an embodiment of the present application;
[0036] Figure 2 The embodiment of the present application provides the corresponding Figure 1 A structural diagram of a blockchain-based multi-berth port ship scheduling device. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0038] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. It is essentially a decentralized database.
[0039] In the embodiment of the present application, first, a blockchain network can be deployed based on a blockchain framework, wherein the blockchain framework can be any blockchain framework that can implement the corresponding functions of the embodiment of the present application, such as Bitcoin, Ethereum, Fabric, Corda, etc.
[0040] The blockchain network includes several nodes, including ship nodes, berth nodes, etc.
[0041] Afterwards, the corresponding smart contracts can be generated according to the relevant needs of ship scheduling in multi-berth ports and written into each node in the blockchain network.
[0042] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0043] Figure 1 The flowchart of the multi-berth port ship scheduling method based on blockchain provided in the embodiment of the present application includes the following specific steps:
[0044] S101: Collect information of ships to be operated.
[0045] In the embodiment of the present application, a ship docked at an anchorage and waiting for a berth to be allocated can be referred to as a waiting ship. Each waiting ship can serve as a node in the blockchain network, collect its own waiting ship information, and write it into the blockchain network.
[0046] Specifically, the information of the ship to be operated may include the type of ship, cargo capacity, waiting time, etc.
[0047] S102: Determine berth information in the blockchain.
[0048] In the embodiment of the present application, each berth of the port can also be used as a node in the blockchain network, collect its own berth information, and write it into the blockchain network. The berth information may include berth type, loading and unloading capacity, maximum draft, distance from the waterway, whether it is idle, and the fastest start time of operation.
[0049] Therefore, when there is a ship to be operated in the port, each berth node can determine its own current berth information in order to determine the berth allocated to the ship to be operated.
[0050] S103: Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined.
[0051] S104: Write the berth scheduling result into the blockchain.
[0052] In an embodiment of the present application, a master node may be preset in the blockchain network. When the master node detects the existence of a ship to be operated based on a preset smart contract, it may perform calculations based on the information of the ship to be operated in the blockchain and the berth information of each berth, determine the berth to be scheduled for the ship to be operated, and write the berth scheduling result into the blockchain through the PBFT consensus algorithm.
[0053] Specifically, the contents of the preset smart contract are as follows:
[0054] First, the master node monitors the information of ships to be operated in the blockchain network, and when it is determined that there are ships to be operated, it determines to allocate berths for the ships to be operated.
[0055] Second, for each berth, the master node can determine the required operation time, that is, the time required for unloading, if the ship to be operated is moored at the berth based on the cargo capacity of the ship to be operated and the loading and unloading capacity of the corresponding berth.
[0056] Third, the master node can calculate based on the fastest start time of operations at each berth and the operation time required for the ship to be operated, and determine the corresponding end time of operations at each berth when the ship to be operated is operating at each berth.
[0057] Fourth, the master node can determine the berth with the earliest operation end time from all berths according to the operation end time of each berth, and allocate it to the corresponding ship to be operated for berthing. In addition, the master node can write the berth scheduling result into the blockchain and broadcast it to all other nodes in the blockchain network. Among them, the berth scheduling result may include berth information, ship information to be operated, berthing time, etc.
[0058] In the embodiment of the present application, through the smart contract preset in the blockchain network, the master node calculates according to the information of the ship to be operated and the information of each berth to obtain the fastest completion time of the ship's operation at each berth, which is used as the basis for judging the rationality of the ship to be operated berthing at the corresponding berth.
[0059] In this way, the technical features of blockchain consensus mechanism, smart contracts, etc. can be utilized to realize the automation of ship scheduling, which is conducive to saving manpower, and can effectively improve the intelligence level of ship scheduling in multi-berth ports and realize good management of ports.
[0060] In one embodiment, when the berth node determines the berth information of the berth, if the berth is in an idle state, the fastest start operation time of the berth may be set to the current time.
[0061] In one embodiment, the type of the ship to be operated needs to match the type of the berth in order to berth at the corresponding berth.
[0062] Therefore, for the information of the ship to be operated, when the master node calculates the corresponding operation end time, if the berth type of the berth is inconsistent with the ship type to be operated, the operation end time of the berth can be set to infinity. This can effectively avoid allocating the wrong berth to the ship to be operated with inconsistent types, affecting the normal operation of the ship.
[0063] In one embodiment, the preset smart contract may also include:
[0064] If the master node determines through calculation that there are two or more berths with the same operation end time, and this time is the earliest operation end time, it means that the operation end time of the ships to be operated at these berths is the same and the earliest. Therefore, the ships to be operated can freely choose a berth from these berths to carry out the berthing operation.
[0065] In one possible implementation, the master node can determine the berth closest to the channel of the ship to be operated among the berths according to the smart contract, and use it as the berth allocated to the ship to be operated. In this way, the ship to be operated can travel the shortest distance to reach the berth, which can provide convenience for the ship to be operated and save time.
[0066] In one embodiment, the master node can monitor the completion of the operation of the ship to be operated. If the operation of the ship to be operated is completed, the master node can modify the berth information of the corresponding berth, and write the modified berth information into the blockchain and disclose it to other nodes.
[0067] In one embodiment, before arriving at the port, the ship node can collect its own pre-arrival ship information in advance and write it into the blockchain network.
[0068] Therefore, the master node can make calculations in advance based on the preset smart contract and according to the expected arrival ship information and berth information of each berth in the blockchain network to determine the pre-scheduled berths for the expected arrival ships.
[0069] In one embodiment, the actual operation end time of the vessel to be operated may be inconsistent with the pre-calculated operation end time. Therefore, the berth node can monitor the actual operation end time of the vessel to be operated at the berth.
[0070] If the actual operation end time of the ship to be operated is later than the calculated operation end time, the berth node can collect the reason for the operation delay of the ship to be operated and write it into the blockchain together with the actual operation end time.
[0071] In one embodiment, there may be multiple ships waiting for operation at the port at the same time. In this case, each ship waiting for operation can determine its own information of the ship waiting for operation, and determine its corresponding berthing priority according to the preset berthing priority system, and write the determined berthing priority into the blockchain.
[0072] Among them, factors affecting the berthing priority may include cargo type, cargo purpose, special policies, etc. The specific settings can be made as needed, and this application does not limit this.
[0073] Therefore, each berth node can allocate a berth to each ship to be operated in turn according to the berthing priority order of the multiple ships to be operated.
[0074] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.
[0075] Figure 2 The embodiment of the present application provides the corresponding Figure 1 A schematic diagram of a block chain-based multi-berth port ship scheduling device, wherein the block chain device includes:
[0076] at least one processor; and,
[0077] a memory communicatively connected to the at least one processor; wherein,
[0078] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0079] Collect information of ships to be operated;
[0080] Determine the berth information in the blockchain;
[0081] Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined;
[0082] Write the berth scheduling results into the blockchain.
[0083] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for total factor quality data management, storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0084] Collect information of ships to be operated;
[0085] Determine the berth information in the blockchain;
[0086] Based on the preset smart contract, according to the information of the ship to be operated and the berth information, a berth to be scheduled for the ship to be operated is determined;
[0087] Write the berth scheduling results into the blockchain.
[0088] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0089] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0090] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0091] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0094] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0095] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0096] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0098] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A multi-berth port ship scheduling method based on blockchain, characterized in that: include: Collect information of ships to be operated; Determine the berth information in the blockchain; Based on the preset smart contract, according to the information of the ship to be operated and the berth information, the berth to be scheduled for the ship to be operated is determined, including: according to the cargo capacity of the ship to be operated and the loading and unloading capacity of each berth, the corresponding operation time of the ship to be operated at each berth is determined; according to the fastest start operation time and operation time of each berth, the operation end time of each berth is calculated; from all berths, the berth with the earliest operation end time is determined as the berth allocated to the ship to be operated; When it is determined that the berth type is inconsistent with the ship type of the ship to be operated, the operation end time of the corresponding berth is set to infinity; If there are multiple berths with the earliest operation completion time, the berth closest to the channel of the ship to be operated is determined as the berth allocated to the ship to be operated; Collecting information about ships expected to arrive at the port; and determining a pre-scheduled berth for the ships expected to arrive at the port based on the information about the ships expected to arrive at the port and the berth information based on a preset smart contract; Monitor the actual operation end time of the ship to be operated; when it is determined that the actual operation end time is later than the calculated operation end time, collect the cause of the operation delay and write the cause of the operation delay into the blockchain; Determine information of several ships to be operated; determine the berthing priorities corresponding to the several ships to be operated according to a preset berthing priority system; allocate berths to each ship to be operated according to the berthing priorities of the several ships to be operated; Write the berth scheduling results into the blockchain.
2. The method according to claim 1, characterized in that The method further comprises: After determining that the operation of the ship to be operated is completed, the berth information of the corresponding berth is modified and written into the blockchain.
3. A device for multi-berth port ship scheduling based on blockchain, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to claim 1 or 2.
4. A non-volatile computer storage medium for multi-berth port ship scheduling based on blockchain, storing computer executable instructions, characterized in that: The computer executable instructions are configured to perform the method of claim 1 or 2.
Citation Information
Patent Citations
Ship arrival queuing scheduling method
CN110659857A