Optimization method of gas storage escape rate based on semi-continuous biogas station

By constructing gas storage volume and escape rate models in semi-continuous biogas field stations, and dynamically adjusting feedstocks using particle swarm optimization method, the problem of insufficient biogas escape rate is solved, and the stability of biogas supply and the reduction of greenhouse gas emissions are achieved.

CN118797975BActive Publication Date: 2024-11-22CHENGDU QIANJIA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411288309.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-11-22
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

There is a phenomenon of biogas escape in traditional biogas stations, resulting in unstable biogas supply, decreased utilization rate and increased greenhouse gas emissions.

Method used

Based on the gas storage data of semi-continuous biogas station, the current gas storage volume model and gas storage escape rate optimization model of the gas storage tank are constructed, and the optimal solution to the gas storage escape rate is obtained by using the particle swarm optimization method, and the feeding plan is dynamically adjusted to achieve Continuous optimization of gas storage.

Benefits of technology

By accurately obtaining instantaneous gas production and dynamically adjusting the feed volume, the biogas escape rate is reduced, the gas supply stability is ensured and greenhouse gas emissions are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797975B_ABST
    Figure CN118797975B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for optimizing gas storage escape rate based on a semi-continuous biogas station, which belongs to the technical field of gas storage escape rate control, and comprises the following steps: obtaining gas storage data of the semi-continuous biogas station; constructing a current gas storage capacity model of a gas storage tank based on the gas storage data of the semi-continuous biogas station; constructing a gas storage escape rate optimization model based on the current gas storage capacity model of the gas storage tank; obtaining an optimal solution of the gas storage escape rate based on the gas storage escape rate optimization model according to a particle swarm optimization method; continuously obtaining the optimal solution of the gas storage escape rate, and dynamically regulating the feeding amount of the semi-continuous biogas station at different times. The present invention solves the problem of insufficient optimization of biogas escape rate in a semi-continuous biogas station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of storage gas escape rate control, and in particular relates to a storage gas escape rate optimization method based on a semi-continuous biogas station. Background Art

[0002] As a distributed renewable energy source, biogas has a very high utilization rate in rural my country. As biogas can be combined with my country's agricultural production, it has become an important energy development direction. Traditional biogas stations are mainly composed of batching tanks, fermentation tanks, gas storage tanks, metering instruments, Internet of Things remote communication devices, etc. Among them, the gas storage tank, as a device connecting the gas production end and the user end, can dynamically store excess biogas, but due to the physical properties of biogas, there will always be biogas leakage. Biogas leakage can easily lead to unstable biogas supply and reduced utilization rate, and in severe cases, it can also lead to increased greenhouse gas emissions. Summary of the invention

[0003] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method for optimizing the gas storage escape rate based on a semi-continuous biogas station. On the basis of the gas storage data of the semi-continuous biogas station, a current gas storage capacity model of the gas tank and a gas storage escape rate optimization model are constructed. According to the particle swarm optimization method, the optimal solution for the gas storage escape rate is achieved, thereby providing a basis for continuously and dynamically adjusting the feeding plan of the semi-continuous biogas station, and solving the problem of insufficient optimization of the biogas escape rate of the semi-continuous biogas station.

[0004] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0005] The present invention provides a method for optimizing the gas storage escape rate based on a semi-continuous biogas station, comprising the following steps:

[0006] S1. Obtain gas storage data of semi-continuous biogas stations;

[0007] S2. Based on the gas storage data of the semi-continuous biogas station, a current gas storage capacity model of the gas storage tank is constructed;

[0008] S3. Based on the current gas storage capacity model of the gas tank, a gas storage escape rate optimization model is constructed;

[0009] S4. According to the particle swarm optimization method and based on the gas storage escape rate optimization model, the optimal solution of the gas storage escape rate is obtained;

[0010] S5. Continuously obtain the optimal solution for the storage gas escape rate and dynamically adjust the feed amount of the semi-continuous biogas station at different times.

