Generator set pipeline optimization method, device, equipment and medium
By setting up a hydrophobic device system on the soda pipe of the generator set and optimizing the layout, combined with the improvement of the artificial bee colony algorithm, the problems of water hammer accidents and heat energy recovery performance are solved, and safety and efficiency are improved.
Patent Information
- Application Number
- CN202411019777.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-06
AI Technical Summary
During the start and stop of the generator set, water hammer accidents are prone to occur, resulting in pipeline explosion or leakage. Although the existing hydrophobic device system reduces the incidence of water hammer accidents, it cannot be completely avoided, and the start efficiency after hydrophobic transformation is reduced, which affects the impact of Unit operation benefits.
Set up a hydrophobic device system on the soda pipe of the generator set, and optimize the layout of the hydrophobic device and improve the artificial bee colony algorithm to construct the objective function of the peak value of the water hammer pressure wave and the heat recovery, and solve the optimal layout parameters to reduce the probability of water hammer accidents and improve heat recovery performance.
Significantly reduce the probability of water hammer accidents, improve the safety and efficiency of generator set operation, enhance the hydrophobic performance of hydrophobic devices, and improve the prevention and control effect of water hammer accidents and unit operation efficiency.
Smart Images

Figure CN119089595A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of generator pipeline design and relates to a generator set pipeline optimization method, device, equipment and medium. Background Art
[0002] The steam-water pipeline of the generator set is characterized by high temperature, high pressure and high flow rate. When the unit is started and stopped and in operation, abnormal movement of related valves or specific working conditions can easily cause severe pressure fluctuations in the pipeline, resulting in rapid changes in the flow rate in the pipeline, thereby causing the pipeline pressure to fluctuate violently, just like a hammer hitting the pipeline violently (also known as water hammer or water hammer), causing the pipeline to burst or leak, seriously affecting the safety of the unit equipment and personnel.
[0003] In order to overcome water hammer failure, the generator set needs to be modified accordingly. After adding drain connection pipes, drain expansion devices, and condensing devices to intervene in the pipeline draining and startup procedures during the startup process, the incidence of water hammer accidents has dropped significantly. However, after the drain device system is managed, the transient characteristics of the steam-water two-phase flow in the medium-pressure bypass pipeline will become more complicated due to the "source / sink" bidirectional regulation of the drain expansion device. When the medium-pressure bypass steam-water system of the generator set is in the startup warm-up stage, high-pressure steam enters the bypass pipeline. Due to condensation when it encounters cold and possible water accumulation, there is a two-phase flow in the bypass pipeline. The drain device system works until the warm-up is completed, and the pressure of the drain expansion and bypass pipeline is self-balanced; in the shutdown stage, due to the decrease in bypass pipeline pressure, although the drain valve is closed, the water accumulated in the cold end drain pipe will flow back to the bypass pipeline, slowing down the pressure drop in the bypass pipeline. The pressure reduction wave will be transmitted to the bypass valve and reflected to generate a pressure increase wave and promote the reverse flow of the steam-water two-phase flow. During the above startup / shutdown phases, the two-phase flow liquid column may separate, causing the cavitation to collapse and close, resulting in high pressure in the drain device system and forming impact loads, which in turn affects the safety and life of the pipeline. In severe cases, pipe bursts may even occur.
[0004] Although the drainage modification has been carried out in the treatment of water hammer accidents, which has greatly reduced the probability of water hammer accidents, it is still impossible to completely avoid the occurrence of water hammer accidents due to the design of the drainage device system. In addition, after the drainage modification, in order to ensure the safety of the unit equipment, it is necessary to extend the length of the reheating main steam pipeline to avoid water hammer, but this will reduce the startup efficiency and affect the unit's operating efficiency.
[0005] Therefore, in order to further ensure the operating safety and efficiency of the generator set pipeline, it is an urgent problem that technical personnel in this field need to solve by optimizing the drain device system to avoid water hammer failures and take into account heat recovery performance. Summary of the invention
[0006] The purpose of the present invention is to provide a method, device, equipment and medium for optimizing the pipeline of a generator set, to set a drain device system on the steam-water pipeline of the generator set and optimize its layout, thereby greatly reducing the probability of water hammer accidents, while taking into account the heat recovery performance of the generator set, and improving the safety and efficiency of the operation of the generator set.
[0007] In order to achieve the purpose of the invention, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a method for optimizing pipelines of a generator set, the method comprising:
[0009] Constructing a drain device system for the steam-water pipeline of the generator set; the drain device system includes a bypass pipeline, a drain expansion device and a steam condensing device;
[0010] According to the key layout parameters of the drain system, the first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and the second objective function of heat recovery are respectively constructed;
[0011] The minimum value of the first objective function and the second objective function is solved to obtain the optimal layout of the hydrophobic device system.
[0012] In the present invention, the hydrophobic device system is arranged using the parameter values in the optimal layout.
[0013] The generator set pipeline optimization method provided by the present invention sets a drain device system on the steam-water pipeline of the generator set, which greatly reduces the probability of water hammer accidents and improves the safety of generator set operation. At the same time, the layout of the drain device system is optimized to enhance the drain performance of the drain device system while taking into account the heat energy recovery performance of the drain device, thereby further improving the prevention and control effect of water hammer accidents and improving the operation efficiency of the unit.
[0014] Preferably, the bypass pipeline is a medium-pressure bypass pipeline.
[0015] Preferably, the bypass pipe is connected to a drain point on the steam-water pipe of the generator set.
[0016] Preferably, the bypass pipe is provided with the hydrophobic expansion device and the steam condensing device in sequence.
[0017] Preferably, the key layout parameters include the length, diameter, number of elbows and elbow angle of the bypass pipeline, the height difference between the drain expansion device and the drain point, and the height difference between the condensing device and the drain point.
[0018] Preferably, the water hammer pressure wave peak value is the amplitude of the maximum water hammer pressure wave.
[0019] Preferably, the formula of the first objective function is as shown in formula (I):
[0020]
[0021] Among them, P max is the peak value of water hammer pressure wave, P0 is the initial pressure of the steam-water pipeline of the generator set, L is the length of the bypass pipeline (m), m is the number of bends in the bypass pipeline, θ i is the angle of the i-th elbow (°), R is the diameter of the bypass pipe (m), H1 is the height difference between the drain expansion device and the drain point (m), H2 is the height difference between the condenser and the drain point (m), ρ is the density of the working fluid (kg / m 3 ), v is the average velocity of the working fluid (m / s), f is the friction coefficient of the bypass pipe, K i is the local resistance coefficient of the i-th elbow, ΔP i is the pressure drop caused by the ith elbow (kPa), and w is the preset safety factor of the steam-water pipeline of the generator set.
[0022] Preferably, the formula of the second objective function is as shown in formula (II):
[0023] min Q(L,m,R)=k×(T1-T2)×πRL×(1+F×m)(II)
[0024] Where Q(L,m,R) is the heat loss value, L is the length of the bypass pipe (m), m is the number of bends in the bypass pipe, R is the diameter of the bypass pipe (m), T1 is the temperature of the working fluid (℃), T2 is the temperature of the environment outside the steam-water pipe (℃), k is the thermal conductivity of the bypass pipe (W / (m 2 ·℃)), F is the heat loss factor caused by the bend.
[0025] Preferably, the constraints of the first objective function and the second objective function are as follows:
[0026] L<L max
[0027]
[0028] m≤m max
[0029] 90°≤θ i ≤180°
[0030]
[0031]
[0032] H1<H2
[0033] Among them, L maxis the maximum bypass pipe length allowed by the trap system (m), G is the flow rate of the pipe (kg / h), ρ is the density of the working fluid (kg / m 3 ), v min is the minimum flow rate allowed in the bypass pipeline (m / s), v max is the maximum flow rate allowed in the bypass pipeline (m / s), m max The maximum number of elbows allowed in the trap system. is the minimum height difference between the drain expansion device and the drain point (m), is the maximum height difference between the drain expansion device and the drain point (m), is the minimum height difference between the condensing device and the drain point (m), It is the maximum height difference between the condensing device and the drain point (m).
[0034] Preferably, solving the minimum value of the first objective function and the second objective function includes: solving the minimum value of the first objective function and the second objective function by using an improved artificial bee colony algorithm.
[0035] Preferably, the improved artificial bee colony algorithm comprises:
[0036] (1) Initialize the nectar source related parameters and calculate the nectar source fitness, then sort the nectar source locations according to the fitness and archive them externally;
[0037] (2) The hired bees generate the first nectar source during the neighborhood search, select the minimum nectar source between the first objective function value and the second objective function value, and then use the minimum nectar source to generate the second nectar source;
[0038] (3) The spectator bees randomly select the second nectar source from the external archive for learning, and generate the third nectar source of m dimensions and the fourth nectar source of the remaining dimensions during the neighborhood search;
[0039] (4) Compare the third nectar source or the fourth nectar source with the original nectar source independently, and select one of the nectar sources for external archiving; after each iteration, update the external archive and perform non-dominated sorting on the nectar sources in the external archive;
[0040] (5) Determine whether the number of iterations reaches the preset maximum number of iterations. If so, output the honey source in the external archive. If not, return to step (2) to continue execution.
[0041] Preferably, in step (2), the first nectar source is determined using formula (III):
[0042]
[0043] Among them, v ijis the i-th first honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x kj is the kth initial nectar source of the jth dimension, is a random number between [-1,1], i∈{1,2,…,SN}, SN is the population size, k∈{1,2,…,SN}, j∈{1,2,…,D}, D is the number of dimensions, k is randomly generated and k≠i;
[0044] Preferably, in step (2), the second nectar source is determined using formula (IV):
[0045]
[0046] Among them, v' ij is the i-th second honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x best,j is the initial honey source with the minimum objective function value in the jth dimension, is a random number between [-1,1], r1∈{1,2,…,SN}, i∈{1,2,…,SD}, SN is the population size, j∈{1,2,…,D}, D is the number of dimensions, and g is the number of iterations;
[0047] Preferably, the third nectar source in step (3) is determined using formula (V):
[0048]
[0049] Among them, v i,f(m) is the third nectar source of the i-th dimension f(m), x i,f(m) is the i-th nectar source of the f(m)th dimension generated by the second nectar source, To generate a random number between m [0,2], EA k1,f(m) is the i-th nectar source of the f(m)-th dimension in the external archive, f(m) is the first m integers randomly arranged from 1 to n, i∈{1,2,…,SN}, SN is the population size, k1∈{1,2,…,p}, p is the number of nectar sources in the external archive;
[0050] Preferably, the fourth nectar source in step (3) is determined using formula (VI):
[0051]
[0052] in, is the fourth nectar source of the jth dimension, x' ij is the i-th nectar source of the j-th dimension generated by the second nectar source, is a random number between [-1,1], EAlj is the lth honey source in the jth dimension in the external archive;
[0053] Preferably, the original nectar source in step (4) includes an existing nectar source in an external archive;
[0054] Preferably, the comparison method in step (4) includes: if the third nectar source or the fourth nectar source dominates the original nectar source, then the third nectar source or the fourth nectar source is added to the external archive; if the third nectar source or the fourth nectar source is dominated by the original nectar source, then the third nectar source and the fourth nectar source are not added to the external archive; if the third nectar source or the fourth nectar source and the original nectar source do not dominate each other, then one of them is randomly selected to be added to the external archive;
[0055] Preferably, the control is performed according to a Pareto selection mechanism.
[0056] Preferably, the non-dominated sorting in step (4) is performed according to a non-dominated sorting genetic algorithm.
[0057] In a second aspect, the present invention provides a generator set pipeline optimization device, the device comprising:
[0058] The first construction module is used to construct a drain device system for steam-water pipelines of a generator set;
[0059] The second construction module is used to construct a first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and a second objective function of the heat energy recovery according to the key layout parameters of the drain device system;
[0060] The solution and optimization module is used to solve the minimum value of the first objective function and the second objective function to obtain the optimal layout of the hydrophobic device system.
[0061] In a third aspect, the present invention provides an electronic device, the electronic device comprising:
[0062] at least one processor; and
[0063] a memory communicatively connected to the at least one processor; wherein,
[0064] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the generator set pipeline optimization method described in the first aspect.
[0065] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the generator set pipeline optimization method described in the first aspect when executed.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] The generator set pipeline optimization method, device, equipment and medium provided by the present invention, in order to solve the problem of water hammer failure of the generator set, a drain device system is set on the steam-water pipeline of the generator set, which greatly reduces the probability of water hammer accidents and improves the safety of the operation of the generator set. At the same time, an improved artificial bee colony algorithm is used to optimize the layout of the drain device system, and the convergence of the algorithm is improved on complex problems with more design parameters and constraints, and it does not fall into the local optimal solution, thereby improving the efficiency and accuracy of the algorithm, thereby enhancing the drain performance of the drain device system, while taking into account the heat energy recovery performance of the drain device, further improving the prevention and control effect of water hammer accidents and improving the operation efficiency of the unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0069] Figure 1 A flow chart of the generator set pipeline optimization method provided in Example 1;
[0070] Figure 2 A schematic diagram of the structure of the pipeline and drain device system of the generator set provided in Example 1;
[0071] Among them, 1-steam-water pipeline of generator set, 2-bypass pipeline, 3-drainage expansion device, 4-steam condensing device;
[0072] Figure 3 A schematic diagram of the structure of the generator set pipeline optimization device provided in Example 2;
[0073] Figure 4 A schematic diagram of the structure of an electronic device for a generator set pipeline optimization method provided in Example 3. DETAILED DESCRIPTION
[0074] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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 present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0075] It should be noted that the terms "first", "second", "candidate", "target", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0076] Example 1
[0077] This embodiment provides a generator set pipeline optimization method, which is suitable for solving the minimum value of the first objective function of the water hammer pressure wave peak value of the generator set steam-water pipeline and the second objective function of heat recovery according to the improved artificial bee colony algorithm, so as to determine the optimal layout of the steam-water pipeline drainage device system of the generator set. The method can be executed by a generator set pipeline optimization device, and the generator set pipeline optimization method device can be implemented in the form of hardware and / or software, and the generator set pipeline optimization method device can be configured in an electronic device with the generator set pipeline optimization method capability.
[0078] like Figure 1 As shown, the method provided in this embodiment includes the following steps:
[0079] S110, constructing a drain device system for the steam-water pipeline 1 of the generator set (such as Figure 2 The drain device system includes a bypass pipe 2, a drain expansion device 3 and a condensing device 4;
[0080] In step S110, the bypass pipeline is a medium-pressure bypass pipeline; the bypass pipeline is connected to a drain point on the steam-water pipeline of the generator set; the drain expansion device and the steam condensing device are sequentially arranged on the bypass pipeline;
[0081] Among them, by connecting a medium-pressure bypass pipe at the drain point of the steam-water pipeline of the generator set, the steam in the medium-pressure bypass pipe is discharged into the drain expansion device for buffering, and then the drain expansion device introduces the cooled and reduced-pressure steam into the condensing device. Among them, the drain expansion device can effectively absorb and alleviate the pressure fluctuation caused by the sudden change of flow rate in the steam-water pipeline, thereby reducing the impact of water hammer on the steam-water pipeline, and the condensing device can ensure that the steam and water in the system are kept at normal pressure and temperature, thereby reducing the possibility of water hammer caused by abnormal pressure or temperature. In addition, the condensing device can also effectively recover steam energy and reduce water consumption in the generator set, which helps to improve the stability and operation efficiency of the system.
[0082] S120, constructing a first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and a second objective function of heat energy recovery according to the key layout parameters of the drain device system;
[0083] In step S120, the key layout parameters include the length, diameter, number of elbows and elbow angle of the bypass pipeline, the height difference between the drain expansion device and the drain point, and the height difference between the condensing device and the drain point;
[0084] In step S120, the water hammer pressure wave peak value is the amplitude of the maximum water hammer pressure wave;
[0085] In this embodiment, since the prevention and control of water hammer failures by the drain device system is reflected in the pressure fluctuations in the steam-water pipeline, the amplitude of the maximum water hammer pressure wave in the steam-water pipeline becomes one of the indicators for measuring the optimization effect, and the layout of the drain device system directly affects the drain effect. Therefore, the layout design of the drain device system is mainly considered from the length, diameter, number of elbows, and angle of elbows of the medium-pressure bypass pipeline, the height difference between the drain expansion device and the drain point, and the height difference between the condensing device and the drain point.
[0086] In step S120, the formula of the first objective function is as shown in formula (I):
[0087]
[0088] Among them, P max is the peak value of water hammer pressure wave, P0 is the initial pressure of the steam-water pipeline of the generator set, L is the length of the bypass pipeline (m), m is the number of bends in the bypass pipeline, θ i is the angle of the i-th elbow (°), R is the diameter of the bypass pipe (m), H1 is the height difference between the drain expansion device and the drain point (m), H2 is the height difference between the condenser and the drain point (m), ρ is the density of the working fluid (kg / m 3 ), v is the average velocity of the working fluid (m / s), f is the friction coefficient of the bypass pipe, K iis the local resistance coefficient of the i-th elbow, ΔP i is the pressure drop caused by the ith elbow (kPa), and w is the preset safety factor of the steam-water pipeline of the generator set.
[0089] At the same time, the heat recovery problem also needs to be considered in the design process of the steam trap system. The goal of the optimization design is to ensure that both the water hammer prevention performance and the heat recovery performance are optimized. The heat recovery of the steam trap system is mainly affected by the heat loss of the bypass pipe. Therefore, in order to ensure the best heat recovery performance of the steam trap system, the heat loss of the bypass pipe needs to be minimized.
[0090] In step S120, the objective function of heat recovery is expressed as follows:
[0091] min Q(L,m,R)=k×(T1-T2)×πRL×(1+F×m)(II)
[0092] Where Q(L,m,R) is the heat loss value, L is the length of the bypass pipe (m), m is the number of bends in the bypass pipe, R is the diameter of the bypass pipe (m), T1 is the temperature of the working fluid (℃), T2 is the temperature of the environment outside the steam-water pipe (℃), k is the thermal conductivity of the bypass pipe (W / (m 2 ·℃), F is the heat loss factor caused by the bend.
[0093] In step S120, the constraints of the first objective function and the second objective function are as follows:
[0094] L<L max
[0095] In this embodiment, in order to ensure that there is sufficient pressure in the medium-pressure bypass pipeline, the length of the medium-pressure bypass pipeline should not be too long. max The maximum bypass pipe length (m) allowed in the drain system.
[0096]
[0097] In this embodiment, in order to ensure the flow rate in the medium-pressure bypass pipeline, the diameter of the medium-pressure bypass pipeline needs to be controlled, G is the flow rate of the pipeline (kg / h), ρ is the density of the working fluid (kg / m 3 ), v min is the minimum flow rate allowed in the bypass pipeline (m / s), v max The maximum flow rate allowed in the bypass pipe (m / s).
[0098] m≤m max
[0099] In this embodiment, too many elbows will increase the resistance of water flow and affect the drainage effect. Therefore, it is necessary to control the number of elbows in the medium-pressure bypass pipeline. max The maximum number of elbows allowed in the trap system.
[0100] 90°≤θ i ≤180°
[0101] In this embodiment, the angle of the elbow determines the pressure resistance and pressure drop in the medium-pressure bypass pipeline. Therefore, in order to minimize the impact on the pressure in the pipeline, the angle of the elbow needs to be controlled.
[0102]
[0103]
[0104] H1<H2
[0105] In this embodiment, the layout height of the drain expansion device and the steam condensing device has a certain height difference with the drain point, which is conducive to the smooth flow of drain from the drain point to the drain expansion device and the steam condensing device. Although a certain height difference is required to ensure the flow of drain, too large a height difference may cause excessive pressure loss when the drain flows in the pipeline, affecting the drain efficiency. Therefore, it is necessary to control the height difference between the drain expansion device, the steam condensing device and the drain point. is the minimum height difference between the drain expansion device and the drain point (m), is the maximum height difference between the drain expansion device and the drain point (m), is the minimum height difference between the condensing device and the drain point (m), It is the maximum height difference between the condensing device and the drain point (m).
[0106] S130, solving the minimum value of the first objective function and the second objective function to obtain the optimal layout of the hydrophobic device system;
[0107] In step S130, the improved artificial bee colony algorithm is used to solve the minimum value of the first objective function and the second objective function;
[0108] In this embodiment, in the optimization problem, the artificial bee colony algorithm mainly relies on the random search and local search strategies of bees to solve the problem. However, in some complex or high-dimensional problems, the local search strategy may not be able to effectively explore the search space, causing the algorithm to fall into a local optimal solution, and it is difficult to balance the convergence and diversity of the population; and the generator set pipeline optimization problem solved by the present invention involves more design parameters and constraints. The traditional artificial bee colony algorithm may result in high computational overhead in processing the optimization problem, and it is difficult to balance the objective function and the constraints. Therefore, the artificial bee colony algorithm needs to be improved.
[0109] In step S130, the improved artificial bee colony algorithm includes:
[0110] (1) Initialize the nectar source related parameters and calculate the nectar source fitness, then sort the nectar source locations according to the fitness and archive them externally;
[0111] (2) The hired bees generate the first nectar source during the neighborhood search, select the minimum nectar source between the first objective function value and the second objective function value, and then use the minimum nectar source to generate the second nectar source;
[0112] (3) The spectator bees randomly select the second nectar source from the external archive for learning, and generate the third nectar source of m dimensions and the fourth nectar source of the remaining dimensions during the neighborhood search;
[0113] (4) Compare the third nectar source or the fourth nectar source with the original nectar source independently, and select one of the nectar sources for external archiving; after each iteration, update the external archive and perform non-dominated sorting on the nectar sources in the external archive;
[0114] (5) Determine whether the number of iterations reaches the preset maximum number of iterations. If so, output the honey source in the external archive. If not, return to step (2) to continue execution.
[0115] In this embodiment, in the initialization phase of step (1), the initial nectar source is randomly generated by SN initial nectar sources x ij , each initial nectar source is a D-dimensional vector.
[0116] In this embodiment, the external archive is used to store the location of the nectar source. In addition, in the employed bee stage in step (2), the nectar source with the smallest objective function value is selected to achieve rapid convergence of the bee colony, thereby enhancing the convergence of the artificial bee colony algorithm, maintaining the diversity of the population, and preventing the algorithm from falling into a local optimal solution. Finally, in the spectator bee stage in step (3), the external archive is used to ensure that the artificial bee colony algorithm converges to the optimal solution. At the same time, the diversity of the population is ensured by updating the nectar source in the external archive, thereby improving the accuracy and efficiency of the algorithm.
[0117] Specifically, in step (2), the first nectar source is determined using formula (III):
[0118]
[0119] Among them, v ij is the i-th first honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x kj is the kth initial nectar source of the jth dimension, is a random number between [-1,1], i∈{1,2,…,SN}, SN is the population size, k∈{1,2,…,SN}, j∈{1,2,…,D}, D is the number of dimensions, k is randomly generated and k≠i;
[0120] In this embodiment, the dimension number D represents the number of questions.
[0121] Specifically, in step (2), the second nectar source is determined using formula (IV):
[0122]
[0123] Among them, v' ij is the i-th second honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x best,j is the initial honey source with the minimum objective function value in the jth dimension, is a random number between [-1,1], r1∈{1,2,…,SN}, i∈{1,2,…,SD}, SN is the population size, j∈{1,2,…,D}, D is the number of dimensions, and g is the number of iterations;
[0124] Specifically, the third nectar source in step (3) is determined using formula (V):
[0125]
[0126] Among them, v i,f(m) is the third nectar source of the i-th dimension f(m), x i,f(m) is the i-th nectar source of the f(m)th dimension generated by the second nectar source, To generate a random number between m [0,2], EA k1,f(m) is the i-th nectar source of the f(m)-th dimension in the external archive, f(m) is the first m integers randomly arranged from 1 to n, i∈{1,2,…,SN}, SN is the population size, k1∈{1,2,…,p}, p is the number of nectar sources in the external archive;
[0127] Specifically, the fourth nectar source in step (3) is determined using formula (VI):
[0128]
[0129] in, is the fourth nectar source of the jth dimension, x' ij is the i-th nectar source of the j-th dimension generated by the second nectar source, is a random number between [-1,1], EA lj is the lth honey source in the jth dimension in the external archive;
[0130] Preferably, the original nectar source in step (4) includes an existing nectar source in an external archive;
[0131] Preferably, the comparison method in step (4) includes: if the third nectar source or the fourth nectar source dominates the original nectar source, then the third nectar source or the fourth nectar source is added to the external archive; if the third nectar source or the fourth nectar source is dominated by the original nectar source, then the third nectar source and the fourth nectar source are not added to the external archive; if the third nectar source or the fourth nectar source and the original nectar source do not dominate each other, then one of them is randomly selected to be added to the external archive;
[0132] Specifically, the domination is performed according to the Pareto selection mechanism;
[0133] Specifically, the non-dominated sorting in step (4) is performed according to a non-dominated sorting genetic algorithm;
[0134] In this embodiment, the size of the external archive needs to be controlled, including: if the number of nectar sources exceeds the size of the external archive, nectar sources with a small crowding distance are eliminated.
[0135] In this embodiment, a drain device system on the steam-water pipeline of the generator set is constructed and optimized to address the water hammer failure of the generator set, thereby significantly reducing the probability of water hammer accidents and improving the safety of the generator set operation. At the same time, an improved artificial bee colony algorithm is used to optimize the layout of the drain device system, thereby improving the convergence of the algorithm on complex problems with many design parameters and constraints, avoiding falling into local optimal solutions, and improving the efficiency and accuracy of the algorithm, thereby enhancing the drain performance of the drain device system, while taking into account the heat recovery performance of the drain device, further improving the prevention and control effect of water hammer accidents and improving the operation efficiency of the unit.
[0136] Example 2
[0137] This embodiment provides a device for optimizing pipelines of a generator set. Figure 3 ) is suitable for optimizing the arrangement of the drain device system of the steam-water pipeline of the generator set to ensure the operation safety and efficiency of the steam-water pipeline of the generator set. The device includes: a first construction module 110, a second construction module 120, and a solution and optimization module 130, wherein:
[0138] The first construction module 110 is used to construct a drainage device system for the steam-water pipeline of the generator set;
[0139] The second construction module 120 is used to construct a first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and a second objective function of the heat recovery according to the key layout parameters of the drain device system;
[0140] The solution and optimization module 130 is used to solve the minimum value of the first objective function and the second objective function to obtain the optimal layout of the hydrophobic device system.
[0141] The device provided in this embodiment can execute the generator set pipeline optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0142] Example 3
[0143] This embodiment provides an electronic device for implementing a method for optimizing a pipeline of a generator set, such as Figure 4 As shown, the electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0144] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0145] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a second storage area, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0146] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the generator set pipeline optimization method.
[0147] In some embodiments, the generator set pipeline optimization method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the generator set pipeline optimization method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the generator set pipeline optimization method in any other suitable manner (for example, by means of firmware).
[0148] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0149] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable target determination device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0150] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0151] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0152] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0153] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0154] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the information expected by the technical solution of this application can be achieved, and this document is not limited here.
[0155] The applicant declares that the present invention illustrates the detailed structural features of the present invention through the above-mentioned embodiments, but the present invention is not limited to the above-mentioned detailed structural features, that is, it does not mean that the present invention must rely on the above-mentioned detailed structural features to be implemented. Those skilled in the art should understand that any improvement of the present invention, equivalent replacement of the components selected by the present invention, addition of auxiliary components, selection of specific methods, etc., all fall within the protection scope and disclosure scope of the present invention.
Claims
1. A method for optimizing pipelines of a generator set, characterized in that: The method comprises: Constructing a drain device system for the steam-water pipeline of the generator set; the drain device system includes a bypass pipeline, a drain expansion device and a steam condensing device; According to the key layout parameters of the drain system, the first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and the second objective function of heat recovery are respectively constructed; The minimum value of the first objective function and the second objective function is solved to obtain the optimal layout of the hydrophobic device system.
2. The method according to claim 1, characterized in that The bypass pipeline is a medium-pressure bypass pipeline; Preferably, the bypass pipeline is connected to a drain point on the steam-water pipeline of the generator set; Preferably, the bypass pipe is provided with the hydrophobic expansion device and the steam condensing device in sequence.
3. The method according to claim 1 or 2, characterized in that: The key layout parameters include the length, diameter, number of elbows and elbow angles of the bypass pipeline, the height difference between the drain expansion device and the drain point, and the height difference between the condensing device and the drain point.
4. The method according to any one of claims 1 to 3, characterized in that: The water hammer pressure wave peak value is the amplitude of the maximum water hammer pressure wave; Preferably, the formula of the first objective function is as shown in formula (I): Among them, P max is the peak value of water hammer pressure wave, P0 is the initial pressure of the steam-water pipeline of the generator set, L is the length of the bypass pipeline (m), m is the number of bends in the bypass pipeline, θ i is the angle of the i-th elbow (°), R is the diameter of the bypass pipe (m), H1 is the height difference between the drain expansion device and the drain point (m), H2 is the height difference between the condenser and the drain point (m), ρ is the density of the working fluid (kg / m 3 ), v is the average velocity of the working fluid (m / s), f is the friction coefficient of the bypass pipe, K i is the local resistance coefficient of the i-th elbow, ΔP i is the pressure drop caused by the ith elbow (kPa), and w is the preset safety factor of the steam-water pipeline of the generator set; Preferably, the formula of the second objective function is as shown in formula (II): min Q(L,m,R)=k×(T1-T2)×πRL×(1+F×m)(II) Where Q(L,m,R) is the heat loss value, L is the length of the bypass pipe (m), m is the number of bends in the bypass pipe, R is the diameter of the bypass pipe (m), T1 is the temperature of the working fluid (℃), T2 is the temperature of the environment outside the steam-water pipe (℃), k is the thermal conductivity of the bypass pipe (W / (m 2 ·℃)), F is the heat loss factor caused by the bend.
5. The method according to any one of claims 1 to 4, characterized in that: The constraints of the first objective function and the second objective function are as follows: L<L max m≤m max 90°≤θ i ≤180° H1<H2 Among them, L max is the maximum bypass pipe length allowed by the trap system (m), G is the flow rate of the pipe (kg / h), ρ is the density of the working fluid (kg / m 3 ), v min is the minimum flow rate allowed in the bypass pipeline (m / s), v max is the maximum flow rate allowed in the bypass pipeline (m / s), m max The maximum number of elbows allowed in the trap system. is the minimum height difference between the drain expansion device and the drain point (m), is the maximum height difference between the drain expansion device and the drain point (m), is the minimum height difference between the condensing device and the drain point (m), It is the maximum height difference between the condensing device and the drain point (m).
6. The method according to any one of claims 1 to 5, characterized in that: Solving the minimum value of the first objective function and the second objective function includes: using an improved artificial bee colony algorithm to solve the minimum value of the first objective function and the second objective function; Preferably, the improved artificial bee colony algorithm comprises: (1) Initialize the nectar source related parameters and calculate the nectar source fitness, then sort the nectar source locations according to the fitness and archive them externally; (2) The hired bees generate the first nectar source during the neighborhood search, select the minimum nectar source between the first objective function value and the second objective function value, and then use the minimum nectar source to generate the second nectar source; (3) The spectator bees randomly select the second nectar source from the external archive for learning, and generate the third nectar source of m dimensions and the fourth nectar source of the remaining dimensions during the neighborhood search; (4) The third nectar source or the fourth nectar source is independently compared with the original nectar source, and one of the nectar sources is selected for external archiving; after each iteration, the external archive is updated, and the nectar sources in the external archive are non-dominated sorted; (5) Determine whether the number of iterations reaches the preset maximum number of iterations. If so, output the honey source in the external archive. If not, return to step (2) to continue execution.
7. The method according to claim 6, characterized in that Step (2) The first nectar source is determined using formula (III): Among them, v ij is the i-th first honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x kj is the kth initial nectar source of the jth dimension, is a random number between [-1,1], i∈{1,2,…,SN}, SN is the population size, k∈{1,2,…,SN}, j∈{1,2,…,D}, D is the number of dimensions, k is randomly generated and k≠i; Preferably, in step (2), the second nectar source is determined using formula (IV): Among them, v' ij is the i-th second honey source in the j-th dimension, x ij is the i-th initial nectar source of the j-th dimension, x best,j is the initial honey source with the minimum objective function value in the jth dimension, is a random number between [-1,1], r1∈{1,2,…,SN}, i∈{1,2,…,SD}, SN is the population size, j∈{1,2,…,D}, D is the number of dimensions, and g is the number of iterations; Preferably, the third nectar source in step (3) is determined using formula (V): Among them, v i,f(m) is the third nectar source of the i-th dimension f(m), x i,f(m) is the i-th nectar source of the f(m)th dimension generated by the second nectar source, To generate a random number between m [0,2], EA k1,f(m) is the i-th nectar source of the f(m)-th dimension in the external archive, f(m) is the first m integers randomly arranged from 1 to n, i∈{1,2,…,SN}, SN is the population size, k1∈{1,2,…,p}, p is the number of nectar sources in the external archive; Preferably, the fourth nectar source in step (3) is determined using formula (VI): in, is the fourth nectar source of the jth dimension, x ij is the i-th nectar source of the j-th dimension generated by the second nectar source, is a random number between [-1,1], EA lj is the lth honey source in the jth dimension in the external archive; Preferably, the original nectar source in step (4) includes an existing nectar source in an external archive; Preferably, the comparison method in step (4) includes: if the third nectar source or the fourth nectar source dominates the original nectar source, then the third nectar source or the fourth nectar source is added to the external archive; if the third nectar source or the fourth nectar source is dominated by the original nectar source, then the third nectar source and the fourth nectar source are not added to the external archive; if the third nectar source or the fourth nectar source and the original nectar source do not dominate each other, then one of them is randomly selected to be added to the external archive; Preferably, the control is performed according to a Pareto selection mechanism; Preferably, the non-dominated sorting in step (4) is performed according to a non-dominated sorting genetic algorithm.
8. A generator set pipeline optimization device, characterized in that: The device comprises: The first construction module is used to construct a drain device system for steam-water pipelines of a generator set; The second construction module is used to construct a first objective function of the peak value of the water hammer pressure wave of the steam-water pipeline of the generator set and a second objective function of the heat energy recovery according to the key layout parameters of the drain device system; The solution and optimization module is used to solve the minimum value of the first objective function and the second objective function to obtain the optimal layout of the hydrophobic device system.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the generator set pipeline optimization method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the generator set pipeline optimization method according to any one of claims 1 to 8 when executed.
