Two-layer optimization method for combined heat and power system with uncertain wind, solar and load
Through Kalman filter prediction and double-layer optimization methods, combined with discrete particle swarm and improved particle swarm algorithm, the optimization dispatch problem of wind power, photovoltaic power generation and combined heat and power system under load uncertainty is solved, achieving the improvement of energy utilization and Maximize environmental benefits.
Patent Information
- Application Number
- CN202210454449.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing combined heat and power optimization dispatching methods are difficult to achieve the goals of maximizing energy utilization, lowest cost, and minimizing emissions under wind, photovoltaic power generation and load uncertainty, and lack flexibility and adaptability.
The Kalman filter method is used to predict wind, light and load, and a two-layer optimization method is established. The first layer targets the cost saving rate, energy saving rate and carbon dioxide emission reduction rate, and uses the discrete particle swarm algorithm to optimize; the second layer uses the discrete particle swarm algorithm to optimize Targeting cost, energy consumption and pollution emissions, the improved particle swarm algorithm is used to optimize and dynamically adjust the equipment output to achieve the optimal state of the system.
It improves the utilization rate of renewable energy, reduces CO2 emissions, reduces environmental pollution, and achieves optimal overall system benefits and full utilization of energy.
Smart Images

Figure CN114970966B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated energy systems, and specifically is a method for optimizing the combined dispatch of heat and power containing renewable energy power generation. Background Art
[0002] In recent years, the pollution problem caused by traditional fossil energy has become more and more serious. Renewable energy sources such as wind power and solar energy have attracted widespread attention due to their wide distribution, rich reserves, great development potential, and green and pollution-free characteristics. Therefore, according to the current mainstream technology, combined heat and power (CHP) is one of the ways to solve the economic utilization of fuel. Combined heat and power provides an efficient joint production method for both electricity and heat energy. First, high-temperature and high-pressure steam is passed into the gas turbine to do work, and then the steam that does work is used for heating, reducing system energy losses and realizing the gradient utilization of energy. However, due to the randomness of wind power, photovoltaic power generation, thermal load, etc., how to improve energy utilization while operating and producing electrical load and thermal load, so that the distribution of thermal load can maximize economic benefits, minimize operating costs and minimize emissions, is our goal.
[0003] The existing combined heat and power optimization scheduling methods mainly include intelligent optimization algorithms and mathematical optimization algorithms. Intelligent algorithms are widely used in solving such problems. Their general advantages are that they do not require precise scheme structures and the constraints in the model can be discontinuous and nonlinear; their disadvantages are that the selection of parameters is subjective. The advantages of mathematical optimization algorithms are fast calculation speed, the solution obtained is the global optimal solution, and the subjectivity of parameter selection is avoided. Their disadvantages are that the quality of the model directly affects the prediction accuracy of the prediction model, which may lead to the failure of the system optimization strategy to achieve the optimal solution.
[0004] After searching, the application publication number CN109245093A, a method for coordinated optimization scheduling of a combined heat and power distributed energy station, includes the following steps: Step 1: Establish an economic benefit planning operation model based on the operating characteristics of each part of the equipment in the combined heat and power distributed energy station; Step 2: Comprehensively consider the environmental cost and economic operation cost, express the emission pollutants and environmental carrying capacity by economic methods, and construct an overall optimization scheduling model for the operation model of each part of the equipment in the combined heat and power distributed energy station combined with constraint conditions; Step 3: Use the improved and optimized adaptive particle swarm optimization algorithm based on the bee colony optimization operator to solve the overall optimization scheduling model and then obtain the optimal scheduling strategy for each part of the equipment in the combined heat and power distributed energy station. Compared with the prior art, the present invention has the advantages of accurately providing a scheduling plan, being easy to use for engineering and technical personnel, fast algorithm operation speed, high accuracy, and strong global optimization capability.
[0005] This patent mainly determines the output of power generation equipment and heating or cooling equipment according to the cold or hot conditions, and operates in the "heat-based electricity" mode. It purchases electricity from the power grid during peak electricity consumption, which increases the difficulty of filling the valley with flat peaks, and has poor performance in adapting to changes in loads. The power generation of the unit is subject to changes in cold and hot loads. This patent establishes a two-layer optimization method. The first layer uses the system's operating mode as the optimization variable, and operates the system in the "heat-based electricity" or "electricity-based heat" mode according to different needs, which increases the system's ability to fill the valley with flat peaks, enhances the system's flexibility, and improves energy utilization. The second layer considers cost and pollution emissions, optimizes the output of each device in the system, and truly reduces costs, saves energy, and reduces emissions. Summary of the invention
[0006] The present invention aims to solve the above problems of the prior art. A double-layer optimization method for a combined heat and power system with uncertain wind, light and load is proposed. The technical solution of the present invention is as follows:
[0007] A double-layer optimization method for a combined heat and power system with uncertain wind, light and load comprises the following steps:
[0008] S1: Based on the historical data of wind turbines, photovoltaics and loads, the Kalman filter method is used to predict the predicted value;
[0009] S2: Taking the optimal cost saving rate, energy saving rate and carbon dioxide emission reduction rate as the comprehensive expectation, constructing them as the first-level optimization objectives, and using discrete particle swarm algorithm to optimize the first-level optimization objectives;
[0010] S3: Taking the cost, primary energy consumption and CO2 emission as the comprehensive expectation minimum as the second-level optimization target, the improved particle swarm algorithm is used to optimize the second-level optimization target;
[0011] S4: According to step S3, the output of each device is obtained so that the system operates in the optimal state.
[0012] Furthermore, the step S1 uses the Kalman filter method to predict and obtain the predicted value based on the historical data of the wind turbine, photovoltaic and load, and specifically includes:
[0013] The historical data of photovoltaic, wind turbine and load are used to predict the value within a specific time domain N in the future; the Kalman filter is used to make short-term predictions of wind power, photovoltaic and load power. The dynamic prediction equation is as follows:
[0014]
[0015] in, is the state transfer matrix; y(k+1|k), y(k+2|k)…y(k+N|k) are the predicted values at time k for time k+1, k+2…k+N respectively; represents the dynamic prediction of k-1 at time k-1; y(k-1|k-1), y(k|k-1)…y(k+N-1|k-1) are the predicted values of k-1 at time k-1, k…k+N-1 respectively; are the step response coefficients for input and interference, respectively; Δu(k-1)=u(k-1)-u(k-2), u(k-1) and u(k-2) are the states at k-1 and k-2; Δf(k)=f(k)-f(k-1), f(k) is the measurable interference at moment k, and f(k-1) is the measurable interference at moment k-1; e(k+1|k), e(k+2|k)…e(k+N|k) are the feedback at moments k+1, k+2…k+N.
[0016] Further, the step S2 specifically includes: the first layer optimization considers the cost saving rate, energy saving rate and carbon dioxide emission reduction comprehensive expected optimal as the target value to solve, obtain the system operation mode, and use the system performance indicators, equipment parameters and the output of each device optimized by the second layer as the input of the first layer; the first layer establishes the optimization objective function based on the discrete particle swarm algorithm; the objective function is:
[0017] maxW=α1DCSR+α2CDRR+α3PESR
[0018] Among them, 0≤α1,α2,α3≤1, α1,α2,α3 are the weight coefficients of cost saving rate, CO2 emission reduction rate and primary energy saving rate respectively; W is the first-level solution target; DCSR is the daily comprehensive cost saving rate; CDRR is the CO2 emission reduction rate; PESR is the primary energy saving rate. Then according to the load operation, if the user's demand for electricity is higher than the demand for heat, in this case, the supply of electricity is given priority, and the system operates in the "electricity determines heat" mode. At this time, if wind power, photovoltaic power generation and stored electricity cannot meet the requirements, micro gas turbines are used to generate electricity to give priority to meeting the electricity demand; if some users have low load requirements and high heat demand, the system operates in the "heat determines electricity" mode to first meet the user's heat demand.
[0019] Furthermore, the improved particle swarm algorithm is used to optimize the second-level optimization target, specifically including: first, initializing parameters, the size M of the population, the acceleration factors c1, c2, the maximum particle speed v max, the maximum number of iterations is initialized, the speed and position of all particles are randomly initialized, and the particle position is set to the individual optimal; the particles adjust their speed and position according to their own flight experience and group flight experience. The update formula of the speed and position of particle i's jth dimension at time t+1 is as follows:
[0020] v ij (t+1)=ωv ij (t)+c1r1(p ij (t)-x ij (t))+c2r2(g j (y)-x ij (t))
[0021] x ij (t+1)=x ij (t)+v ij (t+1)
[0022] Among them, ω≥0 is the weight coefficient; c1, c2 are acceleration factors; r1, r2 are random numbers in the range of [0,1]; x ij is the current position of particle i; p ij is the optimal position of particle i at time t; g j is the global optimal position; then the optimal position of the individual particle and the optimal position of the population are updated.
[0023] Furthermore, the second-level optimization in step S3 is based on the system operation mode obtained by the first-level rolling optimization, and uses the improved particle swarm algorithm to add adaptive weights, i.e., adaptive factors, and rollingly solves the equipment output in the future N time periods with the goal of minimizing the comprehensive daily operating cost, CO2 emissions, and primary energy consumption; its optimization configuration objective function is:
[0024] minV=α1C+α2E+α3P
[0025] Among them, V is the optimization target of the second layer; C is the total cost required for the system to operate for one day; E is the CO2 emission; and P is the amount of primary energy consumed by the system.
[0026] Furthermore, since the first-layer particle swarm algorithm uses fixed weights, the optimization process is not flexible enough, and the second layer uses adaptive weights to change the original fixed weights to self-adjust according to the particle optimization situation. The self-adjustment function expression is as follows:
[0027]
[0028] Among them, ω max Represents the maximum value of the inertia factor ω; ω min represents the minimum value of the inertia factor ω; f represents the value of the objective function; fmax represents the minimum objective function value among all particles in the current iteration number; f avg Represents the average fitness of all particles in the current iteration;
[0029] According to the results of the second layer calculation, the first layer is updated to optimize the position and speed of each particle; the actual photovoltaic, wind turbine and load data are fed back to the prediction module to update the relevant parameters; and this iteration is carried out until the global optimal solution is found.
[0030] The advantages and beneficial effects of the present invention are as follows:
[0031] The present invention combines model predictive control and intelligent optimization algorithm to apply to the optimal scheduling of the cogeneration system, and establishes a two-layer optimization method for the cogeneration system with uncertain wind, light and load. First, the wind, light and load are predicted by using Kalman filtering. Then, in order to achieve coordinated control, a two-layer optimization method is established, which takes the economic aspect, environmental aspect and energy efficiency comprehensive expected value as the target, and provides an optimal method for the optimal scheduling of the cogeneration system, so that the system operates in the best working state. It can effectively improve the utilization rate of renewable energy, reduce the emission reduction rate of CO2, reduce environmental pollution, and achieve energy conservation and emission reduction.
[0032] Traditional cogeneration ignores the state of specific loads and only uses a fixed operating mode, which reduces energy utilization or other defects. The present invention adopts a two-layer optimization method. The first layer is optimized, and the particle swarm algorithm is used to solve the target value of the comprehensive expected optimal cost saving rate, energy saving rate and carbon dioxide emission reduction. According to the load requirements, the operating mode of the system is determined, so that the system operates in the "heat-to-electricity" or "electricity-to-heat" mode according to the load requirements, and can be adjusted according to the load state to achieve full utilization of energy. In the second layer, the comprehensive optimal cost, energy consumption, and pollution emissions are used as the target value, and the results of the first layer optimization are used as input to determine the output of each device, so that each device in the system can output according to actual needs. A two-layer collaborative optimization method is constructed, which not only transmits the results of the first layer optimization as input to the second layer, but also feeds back the results of the second layer optimization to the first layer, so that the various devices in the system cooperate with each other to achieve the optimal overall benefit of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Provide a structural block diagram of a cogeneration system of a preferred embodiment of the present invention;
[0034] Figure 2 This is the model predictive control framework diagram;
[0035] Figure 3 A flow chart of a preferred embodiment method is provided for the present invention. DETAILED DESCRIPTION
[0036] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.
[0037] The technical solution of the present invention to solve the above technical problems is:
[0038] The system structure of the present invention is as follows Figure 1 The system consists of wind turbines, photovoltaic generators, energy storage modules and micro gas turbines. The integration of wind power and photovoltaics makes the structure of the combined heat and power system more complex, and the coupling relationship between the system operation model and the equipment output is further deepened. The existing single operation model design method of "determining electricity by heat" or "determining heat by electricity" is no longer applicable.
[0039] In order to solve the above technical problems, the present invention adopts an improved stochastic model predictive control, the structure of which is as follows Figure 2 First, the wind, light and load are predicted; two-layer optimization is used to realize interactive feedback, and the comprehensive optimal indicators of economy, environmental protection and energy efficiency are selected as the goal to establish a two-layer collaborative rolling optimization design model; discrete particle swarm algorithm and improved particle swarm algorithm are used to solve the optimization model, and the output of each equipment is obtained to reduce energy waste.
[0040] See also Figure 3 First, Kalman filtering is used to predict wind power, photovoltaic power generation and load to obtain the predicted values in the future time domain N. The open-loop prediction equation is as follows:
[0041]
[0042] in, is the state transfer matrix; y(k+1|k), y(k+2|k)…y(k+N|k) are the predicted values at time k for time k+1, k+2…k+N; represents the dynamic prediction of k-1 at time k-1; y(k-1|k-1), y(k|k-1)…y(k+N-1|k-1) are the predicted values of k-1 at time k-1, k…k+N-1; Step response coefficients for input and interference respectively; Δu(k-1)=u(k-1)-u(k-2), u(k-1) and u(k-2) are the states at k-1 and k-2; Δf(k)=f(k)-f(k-1), f(k) is the measurable interference at moment k, f(k-1) is the measurable interference at moment k-1; e(k+1|k), e(k+2|k)…e(k+N|k) are the feedback at moments k+1, k+2…k+N.
[0043] Initialize the relevant parameters of the first and second layers of rolling optimization. The first layer optimization is based on the optimal output of each device in the second layer. The discrete particle swarm algorithm is used to solve the system operation model in the future N time periods with the cost saving rate, CO2 emission reduction rate, and primary energy saving rate as the comprehensive target. The objective function is:
[0044] maxW=α1DCSR+α2CDRR+α3PESR
[0045] Among them, 0≤α1,α2,α3≤1, α1,α2,α3 are the weight coefficients of cost saving rate, CO2 emission reduction rate and primary energy saving rate respectively; W is the first-level solution target; DCSR is the daily comprehensive cost saving rate; CDRR is the CO2 emission reduction rate; PESR is the primary energy saving rate. Then, according to the load operation, if the user's demand for electricity is higher than the demand for heat, in this case, the supply of electricity is given priority, and the system operates in the "electricity determines heat" mode. At this time, if wind power, photovoltaic power generation and stored electricity cannot meet the requirements, micro gas turbines are used to generate electricity to give priority to meeting the electricity demand. If some users have low load requirements and high heat demand, the system operates in the "heat determines electricity" mode to first meet the user's heat demand.
[0046] First, initialize the parameters. For the population size M, acceleration factors c1, c2, and maximum particle speed v max , the maximum number of iterations T, etc., randomly initialize the speed and position of all particles, and set the particle position to the individual optimal; the particles adjust their speed and position according to their own flight experience and group flight experience. The update formula for the speed and position of particle i's jth dimension at time t+1 is as follows:
[0047] v ij (t+1)=ωv ij (t)+c1r1(p ij (t)-x ij (t))+c2r2(g j (y)-x ij (t))
[0048] x ij (t+1)=x ij (t)+v ij (t+1)
[0049] Among them, ω≥0 is the weight coefficient; c1, c2 are acceleration factors; r1, r2 are random numbers in the range of [0,1]. ij is the current position of particle i; p ij is the optimal position of particle i at time t; g jis the global optimal position. Then the optimal position of the individual particle and the optimal position of the population are updated.
[0050] The second level optimization is based on the system operation mode obtained by the first level rolling optimization. The improved particle swarm algorithm is used to add adaptive weights, i.e., adaptive factors. The equipment output in the future N time periods is rollingly solved with the goal of minimizing the daily operation cost, CO2 emissions, and primary energy consumption. The optimization configuration objective function is:
[0051] minV=α1C+α2E+α3P
[0052] Among them, V is the optimization target of the second layer; C is the total cost required for the system to operate for one day; E is the CO2 emission; and P is the amount of primary energy consumed by the system.
[0053] Since the first-layer particle swarm algorithm uses fixed weights, the optimization process is not flexible enough. The second layer uses adaptive weights to change the original fixed weights into self-adjusting function expressions according to the particle optimization situation as follows:
[0054]
[0055] Among them, ω max Represents the maximum value of the inertia factor ω; ω min represents the minimum value of the inertia factor ω; f represents the value of the objective function; f max represents the minimum objective function value among all particles in the current iteration number; f avg Represents the average fitness of all particles in the current iteration.
[0056] According to the results of the second layer calculation, the first layer is updated to optimize the position and speed of each particle; the actual photovoltaic, wind turbine and load data are fed back to the prediction module to update the relevant parameters; and this iteration is carried out until the global optimal solution is found.
[0057] Ultimately, the system operates collaboratively based on the optimized results, so that the system operates in the optimal way while meeting our requirements for cost, CO2 emissions, and energy consumption.
[0058] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0059] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0060] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. A two-layer optimization method for a combined heat and power system with uncertain wind, light and load, characterized in that: The following steps are involved: S1: Based on the historical data of wind turbines, photovoltaics and loads, the Kalman filter method is used to predict the predicted value; S2: Taking the optimal cost saving rate, energy saving rate and carbon dioxide emission reduction rate as the comprehensive expectation, constructing them as the first-level optimization objectives, and using discrete particle swarm algorithm to optimize the first-level optimization objectives; S3: Taking the cost, primary energy consumption and CO2 emission as the comprehensive expectation minimum as the second-level optimization target, the improved particle swarm algorithm is used to optimize the second-level optimization target; S4: according to step S3, the output of each device is obtained so that the system operates in the optimal state; The step S1 uses the Kalman filter method to predict and obtain the predicted value based on the historical data of the wind turbine, photovoltaic and load, and specifically includes: The historical data of photovoltaic, wind turbine and load are used to predict the value within a specific time domain N in the future; the Kalman filter is used to make short-term predictions of wind power, photovoltaic and load power. The dynamic prediction equation is as follows: in, is the state transfer matrix; y(k+1|k), y(k+2|k)…y(k+N|k) are the predicted values at time k for time k+1, k+2…k+N respectively; represents the dynamic prediction of k-1 at time k-1; y(k-1|k-1), y(k|k-1)…y(k+N-1|k-1) are the predicted values of k-1 at time k-1, k…k+N-1 respectively; S i f are the step response coefficients for input and interference respectively; Δu(k-1)=u(k-1)-u(k-2), u(k-1) and u(k-2) are the states at k-1 and k-2; Δf(k)=f(k)-f(k-1), f(k) is the measurable interference at time k, and f(k-1) is the measurable interference at time k-1; e(k+1|k), e(k+2|k)…e(k+N|k) are the feedback at times k+1, k+2…k+N; The step S2 specifically includes: the first layer optimization considers the cost saving rate, energy saving rate and carbon dioxide emission reduction comprehensive expected optimal as the target value to solve, obtains the system operation mode, and takes the system performance indicators, equipment parameters and the output of each equipment optimized by the second layer as the input of the first layer; the first layer establishes the optimization objective function based on the discrete particle swarm algorithm; the objective function is: maxW=α1DCSR+α2CDRR+α3PESR Among them, 0≤α1,α2,α3≤1, α1,α2,α3 are the weight coefficients of cost saving rate, CO2 emission reduction rate and primary energy saving rate respectively; W is the first-level solution target; DCSR is the daily comprehensive cost saving rate; CDRR is the CO2 emission reduction rate; PESR is the primary energy saving rate; then according to the load operation situation, if the user's demand for electricity is higher than the demand for heat, in this case, the supply of electricity is given priority, and the system operates in the "electricity determines heat" mode. At this time, if wind power, photovoltaic power generation and stored electricity cannot meet the requirements, micro gas turbines are used to generate electricity to give priority to meeting the electricity demand; if some users have low load requirements but high heat demand, the system operates in the "heat determines electricity" mode to first meet the user's heat demand; The improved particle swarm algorithm is used to optimize the second-level optimization target, specifically including: first, initializing parameters, the size of the population M, the acceleration factors c1, c2, the maximum particle speed v max , the maximum number of iterations is initialized, the speed and position of all particles are randomly initialized, and the particle position is set to the individual optimal; the particles adjust their speed and position according to their own flight experience and group flight experience. The update formula of the speed and position of particle i's jth dimension at time t+1 is as follows: v ij (t+1)=ωv ij (t)+c1r1(p ij (t)-x ij (t))+c2r2(g j (y)-x ij (t)) x ij (t+1)=x ij (t)+v ij (t+1) Among them, ω≥0 is the weight coefficient; c1, c2 are acceleration factors; r1, r2 are random numbers in the range of [0,1]; x ij is the current position of particle i; p ij is the optimal position of particle i at time t; g j is the global optimal position; then the optimal position of the individual particle and the optimal position of the population are updated; The second-level optimization in step S3 is based on the system operation mode obtained by the first-level rolling optimization, and uses the improved particle swarm algorithm to add adaptive weights, i.e., adaptive factors, and rollingly solves the equipment output in the future N time periods with the goal of minimizing the comprehensive daily operating cost, CO2 emissions, and primary energy consumption; its optimization configuration objective function is: minV=α1C+α2E+α3P Among them, V is the optimization target of the second layer; C is the total cost required for the system to operate for one day; E is the emission of CO2; P is the amount of primary energy consumed by the system; The first layer of the particle swarm algorithm uses fixed weights, and the second layer uses adaptive weights to change the original fixed weights to self-adjust according to the particle optimization situation. The self-adjustment function expression is as follows: Among them, ω max Represents the maximum value of the inertia factor ω; ω min represents the minimum value of the inertia factor ω; f represents the value of the objective function; f max represents the minimum objective function value among all particles in the current iteration number; f avg Represents the average fitness of all particles in the current iteration; According to the results of the second layer calculation, the first layer is updated to optimize the position and speed of each particle; the actual photovoltaic, wind turbine and load data are fed back to the prediction module to update the relevant parameters; and this iteration is carried out until the global optimal solution is found.