[0011] The beneficial effects of the present invention are as follows: the present invention provides a method for optimizing the gas storage escape rate based on a semi-continuous biogas station, which constructs a current gas storage capacity model of the gas tank by acquiring the gas storage data of the semi-continuous biogas station, and can accurately obtain the instantaneous gas production corresponding to each feeding within the feeding window period; the present invention constructs a corresponding gas storage escape rate optimization model based on the current gas storage capacity data of the gas tank within the feeding window period, and according to the particle swarm optimization method, iteratively updates and optimizes the particles corresponding to the solution of the gas storage escape rate optimization model, and realizes the continuous and dynamic regulation of the feeding amount of the semi-continuous biogas station at different times according to the optimal solution of the gas storage escape rate, so as to reduce the gas storage capacity while ensuring normal gas supply, thereby realizing the overall optimization of the biogas escape rate.

[0012] Furthermore, the S2 comprises the following steps:

[0013] S21. Based on the gas storage data of the semi-continuous biogas station, a single gas production model of the semi-continuous biogas station is constructed;

[0014] The calculation expression of the single gas production model is as follows:

[0015] ,

[0016] Among them, B(t) represents the cumulative amount of biogas produced at time t, B 0 represents the final gas production under the given total feed amount and fermentation formula, e represents the exponential base constant, k represents the biogas degradation parameter, t represents the current time, t 0 represents the feeding time, c represents the shape factor of the S-curve, where c>1;

[0017] S22, obtaining an instantaneous gas production model by taking the derivative of the single gas production model with respect to time;

[0018] The calculation expression of the instantaneous gas production model is as follows:

[0019] ,

[0020] Wherein, b(t) represents the instantaneous gas production at time t in the semi-continuous feeding mode;

[0021] S23, setting a feeding window period, and obtaining an instantaneous gas production model within the feeding window period according to the instantaneous gas production model;

[0022] The calculation expression of the instantaneous gas production model during the feeding window period is as follows:

[0023] ,

[0024] in, represents the instantaneous gas production at time t in the semi-continuous feeding mode during the feeding window period, i represents the i-th feeding moment, n represents the total number of feeding moments, and x i Indicates that the maximum gas production is B 0 In the case of t i The proportion of feeding amount executed at the moment, ∈ represents belonging to, among which, when x i =1, corresponding to t i Fully feed at all times to achieve maximum gas production B 0 , when x i =0, corresponding to t i When no material is added at a certain moment, the corresponding gas production is 0, where i and n are positive integers;

[0025] S24, let the gas demand at time t during the feeding window be D(t), the gas volume of the gas storage tank be C(t), the gas storage escape rate be γ, and construct a current gas storage volume model of the gas storage tank based on the instantaneous gas production volume model during the feeding window;

[0026] The calculation expression of the current gas storage capacity model of the gas tank is as follows:

[0027] ,

[0028] Among them, C(t i ) represents the feeding window period t i The gas volume of the gas tank at any time, Indicates the semi-continuous feeding mode within the feeding window period. i The instantaneous gas production at time, D(t i ) represents the feeding window period t i The gas demand at the time, C(t i-1 ) represents the feeding window period t i-1 The gas volume in the gas tank at all times.

[0029] The beneficial effects of adopting the above further scheme are as follows: the present invention provides a method for constructing a current gas storage capacity model of a gas tank based on the gas storage data of a semi-continuous biogas station, and by deriving the single gas production model of the constructed semi-continuous biogas station, the instantaneous gas production in the semi-continuous feeding mode can be obtained. By setting a feeding window period and based on the instantaneous gas production at each moment within the feeding window period, the gas volume of the gas tank at each moment can be obtained, thereby providing a basis for reducing gas storage while satisfying gas supply conditions to achieve optimization of the gas storage escape rate.

[0030] Furthermore, the calculation expression of the gas storage escape rate optimization model is as follows:

[0031]

[0032] in, represents the optimization objective function value of the gas storage escape rate, min represents the minimum value, and st represents that C max Indicates the maximum gas storage capacity of the gas tank.

