Thermoelectric load distribution method for complex combined heat and power generation system
By introducing Levy flight and hybrid calculations into the particle swarm optimization algorithm, the problems of low computational efficiency and unstable results in the thermal and electric load distribution of multi-unit cogeneration systems are solved, the load adjustment capability and optimization accuracy of the system are improved, and the Low coal consumption and efficient load distribution.
Patent Information
- Application Number
- CN202410691071.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-06
AI Technical Summary
The existing particle swarm optimization algorithm has low computational efficiency and unstable results in the optimization of heat and power load distribution in multi-unit cogeneration systems, making it difficult to effectively adjust external load changes.
A method based on Levi's flight-hybrid particle swarm algorithm is adopted. By introducing Levi's flight strategy to update particle positions and increase hybrid calculations, the solution efficiency and stability of the particle swarm algorithm are optimized, and the accuracy and speed of load distribution are improved.
On the basis of maintaining low coal consumption, it is possible to improve the system's ability to adjust to external load changes, simplify the calculation process, reduce the dispatching cost of complex combined heat and power systems, and obtain better optimization results.
Smart Images

Figure CN118607709A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of load distribution optimization algorithms for cogeneration units, and in particular relates to a method for distributing heat and power loads in a complex cogeneration system. Background Art
[0002] The rapid development of new energy power generation such as wind power and solar power is accelerating the transformation of the energy structure, but its intermittent and volatile characteristics bring huge challenges to the power system. To this end, cogeneration power plants need to have good load regulation capabilities to absorb renewable energy power generation and ensure the stable operation of the power grid. Due to the thermal and electric coupling characteristics of cogeneration units, electrical load fluctuations will affect the heating capacity of power plants, and thus affect the overall energy consumption level. Optimizing the distribution of thermal power loads can improve the power plant's ability to adjust to changes in external loads, and achieve load changes to meet external demand while maintaining a low energy consumption level.
[0003] The particle swarm optimization algorithm is easy to implement, converges quickly, and requires little memory, showing great superiority in global optimization and engineering problems. However, the optimization problem of thermal load distribution in a multi-unit cogeneration system has many constraints and a complex solution process. The particle swarm optimization algorithm has the problems of long running time and unstable calculation results, making it difficult to obtain good optimization results. Summary of the invention
[0004] In order to improve the computational efficiency and stability of the calculation results of the particle swarm optimization algorithm when solving the load distribution problem of multiple units in a thermal power plant, the purpose of the present invention is to provide a thermal power load distribution method for a complex cogeneration system based on the Levy flight-hybridization particle swarm algorithm, so as to achieve load optimization distribution of the complex cogeneration system and improve the system's ability to adjust to external load changes.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A method for distributing heat and power loads in a complex cogeneration system, the method comprising the following specific steps:
[0007] Step 1: Conduct system analysis of CHP units supplying multiple heat loads;
[0008] Step 2: Determine the constraints for thermal and electric load distribution among multiple units;
[0009] The thermal power load of a multi-unit cogeneration power plant must maintain a balance between supply and demand, that is:
[0010]
[0011]
[0012]
[0013] Among them, P, Q H , Q L They are the total electricity load, total high-pressure heating load, and total low-pressure heating load of a multi-unit cogeneration power plant; P i , Q Hi , Q Li are the electrical load, high-pressure heating load, and low-pressure heating load of the i-th unit respectively;
[0014] The operation of the double-extraction cogeneration unit is limited by the coupling relationship between the main steam flow, the electrical load and the two thermal loads, which can be expressed as follows:
[0015] F(D 0i , P i , Q Hi , Q Li )=0
[0016] Among them, D 0i is the main steam flow rate of the i-th unit;
[0017] The operating area of the unit is a three-dimensional polyhedron, and the five boundary surfaces are: the maximum main steam flow boundary surface, the minimum main steam flow boundary surface, the high-pressure heating load boundary surface, the low-pressure heating load boundary surface, and the maximum extractable steam volume boundary surface;
[0018] There is a certain adjustment range for the electrical load and thermal load of a single unit:
[0019] P i,min ≤P i ≤P i,max
[0020] Q Hi,min ≤Q Hi ≤Q Hi,max
[0021] Q Li,min ≤Q Li ≤Q Li,max
[0022] Among them, P i,max , P i,min , Q Hi,max , Q Hi,min , Q Li,max , Q Li,min They are the upper and lower limits of the electric load of the i-th unit, the upper and lower limits of the high-pressure heating load, and the upper and lower limits of the low-pressure heating load;
[0023] Step 3: Determine the optimization target of thermal power load distribution of multiple units;
[0024] The total standard coal consumption is selected as the optimization target. According to the system analysis in step 1, the relationship between the standard coal consumption and the electrical load and thermal load under the variable operating conditions of the unit is obtained:
[0025] B i =f(P i , Q Hi , Q Li )
[0026] Total standard coal consumption of a multi-unit cogeneration power plant:
[0027]
[0028] Among them, B is the total standard coal consumption of a multi-unit cogeneration power plant; B i is the standard coal consumption of the i-th unit;
[0029] Step 4: Establish a Levy flight-hybridization particle swarm algorithm model to improve the efficiency and stability of the algorithm in solving the thermal power load distribution problem;
[0030] For the optimization problem of X variables, a particle swarm consisting of N particles is defined. Each particle is randomly assigned a position as a candidate solution in the X-dimensional target search space. Each candidate solution corresponds to a fitness value. The optimal solution and the minimum fitness value are found through iterative calculation. In each iteration, the particle tracks the position coordinates corresponding to the two extreme values to update the position x i (t) and speed v i (t): The first is the optimal solution found by the particle itself, that is, the individual optimal value Corresponding particle position The other is the optimal solution found by the entire group, that is, the group optimal value g best (t), corresponding to the particle position x g (t);
[0031] The movement of the particle position is affected by the current speed, self-memory and group experience. At the t+1th iteration, the particle updates its position and speed according to the following formula:
[0032]
[0033] x i (t+1)=x i (t)+v i (t+1)
[0034] In the formula, v i (t) and x i (t) are the velocity and position of the i-th particle at the t-th iteration; is the particle position corresponding to the individual optimal value of the i-th particle in the t-th iteration; x g(t) is the particle position corresponding to the optimal value of the N particle group in the tth iteration process; c1 and c2 are the individual learning factor and the group learning factor respectively; r1 and r2 are uniform random numbers in the range of [0,1]; w is the inertia weight, which is used to control the influence of the speed before update on the speed after update;
[0035] The linear decreasing inertia weight method is used to control the particle velocity and balance the global and local search capabilities of the algorithm; the linear weight change formula is:
[0036]
[0037] Where T is the maximum number of iterations, t is the current number of iterations, and w max 、w min are the maximum and minimum inertia weights respectively;
[0038] The random distribution of Levy flight is used to enable particles to have the ability to jump long distances, avoid the loss of position diversity, and enhance the global search ability of the algorithm; the new position of the particle updated using the Levy flight strategy is:
[0039] Lx i (t) = x i (t)+sv i (t)
[0040] In the formula, Lx i (t) represents the position of the i-th particle updated using the Levy flight strategy at the t-th iteration, and s follows the Levy distribution; a simple form of the Levy distribution is expressed as:
[0041]
[0042] Where β is the stability index, 0<β<2; u and ν are the particle flight step length and direction, respectively, and u and ν obey the normal distribution.
[0043] In each iteration, a specified number of particles are selected according to the hybridization rate and randomly hybridized in pairs in the hybridization pool. The offspring particles obtain useful information from the parent particles for focused search, which enhances the convergence speed and accuracy of the algorithm. The offspring positions are obtained by crossing the parent positions:
[0044] n1(x)=p×m1(x)+(1-p)×m2(x)
[0045] n2(x)=p×m2(x)+(1-p)×m1(x)
[0046] In the formula, m1(x) and m2(x) are the positions of the two parent particles, n1(x) and n2(x) are the positions of the two child particles, and p is a random number between 0 and 1;
[0047] Offspring speed:
[0048]
[0049]
[0050] In the formula, m1(v) and m2(v) are the velocities of the two parent particles, and n1(v) and n2(v) are the velocities of the two child particles;
[0051] In summary, the Levy flight is introduced into the standard particle swarm algorithm to update the particle position, and the hybrid calculation is added to optimize the position and speed of some particles to form the Levy flight-hybridization particle swarm algorithm model;
[0052] Step 5: Use the Levy flight-hybridization particle swarm algorithm model established in step 4 to perform load economic allocation on the double-extraction cogeneration system;
[0053] Taking the electrical load, high-pressure heating load and low-pressure heating load of each unit as optimization variables, the number of adaptive optimization variables X is selected to form the X-dimensional position coordinates of the particles, reflecting the current thermal load status of each unit. The particles seek the optimal position in the X-dimensional search space. The optimization process is:
[0054] (1) Select the number of adapted particles N, randomly initialize the position and velocity of each particle according to the constraints in step 2, that is, randomly initialize each optimization variable within the restricted range, and determine the adapted initial velocity of the particle;
[0055] (2) According to the objective function in step 3, the coal consumption of the whole plant under the current load distribution state is calculated as the fitness value of each particle, and it is determined whether the current load state meets the constraint conditions in step 2. If the constraint conditions are not met, a larger fitness value is assigned to the particle to eliminate the particle. If the constraint conditions are met, the fitness value calculated by the objective function is not changed.
[0056] (3) Compare the fitness value of the particle in the current position state with the fitness value in the previous position state to obtain the individual optimal value Corresponding particle position Compare Take the minimum value to get the optimal value g of the group best (t), corresponding to the particle position x g (t);
[0057] (4) Update the particle inertia weight according to the current iteration number t to control the running speed;
[0058] (5) Determine the particle movement step size based on the random distribution of Levy flight in step 4 and update the particle position x i (t);
[0059] (6) Update the particle position x according to the position and velocity calculation formula in step 4 i (t) and speed v i (t);
[0060] (7) According to the hybridization calculation in step 4, a certain number of particles are selected to enter the hybridization pool for pairwise hybridization to generate progeny particles with the same number but different position and velocity characteristics;
[0061] (8) If the termination condition is met, the search stops and the optimal value g of the group after T iterations is output. best (t) and the corresponding particle position x g (t), obtain the electrical load, high-pressure heating load and low-pressure heating load borne by each unit, otherwise return to step (2) to calculate the particle fitness value in the new round of iteration process and update the individual optimal value and the corresponding position And the group optimal value g best (t) and the corresponding position x g (t), and continue to iterate until the condition is met, and the termination condition is reaching the maximum number of iterations T.
[0062] The maximum main steam flow boundary surface and the minimum main steam flow boundary surface in step 2 are determined according to the boiler load characteristics of the double-extraction cogeneration unit.
[0063] The maximum extractable steam volume boundary surface in step 2 is determined by the high back pressure operation characteristics of the double-extraction cogeneration unit. At this time, the electrical load and the thermal load are subject to the same limiting factor, and the maximum extractable steam volume is expressed on the same boundary surface.
[0064] The relationship between standard coal consumption and electric load and heat load in step 3 is obtained by least squares fitting. The specific functional relationship is:
[0065] B i =a1+a2P i +a3Q Hi +a4Q Li +a5P i Q Hi +a6P i Q Li +a7Q Hi Q Li +a8P i 2 +a9Q Hi 2 +a 10 Q Li 2
[0066] In the formula, a1, a2, ..., a10 are the fitting coefficients respectively.
[0067] In step 4, the larger the number of particles N and the number of iterations T, the better the algorithm accuracy, but the longer the running time. Appropriate values should be selected according to the actual application problem. After comparative calculation, it is determined that the number of particles N=100 and the number of iterations T=300.
[0068] The parameters in step 4 are set as: individual learning factor c1=1.5, group learning factor c2=1.5; maximum inertia weight w max =0.8, minimum inertia weight w min =0.4; stability index β=1.5; the hybridization pool size ratio is 0.1, and the number of particles entering the hybridization pool and randomly hybridizing with each other is 0.1N.
[0069] 7. The method for distributing heat and power loads in a complex cogeneration system according to claim 1, characterized in that the normal distribution in step 4 σ v =1, that is, v obeys the normal distribution v~N(0,1); normal distribution σ u satisfy:
[0070]
[0071] Where Γ is the standard Gamma function.
[0072] The hybridization process of each iteration in step 5 only changes the position and speed of the hybridized particles, and does not change the fitness value of the particles. The individual optimal value p in each iteration is i best (t) and the optimal value of the group g best (t) also remains unchanged.
[0073] Advantages of the present invention
[0074] (1) The present invention only requires the external thermal power load demand to achieve load optimization distribution of the double-extraction cogeneration system, so that the system can maintain a low coal consumption level on the basis of safe and stable operation, and improve the system's ability to adjust to changes in external loads;
[0075] (2) A mathematical model is used to describe the variable operating conditions of the complex cogeneration system. The coal consumption can be quickly calculated based on the unit's electrical load, high-pressure heating load, and low-pressure heating load, which greatly simplifies the calculation process and reduces the dispatching cost of the complex cogeneration system.
[0076] (3) The Levy flight and hybridization calculation are introduced to solve the problems of long algorithm running time and unstable calculation results when the particle swarm optimization algorithm is applied to the optimal allocation of thermal and electric loads in the double-extraction cogeneration system, thereby obtaining better optimization results. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 The figure is a flow chart of the method of the present invention.
[0078] Figure 2 This is a schematic diagram of a double-extraction cogeneration unit.
[0079] Figure 3 This is a diagram of the heating system for a double-extraction CHP power plant.
[0080] Figure 4 This is the load dispatch flow chart of the double-extraction cogeneration system based on the Levy flight-hybridization particle swarm algorithm.
[0081] Figure 5 This is the convergence process diagram of the particle swarm algorithm.
[0082] Figure 6 This is a box plot of the particle swarm algorithm 100 test results. DETAILED DESCRIPTION
[0083] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0084] like Figure 1 As shown, the present invention is a method for distributing heat and power loads in a complex cogeneration system, and the method for distributing heat and power loads in a complex cogeneration system comprises the following specific steps:
[0085] Step 1: Conduct system analysis of CHP units supplying multiple heat loads;
[0086] The schematic diagram of the double extraction cogeneration unit is as follows Figure 2 As shown in the figure, there are two types of external heating steam, high pressure and low pressure, to meet the needs of different heat users. The temperature and pressure of high pressure heating steam are 453℃ and 5MPa respectively, and the temperature and pressure of low pressure heating steam are 330℃ and 1.8MPa respectively. Figure 3 As shown, electrical load and two thermal loads at different pressures are supplied simultaneously.
[0087] Step 2: Determine the constraints for thermal and electric load distribution among multiple units;
[0088] The thermal power load of a multi-unit cogeneration power plant must maintain a balance between supply and demand, that is:
[0089]
[0090]
[0091]
[0092] Among them, P, Q H , Q L They are the total electricity load, total high-pressure heating load, and total low-pressure heating load of a multi-unit cogeneration power plant; P i , Q Hi , Q Li They are the electrical load, high-pressure heating load and low-pressure heating load of the i-th unit respectively.
[0093] The operation of the double-extraction cogeneration unit is limited by the coupling relationship between the main steam flow, the electrical load and the two thermal loads, which can be expressed by the equation:
[0094] F(D 0i , P i , Q Hi , Q Li )=0
[0095] Among them, D 0i is the main steam flow rate of the i-th unit.
[0096] The operating area of the unit is a three-dimensional polyhedron, and the five boundary surfaces are: the maximum main steam flow boundary surface, the minimum main steam flow boundary surface, the high-pressure heating load boundary surface only, the low-pressure heating load boundary surface only and the maximum extractable steam volume boundary surface.
[0097] There is a certain adjustment range for the electrical load and thermal load of a single unit:
[0098] P i,min ≤P i ≤P i,max
[0099] Q Hi,min ≤Q Hi ≤Q Hi,max
[0100] Q Li,min ≤Q Li ≤Q Li,max
[0101] Among them, P i,max , P i,min , Q Hi,max , Q Hi,min , Q Hi,max , Q Li,max , Q Li,min They are respectively the upper and lower limits of the electric load of the i-th unit, the upper and lower limits of the high-pressure heating load, and the upper and lower limits of the low-pressure heating load.
[0102] Step 3: Determine the optimization target of thermal power load distribution of multiple units;
[0103] Select the total standard coal consumption as the optimization target. According to the system analysis in step 1, the relationship between the standard coal consumption and the electrical load and thermal load under variable operating conditions of the unit can be obtained:
[0104] B i =f(P i , Q Hi , Q Li )
[0105] Total standard coal consumption of a multi-unit cogeneration power plant:
[0106]
[0107] Among them, B is the total standard coal consumption of a multi-unit cogeneration power plant; B i is the standard coal consumption of the ith unit.
[0108] Step 4: Establish a Levy flight-hybridization particle swarm algorithm model to improve the efficiency and stability of the algorithm in solving the thermal power load distribution problem;
[0109] For the optimization problem of X variables, a particle swarm consisting of N particles is defined. Each particle is randomly assigned a position in the X-dimensional target search space as a candidate solution. Each candidate solution corresponds to a fitness value. The optimal solution and the minimum fitness value are found through iterative calculation. In each iteration, the particle tracks the position coordinates corresponding to the two extreme values to update the position x i (t) and speed v i (t): The first is the optimal solution found by the particle itself, that is, the individual optimal value Corresponding particle position The other is the optimal solution found by the entire group, that is, the group optimal value g best (t), corresponding to the particle position x g (t).
[0110] The movement of the particle position is affected by the current speed, self-memory and group experience. At the t+1th iteration, the particle updates its position and speed according to the following formula:
[0111]
[0112] x i (t+1)=x i (t)+v i (t+1)
[0113] In the formula, v i (t) and x i (t) are the velocity and position of the i-th particle at the t-th iteration; is the particle position corresponding to the individual optimal value of the i-th particle in the t-th iteration; x g (t) is the particle position corresponding to the optimal value of the N particle group in the tth iteration process; c1 and c2 are the individual learning factor and the group learning factor respectively; r1 and r2 are uniform random numbers in the range of [0,1]; w is the inertia weight, which is used to control the influence of the speed before update on the speed after update.
[0114] The linear decreasing inertia weight method is used to control the particle velocity and balance the global and local search capabilities of the algorithm. The linear weight change formula is:
[0115]
[0116] Where T is the maximum number of iterations, t is the current number of iterations, and w max 、w min are the maximum and minimum inertia weights respectively.
[0117] The random distribution of Levy flight enables particles to have the ability to jump long distances, avoids the loss of position diversity, and enhances the global search ability of the algorithm. The new position of the particle updated using the Levy flight strategy is:
[0118] Lx i (t) = x i (t)+sv i (t)
[0119] In the formula, Lx i (t) represents the position of the i-th particle updated using the Levy flight strategy at the t-th iteration, and s follows the Levy distribution. A simple form of the Levy distribution can be expressed as:
[0120]
[0121] Where β is the stability index, 0<β<2; u and ν are the particle flight step length and direction, respectively, and u and ν obey the normal distribution.
[0122] In each iteration, a specified number of particles are selected according to the hybridization rate and randomly hybridized in pairs in the hybridization pool. The offspring particles obtain useful information from the parent particles for focused search, which enhances the convergence speed and accuracy of the algorithm. The offspring position is obtained by crossing the parent position:
[0123] n1(x)=p×m1(x)+(1-p)×m2(x)
[0124] n2(x)=p×m2(x)+(1-p)×m1(x)
[0125] Where m1(x) and m2(x) are the positions of the two parent particles, n1(x) and n2(x) are the positions of the two child particles, and p is a random number between 0 and 1.
[0126] Offspring speed:
[0127]
[0128]
[0129] Where m1(v) and m2(v) are the velocities of the two parent particles, and n1(v) and n2(v) are the velocities of the two child particles.
[0130] In summary, the Levy flight is introduced into the standard particle swarm algorithm to update the particle position, and the hybridization calculation is added to optimize the position and speed of some particles to form the Levy flight-hybridization particle swarm algorithm model.
[0131] Step 5: Use the Levy flight-hybridization particle swarm algorithm model established in step 4 to perform load economic allocation on the double-extraction cogeneration system.
[0132] Taking the electrical load, high-pressure heating steam flow rate and low-pressure heating steam flow rate of each unit as optimization variables, the appropriate number of optimization variables X is selected to form the X-dimensional position coordinates of the particles, reflecting the current thermal and electric load status of each unit. The particles seek the optimal position in the X-dimensional search space. The optimization process is as follows: Figure 4 As shown, the specific steps are:
[0133] (1) Select the number of adapted particles N, randomly initialize the position and velocity of each particle according to the constraints in step 2, that is, randomly initialize each optimization variable within the restricted range, and determine the adapted initial velocity of the particle;
[0134] (2) According to the objective function in step 3, the coal consumption of the whole plant under the current load distribution state is calculated as the fitness value of each particle, and it is determined whether the current load state meets the constraint conditions in step 2. If the constraint conditions are not met, a larger fitness value is assigned to the particle to eliminate the particle. If the constraint conditions are met, the fitness value calculated by the objective function is not changed.
[0135] (3) Compare the fitness value of the particle in the current position state with the fitness value in the previous position state to obtain the individual optimal value Corresponding particle position Compare Take the minimum value to get the optimal value g of the group best (t), corresponding to the particle position x g (t);
[0136] (4) Update the particle inertia weight according to the current iteration number t to control the running speed;
[0137] (5) Determine the particle movement step size based on the random distribution of Levy flight in step 4 and update the particle position x i (t);
[0138] (6) Update the particle position x according to the position and velocity calculation formula in step 4 i (t) and speed v i (t);
[0139] (7) According to the hybridization calculation in step 4, a certain number of particles are selected to enter the hybridization pool for pairwise hybridization to generate progeny particles with the same number but different position and velocity characteristics;
[0140] (8) If the termination condition is met, the search stops and the optimal value g of the group after T iterations is output. best (t) and the corresponding particle position x g (t), obtain the electrical load, high-pressure heating load and low-pressure heating load borne by each unit, otherwise return to step (2) to calculate the particle fitness value in the new round of iteration process and update the individual optimal value and the corresponding position x i * (t), and the group optimal value g best (t) and the corresponding position x g (t), and continue to iterate until the condition is met, and the termination condition is reaching the maximum number of iterations T.
[0141] Preferably, the maximum main steam flow boundary surface and the minimum main steam flow boundary surface in step 2 are determined according to the boiler load characteristics of the double extraction cogeneration unit, which limits the maximum load condition and the minimum load condition that the unit can reach for safe operation. Preferably, the maximum extractable steam volume boundary surface in step 2 is determined by the high back pressure operation characteristics of the double extraction cogeneration unit, at which time the electrical load and the thermal load are subject to the same limiting factor, and the maximum extractable steam volume is expressed on the same boundary surface.
[0142] Preferably, the relationship between the standard coal consumption and the electric load and the heat load in step 3 can be obtained by least squares fitting, and the specific functional relationship is:
[0143] B i =a1+a2P i +a3Q Hi +a4Q Li +a5P i Q Hi +a6P i Q Li +a7Q Hi Q Li +a8Pi 2 +a9Q Hi 2 +a 10 Q Li 2
[0144] In the formula, a1, a2, ..., a 10 are the fitting coefficients respectively.
[0145] Preferably, the larger the number of particles N and the number of iterations T in step 4, the better the algorithm accuracy, but the longer the running time. Appropriate values should be selected according to the actual application problem. As shown in Table 1, when the number of particles in the particle swarm algorithm increases to 1000 and the number of iterations increases to 3000, the algorithm stability is close to the Levy flight-hybridization particle swarm algorithm, but the running time is about 3 times that of the Levy flight hybridization particle swarm algorithm, and as the number of particles and the number of iterations increase, the effect on the stability of the algorithm is weakened. After comparative calculation, it is determined that the number of particles N = 100 and the number of iterations T = 300 of the Levy flight-hybridization particle swarm algorithm.
[0146] Table 1
[0147]
[0148]
[0149] Preferably, the parameters in step 4 are set as: individual learning factor c1=1.5, group learning factor c2=1.5; maximum inertia weight w max =0.8, minimum inertia weight w min = 0.4; stability index β = 1.5; hybridization pool size ratio is 0.1, and the number of particles that enter the hybridization pool and randomly hybridize with each other is 0.1N. The parameter setting is relatively reliable and effective for most functions, and is widely used in a large number of cases.
[0150] Preferably, in step 4, the normal distribution σ v =1, that is, v obeys the normal distribution v~N(0,1); normal distribution σ u satisfy:
[0151]
[0152] Where Γ is the standard Gamma function.
[0153] Preferably, the hybridization process of each iteration in step 5 only changes the position and speed of the hybridized particles, without changing the fitness value of the particles. The individual optimal value p in each iteration is i best(t) and the optimal value of the group g best (t) also remains unchanged. That is, without changing the optimization result of this iteration, the randomness of particle position change is reduced through hybridization, so that the particles are as close to the optimal solution position as possible, thereby obtaining better optimization results in the next iteration.
[0154] The convergence process of standard particle swarm algorithm (PSO), hybrid particle swarm algorithm (HPSO), Levy flight particle swarm algorithm (LPSO) and Levy flight-hybrid particle swarm algorithm (LHPSO) is as follows Figure 5 As shown in Figure 2, the population size of all algorithms is 100 and the number of iterations is 300. From the convergence curve, we can see that both the hybridization process and Levy flight can improve the convergence speed of the algorithm.
[0155] Each algorithm is run repeatedly 100 times, and the stability of each algorithm is compared and analyzed based on the distribution of the calculation results. Figure 6 is the box plot of the results of 100 runs of each algorithm, and Table 2 is the standard deviation and running time of the results of 100 runs of each algorithm;
[0156] Table 2
[0157]
[0158] from Figure 6 From Table 2, we can see that the particle swarm algorithm has the fastest running time, but the worst stability. The Levy flight hybrid particle swarm algorithm will increase the computational complexity of the algorithm, thereby increasing the computational time, but it can significantly improve the algorithm stability. The computational results are concentrated and no outliers appear.
Claims
1. A method for allocating heat and power loads in a complex cogeneration system. It is characterized in that The complex cogeneration system load distribution method comprises the following specific steps: Step 1: Conduct system analysis of CHP units supplying multiple heat loads; Step 2: Determine the constraints for thermal and electric load distribution among multiple units; The thermal power load of a multi-unit cogeneration power plant must maintain a balance between supply and demand, that is: Among them, P, Q H , Q L They are the total electricity load, total high-pressure heating load, and total low-pressure heating load of a multi-unit cogeneration power plant; P i , Q Hi , Q Li are the electrical load, high-pressure heating load, and low-pressure heating load of the i-th unit respectively; The operation of the double-extraction cogeneration unit is limited by the coupling relationship between the main steam flow, the electrical load and the two thermal loads, which can be expressed as follows: F(D 0i ,P i ,Q Hi ,Q Li )=0 Among them, D 0i is the main steam flow rate of the i-th unit; The operating area of the unit is a three-dimensional polyhedron, and the five boundary surfaces are: the maximum main steam flow boundary surface, the minimum main steam flow boundary surface, the high-pressure heating load boundary surface, the low-pressure heating load boundary surface, and the maximum extractable steam volume boundary surface; There is a certain adjustment range for the electrical load and thermal load of a single unit: P i,min ≤P i ≤P i,max Q Hi,min ≤Q Hi ≤Q Hi,max Q Li,min ≤Q Li ≤Q Li,max Among them, P i,max , P i,min , Q Hi,max , Q Hi,min , Q Li,max , Q Li,min They are the upper and lower limits of the electric load of the i-th unit, the upper and lower limits of the high-pressure heating load, and the upper and lower limits of the low-pressure heating load; Step 3: Determine the optimization target of thermal power load distribution of multiple units; The total standard coal consumption is selected as the optimization target. According to the system analysis in step 1, the relationship between the standard coal consumption and the electrical load and thermal load under the variable operating conditions of the unit is obtained: B i =f(P i ,Q Hi ,Q Li ) Total standard coal consumption of a multi-unit cogeneration power plant: Among them, B is the total standard coal consumption of a multi-unit cogeneration power plant; B i is the standard coal consumption of the i-th unit; Step 4: Establish a Levy flight-hybridization particle swarm algorithm model to improve the efficiency and stability of the algorithm in solving the thermal power load distribution problem; For the optimization problem of X variables, a particle swarm consisting of N particles is defined. Each particle is randomly assigned a position as a candidate solution in the X-dimensional target search space. Each candidate solution corresponds to a fitness value. The optimal solution and the minimum fitness value are found through iterative calculation. In each iteration, the particle tracks the position coordinates corresponding to the two extreme values to update the position x i (t) and speed v i (t): The first is the optimal solution found by the particle itself, that is, the individual optimal value Corresponding particle position The other is the optimal solution found by the entire group, that is, the group optimal value g best (t), corresponding to the particle position x g (t); The movement of the particle position is affected by the current speed, self-memory and group experience. At the t+1th iteration, the particle updates its position and speed according to the following formula: x i (t+1)=x i (t)+v i (t+1) In the formula, v i (t) and x i (t) are the velocity and position of the i-th particle at the t-th iteration; is the particle position corresponding to the individual optimal value of the i-th particle in the t-th iteration; x g (t) is the particle position corresponding to the optimal value of the N particle group in the tth iteration process; c 1 、c 2 are the individual learning factor and the group learning factor respectively; r 1 、r 2 is a uniform random number in the range of [0,1]; w is the inertia weight, which is used to control the influence of the speed before update on the speed after update; The linear decreasing inertia weight method is used to control the particle velocity and balance the global and local search capabilities of the algorithm; the linear weight change formula is: Where T is the maximum number of iterations, t is the current number of iterations, and w max 、w min are the maximum and minimum inertia weights respectively; The random distribution of Levy flight is used to enable particles to have the ability to jump long distances, avoid the loss of position diversity, and enhance the global search ability of the algorithm; the new position of the particle updated using the Levy flight strategy is: Lx i (t)=x i (t)+sv i (t) In the formula, Lx i (t) represents the position of the i-th particle updated using the Levy flight strategy at the t-th iteration, and s follows the Levy distribution; a simple form of the Levy distribution is expressed as: Where β is the stability index, 0<β<2; u and ν are the particle flight step length and direction, respectively, and u and ν obey the normal distribution. In each iteration, a specified number of particles are selected according to the hybridization rate and randomly hybridized in pairs in the hybridization pool. The offspring particles obtain useful information from the parent particles for focused search, which enhances the convergence speed and accuracy of the algorithm. The offspring positions are obtained by crossing the parent positions: n 1 (x)=p×m 1 (x)+(1-p)×m 2 (x) n 2 (x)=p×m 2 (x)+(1-p)×m 1 (x) In the formula, m 1 (x), m 2 (x) are the positions of the two parent particles, n 1 (x), n 2 (x) are the positions of the two offspring particles, and p is a random number between 0 and 1; Offspring speed: In the formula, m 1 (v), m 2 (v) are the velocities of the two parent particles, n 1 (v) n 2 (v) are the velocities of the two daughter particles respectively; In summary, the Levy flight is introduced into the standard particle swarm algorithm to update the particle position, and the hybrid calculation is added to optimize the position and speed of some particles to form the Levy flight-hybridization particle swarm algorithm model; Step 5: Use the Levy flight-hybridization particle swarm algorithm model established in step 4 to perform load economic allocation on the double-extraction cogeneration system; Taking the electrical load, high-pressure heating load and low-pressure heating load of each unit as optimization variables, the number of adaptive optimization variables X is selected to form the X-dimensional position coordinates of the particles, reflecting the current thermal load status of each unit. The particles seek the optimal position in the X-dimensional search space. The optimization process is: (1) Select the number of adapted particles N, randomly initialize the position and velocity of each particle according to the constraints in step 2, that is, randomly initialize each optimization variable within the restricted range, and determine the adapted initial velocity of the particle; (2) According to the objective function in step 3, the coal consumption of the whole plant under the current load distribution state is calculated as the fitness value of each particle, and it is determined whether the current load state meets the constraint conditions in step 2. If the constraint conditions are not met, a larger fitness value is assigned to the particle to eliminate the particle. If the constraint conditions are met, the fitness value calculated by the objective function is not changed. (3) Compare the fitness value of the particle in the current position state with the fitness value in the previous position state to obtain the individual optimal value p i best (t), corresponding to the particle position Compare i best (t) Take the minimum value to get the optimal value of the group g best (t), corresponding to the particle position x g (t); (4) Update the particle inertia weight according to the current iteration number t to control the running speed; (5) Determine the particle movement step size based on the random distribution of Levy flight in step 4 and update the particle position x i (t); (6) Update the particle position x according to the position and velocity calculation formula in step 4 i (t) and speed v i (t); (7) According to the hybridization calculation in step 4, a certain number of particles are selected to enter the hybridization pool for pairwise hybridization to generate offspring particles with the same number but different position and velocity characteristics; (8) If the termination condition is met, the search is stopped and the optimal value g of the population after T iterations is output. best (t) and the corresponding particle position x g (t), obtain the electrical load, high-pressure heating load and low-pressure heating load borne by each unit, otherwise return to step (2) to calculate the particle fitness value in the new round of iteration process and update the individual optimal value p i best (t) and the corresponding position And the group optimal value g best (t) and the corresponding position x g (t), and continue to iterate until the condition is met, and the termination condition is reaching the maximum number of iterations T.
2. A method for distributing heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The maximum main steam flow boundary surface and the minimum main steam flow boundary surface in step 2 are determined according to the boiler load characteristics of the double-extraction cogeneration unit.
3. A method for allocating heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The maximum extractable steam volume boundary surface in step 2 is determined by the high back pressure operation characteristics of the double-extraction cogeneration unit. At this time, the electrical load and the thermal load are subject to the same limiting factor, and the maximum extractable steam volume is expressed on the same boundary surface.
4. A method for distributing heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The relationship between standard coal consumption and electric load and heat load in step 3 is obtained by least squares fitting. The specific functional relationship is: B i =a 1 +a 2 P i +a 3 Q Hi +a 4 Q Li +a 5 P i Q Hi +a 6 P i Q Li +a 7 Q Hi Q Li +a 8 P i 2+a 9 Q Hi 2 +a 10 Q Li 2 In the formula, a 1 、a 2 ,……,a 10 are the fitting coefficients respectively.
5. A method for distributing heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that In step 4, the larger the number of particles N and the number of iterations T, the better the algorithm accuracy, but the longer the running time. Appropriate values should be selected according to the actual application problem. After comparative calculation, it is determined that the number of particles N=100 and the number of iterations T=300.
6. A method for distributing heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The parameters in step 4 are set as: individual learning factor c 1 =1.5, group learning factor c 2 =1.5; maximum inertia weight w max =0.8, minimum inertia weight w min =0.4; The stability index β is 1.5; the hybridization pool size ratio is 0.1, and the number of particles that enter the hybridization pool and randomly hybridize with each other is 0.1N.
7. A method for allocating heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The normal distribution in step 4 σ v =1, that is, v obeys the normal distribution v~N(0,1); normal distribution σ u satisfy: Where Γ is the standard Gamma function.
8. A method for allocating heat and power loads in a complex cogeneration system according to claim 1, It is characterized in that The hybridization process of each iteration in step 5 only changes the position and speed of the hybridized particles, and does not change the fitness value of the particles. The individual optimal value in each iteration and the group optimal value g best (t) also remains unchanged.
Citation Information
Cited By
Cogeneration power station multi-unit load distribution optimization method based on eagle optimization algorithm
CN120911855A
