Deep and far sea new energy power generation and hydrogen production control method and related equipment
By layering and optimizing communication in Shenyuanhai New Energy Power Generation and Hydrogen Generation System, the problem of unstable data transmission in Shenyuanhai New Energy Power Generation and Hydrogen Generation System is solved, and efficient hydrogen production task transmission under limited data transmission conditions is achieved and The system operates stably.
Patent Information
- Application Number
- CN202411494024.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-24
AI Technical Summary
In Shenyuanhai New Energy Power Generation and Hydrogen Generation System, because the subsystem is far away from land, data transmission is prone to interruption or bandwidth limitation, resulting in the inability to receive the system's hydrogen production task.
By obtaining network quality and distance information, Shenyuanhai New Energy Power Generation Hydrogen Generation Subsystem is divided into several levels, and the subsystem with the smallest total communication cost is selected as the distribution subsystem among each level, and a hierarchical task distribution mechanism is adopted to optimize data Transmission efficiency.
Under the conditions of limited data transmission, through the hierarchical allocation and task rotation allocation mechanism, the data transmission volume and communication distance are reduced, the risk of communication interruption is reduced, and the system's resource utilization rate and long-term operation stability are improved.
Smart Images

Figure CN119482925A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep-sea hydrogen production technology, and in particular to a deep-sea renewable energy power generation hydrogen production control method and related equipment. Background Art
[0002] With the rapid development of renewable energy technology, offshore wind power has attracted widespread attention due to its abundant resources and small environmental impact. However, offshore wind farms are usually located far away from land, and traditional power transmission methods face problems of low efficiency and high cost. In order to make better use of offshore wind energy resources, offshore distributed water electrolysis hydrogen production technology has emerged, aiming to convert wind energy into hydrogen energy that is easy to store and transport on site.
[0003] The relevant offshore distributed water electrolysis hydrogen production technology installs modular hydrogen production equipment on the tower bottom platform of each wind turbine, and directly uses the electricity generated by the wind turbine to produce hydrogen. The produced hydrogen is collected to the collection pipe through a small-sized gas pipeline, and then compressed or directly transported to the shore through a larger diameter pipeline. The land control center controls each deep-sea new energy power generation and hydrogen production subsystem to achieve remote monitoring and management of the subsystem.
[0004] However, as offshore wind farms expand to deeper waters, data transmission is prone to interruption or bandwidth limitation due to the distance of the subsystem from the land. In the case of unstable communication, the deep-sea new energy power generation hydrogen production subsystem may not receive the system's hydrogen production task. Therefore, there is an urgent need for a method to transmit hydrogen production tasks under limited data transmission conditions. Summary of the invention
[0005] The present application provides a deep-sea renewable energy power generation hydrogen production control method and related equipment for transmitting hydrogen production tasks under limited data transmission conditions.
[0006] In a first aspect, the present application provides a deep-sea new energy power generation and hydrogen production control method, which is applied to a control terminal, including: obtaining the network quality of all deep-sea new energy power generation and hydrogen production subsystems and the control terminal; dividing all deep-sea new energy power generation and hydrogen production subsystems into several levels according to the network quality of all deep-sea new energy power generation and hydrogen production subsystems and the distance of all deep-sea new energy power generation and hydrogen production subsystems from the corresponding onshore storage equipment; in each level, selecting a deep-sea new energy power generation and hydrogen production subsystem as the distribution subsystem of the corresponding level; the distribution subsystem is the deep-sea new energy power generation and hydrogen production subsystem with the lowest total communication cost with all other deep-sea new energy power generation and hydrogen production subsystems in the same level in the corresponding level; sending the total task to the distribution subsystem of the first level, so that the distribution subsystem of the first level calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem, and the distribution subsystem of the first level calculates the remaining tasks according to all hydrogen production tasks and the total tasks, and sends the remaining tasks to the distribution subsystem of the next level.
[0007] By adopting the above technical solution, the subsystems are layered by obtaining network quality and distance information. By considering communication conditions, it is helpful to reduce long-distance transmission. When selecting the allocation subsystem, the total communication cost is minimized and the data transmission efficiency is optimized. Finally, a hierarchical task distribution mechanism is adopted. The allocation subsystem of each layer only needs to communicate with the adjacent layer, which greatly reduces the data transmission volume and communication distance, and also reduces the risk of communication interruption. At the same time, it reduces energy consumption and operation and maintenance costs, and completes the transmission hydrogen production task under limited data transmission conditions.
[0008] In combination with some embodiments of the first aspect, in some embodiments, after the step of dividing all deep-sea new energy power generation and hydrogen production subsystems into several levels, the method also includes: establishing a circular queue including all levels, wherein the circular queue includes all levels once in each cycle; when a total task is received, determining the current position of the circular queue; when the current position is the first layer, executing the step of sending the total task to the allocation subsystem of the first layer; removing the first layer in the circular queue; when the current position is the last layer, sending the total task to the allocation subsystem of the last layer, so that the allocation subsystem of the last layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem it controls, and distributes it to the corresponding deep-sea new energy power generation. Hydrogen production subsystem, the distribution subsystem of the last layer calculates the remaining tasks according to all hydrogen production tasks and total tasks, and sends the remaining tasks to the distribution subsystem of the upper layer; removes the last layer in the circular queue; when the current position is the middle layer, sends the total task to the distribution subsystem of the middle layer, so that the distribution subsystem of the middle layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem it controls, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem, the distribution subsystem of the middle layer calculates the remaining tasks according to all hydrogen production tasks and total tasks, and sends the remaining tasks to the distribution subsystems of the upper and lower layers; removes the middle layer in the circular queue; when all levels in the circular queue are removed, starts the next cycle.
[0009] By adopting the above technical solution, a circular queue including all levels is established to ensure that each level has the opportunity to become the starting point of task distribution, and the rotation distribution of tasks between different levels is realized by dynamically adjusting the current position. The load balance between the distribution subsystems of each level and the deep-sea new energy power generation and hydrogen production subsystems controlled by them is significantly improved, effectively avoiding the situation where some systems are overloaded while others are idle, thereby improving the resource utilization and long-term operation stability of the entire system.
[0010] In combination with some embodiments of the first aspect, in some embodiments, the step of sending the remaining tasks to the distribution subsystems of the upper layer and the lower layer specifically includes: the middle layer obtains the remaining number of levels above the middle layer and the remaining number of levels below the middle layer from the control terminal; calculates the ratio of the remaining number of levels above the middle layer to the total remaining number of levels; multiplies the remaining tasks by the ratio to obtain the upload tasks; subtracts the upload tasks from the remaining tasks to obtain the download tasks; the distribution subsystem of the middle layer sends the upload tasks to the distribution subsystem of the upper layer; and the distribution subsystem of the middle layer sends the download tasks to the distribution subsystem of the lower layer.
[0011] By adopting the above technical solution, by calculating the ratio of the remaining number of layers above and below the middle layer, it is ensured that the task allocation matches the hierarchical structure. According to this ratio, the remaining tasks are divided into upload tasks and download tasks, making the task allocation more balanced. By considering the complexity of the hierarchical structure, the imbalance that may be caused by simple average allocation is avoided, and the accumulation of tasks or idle resources is reduced.
[0012] In conjunction with some embodiments of the first aspect, in some embodiments, before the step of dividing all deep-sea new energy power generation and hydrogen production subsystems into a plurality of levels, the method further includes: determining the number of levels according to a level number function; wherein the level number function is: K i nit=α*N CV Q =Q std / Q avg CV D =D std / D avg In the formula, K is the number of levels, K i nit is the initial level number, K Q is the network quality adjustment factor, K D is the distance adjustment factor, α is the basic level coefficient, N is the total number of all deep-sea new energy power generation and hydrogen production subsystems, CV Q is the network quality coefficient, is the network quality threshold, Q std Q is the average standard deviation of the network quality of all deep-sea renewable energy power generation and hydrogen production subsystems, avg is the average network quality of all deep-sea renewable energy power generation and hydrogen production subsystems, CV D is the distance adjustment factor, is the distance adjustment threshold, D std D is the average standard deviation of the distance of all deep-sea renewable energy power generation and hydrogen production subsystems. avg It is the average distance of all deep-sea renewable energy power generation and hydrogen production subsystems.
[0013] By adopting the above technical solution and taking network quality and distance factors into consideration, the hierarchical division can be more in line with actual communication conditions.
[0014] In combination with some embodiments of the first aspect, in some embodiments, in each level, after the step of selecting a deep-sea new energy power generation and hydrogen production subsystem as the allocation subsystem of the corresponding level, the method also includes: the allocation subsystem in the current level determines the geographical area scope of the controlled deep-sea new energy power generation and hydrogen production subsystem, and the current level is any level; the allocation subsystem in the current level divides the geographical area scope into rectangular grids; the allocation subsystem in the current level allocates the controlled deep-sea new energy power generation and hydrogen production subsystem to the corresponding grid according to the geographical coordinates; if the number of subsystems in the current grid is lower than the minimum number threshold, the allocation subsystem in the current level merges the previous grid with the grid with the least number of adjacent subsystems, and the previous grid is any grid; the allocation subsystem in the current level deletes the grid to obtain several sub-divisions of the current level; the current The allocation subsystem in the hierarchy selects a deep-sea new energy power generation and hydrogen production subsystem in each sub-division as the allocated second subsystem of the corresponding sub-division; the allocated second subsystem is the deep-sea new energy power generation and hydrogen production subsystem in the corresponding sub-division that has the smallest total communication cost with all other deep-sea new energy power generation and hydrogen production subsystems in the same layer; when the allocation subsystem in the current hierarchy receives the remaining tasks, it splits the remaining tasks according to the number of sub-divisions and sends them to the allocated second subsystem, which calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystems it controls, and distributes them to the corresponding deep-sea new energy power generation and hydrogen production subsystems; the allocation subsystem of the current layer calculates new remaining tasks based on all hydrogen production tasks and remaining tasks, and sends the new remaining tasks to the allocation subsystem of the next layer.
[0015] By adopting the above technical solution, by dividing the control area into rectangular grids and assigning subsystems to corresponding grids according to geographical locations, resource fragmentation is avoided by merging grids with fewer subsystems. In each sub-division, the subsystem with the lowest communication cost is selected as the second subsystem to be assigned, further optimizing the local communication efficiency. By splitting the tasks according to the number of sub-divisions, the total communication cost is further reduced, and the accuracy and execution efficiency of task allocation are also improved.
[0016] In combination with some embodiments of the first aspect, in some embodiments, after the step of allocating the controlled deep-sea new energy power generation and hydrogen production subsystem to the corresponding grid according to its geographical coordinates, the method also includes: if the difference in the number of subsystems between adjacent grids exceeds a preset threshold, the subsystems close to the boundary of the grid with a larger number of subsystems are reallocated to the adjacent grid with a smaller number of subsystems, until the difference in the number of subsystems between adjacent grids is lower than the preset threshold or the maximum number of adjustments is reached.
[0017] By adopting the above technical solution, the uneven distribution area can be identified by comparing the difference in the number of subsystems between adjacent grids. Dynamic adjustment is achieved by reallocating the subsystems close to the boundary of the grid with a large number of subsystems to the adjacent grid with a small number of subsystems. This method improves the balance of grid division and helps to improve the stability of the allocated subsystems.
[0018] In combination with some embodiments of the first aspect, in some embodiments, after the step of sending the total task to the distribution subsystem of the first layer, the method also includes: the distribution subsystem continuously monitors its own load; when the load of the distribution subsystem reaches a preset threshold, identifies the deep-sea new energy power generation and hydrogen production subsystem that is geographically closest to the distribution subsystem; merges the deep-sea new energy power generation and hydrogen production subsystem that is geographically closest to the distribution subsystem with the distribution subsystem to form a new extended distribution subsystem; the new extended distribution subsystem jointly undertakes the communication and computing tasks of the original distribution subsystem; recalculates the load of the extended distribution subsystem; if the load of the extended distribution subsystem is still higher than the preset threshold, repeats the above steps until the load is lower than the preset threshold or reaches a predetermined maximum number of mergers; after the extended distribution subsystem is formed, the original distribution subsystem maintains its role in task distribution, continues to be responsible for receiving the total task and distributing it to each deep-sea new energy power generation and hydrogen production subsystem; other subsystems in the extended distribution subsystem assist the original distribution subsystem in processing computing tasks.
[0019] By adopting the above technical solution, by continuously monitoring the load situation of the distribution subsystem, potential overload risks can be identified in time. When the load reaches the preset threshold, the subsystems with the closest geographical locations are merged to form an extended distribution subsystem, thereby realizing dynamic expansion of resources. By repeatedly merging until the load requirements are met or the maximum number of mergers is reached, the effectiveness of load balancing is ensured, and other subsystems in the extended distribution subsystem only assist the original distribution subsystem in processing computing tasks, and do not participate in communication and task distribution. The original distribution subsystem is a deep-sea new energy power generation and hydrogen production subsystem with the lowest total communication cost determined by preliminary calculations. By maintaining the communication and distribution roles of the original distribution subsystem, it is ensured that the system continues to operate with the lowest total communication cost.
[0020] In a second aspect, the present application provides a deep-sea renewable energy power generation and hydrogen production control system, the deep-sea renewable energy power generation and hydrogen production control system comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, the one or more processors call the computer instructions to enable the deep-sea renewable energy power generation and hydrogen production control system to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0021] In a third aspect, the present application provides a computer program product comprising instructions, which, when run on a deep-sea new energy power generation and hydrogen production control system, enables the deep-sea new energy power generation and hydrogen production control system to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a deep-sea renewable energy power generation and hydrogen production control system, enables the deep-sea renewable energy power generation and hydrogen production control system to execute the method described in the first aspect and any possible implementation method of the first aspect.
[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By obtaining network quality and distance information, the subsystems are layered, and by considering communication conditions, it helps to reduce long-distance transmission. When selecting the distribution subsystem, the total communication cost is minimized and the data transmission efficiency is optimized. Finally, a hierarchical task distribution mechanism is adopted. The distribution subsystem of each layer only needs to communicate with the adjacent layer, which greatly reduces the data transmission volume and communication distance, and also reduces the risk of communication interruption. At the same time, it reduces energy consumption and operation and maintenance costs, and completes the transmission hydrogen production task under limited data transmission conditions.
[0024] 2. Establish a circular queue including all levels to ensure that each level has the opportunity to become the starting point of task distribution, and realize the rotation distribution of tasks between different levels by dynamically adjusting the current position. It significantly improves the load balance between the distribution subsystems of each level and the deep-sea new energy power generation and hydrogen production subsystems they control, effectively avoiding the situation where some systems are overloaded while others are idle, thereby improving the resource utilization and long-term operation stability of the entire system.
[0025] 3. By dividing the control area into rectangular grids and assigning subsystems to corresponding grids based on geographical locations, resource fragmentation is avoided by merging grids with fewer subsystems. In each sub-division, the subsystem with the lowest communication cost is selected as the second subsystem to be assigned, further optimizing the local communication efficiency. By splitting the tasks according to the number of sub-divisions, the total communication cost is further reduced, and the accuracy and execution efficiency of task assignment are also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a schematic diagram of an exemplary scenario in which the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application can be applied; Figure 2 It is a flow chart of a method for controlling the generation of hydrogen from new energy sources in the deep sea in an embodiment of the present application; Figure 3This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; Figure 4 This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; Figure 5 This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; Figure 6 It is an exemplary hardware structure diagram of a deep-sea new energy power generation and hydrogen production control system in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0029] Before describing the technical solution of the present application, the usage scenario of the present application is described first.
[0030] refer to Figure 1 , Figure 1 It is a schematic diagram of an exemplary scenario that can be applied to the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application.
[0031] There is a control terminal on shore, which is responsible for overall control and task allocation.
[0032] There are multiple deep-sea renewable energy power generation and hydrogen production subsystems distributed offshore, each of which includes a wind turbine and corresponding hydrogen production equipment.
[0033] Hydrogen is produced directly on the wind turbine side, and the generated hydrogen is collected to the collecting manifold through a small-sized gas pipeline. The hydrogen is compressed or directly transported to the shore through a large-diameter pipeline.
[0034] The control terminal communicates with each subsystem through the network to perform task allocation and control.
[0035] refer to Figure 2 , Figure 2 It is a flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; S201, obtaining the network quality of all deep-sea renewable energy power generation and hydrogen production subsystems and control terminals; In some embodiments, the control terminal sends a detection signal to all deep-sea renewable energy power generation and hydrogen production subsystems, and evaluates the quality of the network connection based on the received responses.
[0036] In some specific embodiments, the control terminal sends a request to each subsystem and records the round-trip time; analyzes the packet loss rate of the received data packets; measures the signal strength and noise ratio; and combines the above data to calculate the network quality score.
[0037] In some specific embodiments: the control terminal measures the round-trip delay and packet loss rate of each subsystem by request, and uses the available bandwidth to determine the available bandwidth. When the network fluctuates significantly, additional measurements are triggered to calculate the average and standard deviation of the round-trip delay, record the packet loss rate percentage and available bandwidth, and the network quality score adopts the formula: score = (1 / average round-trip delay)*0.4+(1-packet loss rate)*0.3+(available bandwidth / maximum bandwidth)*0.3.
[0038] S202, dividing all deep-sea renewable energy power generation and hydrogen production subsystems into several levels according to the network quality of all deep-sea renewable energy power generation and hydrogen production subsystems and the distances of all deep-sea renewable energy power generation and hydrogen production subsystems from corresponding onshore storage devices; In some embodiments, network quality (using the network quality score obtained in S201) and distance (calculating the straight-line distance from each subsystem to the corresponding onshore storage device). Subsequently, a comprehensive score is calculated for each subsystem: comprehensive score = network quality score * W1 + (1-standardized distance) * W2, where W1 and W2 are weights and the sum is 1, and the standardized distance is the actual distance divided by the maximum distance. All subsystems are sorted in descending order according to the comprehensive score, and then all deep-sea new energy power generation and hydrogen production subsystems are divided into several levels according to the number of levels.
[0039] It should be noted that the number of levels can be set as a fixed threshold according to actual conditions, or the threshold can be dynamically adjusted considering network quality and distance; In some embodiments, the method for dynamically adjusting the threshold according to network quality and distance is: The number of levels is determined according to the level number function; the level number function is: K i nit=α*N CV Q =Q std / Q avg CV D =D std / D avg In the formula, K is the number of levels, K i nit is the initial level number, K Q is the network quality adjustment factor, K D is the distance adjustment factor, α is the basic level coefficient, N is the total number of all deep-sea new energy power generation and hydrogen production subsystems, CV Q is the network quality coefficient, is the network quality threshold, Q std Q is the average standard deviation of the network quality of all deep-sea renewable energy power generation and hydrogen production subsystems, avg is the average network quality of all deep-sea renewable energy power generation and hydrogen production subsystems, CV D is the distance adjustment factor, is the distance adjustment threshold, D std D is the average standard deviation of the distance of all deep-sea renewable energy power generation and hydrogen production subsystems. avg It is the average distance of all deep-sea renewable energy power generation and hydrogen production subsystems.
[0040] It can be seen that by considering network quality and distance factors, the hierarchical division is more in line with actual communication conditions.
[0041] S203. In each level, a deep-sea renewable energy power generation and hydrogen production subsystem is selected as the allocation subsystem of the corresponding level; the allocation subsystem is the deep-sea renewable energy power generation and hydrogen production subsystem in the corresponding level that has the lowest total communication cost with all other deep-sea renewable energy power generation and hydrogen production subsystems in the same level; In some embodiments, each deep-sea new energy power generation and hydrogen production subsystem first calculates its own network quality score, and the scoring method is the same as step S201: score = (1 / average round-trip delay)*0.4+(1-packet loss rate)*0.3+(available bandwidth / maximum bandwidth)*0.3. Subsequently, each subsystem communicates with other subsystems at the same level to exchange network quality information. Each subsystem calculates its own communication cost with all other subsystems at the same level, and the communication cost is defined as 1 / network quality score. The subsystem accumulates these communication costs to obtain its own total communication cost. Then, the subsystems elect the subsystem with the smallest total communication cost as the allocated subsystem at this level through a distributed algorithm. The subsystem selected as the allocated subsystem will report its new role to the control terminal and notify other subsystems at the same level.
[0042] S204. Send the total task to the allocation subsystem of the first layer, so that the allocation subsystem of the first layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem it controls, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem. The allocation subsystem of the first layer calculates the remaining tasks according to all hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystem of the next layer.
[0043] Among them, the total task refers to the overall hydrogen production that needs to be completed, the hydrogen production task refers to the specific hydrogen production assigned to each subsystem, and the remaining task refers to the remaining hydrogen production after deducting the assigned task from the total task.
[0044] In some embodiments, the control terminal first sends the total hydrogen production task to the allocation subsystem of the first layer, and the allocation subsystem calculates and allocates specific hydrogen production tasks according to the capabilities of the subsystems it controls (such as power generation, hydrogen production efficiency, etc.). Then, it calculates the remaining unallocated tasks and passes the remaining tasks to the allocation subsystem of the next layer. This process is carried out layer by layer until all tasks are allocated or the last layer is reached. In some specific embodiments, the first-level allocation subsystem first collects the following data of each subsystem: current power generation, electrolyzer efficiency, current hydrogen storage, and maximum storage capacity. Then the total available power generation (the sum of the current power generation of all subsystems) and the total hydrogen production capacity (total available power generation divided by the average electrolyzer efficiency) are calculated, and the hydrogen production task of each subsystem is optimized using a linear programming algorithm, with the goal of maximizing the total hydrogen production. The constraints include: the hydrogen production task of each subsystem must not be negative, must not exceed the value of its current power generation divided by the electrolyzer efficiency, and the hydrogen production task plus the current storage must not exceed the maximum storage capacity. After optimization, the allocation subsystem sends its calculated hydrogen production task to each deep-sea new energy power generation and hydrogen production subsystem as the hydrogen production task for the next time period.
[0045] In a specific embodiment, for each subsystem, the amount of energy available for hydrogen production is calculated = current power generation - system self-consumption + available energy storage; the maximum hydrogen production capacity of each subsystem is calculated = available energy * hydrogen production efficiency factor; considering the historical load of each subsystem, a load factor (range 0-1) is introduced, and a lower historical load corresponds to a higher load factor; the weighted hydrogen production capacity is calculated = maximum hydrogen production capacity * load factor; the hydrogen production task of each subsystem is calculated as follows: hydrogen production task = (weighted hydrogen production capacity of the subsystem / sum of weighted hydrogen production capacities of all subsystems) * total hydrogen production demand.
[0046] It can be seen that by obtaining network quality and distance information, dividing the subsystems into layers, and considering communication conditions, it helps to reduce long-distance transmission. When selecting the distribution subsystem, the total communication cost is minimized and the data transmission efficiency is optimized. Finally, a hierarchical task distribution mechanism is adopted, and the distribution subsystem of each layer only needs to communicate with the adjacent layer, which greatly reduces the data transmission volume and communication distance. It also reduces the risk of communication interruption, while reducing energy consumption and operation and maintenance costs, and completes the transmission hydrogen production task under limited data transmission conditions.
[0047] The above scheme solves the technical problem that hydrogen production tasks cannot be transmitted under limited data transmission conditions. However, in the actual deep-sea new energy power generation and hydrogen production control method, the control terminal sends the total task to the first-layer distribution subsystem, which calculates and distributes the hydrogen production task to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and then sends the remaining tasks to the next-layer distribution subsystem. This task allocation method may lead to unbalanced task allocation, which is specifically manifested as: the higher-level distribution subsystem and the deep-sea new energy power generation and hydrogen production subsystem controlled by it bear heavier tasks, while the lower-level distribution subsystem and the deep-sea new energy power generation and hydrogen production subsystem controlled by it have lighter tasks; especially when the total task volume is small, the deep-sea new energy power generation and hydrogen production subsystems of the first few layers may be overloaded or even saturated, while the deep-sea new energy power generation and hydrogen production subsystems of the latter few layers may be idle or underloaded. This imbalance may cause the load difference between the distribution subsystems of each layer and the deep-sea new energy power generation and hydrogen production subsystems controlled by them to be too large, thereby affecting the long-term stable operation and economic benefits of the system.
[0048] Figure 3 This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; Therefore, after step S202, the following steps are also included: S301. Establish a circular queue including all levels, wherein the circular queue includes all levels once in each cycle; wherein the circular queue refers to a special queue data structure, which is characterized in that when reaching the tail of the queue, the next element will return to the beginning of the queue to form a cycle.
[0049] In some embodiments, the control terminal creates a circular queue data structure containing all levels. The queue is arranged in order of levels, such as the first level, the second level, the third level, etc. When the last level is traversed, the next element will automatically return to the first level to form a loop. This structure ensures that each level has the opportunity to be considered and processed multiple times during the task allocation process.
[0050] In a preferred embodiment, the circular queue is carried out in an interlaced order of "first layer, last layer, second layer, penultimate layer", etc. Under the rule of "the circular queue includes all layers once in each cycle", the "distance" between adjacent use layers in the circular queue is maximized, because the deep-sea new energy power generation and hydrogen production subsystem may face the technical challenge of uneven load distribution: the first few layers of subsystems may be overloaded or even saturated, while the latter few layers of subsystems may be idle or underloaded. By maximizing the "distance", local overload caused by continuous use of adjacent layers can be prevented.
[0051] In some specific embodiments, an empty array or linked list is created as the basic structure of the queue; each level information is added to the queue in hierarchical order; a pointer is set to point to the current position of the queue; and a loop mechanism is implemented to automatically return to the beginning when the pointer reaches the end of the queue, which is not limited here.
[0052] S302, when receiving the total task, determining the current position of the circular queue; In some embodiments, the control terminal checks the current state of the circular queue to determine the next determination level.
[0053] S303, when the current position is the first floor, execute step S203; S304, removing the first layer in the circular queue; Removal refers to operations that are temporarily removed from the circular queue or marked as processed.
[0054] In some embodiments, the control terminal removes the records of the first layer from the circular queue or marks them as processed.
[0055] S305. When the current position is the last layer, the total task is sent to the allocation subsystem of the last layer, so that the allocation subsystem of the last layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem. The allocation subsystem of the last layer calculates the remaining tasks according to all hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystem of the upper layer; It should be noted that the principle and process of this step are similar to those of step S203. The relevant principles and processes can be referred to step S203 and will not be repeated here.
[0056] S306, removing the last layer in the circular queue; It should be noted that the principle and process of this step are similar to those of step S304. The relevant principles and processes can be referred to step S304 and will not be repeated here.
[0057] S307, when the current position is the middle layer, send the total task to the allocation subsystem of the middle layer, so that the allocation subsystem of the middle layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem it controls, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem, the allocation subsystem of the middle layer calculates the remaining tasks according to all hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystems of the upper layer and the next layer; Here, the middle layer refers to any layer that is neither the first layer nor the last layer in the hierarchical structure.
[0058] Unlike the last layer, the middle layer needs to split the remaining tasks and send them to the allocation subsystems of the previous and next layers.
[0059] In some embodiments, the split may be equal; this is not a limitation here.
[0060] In some embodiments, the task receiving status of each subsystem is confirmed; the remaining tasks are calculated; and the allocation ratio of the remaining tasks is dynamically determined based on the historical performance of the upper and lower layers; this is not limited here.
[0061] The steps of sending the remaining tasks to the allocation subsystems of the upper layer and the next layer include: S3071, the middle layer obtains the number of remaining layers above the middle layer and the number of remaining layers below the middle layer from the control terminal; In some embodiments, the allocation subsystem of the middle layer first establishes a connection with the control terminal, and then requests and receives two key data through a predefined protocol or interface: the number of remaining layers above the middle layer and the number of remaining layers below the middle layer.
[0062] In some specific embodiments, the middle layer can actively send a query request to the control terminal, and the request includes the current layer information. After receiving the request, the control terminal calculates and returns the remaining number of upper and lower layers; after receiving the request, the control terminal queries the network topology database, determines the location of the current middle layer, calculates the remaining number of upper and lower layers, and finally sends the result back to the middle layer, which is not limited here.
[0063] S3072. Calculate the ratio of the number of remaining levels above the middle level to the total number of remaining levels; In some embodiments, the middle layer allocation subsystem first adds the remaining number of layers above the middle layer and the remaining number of layers below the middle layer to obtain the total number of remaining layers. Then, the remaining number of layers above the middle layer is divided by the total number of remaining layers to obtain a decimal between 0 and 1, which is the required ratio. This ratio reflects the share that the upper network should bear in the task allocation.
[0064] S3073, multiply the remaining tasks by the ratio to obtain the upload task; In some embodiments, the allocation subsystem of the middle layer first obtains the total amount of unallocated tasks currently remaining, which may be a value or a task list, and then multiplies the remaining amount of tasks by the ratio calculated in the previous step, and the result is the amount of tasks that need to be uploaded to the upper layer network.
[0065] S3074, subtract the upload task from the remaining task to obtain the download task; In some embodiments, the allocation subsystem of the middle layer subtracts the upload task amount calculated in the previous step from the total remaining task amount, and the difference obtained is the task amount that needs to be transmitted to the lower layer network.
[0066] S3075, the allocation subsystem of the middle layer sends the upload task to the allocation subsystem of the upper layer; S3076. The allocation subsystem of the middle layer sends the downlink task to the allocation subsystem of the next layer.
[0067] It can be seen that by calculating the ratio of the number of remaining levels above and below the middle layer, the task allocation is ensured to match the hierarchical structure. The remaining tasks are divided into upload tasks and download tasks according to this ratio, making the task allocation more balanced. By considering the complexity of the hierarchical structure, the imbalance that may be caused by simple average allocation is avoided, and the situation of task accumulation or resource idleness is reduced.
[0068] S308, removing the middle layer in the circular queue; It should be noted that the principle and process of this step are similar to those of step S304. The relevant principles and processes can be referred to step S304 and will not be repeated here.
[0069] S309: When all levels in the circular queue are removed, the next cycle begins.
[0070] In some embodiments, the control terminal checks the state of the circular queue to confirm whether all levels have been processed. If so, the system resets the queue state and prepares to start a new cycle. This may include restoring the unprocessed state of all levels, resetting the pointer position, clearing temporary data, etc.
[0071] It can be seen that the establishment of a circular queue containing all levels ensures that each level has the opportunity to become the starting point of task distribution, and the rotation distribution of tasks between different levels is realized by dynamically adjusting the current position. The load balance between the distribution subsystems of each level and the deep-sea new energy power generation and hydrogen production subsystems they control is significantly improved, effectively avoiding the situation where some systems are overloaded while others are idle, thereby improving the resource utilization and long-term operation stability of the entire system.
[0072] The above embodiments solve the problem of significantly extending the waiting time of the lower levels, especially the last level, due to accumulation at each level. However, in actual use, after all deep-sea new energy power generation and hydrogen production subsystems are divided into several levels, the subsystems in each level often present a fan-shaped or rectangular distribution in space. This distribution characteristic leads to a problem: even if the subsystem with the smallest total communication cost with all other deep-sea new energy power generation and hydrogen production subsystems in the same level is selected as the distribution subsystem, the overall communication cost within the level may still be very large. This is because the maximum distance between subsystems within a level may be far, resulting in higher communication costs between some subsystems and the distribution subsystem. Therefore, simply minimizing the total communication cost may not fully optimize the communication efficiency of the entire level.
[0073] See also Figure 4 , Figure 4 This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; After step S203, step S204 is replaced by S401 to S408, and the method further includes: S401, the allocation subsystem in the current level determines the geographical area scope of the deep-sea new energy power generation and hydrogen production subsystem to be controlled, and the current level is any level; The geographic area scope refers to the geographical space scope where these subsystems are distributed.
[0074] In some embodiments, the allocation subsystem at the current level first needs to obtain the geographic location information of all deep-sea renewable energy power generation and hydrogen production subsystems within its jurisdiction, which may include longitude and latitude coordinates. The allocation subsystem then analyzes these coordinate data to determine the minimum geographic area that includes all subsystems. This range is usually expressed in the form of a rectangle or polygon, defining the scope of the sea area that the current level is responsible for managing.
[0075] In some specific embodiments, a bounding box method is used to find the minimum and maximum longitude and latitude values in all subsystem coordinates to determine a rectangular area; the specific steps include: traversing the coordinates of all subsystems, recording the minimum and maximum longitude and latitude values, and using these values to construct a rectangular bounding box, which is not limited here.
[0076] S402, the allocation subsystem in the current level divides the geographical area into rectangular grids; Rectangular grids refer to evenly dividing the entire geographic area into a number of equally sized rectangular small areas. In some embodiments, the allocation subsystem divides the entire geographic area into a number of equally sized rectangular grids according to a predefined grid size or number of grids. Each grid is assigned a unique identifier for subsequent subsystem allocation and task management. The size of the grid needs to balance the management granularity and computational complexity. It should not be too large to lose the meaning of subdivision, nor too small to cause excessive computational burden.
[0077] In some specific embodiments, the longitude and latitude span of a single grid is determined, the number of grid rows and columns to be divided is calculated, a grid matrix is generated, and an identifier is assigned to each grid, which is not limited here.
[0078] S403, the allocation subsystem in the current level allocates the controlled deep-sea new energy power generation and hydrogen production subsystem to the corresponding grid according to the geographical coordinates; In some embodiments, the allocation subsystem will traverse all controlled deep-sea renewable energy power generation and hydrogen production subsystems and read the geographic coordinate information of each subsystem. Then, it is determined by calculation which grid each coordinate point falls in, and the information of the subsystem (such as identifier, performance parameters, etc.) is stored in the data structure of the corresponding grid. This process actually establishes a mapping relationship between the subsystem and the grid.
[0079] In some specific embodiments, a direct calculation method is used to directly calculate the grid index to which the subsystem belongs based on the coordinates of the subsystem and the size of the grid; the specific steps include: reading the longitude and latitude coordinates of the subsystem, calculating the offset of the coordinates relative to the lower left corner of the entire area, calculating the row and column indexes based on the offset and the grid size, and adding the subsystem information to the data structure of the corresponding grid, which is not limited here.
[0080] S404, if the number of subsystems in the current grid is lower than the minimum number threshold, the allocation subsystem in the current level merges the previous grid with the adjacent grid with the least number of subsystems, the previous grid being any grid; The minimum number threshold refers to the minimum number of deep-sea renewable energy power generation and hydrogen production subsystems that should be included in each grid. The adjacent grid refers to the grid that is geographically adjacent to the current grid.
[0081] In some embodiments, the allocation subsystem traverses all grids and checks the number of subsystems in each grid. If it is found that the number of subsystems in a grid (called the front grid) is lower than a preset minimum number threshold, it searches all adjacent grids, selects the grid with the least number of subsystems, and then merges the two grids.
[0082] In a preferred embodiment, step S409 is performed after step S404.
[0083] S409: If the difference in the number of subsystems between adjacent grids exceeds a preset threshold, the subsystems close to the boundary of the grid with a larger number of subsystems are reallocated to the adjacent grid with a smaller number of subsystems, until the difference in the number of subsystems between adjacent grids is lower than the preset threshold or the maximum number of adjustments is reached.
[0084] In some embodiments, the difference in the number of subsystems between adjacent grids is compared, and if the difference exceeds a preset threshold, adjustment is started. During the adjustment process, the subsystems near the boundary of the grid with a larger number of subsystems are reallocated to the adjacent grid with a smaller number of subsystems. This process is repeated until one of the two conditions is met: either the difference in the number of subsystems between adjacent grids is reduced to below a preset threshold, or the maximum number of adjustments set in advance is reached. This ensures the balance of the distribution of subsystems in each grid and improves the management efficiency and operational stability of the overall system.
[0085] It can be seen that by comparing the difference in the number of subsystems between adjacent grids, the uneven distribution area can be identified. Dynamic adjustment is achieved by reallocating the subsystems near the boundary of the grid with a large number of subsystems to the adjacent grid with a small number of subsystems. This method improves the balance of grid division and helps to improve the stability of the allocated subsystems.
[0086] S405, the allocation subsystem in the current level deletes the grid to obtain a plurality of sub-divisions of the current level; The grid deletion operation refers to removing the original grid structure and using a new sub-partition structure instead.
[0087] In some embodiments, the allocation subsystem will clear the original grid structure information, including the boundary definition of the grid, the adjacent relationship between grids, etc. Then, each merged area is regarded as an independent sub-division. Each sub-division will contain its geographical scope information, a list of deep-sea new energy power generation and hydrogen production subsystems, and possible other attributes (such as total power generation capacity, hydrogen production capacity, etc.). This process actually transforms the original fine-grained grid management into a coarser-grained sub-division management.
[0088] In some specific embodiments, each merged grid is directly converted into a sub-partition, necessary information is retained and redundant grid data is deleted; all merged grids are traversed, a corresponding sub-partition object is created for each grid, relevant geographic range and subsystem information are copied to the sub-partition object, and the original grid data structure is deleted, which is not limited here.
[0089] S406. The allocation subsystem in the current level selects a deep-sea renewable energy power generation and hydrogen production subsystem in each sub-area as the second allocation subsystem of the corresponding sub-area; the second allocation subsystem is the deep-sea renewable energy power generation and hydrogen production subsystem in the corresponding sub-area with the lowest total communication cost with all other deep-sea renewable energy power generation and hydrogen production subsystems in the same level; In some embodiments, the allocation subsystem evaluates all deep-sea renewable energy power generation and hydrogen production subsystems in each sub-area. The core criterion for the evaluation is communication efficiency, that is, the total cost of the subsystem communicating with all other subsystems in the same area. This cost may take into account multiple factors, such as physical distance, network latency, bandwidth, etc. The subsystem with the smallest total cost will be selected as the second allocation subsystem of the sub-area, responsible for receiving superior tasks and further allocating them to other subsystems in the area.
[0090] S407, when the allocation subsystem in the current level receives the remaining tasks, it splits the remaining tasks according to the number of sub-partitions, and then sends them to the second allocation subsystem, which calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem; S408. The allocation subsystem of the current layer calculates new remaining tasks according to all hydrogen production tasks and remaining tasks, and sends the new remaining tasks to the allocation subsystem of the next layer.
[0091] In some embodiments, the allocation subsystem of the current layer first needs to summarize the amount of tasks that have been allocated, which includes the sum of tasks sent to each sub-partition. Then, this allocated amount is compared with the amount of remaining tasks initially received to calculate the new amount of remaining tasks. If there are new remaining tasks, the allocation subsystem will package this part of the task information and send it to the allocation subsystem of the next layer through the network connection to continue with more fine-grained task allocation.
[0092] It can be seen that by dividing the control area into rectangular grids and assigning subsystems to corresponding grids according to geographical locations, resource fragmentation is avoided by merging grids with fewer subsystems. In each sub-partition, the subsystem with the lowest communication cost is selected as the second subsystem to be assigned, which further optimizes the local communication efficiency. By splitting the tasks according to the number of sub-partitions, the total communication cost is further reduced, and the accuracy and execution efficiency of task allocation are also improved.
[0093] Figure 5 This is another flow chart of the deep-sea renewable energy power generation and hydrogen production control method in the embodiment of the present application; In some embodiments, after step S204, the method further includes: S501, the distribution subsystem continuously monitors its own load condition; In some embodiments, the allocation subsystem continuously collects various performance indicators through the internal monitoring module, such as CPU usage, memory usage, network traffic, task queue length, etc. These data will be recorded and analyzed regularly to evaluate the current load level of the system. Through continuous monitoring, the system can promptly discover potential performance bottlenecks or overload conditions, providing a decision-making basis for subsequent load balancing and system expansion.
[0094] When the load of the distribution subsystem does not reach the preset threshold, the distribution subsystem of the first layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem it controls, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem. The distribution subsystem of the first layer calculates the remaining tasks based on all hydrogen production tasks and the total tasks, and sends the remaining tasks to the distribution subsystem of the next layer.
[0095] S502, when the load of the distribution subsystem reaches a preset threshold, identifying the deep-sea new energy power generation and hydrogen production subsystem that is geographically closest to the distribution subsystem; In some embodiments, when the allocation subsystem finds that the load exceeds a preset threshold (for example, CPU usage exceeds 80% or memory usage exceeds 90%), the allocation subsystem initiates a search process. This process accesses a database or geographic information system containing the location information of all deep-sea new energy power generation and hydrogen production subsystems. By comparing the geographic coordinates of each subsystem with the location of the allocation subsystem itself, the closest subsystem is calculated. Selecting the nearest subsystem can minimize communication delays and resource consumption in subsequent merging processes.
[0096] S503, merging the deep-sea new energy power generation and hydrogen production subsystem with the distribution subsystem which is closest in geographical location to form a new extended distribution subsystem; In some embodiments, it is necessary to establish a high-speed communication link between the two subsystems, which may require adjusting the network configuration or adding dedicated communication equipment. Secondly, the computing resources of the two systems need to be integrated, which may include sharing processors, memory, and storage space. Thirdly, the databases and task queues of the two systems need to be synchronized and integrated. Finally, the system software may need to be updated to enable it to coordinate and manage the added resources and functions. The new extended distribution subsystem formed by this merger process will have stronger task processing capabilities and higher reliability.
[0097] S504, the new extended distribution subsystem jointly undertakes the communication and computing tasks of the original distribution subsystem; In some embodiments, the extended distribution subsystem will re-evaluate the current task queue and resource status, and then use a load balancing strategy to distribute the tasks originally handled by a single distribution subsystem to the extended system. For communication tasks, it may include establishing multiple parallel data transmission channels, or dynamically selecting the optimal communication path based on network conditions. For computing tasks, it may involve parallel processing of tasks, or allocating appropriate computing work based on the characteristics of different system nodes. This redistribution and sharing of tasks can significantly improve the overall processing capacity and efficiency of the system.
[0098] S505, recalculate the load of the extended distribution subsystem; In some embodiments, the extended allocation subsystem will initiate a comprehensive performance evaluation process. This process may include collecting indicators such as CPU usage, memory usage, network traffic, disk I / O, etc. of each subsystem node, and then combining these indicators according to a predefined calculation model to obtain an overall load indicator. This new load indicator will reflect the actual working status of the extended system when processing the current task, providing an important basis for subsequent decision-making.
[0099] S506: If the load of the extended distribution subsystem is still higher than the preset threshold, repeat the above steps until the load is lower than the preset threshold or reaches the predetermined maximum number of merging times; In some embodiments, the system compares the newly calculated load value with a preset threshold. If the load is still higher than the threshold, it means that the current expansion is not enough to meet the system requirements and the system needs to be merged. At this time, the subsystem will re-execute steps from S502 to S505 to find the next nearest subsystem to merge. This process will be repeated until one of the two conditions is met: either the system load is reduced to below the preset threshold, indicating that the ideal processing capacity has been reached; or the predetermined maximum number of merges is reached. This is to prevent the system from expanding without limit, which may lead to excessive management complexity or waste of resources.
[0100] S507. After the extended distribution subsystem is formed, the original distribution subsystem maintains its role in task distribution and continues to be responsible for receiving the total task and distributing it to each deep-sea new energy power generation and hydrogen production subsystem; other subsystems in the extended distribution subsystem assist the original distribution subsystem in processing computing tasks.
[0101] It should be noted that the original allocation subsystem has all functions, while other subsystems in the extended allocation subsystem only assist the original allocation subsystem in processing computing tasks, and do not participate in communication and task distribution.
[0102] It can be seen that by continuously monitoring the load of the distribution subsystem, potential overload risks can be identified in a timely manner. When the load reaches the preset threshold, the subsystems with the closest geographical locations are merged to form an extended distribution subsystem, thereby realizing dynamic expansion of resources. By repeatedly merging until the load requirements are met or the maximum number of mergers is reached, the effectiveness of load balancing is ensured. In addition, other subsystems in the extended distribution subsystem only assist the original distribution subsystem in processing computing tasks, and do not participate in communication and task distribution. The original distribution subsystem is a deep-sea new energy power generation and hydrogen production subsystem with the lowest total communication cost determined by preliminary calculations. By maintaining the communication and distribution roles of the original distribution subsystem, it is ensured that the system continues to operate with the lowest total communication cost.
[0103] The following introduces an exemplary deep-sea renewable energy power generation and hydrogen production control system 600 provided in an embodiment of the present application. Figure 6 It is a schematic diagram of an exemplary hardware structure of a deep-sea renewable energy power generation and hydrogen production control system 600 provided in an embodiment of the present application.
[0104] In some embodiments, the deep-sea new energy power generation and hydrogen production control system 600 is a computer device or the deep-sea new energy power generation and hydrogen production control system 600 includes a computer device. The computer device includes a processor, a memory and a network interface connected by 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with other external terminals or servers through a network connection. In some embodiments, the network interface can be a wired network interface, and in some embodiments, the network interface can also be a wireless network interface. When the computer program is executed by the processor, the method in the embodiment of the present application is implemented.
[0105] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0107] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0108] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0109] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A deep sea renewable energy power generation and hydrogen production control method, characterized in that: Applicable to control terminals, including: Obtaining the network quality of all deep-sea renewable energy power generation and hydrogen production subsystems and the control terminal; Divide all the deep-sea new energy power generation and hydrogen production subsystems into several levels according to the network quality of all the deep-sea new energy power generation and hydrogen production subsystems and the distances of all the deep-sea new energy power generation and hydrogen production subsystems from the corresponding onshore storage equipment; In each of the levels, one of the deep-sea renewable energy power generation and hydrogen production subsystems is selected as the allocation subsystem corresponding to the level; the allocation subsystem is the deep-sea renewable energy power generation and hydrogen production subsystem corresponding to the level, which has the lowest total communication cost with all other deep-sea renewable energy power generation and hydrogen production subsystems in the same level; The total task is sent to the allocation subsystem of the first layer, so that the allocation subsystem of the first layer calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem; the allocation subsystem of the first layer calculates the remaining tasks according to all the hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystem of the next layer.
2. The method according to claim 1, characterized in that: After the step of dividing all of the deep-sea new energy power generation and hydrogen production subsystems into several levels, the method further includes: Establishing a circular queue including all the levels, wherein the circular queue includes all the levels once in each cycle; When receiving the total task, determining the current position of the circular queue; When the current position is the first layer, executing the step of sending the total task to the allocation subsystem of the first layer; removing the first layer in the circular queue; When the current position is the last layer, the total task is sent to the allocation subsystem of the last layer, so that the allocation subsystem of the last layer calculates the hydrogen production task of each of the deep-sea new energy power generation and hydrogen production subsystems according to the deep-sea new energy power generation and hydrogen production subsystems controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystems, and the allocation subsystem of the last layer calculates the remaining tasks according to all the hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystem of the upper layer; Removing the last layer in the circular queue; When the current position is the middle layer, the total task is sent to the allocation subsystem of the middle layer, so that the allocation subsystem of the middle layer calculates the hydrogen production task of each of the deep-sea new energy power generation and hydrogen production subsystems according to the deep-sea new energy power generation and hydrogen production subsystems controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystems, and the allocation subsystem of the middle layer calculates the remaining tasks according to all the hydrogen production tasks and the total task, and sends the remaining tasks to the allocation subsystems of the upper layer and the next layer; Removing the middle layer in the circular queue; When all the levels in the circular queue are removed, the next cycle begins.
3. The method according to claim 2, characterized in that The step of sending the remaining tasks to the allocation subsystems of the upper layer and the next layer specifically includes: The middle layer obtains the number of remaining levels above the middle layer and the number of remaining levels below the middle layer from the control terminal; calculates the ratio of the number of remaining levels above the middle layer to the total number of remaining levels; Multiply the remaining tasks by the ratio to obtain the upload tasks; Subtract the upload task from the remaining task to obtain the download task; The allocation subsystem of the middle layer sends the upload task to the allocation subsystem of the upper layer; The allocation subsystem of the middle layer sends the downlink task to the allocation subsystem of the next layer.
4. The method according to claim 1, characterized in that Before the step of dividing all of the deep-sea new energy power generation and hydrogen production subsystems into several levels, the method further includes: The number of levels is determined according to the level number function; the level number function is: K i nit=α*N CV Q =Q std / Q avg CV D =D std / D avg In the formula, K is the number of levels, K i nit is the initial level number, K Q is the network quality adjustment factor, K D is the distance adjustment factor, α is the basic level coefficient, N is the total number of all deep-sea new energy power generation and hydrogen production subsystems, CV Q is the network quality coefficient, is the network quality threshold, Q std Q is the average standard deviation of the network quality of all the deep-sea renewable energy power generation and hydrogen production subsystems, avg is the average network quality of all the deep-sea renewable energy power generation and hydrogen production subsystems, CV D is the distance adjustment factor, is the distance adjustment threshold, D std is the average standard deviation of the distance of all deep-sea renewable energy power generation and hydrogen production subsystems, D avg It is the average distance of all the deep-sea new energy power generation and hydrogen production subsystems.
5. The method according to claim 1, characterized in that: After the step of dividing all of the deep-sea new energy power generation and hydrogen production subsystems into several levels, the method further includes: The allocation subsystem in the current level determines the geographical area scope of the deep-sea new energy power generation and hydrogen production subsystem to be controlled, and the current level is any of the levels; The allocation subsystem in the current level divides the geographic area into a rectangular grid; The allocation subsystem in the current level allocates the controlled deep-sea new energy power generation and hydrogen production subsystem to the corresponding grid according to the geographical coordinates of the controlled deep-sea new energy power generation and hydrogen production subsystem; If the number of subsystems in the current grid is lower than the minimum number threshold, the allocation subsystem in the current level merges the previous grid with an adjacent grid with the least number of subsystems, the previous grid being any grid; The allocation subsystem in the current level deletes the grid to obtain a plurality of sub-divisions of the current level; The allocation subsystem in the current level selects one of the deep-sea new energy power generation and hydrogen production subsystems in each of the sub-divisions as the allocated second subsystem corresponding to the sub-division; the allocated second subsystem is the deep-sea new energy power generation and hydrogen production subsystem in the corresponding sub-division that has the lowest total communication cost with all other deep-sea new energy power generation and hydrogen production subsystems in the same level; When the allocation subsystem in the current level receives the remaining tasks, it splits the remaining tasks according to the number of sub-divisions and then sends them to the second allocation subsystem. The second allocation subsystem calculates the hydrogen production task of each deep-sea new energy power generation and hydrogen production subsystem according to the deep-sea new energy power generation and hydrogen production subsystem controlled by it, and distributes it to the corresponding deep-sea new energy power generation and hydrogen production subsystem; The allocation subsystem of the current layer calculates new remaining tasks according to the total hydrogen production tasks and the remaining tasks, and sends the new remaining tasks to the allocation subsystem of the next layer.
6. The method according to claim 5, characterized in that After the step of selecting, in each of the levels, a deep-sea new energy power generation and hydrogen production subsystem as a distribution subsystem corresponding to the level, the method further comprises: If the difference in the number of subsystems between adjacent grids exceeds a preset threshold, the subsystems close to the boundary of the grid with a larger number of subsystems are reallocated to the adjacent grid with a smaller number of subsystems until the difference in the number of subsystems between adjacent grids is lower than the preset threshold or the maximum number of adjustments is reached.
7. The method according to claim 1, characterized in that After the step of sending the total task to the allocation subsystem of the first layer, the method further comprises: The distribution subsystem continuously monitors its own load condition; When the load of the distribution subsystem reaches a preset threshold, identifying the deep-sea new energy power generation and hydrogen production subsystem that is geographically closest to the distribution subsystem; Merging the deep-sea new energy power generation and hydrogen production subsystem closest to the geographical location with the distribution subsystem to form a new extended distribution subsystem; The new extended distribution subsystem jointly undertakes the communication and computing tasks of the original distribution subsystem; recalculating the load of the extended distribution subsystem; If the load of the extended distribution subsystem is still higher than the preset threshold, repeat the above steps until the load is lower than the preset threshold or reaches a predetermined maximum number of merging times; After the extended distribution subsystem is formed, the original distribution subsystem maintains its role in task distribution and continues to be responsible for receiving the total task and distributing it to each of the deep-sea new energy power generation and hydrogen production subsystems; other subsystems in the extended distribution subsystem assist the original distribution subsystem in processing computing tasks.
8. A deep sea renewable energy power generation and hydrogen production control system, characterized in that: The deep-sea new energy power generation and hydrogen production control system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the deep-sea new energy power generation and hydrogen production control system to execute the method described in any one of claims 1-7.
9. A computer program product comprising instructions, characterized in that When the computer program product runs on a deep-sea renewable energy power generation and hydrogen production control system, the deep-sea renewable energy power generation and hydrogen production control system executes the method as described in any one of claims 1-7.
10. A computer-readable storage medium comprising instructions, characterized in that: When the instruction is executed on a deep-sea renewable energy power generation and hydrogen production control system, the deep-sea renewable energy power generation and hydrogen production control system executes the method as described in any one of claims 1-7.
Citation Information
Patent Citations
Digitization system and method for energy internet deployment management
CN113077101A
Comprehensive energy layered optimal operation method and system of hydrogen-containing utilization system
CN114123274A
Virtual power plant resource optimal configuration method and system
CN117973742A
Energy control method for distributed wind-solar hydrogen production system and related equipment
CN119228582A
Primary frequency modulation control method based on participation of modular large-scale hydrogen production power supply in power system
CN119675028A