[0033] The beneficial effect of adopting the above further scheme is: the present invention provides a calculation method for the gas storage escape rate optimization model, by limiting the instantaneous biogas production at the current moment, the biogas storage capacity at the current moment, the gas storage capacity at the previous moment that must meet the gas consumption at the current moment after escape, the gas storage capacity not exceeding the upper and lower limits of the gas storage tank capacity, the moments considered by the gas storage escape rate optimization model, and the decision variables of the feed amount ratio, to achieve optimal control of the total amount of gas storage escape rate within the future feeding window period.

[0034] Furthermore, the S4 comprises the following steps:

[0035] S41. According to the particle swarm optimization method, based on the gas storage escape rate optimization model, the number of particles corresponding to the gas storage escape rate optimization solution is preset to be n, and the number of populations composed of each particle is l, and a particle population matrix is ​​obtained, wherein a gas storage escape rate optimization solution corresponds to the position of a particle, and during initialization, each particle is assigned a random real number (0,1);

[0036] The calculation expression of the particle population matrix is ​​as follows:

[0037] ,

[0038] Where X represents the particle population matrix, represents the particle in the pth row and qth column in the particle population matrix;

[0039] S42, setting the speed update model of each particle;

[0040] S43, updating the model according to the speed of each particle to obtain a particle position update model;

[0041] S44, iteratively updating and repairing the particle positions in the particle population matrix based on the velocity update model and the particle position update model;

[0042] S45, substituting the solutions corresponding to the particles after each round of iteration update and repair into the gas storage escape rate optimization model, obtaining the gas storage escape rate optimization objective function value corresponding to each solution, and updating each gas storage escape rate optimization solution based on the gas storage escape rate optimization objective function value corresponding to each solution, and obtaining the historical optimal solution and the global optimal solution;

[0043] S46, judging whether the number of iterative updates of the particles in the particle population matrix reaches a preset iterative update threshold, if so, taking the global optimal solution as the optimal solution for obtaining the gas storage escape rate, otherwise returning to S44.

[0044] The beneficial effect of adopting the above further scheme is: the present invention provides an iterative update of the particles corresponding to the solution of the gas storage escape rate optimization model according to the particle swarm optimization method, and after the number of iterative updates meets the preset iterative update threshold, the optimal solution of the gas storage escape rate is obtained, thereby minimizing the total amount of the gas storage escape rate.

[0045] Furthermore, the calculation expression of the speed update model in S42 is as follows:

[0046] ,

[0047] in, Indicates the population The particle in The velocity at the iteration, w represents the inertia weight of the particle, Indicates the population The particle in The speed at the iteration, c 1 Represents the historical optimal position learning factor of the particle, represents the first random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The historical optimal position in the iteration process, Indicates the population The particle in The position at the iteration, c 2 Represents the global optimal position learning factor of the particle, represents a second random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The global optimal position in the iteration process.

[0048] The beneficial effect of adopting the above further scheme is: the present invention provides a calculation method for the speed update model, which realizes learning the historical optimal position and the global optimal position of each particle update through the particle's historical optimal position learning degree factor and the particle's global optimal position learning degree factor, thereby indirectly improving the optimization efficiency of obtaining the particle's global optimal position.

[0049] Furthermore, the calculation expression of the particle position update model in S43 is as follows:

[0050] ,

[0051] in, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The speed at which the iterations are performed.

[0052] The beneficial effect of adopting the above further solution is: the present invention provides a calculation method for a particle position update model, which can obtain the position of each particle before the next round of update based on the updated particle velocity.

[0053] Further, the S44 comprises the following steps:

[0054] S441, based on the velocity update model and the particle position update model, iteratively update the particles in the particle population matrix to obtain the iterated value of each particle;

[0055] S442. If the value of the particle after iteration is greater than 1, let x pq The value after iteration is 1;

[0056] S443. If the value of the particle after iteration is less than 0, let x pq The value after iteration is 0;

[0057] S444. If the value of the particle after iteration is between 0 and 1, the required gas consumption corresponding to each particle in the current iteration and the gas volume of the gas tank in the previous iteration are calculated respectively, wherein the current iteration is any iteration between the 2nd and nth iterations;

[0058] S445, judging whether the required gas consumption corresponding to each particle in the current iteration and the gas volume of the gas tank in the previous iteration meet the particle repair condition, if so, proceed to S446, otherwise proceed to S45;

[0059] The calculation expression of the particle repair condition is as follows:

[0060] ;

[0061] S446, uniformly randomly select an integer j∈[1,i], and satisfy the maximum gas production B 0 In the case of j The proportion of feeding amount executed at each moment x j <1, assign 1 to x j , to optimize t j The material is fully charged at the moment and the process proceeds to S45.

[0062] The beneficial effect of adopting the above further scheme is: the present invention provides a method for iteratively updating and repairing the particle positions in the particle population matrix based on the velocity update model and the particle position update model, thereby realizing the iterative update of the particle positions and repairing the particles that do not meet the condition of sufficient gas supply to ensure the quality of the optimization of the gas storage escape rate.

[0063] Other advantages of the present invention will be analyzed in more detail in subsequent embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0065] Figure 1 The present invention is a flowchart of the steps of a method for optimizing the gas storage escape rate based on a semi-continuous biogas station in an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.

[0067] like Figure 1 As shown, in one embodiment of the present invention, the present invention provides a method for optimizing the gas storage escape rate based on a semi-continuous biogas station, comprising the following steps:

[0068] S1. Obtain gas storage data of semi-continuous biogas stations;

[0069] In this embodiment, the gas storage data of the semi-continuous biogas station includes the cumulative biogas produced at different times, the total amount of feed and the final gas production under the fermentation formula;

[0070] S2. Based on the gas storage data of the semi-continuous biogas station, a current gas storage capacity model of the gas storage tank is constructed;

[0071] The S2 comprises the following steps:

[0072] S21. Based on the gas storage data of the semi-continuous biogas station, a single gas production model of the semi-continuous biogas station is constructed;

[0073] The calculation expression of the single gas production model is as follows:

[0074] ,

[0075] Among them, B(t) represents the cumulative amount of biogas produced at time t, B 0 represents the final gas production under the given total feed amount and fermentation formula, e represents the exponential base constant, k represents the biogas degradation parameter, t represents the current time, t 0 represents the feeding time, c represents the shape factor of the S-curve, where c>1;

[0076] S22, obtaining an instantaneous gas production model by taking the derivative of the single gas production model with respect to time;

[0077] The calculation expression of the instantaneous gas production model is as follows:

[0078] ,

[0079] Wherein, b(t) represents the instantaneous gas production at time t in the semi-continuous feeding mode;

[0080] S23, setting a feeding window period, and obtaining an instantaneous gas production model within the feeding window period according to the instantaneous gas production model; in this embodiment, the feeding window period is set to 10 days, and several feedings are performed every day during the feeding window period. The feeding situation each time is controllable, and not every feeding can make the final gas production reach B 0 , but each time the material is added, the final gas production can be between 0 and B 0 between.

[0081] The calculation expression of the instantaneous gas production model during the feeding window period is as follows:

[0082] ,

[0083] in, represents the instantaneous gas production at time t in the semi-continuous feeding mode during the feeding window period, i represents the i-th feeding moment, n represents the total number of feeding moments, and x i Indicates that the maximum gas production is B 0 In the case of t i The proportion of feeding amount executed at the moment, ∈ represents belonging to, among which, when x i =1, corresponding to t i Fully feed at all times to achieve maximum gas production B 0 , when x i=0, corresponding to t i When no material is added at a certain moment, the corresponding gas production is 0, where i and n are positive integers;

[0084] S24, let the gas demand at time t during the feeding window be D(t), the gas volume of the gas storage tank be C(t), the gas storage escape rate be γ, and construct a current gas storage volume model of the gas storage tank based on the instantaneous gas production volume model during the feeding window;

[0085] The calculation expression of the current gas storage capacity model of the gas tank is as follows:

[0086] ,

[0087] Among them, C(t i ) represents the feeding window period t i The gas volume of the gas tank at any time, Indicates the semi-continuous feeding mode within the feeding window period. i The instantaneous gas production at time, D(t i ) represents the feeding window period t i The gas demand at the time, C(t i-1 ) represents the feeding window period t i-1 The gas volume in the gas tank at all times.

[0088] S3. Based on the current gas storage capacity model of the gas tank, a gas storage escape rate optimization model is constructed;

[0089] The calculation expression of the gas storage escape rate optimization model is as follows:

[0090]

[0091] in, represents the optimization objective function value of the gas storage escape rate, min represents the minimum value, and st represents that C max Indicates the maximum gas storage capacity of the gas tank.

[0092] In this embodiment, by limiting the instantaneous biogas production at time t, the biogas storage capacity at time t, i-1 The gas storage volume at the moment must satisfy t after escaping i The gas consumption at the moment, the gas storage volume not exceeding the upper and lower limits of the gas tank capacity, the moment considered by the gas storage escape rate optimization model, and the decision variables of the feed ratio can realize the optimal control of the total amount of gas storage escape rate in the next n days.

[0093] S4. According to the particle swarm optimization method and based on the gas storage escape rate optimization model, the optimal solution of the gas storage escape rate is obtained;

[0094] The S4 comprises the following steps:

[0095] S41. According to the particle swarm optimization method, based on the gas storage escape rate optimization model, the number of particles corresponding to the gas storage escape rate optimization solution is preset to be n, and the number of populations composed of each particle is l, and a particle population matrix is ​​obtained, wherein a gas storage escape rate optimization solution corresponds to the position of a particle, and during initialization, each particle is assigned a random real number (0,1);

[0096] The calculation expression of the particle population matrix is ​​as follows:

[0097]

[0098] Where X represents the particle population matrix, represents the particle in the pth row and qth column in the particle population matrix;

[0099] S42, setting the speed update model of each particle;

[0100] The calculation expression of the speed update model in S42 is as follows:

[0101] ,

[0102] in, Indicates the population The particle in The velocity at the iteration, w represents the inertia weight of the particle, Indicates the population The particle in The speed at the iteration, c 1 Represents the historical optimal position learning factor of the particle, represents the first random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The historical optimal position in the iteration process, Indicates the population The particle in The position at the iteration, c 2 Represents the global optimal position learning factor of the particle, represents a second random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The global optimal position in the iteration process.

[0103] S43, updating the model according to the speed of each particle to obtain a particle position update model; according to the particle position update model, the position of each particle before the next round of update can be obtained.

[0104] The calculation expression of the particle position update model in S43 is as follows:

[0105] ,

[0106] in, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The speed at which the iterations are performed.

[0107] S44, iteratively updating and repairing the particle positions in the particle population matrix based on the velocity update model and the particle position update model;

[0108] The S44 comprises the following steps:

[0109] S441, based on the velocity update model and the particle position update model, iteratively update the particles in the particle population matrix to obtain the iterated value of each particle;

[0110] S442. If the value of the particle after iteration is greater than 1, let x pq The value after iteration is 1;

[0111] S443. If the value of the particle after iteration is less than 0, let x pq The value after iteration is 0;

[0112] S444. If the value of the particle after iteration is between 0 and 1, the required gas consumption corresponding to each particle in the current iteration and the gas volume of the gas tank in the previous iteration are calculated respectively, wherein the current iteration is any iteration between the 2nd and nth iterations;

[0113] S445, judging whether the required gas consumption corresponding to each particle in the current iteration and the gas volume of the gas tank in the previous iteration meet the particle repair condition, if so, proceed to S446, otherwise proceed to S45;

[0114] The calculation expression of the particle repair condition is as follows:

[0115] ;

[0116] In this embodiment, the particle repair condition is that when the initial gas production is low and is insufficient for subsequent use, the particles are repaired to ensure that they can still be supplied for normal use when the initial gas production is low, and the optimization of gas storage escape is not excessive.

[0117] S446, uniformly randomly select an integer j∈[1,i], and satisfy the maximum gas production B 0 In the case of j The proportion of feeding amount executed at each moment x j <1, assign 1 to x j , to optimize t j The material is fully charged at the moment and the process proceeds to S45.

[0118] In this embodiment, the method for iteratively updating and repairing the particle positions in the particle population matrix based on the velocity update model and the particle position update model is provided. Since n is a positive integer, its time complexity is a constant O(n 2 l ), it can be seen that the time complexity is only linearly related to the number of particle populations.

[0119] S45, substituting the solutions corresponding to the particles after each round of iteration update and repair into the gas storage escape rate optimization model, obtaining the gas storage escape rate optimization objective function value corresponding to each solution, and updating each gas storage escape rate optimization solution based on the gas storage escape rate optimization objective function value corresponding to each solution, and obtaining the historical optimal solution and the global optimal solution;

[0120] S46, judging whether the number of iterative updates of the particles in the particle population matrix reaches a preset iterative update threshold, if so, taking the global optimal solution as the optimal solution for obtaining the gas storage escape rate, otherwise returning to S44.

[0121] S5. Continuously obtain the optimal solution for the storage gas escape rate and dynamically adjust the feed amount of the semi-continuous biogas station at different times.

[0122] The present invention optimizes the gas storage escape rate of the semi-continuous biogas station by dynamically adjusting the feeding amount of the semi-continuous biogas station at different times to ensure normal gas supply while reducing the gas storage amount.

[0123] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for optimizing gas storage escape rate based on a semi-continuous biogas station, characterized in that: The steps include: S1. Obtain gas storage data of semi-continuous biogas stations; S2. Based on the gas storage data of the semi-continuous biogas station, a current gas storage capacity model of the gas storage tank is constructed; The S2 comprises the following steps: S21. Based on the gas storage data of the semi-continuous biogas station, a single gas production model of the semi-continuous biogas station is constructed; The calculation expression of the single gas production model is as follows: , in, B ( t )express t The cumulative amount of biogas produced at any time, B 0 means the final gas production under the given total feed amount and fermentation formula. e represents the exponential basis constant, k represents the biogas degradation parameters, t Indicates the current time. t 0 Indicates the feeding time, c represents the shape factor of the S-curve, where c >1; S22, obtaining an instantaneous gas production model by taking the derivative of the single gas production model with respect to time; The calculation expression of the instantaneous gas production model is as follows: , in, b ( t ) indicates semi-continuous feeding mode t The instantaneous gas production at the time; S23, setting a feeding window period, and obtaining an instantaneous gas production model within the feeding window period according to the instantaneous gas production model; The calculation expression of the instantaneous gas production model during the feeding window period is as follows: , in, Indicates that the semi-continuous feeding mode is used during the feeding window period. t The instantaneous gas production at the time, i Indicates i A feeding moment, n Indicates the total number of feeding times, x i The maximum gas production is B In the case of 0 t i The proportion of feeding amount executed at the moment, ∈ represents belonging to, among which, when x i =1, corresponding to t i Fully feed at all times to achieve maximum gas production B 0 ,when x i =0, corresponding to t i When no material is added at any time, the corresponding gas production is 0, where: i , n is a positive integer; S24, within the feeding window period t The gas demand at the moment is D ( t ), the gas volume of the gas tank is C ( t ), the gas storage escape rate is γ, and the current gas storage capacity model of the gas storage tank is constructed according to the instantaneous gas production model during the feeding window period; The calculation expression of the current gas storage capacity model of the gas tank is as follows: , in, C ( t i ) indicates the feeding window period t i The gas volume of the gas tank at any time, Indicates that the semi-continuous feeding mode is used during the feeding window period. t i The instantaneous gas production at the time, D ( t i ) indicates the feeding window period t i The gas demand at any time, C ( t i-1 ) indicates the feeding window period t i-1 The gas volume of the gas tank at any time; S3. Based on the current gas storage capacity model of the gas tank, a gas storage escape rate optimization model is constructed; The calculation expression of the gas storage escape rate optimization model is as follows: in, represents the optimization objective function value of the gas storage escape rate, min represents the minimum value, and st represents that, C max Indicates the maximum gas storage capacity of the gas tank; S4. According to the particle swarm optimization method and based on the gas storage escape rate optimization model, the optimal solution of the gas storage escape rate is obtained; S5. Continuously obtain the optimal solution for the storage gas escape rate and dynamically adjust the feed amount of the semi-continuous biogas station at different times.

2. The method for optimizing gas storage escape rate based on a semi-continuous biogas station according to claim 1, characterized in that: The S4 comprises the following steps: S41. According to the particle swarm optimization method, based on the gas storage escape rate optimization model, the number of particles corresponding to the solution of the preset gas storage escape rate optimization is n , and the number of populations composed of each particle is l , and obtain the particle population matrix, where a solution to the optimization of the gas storage escape rate corresponds to the position of a particle. During initialization, each particle is assigned a random real number (0,1); The calculation expression of the particle population matrix is ​​as follows: , in, X represents the particle population matrix, Represents the particle population matrix p Line q Column of particles; S42, setting the speed update model of each particle; S43, updating the model according to the speed of each particle to obtain a particle position update model; S44, iteratively updating and repairing the particle positions in the particle population matrix based on the velocity update model and the particle position update model; S45, substituting the solutions corresponding to the particles after each round of iteration update and repair into the gas storage escape rate optimization model, obtaining the gas storage escape rate optimization objective function value corresponding to each solution, and updating each gas storage escape rate optimization solution based on the gas storage escape rate optimization objective function value corresponding to each solution, and obtaining the historical optimal solution and the global optimal solution; S46, judging whether the number of iterative updates of the particles in the particle population matrix reaches a preset iterative update threshold, if so, taking the global optimal solution as the optimal solution for obtaining the gas storage escape rate, otherwise returning to S44.

3. The method for optimizing gas storage escape rate based on a semi-continuous biogas station according to claim 2, characterized in that: The calculation expression of the speed update model in S42 is as follows: , in, Indicates the population The particle in The speed at the iteration, w represents the inertia weight of the particle, Indicates the population The particle in The speed at the iteration, c 1 represents the particle's historical optimal position learning factor, represents the first random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The historical optimal position in the iteration process, Indicates the population The particle in The position at the iteration, c 2 represents the global optimal position learning factor of the particle, represents a second random real number between 0 and 1 that follows a uniform distribution, Indicates the population Particles from the beginning to the The global optimal position in the iteration process.

4. The method for optimizing gas storage escape rate based on a semi-continuous biogas station according to claim 3, characterized in that: The calculation expression of the particle position update model in S43 is as follows: , in, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The position at the iteration, Indicates the population The particle in The speed at which the iterations are performed.

5. The method for optimizing gas storage escape rate based on a semi-continuous biogas station according to claim 2, characterized in that: The S44 comprises the following steps: S441, based on the velocity update model and the particle position update model, iteratively update the particles in the particle population matrix to obtain the iterated value of each particle; S442. If the value of the particle after iteration is greater than 1, then x pq The value after iteration is 1; S443. If the value of the particle after iteration is less than 0, then x pq The value after iteration is 0; S444. If the value of the particle after iteration is between 0 and 1, the required gas consumption of each particle in the current iteration and the gas volume of the gas tank in the previous iteration are calculated respectively. The current iteration is from the 2nd to the 1st iteration. n Any iteration between iterations; S445, judging whether the required gas consumption corresponding to each particle in the current iteration and the gas volume of the gas tank in the previous iteration meet the particle repair condition, if so, proceed to S446, otherwise proceed to S45; The calculation expression of the particle repair condition is as follows: ; S446, uniform random selection of integers j ∈[1, i ], and meet the maximum gas production of B In the case of 0 t j The proportion of feeding amount executed at any time x j <1, assign 1 to x j , to optimize t j The material is fully charged at the moment and the process proceeds to S45.

Citation Information

Patent Citations

  • SCR (selective catalytic reduction) based ship exhaust gas denitration control method

    CN109985523A

  • Optimization method for ammonia escape of coal slime fluidized bed boiler denitration system

    CN111460726A

  • Production, storage and supply linkage adjusting and optimizing method for semi-continuous biogas station

    CN116090358A