Optimal scheduling method for combined heat and power system based on scenario analysis and hybrid energy storage
Through the optimized dispatching method of combined heat and power system based on scenario analysis and hybrid energy storage, the problem of low efficiency of combined heat and power system in absorbing wind curtailment is solved, the low-carbon economic operation of the system and the optimal configuration of energy storage devices are realized, and the reliability is improved. Consumption efficiency of renewable energy.
Patent Information
- Application Number
- CN202210112632.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-01-29
AI Technical Summary
The existing combined heat and power system has low efficiency in absorbing abandoned wind. The capacity configuration of a single energy storage device affects the system's ability to absorb abandoned wind, and it is difficult to ensure the low-carbon economic operation of the system.
Adopting a combined heat and power system optimization dispatch method based on scenario analysis and hybrid energy storage, by establishing a digital twin model, setting the operation strategy of the hybrid energy storage device, generating random scenarios of wind power output, and constructing an energy storage device capacity configuration optimization model and low-carbon economic operation Model, the two-layer model is interactively solved to obtain the optimal operation plan of the system and the optimal configuration of the energy storage device.
It realizes the low-carbon economic operation of the combined heat and power system, improves the effect of absorbing and curtailing wind, takes into account the low-carbon and economical operation of the system, reduces the impact of wind power output fluctuations, optimizes the capacity configuration of energy storage devices, and improves efficiency. Consumption efficiency of renewable energy.
Smart Images

Figure CN114519459B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of combined heat and power, and specifically relates to a combined heat and power system optimization scheduling method based on scenario analysis and hybrid energy storage. Background Art
[0002] At present, the main solutions for absorbing wind power abandonment are: by improving the system's external transmission capacity, thereby increasing the system's power generation load and increasing the system's space for accepting wind power; by using the method of configuring a heat storage tank to effectively decouple the operation constraints of the thermal power unit "determining electricity by heat", reducing wind power abandonment. In addition, the combined heat and power system can achieve coordinated complementarity among multiple energy sources and improve energy utilization. Configuring energy storage devices in the combined heat and power system can further improve energy utilization, promote wind power absorption, and ensure safe and reliable operation of the system. However, single energy storage has limitations and will affect the absorption and abandonment effect of the entire system, and the capacity configuration of the energy storage device affects the absorption and abandonment effect of the system.
[0003] Therefore, how to establish a combined heat and power system based on hybrid energy storage that can effectively improve the system's wind power absorption effect and ensure the system's low-carbon economic operation, and the optimal configuration of the energy storage device capacity is an issue that needs to be urgently addressed.
[0004] Therefore, based on the above technical problems, it is necessary to design a new optimal scheduling method for combined heat and power systems based on scenario analysis and hybrid energy storage. Summary of the invention
[0005] The purpose of the present invention is to provide a method for optimizing the scheduling of a combined heat and power system based on scenario analysis and hybrid energy storage.
[0006] In order to solve the above technical problems, the present invention provides a method for optimizing the scheduling of a combined heat and power system based on scenario analysis and hybrid energy storage, comprising:
[0007] Establish a digital twin model of a combined heat and power system based on hybrid energy storage;
[0008] Setting up an operation strategy for hybrid energy storage devices in combined heat and power systems to absorb wind curtailment;
[0009] The scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, and several wind power output scenarios and corresponding scenario probabilities corresponding to wind power simulation errors are generated. The scenario reduction technology is used to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimization and scheduling solution of the combined heat and power system.
[0010] Establish an upper-level capacity optimization model: Based on different hybrid energy storage device capacity combinations, establish an objective function that minimizes the investment cost and system operation cost of hybrid energy storage devices under all random scenarios, set relevant constraints, and construct an energy storage device capacity configuration optimization model;
[0011] Establish a lower-level dispatch optimization model: Based on the operating income and cost of the combined heat and power system, establish the objective function of maximizing the system's revenue under all random scenarios, set relevant constraints, and build a low-carbon economic operation model for the combined heat and power system to absorb wind power abandonment;
[0012] Interactive solution of upper and lower models: Bidirectional interactive solution is performed on the energy storage device capacity configuration optimization model and the heat and power combined system wind power absorption and curtailment low-carbon economic operation model to obtain the optimal operation plan of the heat and power combined system and the optimal configuration capacity of the energy storage device.
[0013] Furthermore, the method for establishing a digital twin model of a combined heat and power system based on hybrid energy storage includes:
[0014] The digital twin model of the combined heat and power system based on hybrid energy storage is established by using mechanism modeling and data identification methods, namely:
[0015] Establish physical models of hybrid energy storage devices, cogeneration, wind turbines, and electric boilers;
[0016] The hybrid energy storage device comprises: a heat storage device and an electricity storage device;
[0017] A controllable closed-loop logic model is established based on the logical mechanism relationship between the various physical entities of the combined heat and power system based on hybrid energy storage, and the physical model is mapped to the logical model;
[0018] A simulation model of the combined heat and power system is built based on the collected operation data, status data, and physical property data of the combined heat and power system with hybrid energy storage, and the parameters of the simulation model are optimized according to the error between the predicted value and the actual value output by the simulation model;
[0019] Integrate the physical model, logical model and simulation model into a virtual and real model to build a system-level digital twin model of the physical entity of the combined heat and power system based on hybrid energy storage in the virtual space;
[0020] The real-time operating data of multiple operating conditions of the combined heat and power system based on hybrid energy storage are connected to the system-level digital twin model, and the simulation results of the system-level digital twin model are adaptively identified and corrected using a reverse identification method to obtain the digital twin model of the combined heat and power system based on hybrid energy storage after identification and correction.
[0021] Furthermore, when the electric boiler simulation model is constructed, the electric boiler device converts electrical energy into thermal energy, and optimizes the thermal load curve under the guidance of time-of-use electricity prices. The output thermal power model is expressed as:
[0022] Q eb (t) = η eb P eb (t);
[0023] Among them, Q eb (t) is the thermal power output of the electric boiler at time t; η eb is the heating efficiency; P eb (t) inputting electrical power to the electric boiler;
[0024] The output cost of electric boiler is expressed as:
[0025] C eb (t) = k eb P eb (t);
[0026] Among them, C eb (t) is the output cost of the electric boiler at time t; k eb is the unit output cost coefficient of the electric boiler;
[0027] When the wind turbine simulation model is constructed, the output power of the wind turbine is expressed as:
[0028]
[0029] Among them, P w,t is the wind power output; v is the actual wind speed; v ci 、v co are the cut-in and cut-out wind speeds respectively; P we is the installed capacity of wind power; v r is the rated wind speed;
[0030] When constructing the simulation model of the cogeneration unit,
[0031]
[0032] in, is the electric power output of the cogeneration unit at time t; η GT is the power generation efficiency of the combined heat and power unit; is the thermal power output of the cogeneration unit at time t; η HE is the heat conversion efficiency of the cogeneration unit; is the natural gas consumption of the cogeneration unit at time t; β is the lower calorific value of natural gas;
[0033] When the energy storage device simulation model is established,
[0034]
[0035] Where x is the energy type, x is e for electricity, x is h for heat; E x,t+1 E is the energy after charging or discharging; x,t is the energy before charging or discharging; δ x is the energy loss rate of the energy storage system; P x,c,t , Px,d,t are charging and discharging power respectively; μ x is a 0,1 variable, μ x 0 means energy release, μ x 1 means charging; E x,min 、E x,max are the minimum and maximum energy storage respectively.
[0036] Further, the method for setting the operation strategy of the hybrid energy storage device in the combined heat and power system includes:
[0037] During the period of wind curtailment, the power storage device is first started to store electricity at a low price. When the power storage device reaches its maximum power and still cannot absorb all the curtailed wind, the electric boiler is started to increase the valley value of the electric load. At the same time, the lower limit of the electric power of the thermal power unit is reduced to increase the space for wind power to be connected to the grid. If the electric boiler still cannot absorb all the curtailed wind, the heat storage device is started to increase the space for wind power to be connected to the grid. During the period of peak electric load and low wind power generation, the power storage device releases electricity to reduce the peak value of the electric load and increase profits by using the peak-valley price difference. At the same time, the electric boiler stops heating and the heat storage device releases heat for heating load use.
[0038] Furthermore, the scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, and several wind power output scenarios and corresponding scenario probabilities corresponding to wind power simulation errors are generated. The scenario reduction technology is used to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimal scheduling solution of the combined heat and power system, including:
[0039] The quasi-Monte Carlo method is used to generate wind power output scenarios, including:
[0040] Taking wind speed as a random variable, according to its distribution characteristics, a uniformly distributed quasi-random sequence is generated in the interval [0,1]. Then, the uniformly distributed quasi-random sequence is converted into a normally distributed random number by using an inverse transformation, simulating the probability distribution in the actual wind power output sample, establishing a probability density model, and obtaining the probability of the corresponding scenario; quasi-random sequences include halton sequences and sobol sequences; the inverse transformation of the normal distribution includes the Box-Muller algorithm and the Moro algorithm;
[0041] The K-means clustering algorithm is used to reduce wind power output scenarios, including:
[0042] Randomly select M ε The scene is taken as the cluster center, and the cluster center scene set is expressed as: C = {η ε c}(ε=1,2,...,M s );
[0043] According to the cluster center set, the remaining scene set is determined as:
[0044] Calculate the scene distance from the remaining scenes to the cluster center scene:
[0045] According to the distance matrix D ε,ε′ , classify the remaining scenes into the nearest cluster center; the set after clustering is: Ω={C j}(i=1,2,...,M s ), where C j Represents a collection of similar scenes;
[0046] Cluster center calculation method: Assume cluster C j There is L ε scenes, calculate the sum of the Euclidean distances between each scene and other scenes, and select the scene with the smallest distance as the new cluster center;
[0047] The scene distance and cluster center calculations are repeated until the cluster centers and clustering results no longer change, and the scene reduction is completed.
[0048] Furthermore, an upper-level capacity optimization model is established: based on different hybrid energy storage device capacity combinations, the objective function is established to minimize the investment cost and system operation cost of the hybrid energy storage device under all random scenarios, and relevant constraints are set to construct an energy storage device capacity configuration optimization model, including:
[0049] The objective function is to minimize the investment cost of the hybrid energy storage device and the system operation cost under all random scenarios:
[0050]
[0051] Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring; the operating cost of the combined heat and power system C rdlh,ε It is learned by the lower-level scheduling optimization model;
[0052] Investment cost: C cn,tz,ε =C gl P gl +C tes S tes +C dl P dl +C sw S sw ; C gl is the unit electric boiler capacity cost; P gl is the construction capacity of the electric boiler; C tes is the unit capacity price of the heat storage device; S tes is the construction capacity of the heat storage device; C dl is the unit storage power cost; P dl is the construction capacity of the power storage; Csw is the unit capacity price of the power storage device; S sw Building capacity for electricity storage devices;
[0053] Operation and maintenance cost: C cn,yx,ε =C bat P bat,ε +C ts P ts,ε ; C bat P is the depreciation conversion cost coefficient of the power storage device; bat,ε is the charging or discharging power; C ts P is the depreciation conversion cost coefficient of the heat storage device; ts,ε is the thermal power of the heat storage device under scenario ε;
[0054] Transaction cost: C cn,jy =C bi W bi -C si W si ; C bi , W bi , C si , W si They are the purchase price, purchase quantity, sales price and sales quantity in a period of one day.
[0055] Set up constraints:
[0056] Constraints on the remaining power of the power storage device:
[0057]
[0058] SOC min ≤SOC i ≤SOC max ;
[0059] P bat,ε ≤P bat,ε.max ;
[0060] Among them, SOC i SOC is the remaining capacity of the storage device at any time. i-1 is the remaining power at the previous time point; η bc,ε , η bd,ε are the charging and discharging efficiency of the storage device under scenario ε; SOC min , SOC max are the minimum and maximum remaining power of the storage device under scenario ε; P bat.ε,max is the rated power of the power storage device under scenario ε;
[0061] Constraints on the remaining power of the heat storage device:
[0062]
[0063] Q i,ε ≤Q ε,max ;
[0064] P ts,ε ≤P ts,ε.max ;
[0065] Among them, Q i,ε is the residual heat of the heat storage device at any time point under scenario ε; Q i-1,ε is the residual heat at the previous time point under scenario ε; η tc,ε , η td,ε are the heat storage and heat release efficiencies of the heat storage device under scenario ε; Q ε,max is the maximum residual heat of the heat storage device under scenario ε; P ts,ε.max is the rated power of the heat storage device under scenario ε;
[0066] Heat load demand constraint: P t,load,ε ′≤ td Q t,out,ε +P t,gl,ε ;P t,load,ε ′ is the total heat load demand under scenario ε; P t,gl,ε is the power of the electric boiler at time t under scenario ε; Q t,out,ε is the heat release power of the heat storage device under scenario ε
[0067] Power balance constraint: P t,w,ε =P t,gl,ε +P ess,t,ε ;P t,w,ε P is the planned wind power output at time t under scenario ε; ess,t The wind power abandoned by the storage device at time t under scenario ε.
[0068] Furthermore, a lower-level dispatch optimization model is established: based on the operating income and cost of the combined heat and power system, the objective function is established to maximize the system's benefits under all random scenarios, and relevant constraints are set to construct a low-carbon economic operation model for the combined heat and power system to absorb wind power abandonment, including:
[0069] Establish the objective function of maximizing the system's benefits under all random scenarios:
[0070]
[0071] Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring;
[0072] Combined heat and power electricity revenue:
[0073] Among them, ce is the day-ahead electricity price of the cogeneration unit; P t,s,ε is the revised planned power generation output of the cogeneration unit after considering wind curtailment and peak load regulation under scenario ε; T is the operation scheduling period; Δt is the unit time interval;
[0074] Heat income from combined heat and power generation: c h The heating unit price of the combined heat and power unit; Q t,s,ε is the total thermal output power of the CHP unit and heat storage under scenario ε, is the heat output of the nth CHP unit at time t under scenario ε, Q t,in,ε is the heat storage power of the heat storage device under scenario ε, Q t,out,ε is the heat release power of the heat storage device under scenario ε;
[0075] Power auxiliary peak load revenue:
[0076] Among them, c peak P is the peak-load electricity price for the combined heat and power units participating in wind power consumption; t,s,ε ′ is the planned power generation output of the cogeneration unit in scenario ε without considering wind curtailment and peak load regulation; P t,c,ε and P t,d,ε are the charging power and discharging power of the power storage device under scenario ε respectively;
[0077] Heat storage income: I tes,ε =c peak βQ t,tes,ε ;
[0078] Among them, Q t,tes,ε is the final daily heat storage of the heat storage device under scenario ε; β is the heat-to-electricity ratio of the cogeneration unit;
[0079] Electricity sales revenue: I dl,ε =c dl W sz,ε ;c dl W is the electricity price sold by the system to the power grid; sz,ε To absorb the total amount of abandoned wind power;
[0080] The operating cost of a combined heat and power unit is:
[0081]
[0082] in, is the power output of the nth CHP unit at time t under scenario ε; is the heat output of the nth CHP unit at time t under scenario ε; N is the total number of CHP units; ε CHP is the fuel cost coefficient of the combined heat and power unit; γP and γ H They represent the fuel consumed by the cogeneration unit to produce unit electrical output and unit thermal output respectively;
[0083] The operation and maintenance cost of wind power is:
[0084] t is the tth period; k w P is the wind power operation and maintenance cost coefficient; t,w,ε The planned output of wind power at time t under scenario ε;
[0085] The system carbon emission trading cost is:
[0086] The carbon emission trading cost is calculated based on the actual carbon emissions of wind turbines and cogeneration units and the carbon emission quota, which is expressed as: C carbon is the total cost of carbon emission trading; p carbon is the carbon trading price; is the actual carbon emissions of the unit; The carbon emission quota of the unit;
[0087] σ j is the carbon emission intensity of wind turbines; is the power output of the j-th wind turbine in scenario ε; n is the carbon emission intensity of the electric power of the cogeneration unit; S is the total number of wind turbines; q is the carbon emission quota of electric power;
[0088] The penalty cost for wind curtailment is:
[0089] When the wind turbine output reaches the system upper limit, wind curtailment will occur. The penalty cost of wind curtailment is expressed as: υ w P is the penalty coefficient for wind abandonment; t,w,ε ′ is the actual wind power output at time t under scenario ε;
[0090] Set up constraints for the combined heat and power system:
[0091] Electric power balance constraints: P t,gl,ε is the power of the electric boiler at time t under scenario ε; P t,load,ε is the electric load demand at time t under scenario ε;
[0092] Thermal power balance constraints: η ch is the efficiency of the electric boiler; P t,load,ε ′ is the total heat load demand under scenario ε;
[0093] Cogeneration unit related constraints: including thermal power unit output constraints: is the maximum thermal output of the cogeneration unit under scenario ε; the thermal power unit climbing constraint: -RD n,ε ≤P t,s,ε -P t-1,s,ε ≤RU n,ε ;-RD n,ε , R.U. n,ε are the up and down ramp rates of the CHP unit n under scenario ε, respectively;
[0094] Power storage device operation constraints: E t,es ≤E0;E min ≤E t,es ≤E max ; E t,es is the amount of electricity stored at the end of each day; E0 is the expected initial capacity of the storage device; E max 、E min are the upper and lower limits of the capacity of the power storage device, respectively;
[0095] Thermal storage device operation constraints: 0≤Q t,tes,ε ≤Q tes,ε,max ;Q t,in ≤Q in,ε_max ;Q t,out ≤Q out,ε_max ;Q tes,ε,max is the maximum heat storage value under scenario ε; Q in,ε_max is the maximum heat storage power of the heat storage device under scenario ε; Q out,ε_max is the maximum heat release power of the heat storage device under scenario ε.
[0096] Furthermore, the upper and lower models are interactively solved: the energy storage device capacity configuration optimization model and the combined heat and power system wind power consumption and curtailment low-carbon economic operation model are interactively solved in a two-way manner to obtain the optimal operation plan of the combined heat and power system and the optimal configuration capacity of the energy storage device, including:
[0097] Solving the energy storage device capacity configuration optimization model to obtain the energy storage device capacity configuration information;
[0098] The capacity configuration information of the corresponding energy storage device is used as the decision variable of the lower-level dispatch optimization model to solve the low-carbon economic operation model of the combined heat and power system to absorb wind power abandonment and obtain the optimal operation plan, and return it to the upper-level capacity optimization model;
[0099] The upper-level capacity optimization model recalculates the system operating cost in the objective function according to the optimal operating plan fed back, updates the fitness function, and iterates again to obtain the optimal configuration capacity of the energy storage device according to the optimal operating plan and the capacity configuration information of the energy storage device.
[0100] Furthermore, the algorithms used to solve the upper-level capacity optimization model and the lower-level scheduling optimization model include: particle swarm optimization algorithm, whale algorithm, genetic algorithm, and mixed integer programming method.
[0101] The beneficial effects of the present invention are that the present invention establishes a digital twin model of a combined heat and power system based on hybrid energy storage; sets an operating strategy for a hybrid energy storage device in the combined heat and power system; uses a scenario analysis method to describe the uncertainty of wind power output and generates random scenarios of wind power output; constructs a capacity configuration optimization model for energy storage devices; constructs a low-carbon economic operation model for a combined heat and power system that absorbs abandoned wind power; and interactively solves a two-layer model to obtain the optimal operation plan of the system and the optimal capacity configuration of the energy storage device, thereby realizing prediction based on the digital twin model, making decisions based on the prediction results, establishing an intelligent combined heat and power system, and using a scenario analysis method to weaken the impact of wind power output volatility. First, a quasi-Monte Carlo method is used to generate wind power output scenarios to ensure scenario diversity, and then a clustering algorithm is used to reduce the complexity of the solution and the amount of calculation, so as to take into account the efficiency of the two-layer model solution and ensure the low-carbon, economical and renewable energy absorption of the system operation.
[0102] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0103] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0104] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0105] Figure 1 It is a flow chart of the method for optimizing the scheduling of a combined heat and power system based on scenario analysis and hybrid energy storage of the present invention;
[0106] Figure 2 This is a schematic diagram of the structure of the optimization scheduling model of the present invention. DETAILED DESCRIPTION
[0107] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0108] like Figure 1 , 2 As shown, this embodiment provides a method for optimizing scheduling of a combined heat and power system based on scenario analysis and hybrid energy storage, including:
[0109] Establish a digital twin model of a combined heat and power system based on hybrid energy storage;
[0110] Setting up an operation strategy for hybrid energy storage devices in combined heat and power systems to absorb wind curtailment;
[0111] The scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, and several wind power output scenarios and corresponding scenario probabilities corresponding to wind power simulation errors are generated. The scenario reduction technology is used to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimization and scheduling solution of the combined heat and power system.
[0112] Establish an upper-level capacity optimization model: Based on different hybrid energy storage device capacity combinations, establish an objective function that minimizes the investment cost and system operation cost of hybrid energy storage devices under all random scenarios, set relevant constraints, and construct an energy storage device capacity configuration optimization model;
[0113] Establish a lower-level dispatch optimization model: Based on the operating income and cost of the combined heat and power system, establish the objective function of maximizing the system's revenue under all random scenarios, set relevant constraints, and build a low-carbon economic operation model for the combined heat and power system to absorb wind power abandonment;
[0114] Interactive solution of upper and lower models: Bidirectional interactive solution is performed on the energy storage device capacity configuration optimization model and the heat and power combined system wind power absorption and curtailment low-carbon economic operation model to obtain the optimal operation plan of the heat and power combined system and the optimal configuration capacity of the energy storage device.
[0115] By establishing a digital twin model of a combined heat and power system based on hybrid energy storage; setting the operation strategy of the hybrid energy storage device in the combined heat and power system; using scenario analysis to describe the uncertainty of wind power output and generate random scenarios of wind power output; constructing a capacity configuration optimization model for energy storage devices; constructing a low-carbon economic operation model for the combined heat and power system to absorb wind curtailment; interactively solving the two-layer model to obtain the optimal operation plan of the system and the optimal capacity configuration of the energy storage device, it is possible to make predictions based on the digital twin model, make decisions based on the prediction results, establish an intelligent combined heat and power system, and use scenario analysis to weaken the impact of wind power output volatility. First, the quasi-Monte Carlo method is used to simulate and generate wind power output scenarios to ensure scenario diversity, and then the generated scenarios are reduced through a clustering algorithm to reduce the complexity of the solution and the amount of calculation, so as to take into account the efficiency of the two-layer model solution and ensure the low-carbon, economical and renewable energy absorption of the system operation.
[0116] In this embodiment, the mechanism modeling and data identification method is used to establish a digital twin model of a combined heat and power system based on hybrid energy storage, specifically including: constructing a physical model, a logical model and a simulation model of a combined heat and power system based on hybrid energy storage; wherein, the establishment of the physical model includes the following steps: establishing physical models of hybrid energy storage devices, cogeneration, wind turbines, and electric boiler entities; the hybrid energy storage device includes at least a heat storage device and an electricity storage device; the establishment of the logical model includes the following steps: establishing a controllable closed-loop logical model based on the logical mechanism relationship between the various physical entities of the combined heat and power system based on hybrid energy storage, and mapping the physical model to the logical model; the establishment of the simulation model includes the following steps: based on the collected operating data of the combined heat and power system with hybrid energy storage A simulation model of a combined heat and power system is built based on the physical data, state data, and physical property data, and the parameters of the simulation model are optimized according to the error between the predicted value and the actual value output by the simulation model; the physical model, the logical model, and the simulation model are integrated into a virtual and real model to construct a system-level digital twin model of the physical entity of the combined heat and power system based on hybrid energy storage in a virtual space; the real-time operation data of multiple operating conditions of the combined heat and power system based on hybrid energy storage are connected to the system-level digital twin model, and the simulation results of the system-level digital twin model are adaptively identified and corrected by a reverse identification method to obtain a digital twin model of the combined heat and power system based on hybrid energy storage after identification and correction; by setting different types of energy storage devices and corresponding operation strategies, the effect of the combined heat and power system in absorbing abandoned wind is guaranteed;
[0117] In this embodiment, when the electric boiler simulation model is constructed, the electric boiler device can convert electrical energy into thermal energy, and optimize the thermal load curve under the guidance of time-of-use electricity prices. The output thermal power model is expressed as:
[0118] Q eb (t) = η eb Peb (t);
[0119] Among them, Q eb (t) is the thermal power output of the electric boiler at time t; η eb is the heating efficiency; P eb (t) inputting electrical power to the electric boiler;
[0120] The output cost of electric boiler is expressed as:
[0121] C eb (t) = k eb P eb (t);
[0122] Among them, C eb (t) is the output cost of the electric boiler at time t; k eb is the unit output cost coefficient of the electric boiler;
[0123] When the wind turbine simulation model is constructed, the output power of the wind turbine is expressed as:
[0124]
[0125] Among them, P w,t is the wind power output; v is the actual wind speed; v ci 、v co are the cut-in and cut-out wind speeds respectively; P we is the installed capacity of wind power; v r is the rated wind speed;
[0126] When constructing the simulation model of the cogeneration unit, the cogeneration unit includes a gas turbine and a waste heat recovery device. The waste heat is recovered through the waste heat recovery device to achieve the cascade utilization of energy. The model is expressed as:
[0127]
[0128] in, is the electric power output of the cogeneration unit at time t; η GT is the power generation efficiency of the combined heat and power unit; is the thermal power output of the cogeneration unit at time t; η HE is the heat conversion efficiency of the cogeneration unit; is the natural gas consumption of the cogeneration unit at time t; β is the lower calorific value of natural gas;
[0129] When the energy storage device simulation model is established, the energy storage device stores energy when there is excess energy or low prices, and releases energy when demand peaks or prices are high. The heat storage process is similar to the electricity storage process, and the generalized energy storage model is expressed as:
[0130]
[0131] Where x is the energy type, x is e for electricity, x is h for heat; E x,t+1 E is the energy after charging or discharging; x,t is the energy before charging or discharging; δ x is the energy loss rate of the energy storage system; P x,c,t , P x,d,t are charging and discharging power respectively; μ x is a 0,1 variable, μ x 0 means energy release, μ x 1 means charging; E x,min 、E x,max are the minimum and maximum energy storage respectively; Δt is 1h, and the scheduling period is 24h.
[0132] In this embodiment, the method for setting the operation strategy of the hybrid energy storage device in the combined heat and power system includes: in the period of wind abandonment, first start the power storage device to store electric energy at a low price; when the power storage device reaches the maximum power and still cannot absorb all the abandoned wind, start the electric boiler to increase the valley value of the electric load, and at the same time reduce the lower limit of the electric power of the thermal power unit to increase the space for wind power to be connected to the grid; if the electric boiler still cannot absorb all the abandoned wind, start the heat storage device to increase the space for wind power to be connected to the grid; in the period of peak electric load and low wind power generation, the power storage device releases electric energy to reduce the peak value of the electric load, and uses the peak-valley price difference to increase the profit; at the same time, the electric boiler stops heating, and the heat storage device releases heat for heating load use.
[0133] It should be noted that the operation strategy of the hybrid energy storage device can be set according to various scenarios based on actual conditions. The hybrid energy storage device is not limited to heat storage devices and electricity storage devices, but can also be other energy storage devices (gas storage devices for electricity-to-gas conversion). The priority operation strategies of different energy storage devices are set to achieve the system's absorption of wind power abandonment and low-carbon operation; and when setting the operation strategy of the hybrid energy storage device in the combined heat and power system, the coordinated operation strategy of electric / heat hybrid energy storage is studied, and energy storage equipment with good economic performance is started first. The efficiency of electricity storage is high, while electric boilers need to convert high-quality electric energy into low-quality thermal energy first, which is inefficient and uneconomical. Therefore, the priority of starting electric energy storage devices to absorb wind power abandonment should be higher than that of electric boilers; electric boilers can absorb wind power abandonment in two ways. On the one hand, they can fill the electricity load valley, and on the other hand, they can reduce the thermal output of thermal power units, thereby reducing the electrical output of thermal power units, thereby increasing the space for wind power to be connected to the grid. The way that heat storage devices absorb wind power curtailment is only equivalent to the first way that electric boilers absorb wind power curtailment. Therefore, to absorb the same amount of wind power curtailment, the required electric boiler capacity is smaller and the efficiency is higher. Therefore, the priority of starting electric boilers to absorb wind power curtailment should be higher than that of heat storage devices.
[0134] In this embodiment, the scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, generate several wind power output scenarios corresponding to wind power simulation errors and corresponding scenario probabilities, and use scenario reduction technology to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimization scheduling solution of the combined heat and power system, specifically including:
[0135] The quasi-Monte Carlo method is used to generate wind power output scenarios, including:
[0136] Taking wind speed as a random variable, according to its distribution characteristics, a uniformly distributed quasi-random sequence is generated in the interval [0,1]. Then, the uniformly distributed quasi-random sequence is converted into a normally distributed random number by using an inverse transformation, simulating the probability distribution in the actual wind power output sample, establishing a probability density model, and obtaining the probability of the corresponding scenario; quasi-random sequences include halton sequences and sobol sequences; the inverse transformation of the normal distribution includes the Box-Muller algorithm and the Moro algorithm;
[0137] The K-means clustering algorithm is used to reduce wind power output scenarios, including:
[0138] Randomly select M ε The scene is taken as the cluster center, and the cluster center scene set is expressed as: C = {η ε c}(ε=1,2,...,M s );
[0139] According to the cluster center set, the remaining scene set is determined as:
[0140] Calculate the scene distance from the remaining scenes to the cluster center scene:
[0141] According to the distance matrix D ε,ε′ , classify the remaining scenes into the nearest cluster center; the set after clustering is: Ω={C j}(i=1,2,...,M s ), where C j Represents a collection of similar scenes;
[0142] Cluster center calculation method: Assume cluster C j There is L ε scenes, calculate the sum of the Euclidean distances between each scene and other scenes, and select the scene with the smallest distance as the new cluster center;
[0143] The scene distance and cluster center calculations are repeated until the cluster centers and clustering results no longer change, and the scene reduction is completed.
[0144] In this embodiment, an upper capacity optimization model is established: based on different hybrid energy storage device capacity combinations, an objective function is established to minimize the investment cost and system operation cost of the hybrid energy storage device under all random scenarios, relevant constraints are set, and an energy storage device capacity configuration optimization model is constructed, including:
[0145] The objective function is to minimize the investment cost of the hybrid energy storage device and the system operation cost under all random scenarios:
[0146]
[0147] Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring; the operating cost of the combined heat and power system C rdlh,ε It is learned by the lower-level scheduling optimization model;
[0148] Investment cost: C cn,tz,ε =C gl P gl +C tes S tes +C dl P dl +C sw S sw ; C gl is the unit electric boiler capacity cost; P gl is the construction capacity of the electric boiler; C tes is the unit capacity price of the heat storage device; S tes is the construction capacity of the heat storage device; C dl is the unit storage power cost; P dl is the construction capacity of the power storage; C sw is the unit capacity price of the power storage device; S sw Building capacity for electricity storage devices;
[0149] Operation and maintenance cost: C cn,yx,ε =C bat P bat,ε +C ts P ts,ε ; C bat P is the depreciation conversion cost coefficient of the power storage device; bat,ε is the charging or discharging power; C ts P is the depreciation conversion cost coefficient of the heat storage device; ts,ε is the thermal power of the heat storage device under scenario ε;
[0150] Transaction cost: C cn,jy =C bi W bi -C si W si ; Cbi , W bi , C si , W si They are the purchase price, purchase quantity, sales price and sales quantity in a period of one day.
[0151] Set up constraints:
[0152] Constraints on the remaining power of the power storage device:
[0153]
[0154] SOC min ≤SOC i ≤SOC max ;
[0155] P bat,ε ≤P bat,ε.max ;
[0156] Among them, SOC i SOC is the remaining capacity of the storage device at any time. i-1 is the remaining power at the previous time point; η bc,ε , η bd,ε are the charging and discharging efficiency of the storage device under scenario ε; SOC min , SOC max are the minimum and maximum remaining power of the storage device under scenario ε; P bat.ε,max is the rated power of the power storage device under scenario ε;
[0157] Constraints on the remaining power of the heat storage device:
[0158]
[0159] Q i,ε ≤Q ε,max ;
[0160] P ts,ε ≤P ts,ε.max ;
[0161] Among them, Q i,ε is the residual heat of the heat storage device at any time point under scenario ε; Q i-1,ε is the residual heat at the previous time point under scenario ε; η tc,ε , η td,ε are the heat storage and heat release efficiencies of the heat storage device under scenario ε; Q ε,max is the maximum residual heat of the heat storage device under scenario ε; P ts,ε.max is the rated power of the heat storage device under scenario ε;
[0162] Heat load demand constraint: P t,load,ε ′≤ηtd Q t,out,ε +P t,gl,ε ;P t,load,ε ′ is the total heat load demand under scenario ε; P t,gl,ε is the power of the electric boiler at time t under scenario ε; Q t,out,ε is the heat release power of the heat storage device under scenario ε
[0163] Power balance constraint: P t,w,ε =P t,gl,ε +P ess,t,ε ;P t,w,ε P is the planned wind power output at time t under scenario ε; ess,t The wind power abandoned by the storage device at time t under scenario ε.
[0164] In this embodiment, a lower-level dispatch optimization model is established: based on the operating income and cost of the combined heat and power system, the objective function is established to maximize the benefits of the system under all random scenarios, and relevant constraints are set to construct a low-carbon economic operation model for the combined heat and power system to absorb wind power abandonment, including:
[0165] Establish the objective function of maximizing the system's benefits under all random scenarios:
[0166]
[0167] Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring;
[0168] Combined heat and power electricity revenue:
[0169] Among them, c e is the day-ahead electricity price of the cogeneration unit; P t,s,ε is the revised planned power generation output of the cogeneration unit after considering wind curtailment and peak load regulation under scenario ε; T is the operation scheduling period; Δt is the unit time interval;
[0170] Heat income from combined heat and power generation: c h The heating unit price of the combined heat and power unit; Q t,s,ε is the total thermal output power of the CHP unit and heat storage under scenario ε, is the heat output of the nth CHP unit at time t under scenario ε, Q t,in,ε is the heat storage power of the heat storage device under scenario ε, Q t,out,ε is the heat release power of the heat storage device under scenario ε;
[0171] Power auxiliary peak load revenue:
[0172] Among them, c peak P is the peak-load electricity price for the combined heat and power units participating in wind power consumption; t,s,ε ′ is the planned power generation output of the cogeneration unit in scenario ε without considering wind curtailment and peak load regulation; P t,c,ε and P t,d,ε are the charging power and discharging power of the power storage device under scenario ε respectively;
[0173] Heat storage income: I tes,ε =c peak βQ t,tes,ε ;
[0174] Among them, Q t,tes,ε is the final daily heat storage of the heat storage device under scenario ε; β is the heat-to-electricity ratio of the cogeneration unit;
[0175] Electricity sales revenue: I dl,ε =c dl W sz,ε ;c dl W is the electricity price sold by the system to the power grid; sz,ε To absorb the total amount of abandoned wind power;
[0176] The operating cost of a combined heat and power unit is:
[0177]
[0178] in, is the power output of the nth CHP unit at time t under scenario ε; is the heat output of the nth CHP unit at time t under scenario ε; N is the total number of CHP units; ε CHP is the fuel cost coefficient of the combined heat and power unit; γ P and γ H They represent the fuel consumed by the cogeneration unit to produce unit electrical output and unit thermal output respectively;
[0179] The operation and maintenance cost of wind power is:
[0180] t is the tth period; k w P is the wind power operation and maintenance cost coefficient; t,w,ε The planned output of wind power at time t under scenario ε;
[0181] The system carbon emission trading cost is:
[0182] The carbon emission trading cost is calculated based on the actual carbon emissions of wind turbines and cogeneration units and the carbon emission quota, which is expressed as: C carbon is the total cost of carbon emission trading; p carbon is the carbon trading price; is the actual carbon emissions of the unit; The carbon emission quota of the unit;
[0183] σ j is the carbon emission intensity of wind turbines; is the power output of the j-th wind turbine in scenario ε; n is the carbon emission intensity of the electric power of the cogeneration unit; S is the total number of wind turbines; q is the carbon emission quota of electric power;
[0184] The penalty cost for wind curtailment is:
[0185] When the wind turbine output reaches the system upper limit, wind curtailment will occur. The penalty cost of wind curtailment is expressed as: υ w P is the penalty coefficient for wind abandonment; t,w,ε ′ is the actual wind power output at time t under scenario ε;
[0186] Set up constraints for the combined heat and power system:
[0187] Electric power balance constraints: P t,gl,ε is the power of the electric boiler at time t under scenario ε; P t,load,ε is the electric load demand at time t under scenario ε;
[0188] Thermal power balance constraints: η ch is the efficiency of the electric boiler; P t,load,ε ′ is the total heat load demand under scenario ε;
[0189] Cogeneration unit related constraints: including thermal power unit output constraints: is the maximum thermal output of the cogeneration unit under scenario ε; the thermal power unit climbing constraint: -RD n,ε ≤P t,s,ε -P t-1,s,ε ≤RU n,ε ;-RD n,ε , R.U. n,ε are the up and down ramp rates of the CHP unit n under scenario ε, respectively;
[0190] Power storage device operation constraints: E t,es ≤E0;E min ≤E t,es ≤E max ; E t,es is the amount of electricity stored at the end of each day; E0 is the expected initial capacity of the storage device; E max 、E min are the upper and lower limits of the capacity of the power storage device, respectively;
[0191] Thermal storage device operation constraints: 0≤Q t,tes,ε ≤Q tes,ε,max ;Q t,in ≤Q in,ε_max ;Q t,out ≤Q out,ε_max ;Q tes,ε,max is the maximum heat storage value under scenario ε; Q in,ε_max is the maximum heat storage power of the heat storage device under scenario ε; Q out,ε_max is the maximum heat release power of the heat storage device under scenario ε.
[0192] The calculation of carbon emissions is closely related to the unit's electrical output. Since the output of thermal power units includes both electrical energy and thermal energy, the heat supply needs to be converted into equivalent electrical energy when calculating the carbon emissions and carbon emission quotas of thermal power units, and the carbon emission intensity is introduced to measure the unit's carbon emission capacity. The higher the carbon emission intensity, the more carbon emissions the unit will release in the same environment. The carbon emission quota mainly depends on the regional allowable carbon emission level, and different quotas are allocated according to the unit's electrical output. In the establishment of the upper-level optimization model, not only the combined heat and power income, peak-shaving income, heat storage income, electricity sales income, combined heat and power operation costs, and wind power operation and maintenance costs are considered, but also the system carbon emission trading costs and wind abandonment penalty costs are considered. An optimized operation model for the combined heat and power system to absorb and abandon wind in a low-carbon environment is constructed, which is conducive to reducing thermal output and wind abandonment rates. Under the action of the carbon emission trading mechanism, the electrical output of thermal power units with higher carbon emission intensity can be reduced first, so that the total coal consumption can be reduced, and the low-carbon requirements can be met while improving the wind power absorption level.
[0193] In this embodiment, the upper and lower models are interactively solved: the energy storage device capacity configuration optimization model and the combined heat and power system wind power consumption and curtailment low-carbon economic operation model are interactively solved in a two-way manner to obtain the optimal operation plan of the combined heat and power system and the optimal configuration capacity of the energy storage device, including:
[0194] Solving the energy storage device capacity configuration optimization model to obtain the energy storage device capacity configuration information;
[0195] The capacity configuration information of the corresponding energy storage device is used as the decision variable of the lower-level dispatch optimization model to solve the low-carbon economic operation model of the combined heat and power system to absorb wind power abandonment and obtain the optimal operation plan, and return it to the upper-level capacity optimization model;
[0196] The upper-level capacity optimization model recalculates the system operating cost in the objective function according to the optimal operating plan fed back, updates the fitness function, and iterates again to obtain the optimal configuration capacity of the energy storage device according to the optimal operating plan and the capacity configuration information of the energy storage device.
[0197] In this embodiment, the algorithms used to solve the upper-layer capacity optimization model and the lower-layer scheduling optimization model include: particle swarm optimization algorithm, whale algorithm, genetic algorithm, and mixed integer programming method.
[0198] In practical applications, solving the energy storage device capacity configuration optimization model to obtain energy storage device capacity configuration information includes:
[0199] Improvements to the whale algorithm include: embedding quadratic interpolation in the spiral position update mechanism; replacing the shrinking and encircling mechanism with a random Levy flight strategy that alternates between long and short search steps;
[0200] The initial whale population is randomly generated according to the constraints, the randomly generated N whales are used as the initial whale group, and the spatial position of the individual whales is used as the decision variable for capacity configuration;
[0201] Using the objective function in the capacity configuration optimization model, the fitness value of each individual in the whale group is calculated, and the best individual position of the whale in the current group is found and saved;
[0202] The position of the whale group is updated according to different parameter values. When it is less than the number of iterations, the parameters of each individual whale group are updated: a, A, B, l, p1, p2; check whether the updated position of any individual whale exceeds the search space, and correct the position of the whale that exceeds the search space; the update of the position of the whale group includes: when the random parameter p1<0.5 and |A|<1, the surround predation mechanism is used to update the position of the individual whale; when p1<0.5 and |A|≥1, the improved shrinking and surrounding mechanism is used to update the current position of the individual whale; when the random parameter p1≥0.5 and p2≥0.6, the quadratic interpolation update mechanism is used; when the random parameter p1≥0.5 and p2<0.6, the spiral position update mechanism is used;
[0203] The objective function is used to calculate the updated fitness value of each whale group individual, find and save the best whale individual in the group, and determine whether the optimal solution of the objective function is met. If it is met, the spatial position of the best whale individual and its corresponding fitness value are output, which is the optimal solution for capacity configuration optimization; otherwise, the next iteration is repeated. In the process of solving the upper and lower optimization models, an improved genetic algorithm and an improved whale algorithm are designed respectively. Compared with the traditional genetic algorithm and whale algorithm, they can significantly accelerate the convergence of the objective function, have strong global optimization capabilities, and improve calculation accuracy.
[0204] It should be noted that the embedded quadratic interpolation method can improve the algorithm's development capabilities and conduct a detailed search for potential spaces. In addition, combined with the characteristics of random search of Levy flight with adaptive step size, the algorithm can jump out of the local optimum and conduct a global search, overcoming the problem that the original whale optimization algorithm is prone to fall into the local optimum, resulting in premature convergence and low precision of the optimization results. There is a certain interactive relationship between the upper optimization model and the lower optimization model. The optimal solution of the capacity configuration obtained in the lower optimization model is input into the upper optimization model. The low-carbon economic operation model of the combined heat and power system to absorb wind curtailment is solved according to the capacity configuration, and the equipment operating status and working parameters under the low-carbon operation of the system are obtained. The two-layer optimization model affects each other, and the optimal operating parameters of the system are obtained through interactive solution.
[0205] In practical applications, the method for solving the low-carbon economic operation model of the combined heat and power system to absorb wind curtailment and obtain the optimal operation plan includes:
[0206] Improvements to the genetic algorithm include: operator improvements: calculating individual fitness values, combining the roulette wheel selection method with the optimal preservation strategy to retain excellent individuals; crossover and mutation improvements: replacing the traditional fixed crossover probability with a dynamically changing crossover probability strategy, and then recombining the crossovers between individuals in the population; using an adaptive mutation probability strategy to perform mutation operations on individuals in the population;
[0207] Set relevant parameters of the combined heat and power system, including at least wind turbines, combined heat and power units, energy storage devices, electricity prices, and load information parameters;
[0208] Set the population size and the maximum number of iterations, use the improved selection operator method to obtain individuals, and determine whether the fitness value of the individual meets the iteration termination condition. If the maximum number of iterations has been reached, decode the optimal individual with the fitness value; otherwise, continue iterating;
[0209] Use improved crossover and mutation strategies to calculate crossover probability and mutation probability;
[0210] Perform selection, crossover, and mutation operations to generate a new generation of populations and iterate again;
[0211] When the optimal individual with the best fitness value is obtained after iteration and the maximum number of iterations is reached, the minimum value of the objective function is output, and the optimal control strategy for accommodating wind curtailment in the combined heat and power system is obtained.
[0212] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0213] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0214] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0215] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for optimizing the scheduling of a combined heat and power system based on scenario analysis and hybrid energy storage, characterized in that: include: Establish a digital twin model of a combined heat and power system based on hybrid energy storage; Setting up an operation strategy for hybrid energy storage devices in combined heat and power systems to absorb wind curtailment; The scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, and several wind power output scenarios and corresponding scenario probabilities corresponding to wind power simulation errors are generated. The scenario reduction technology is used to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimization and scheduling solution of the combined heat and power system. Establish an upper-level capacity optimization model: Based on different hybrid energy storage device capacity combinations, establish an objective function that minimizes the investment cost and system operation cost of hybrid energy storage devices under all random scenarios, set relevant constraints, and construct an energy storage device capacity configuration optimization model; Establish a lower-level dispatch optimization model: Based on the operating income and cost of the combined heat and power system, establish the objective function of maximizing the system's revenue under all random scenarios, set relevant constraints, and build a low-carbon economic operation model for the combined heat and power system to absorb wind power abandonment; Interactive solution of upper and lower models: Bidirectional interactive solution of the energy storage device capacity configuration optimization model and the combined heat and power system wind power consumption and low-carbon economic operation model to obtain the optimal operation plan of the combined heat and power system and the optimal configuration capacity of the energy storage device; The method for establishing a digital twin model of a combined heat and power system based on hybrid energy storage includes: The digital twin model of the combined heat and power system based on hybrid energy storage is established by using mechanism modeling and data identification methods, namely: Establish physical models of hybrid energy storage devices, cogeneration, wind turbines, and electric boilers; The hybrid energy storage device comprises: a heat storage device and an electricity storage device; A controllable closed-loop logic model is established based on the logical mechanism relationship between the various physical entities of the combined heat and power system based on hybrid energy storage, and the physical model is mapped to the logical model; A simulation model of the combined heat and power system is built based on the collected operation data, status data, and physical property data of the combined heat and power system with hybrid energy storage, and the parameters of the simulation model are optimized according to the error between the predicted value and the actual value output by the simulation model; Integrate the physical model, logical model and simulation model into a virtual and real model to build a system-level digital twin model of the physical entity of the combined heat and power system based on hybrid energy storage in the virtual space; The real-time operating data of multiple operating conditions of the combined heat and power system based on hybrid energy storage is connected to the system-level digital twin model, and the simulation results of the system-level digital twin model are adaptively identified and corrected using the reverse identification method to obtain the digital twin model of the combined heat and power system based on hybrid energy storage after identification and correction. The method for setting an operation strategy of a hybrid energy storage device in a combined heat and power system comprises: During the period of wind curtailment, the power storage device is first started to store electricity at a low price. When the power storage device reaches the maximum power and still cannot absorb all the wind curtailment, the electric boiler is started to increase the valley value of the electric load, while reducing the lower limit of the electric power of the thermal power unit to increase the space for wind power to be connected to the grid; if the electric boiler still cannot absorb all the wind curtailment, the heat storage device is started again to increase the space for wind power to be connected to the grid; during the peak of electric load and the low generation of wind power, the power storage device releases electric energy to reduce the peak of the electric load and increase the profit by using the peak-valley price difference; at the same time, the electric boiler stops heating and the heat storage device releases heat for heating load use; The scenario analysis method is used to describe the uncertainty of wind power generation in the combined heat and power system, and several wind power output scenarios and corresponding scenario probabilities corresponding to wind power simulation errors are generated. The scenario reduction technology is used to process the wind power output scenarios to generate random wind power output scenarios, and participate in the optimal scheduling solution of the combined heat and power system, including: The quasi-Monte Carlo method is used to generate wind power output scenarios, including: Taking wind speed as a random variable, according to its distribution characteristics, a uniformly distributed quasi-random sequence is generated in the interval [0,1]. Then, the uniformly distributed quasi-random sequence is converted into a normally distributed random number by using an inverse transformation, simulating the probability distribution in the actual wind power output sample, establishing a probability density model, and obtaining the probability of the corresponding scenario; quasi-random sequences include halton sequences and sobol sequences; the inverse transformation of the normal distribution includes the Box-Muller algorithm and the Moro algorithm; The K-means clustering algorithm is used to reduce wind power output scenarios, including: Randomly select M ε The scene is taken as the cluster center, and the cluster center scene set is expressed as: C = {η ε c }(ε=1,2,...,M s ); According to the cluster center set, the remaining scene set is determined as: Calculate the scene distance from the remaining scenes to the cluster center scene: According to the distance matrix D ε,ε′ , classify the remaining scenes into the nearest cluster center; the set after clustering is: Ω={C j }(i=1,2,…,M s ), where C j Represents a collection of similar scenes; Cluster center calculation method: Assume cluster C j There is L ε scenes, calculate the sum of the Euclidean distances between each scene and other scenes, and select the scene with the smallest distance as the new cluster center; Repeat the scene distance and cluster center calculation until the cluster center and clustering results no longer change, and the scene reduction is completed; The upper capacity optimization model is established: based on different hybrid energy storage device capacity combinations, an objective function is established with the minimum investment cost and system operation cost of the hybrid energy storage device under all random scenarios as the objective function, relevant constraints are set, and an energy storage device capacity configuration optimization model is constructed, including: The objective function is to minimize the investment cost of the hybrid energy storage device and the system operation cost under all random scenarios: Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring; the operating cost of the combined heat and power system C rdlh,ε It is learned by the lower-level scheduling optimization model; Investment cost: C cn,tz =C gl P gl +C tes S tes +C dl P dl +C sw S sw ; C gl is the unit electric boiler capacity cost; P gl is the construction capacity of the electric boiler; C tes is the unit capacity price of the heat storage device; S tes is the construction capacity of the heat storage device; C dl is the unit storage power cost; P dl is the construction capacity of the power storage; C sw is the unit capacity price of the power storage device; S sw Building capacity for electricity storage devices; Operation and maintenance cost: C cn,yx,ε =C bat P bat ,εC ts P ts,ε ; C bat P is the depreciation conversion cost coefficient of the power storage device; bat,ε is the charging or discharging power; C ts P is the depreciation conversion cost coefficient of the heat storage device; ts,≤ is the thermal power of the heat storage device under scenario ≤; Transaction cost: C cn,jy =C bi W bi -C si W si ; C bi , W bi , C si , W si They are the purchase price, purchase quantity, sales price and sales quantity in a period of one day. Set up constraints: Constraints on the remaining power of the power storage device: SOC min ≤SOC i ≤SOC max ; P bat,ε ≤P bat,≤.max ; Among them, SOC i SOC is the remaining capacity of the storage device at any time. i-1 is the remaining power at the previous time point; η bc,ε , η bd,ε are the charging and discharging efficiency of the storage device under scenario ε; SOC min , SOC max are the minimum and maximum remaining power of the storage device under scenario ε; P bat.ε,max is the rated power of the power storage device under scenario ε; Constraints on the remaining power of the heat storage device: Q i,ε ≤Q ε,max ; P ts,ε ≤P ts,ε.max ; Among them, Q i,ε is the residual heat of the heat storage device at any time point under scenario ε; Q i-1,ε is the residual heat at the previous time point under scenario ε; η tc,ε , η td,ε are the heat storage and heat release efficiencies of the heat storage device under scenario ε; Q ε,max is the maximum residual heat of the heat storage device under scenario ε; P ts,ε.max is the rated power of the heat storage device under scenario ε; Heat load demand constraint: P t,load,ε ′≤η td Q t,out,ε +P t,gl,ε ;P t,load,ε ′ is the total heat load demand under scenario ε; P t,gl,ε is the power of the electric boiler at time t under scenario ε; Q t,out,ε is the heat release power of the heat storage device under scenario ε; Power balance constraint: P t,w, ε=P t,gl,ε +P ess,t,ε ;P t,w,ε is the planned output of wind power at time t under scenario ε; P ess,t The wind power abandoned by the storage device at time t under scenario ε; The establishment of the lower-level dispatch optimization model: based on the operating income and cost of the combined heat and power system, establishes the objective function of maximizing the system's benefits under all random scenarios, sets relevant constraints, and constructs a low-carbon economic operation model for the combined heat and power system to absorb abandoned wind, including: Establish the objective function of maximizing the system's benefits under all random scenarios: Among them, L ε is the number of random scenes, π ε is the probability of scenario ε occurring; Combined heat and power electricity revenue: Among them, c e is the day-ahead electricity price of the cogeneration unit; P t,s,ε is the revised planned power generation output of the cogeneration unit after considering wind curtailment and peak load regulation under scenario ε; T is the operation scheduling period; Δt is the unit time interval; Heat income from combined heat and power generation: c h The heating unit price of the combined heat and power unit; Q t,s,ε is the total thermal output power of the CHP unit and heat storage under scenario ε, is the heat output of the nth CHP unit at time t under scenario ε, Q t,in,ε is the heat storage power of the heat storage device under scenario ε, Q t,out,ε is the heat release power of the heat storage device under scenario ε; Power auxiliary peak load revenue: Among them, c peak P is the peak-load electricity price for the combined heat and power units participating in wind power consumption; t,s,ε ′ is the planned power generation output of the cogeneration unit in scenario ε without considering wind curtailment and peak load regulation; P t,c,ε and P t,d,ε are the charging power and discharging power of the power storage device under scenario ε respectively; Heat storage income: I tes,ε =c peak βQ t,tes,ε ; Among them, Q t,tes,ε is the final daily heat storage of the heat storage device under scenario ≤; β is the heat-to-electricity ratio of the cogeneration unit; Electricity sales revenue: I dl,ε =c dl W sz,ε ;c dl W is the electricity price sold by the system to the power grid; sz,ε To absorb the total amount of abandoned wind power; The operating cost of a combined heat and power unit is: in, is the power output of the nth CHP unit at time t under scenario ε; is the heat output of the nth CHP unit at time t under scenario ε; N is the total number of CHP units; ε CHP is the fuel cost coefficient of the combined heat and power unit; γ P and γ H They represent the fuel consumed by the cogeneration unit to produce unit electrical output and unit thermal output respectively; The operation and maintenance cost of wind power is: t is the tth period; k w P is the wind power operation and maintenance cost coefficient; t,w,ε The planned output of wind power at time t under scenario ε; The system carbon emission trading cost is: The carbon emission trading cost is calculated based on the actual carbon emissions of wind turbines and cogeneration units and the carbon emission quota, which is expressed as: C carbon is the total cost of carbon emission trading; p carbon is the carbon trading price; is the actual carbon emissions of the unit; The carbon emission quota of the unit; σ j is the carbon emission intensity of wind turbines; is the power output of the j-th wind turbine in scenario ε; n is the carbon emission intensity of the electric power of the cogeneration unit; S is the total number of wind turbines; q is the carbon emission quota of electric power; The penalty cost for wind curtailment is: When the wind turbine output reaches the system upper limit, wind curtailment will occur. The penalty cost of wind curtailment is expressed as: v w P is the wind abandonment penalty coefficient; t,w,ε ′ is the actual wind power output at time t under scenario ε; Set up constraints for the combined heat and power system: Electric power balance constraints: P t,gl,ε is the power of the electric boiler at time t under scenario ε; P t,load,ε is the electric load demand at time t under scenario ε; Thermal power balance constraints: η ch is the efficiency of the electric boiler; P t,load,ε ′ is the total heat load demand under scenario ε; Cogeneration unit related constraints: including thermal power unit output constraints: is the maximum thermal output of the cogeneration unit under scenario ε; the thermal power unit climbing constraint: -RD n,ε ≤P t,s,ε -P t-1,s,ε ≤RU n,ε ;-RD n,ε , R.U. n,ε are the up and down ramp rates of the CHP unit n under scenario ε, respectively; Power storage device operation constraints: E t,es ≤E0;E min ≤E t,es ≤E max ; E t,es is the amount of electricity stored at the end of each day; E0 is the expected initial storage capacity; E max 、E min are the upper and lower limits of the capacity of the power storage device, respectively; Thermal storage device operation constraints: 0≤Q t,tes,ε ≤Q tes,ε,max ;Q t,in ≤Q in,ε_max ;Q t,out ≤Q out,ε_max ;Q tes,ε,max is the maximum heat storage value under scenario ε; Q in,ε_max is the maximum heat storage power of the heat storage device under scenario ε; Q out,ε_max is the maximum heat release power of the heat storage device under scenario ε.
2. The method for optimizing the scheduling of a combined heat and power system according to claim 1, wherein: When constructing the electric boiler simulation model, the electric boiler device converts electrical energy into thermal energy, and optimizes the heat load curve under the guidance of time-of-use electricity prices. The output thermal power model is expressed as: Q eb (t)=η eb P eb (t); Among them, Q eb (t) is the thermal power output of the electric boiler at time t; η eb is the heating efficiency; P eb (t) inputting electrical power to the electric boiler; The output cost of electric boiler is expressed as: C eb (t)=k eb P eb 9t); Among them, C eb (t) is the output cost of the electric boiler at time t; k eb is the unit output cost coefficient of the electric boiler; When the wind turbine simulation model is constructed, the output power of the wind turbine is expressed as: Among them, P w,t is the wind power output; v is the actual wind speed; v ci 、v co are the cut-in and cut-out wind speeds respectively; P we is the installed capacity of wind power; v r is the rated wind speed; When constructing the simulation model of the cogeneration unit, in, is the electric power output of the cogeneration unit at time t; η GT is the power generation efficiency of the combined heat and power unit; is the thermal power output of the cogeneration unit at time t; η HE is the heat conversion efficiency of the cogeneration unit; is the natural gas consumption of the cogeneration unit at time t; β is the lower calorific value of natural gas; When the energy storage device simulation model is established, Where x is the energy type, x is e for electricity, x is h for heat; E x,t+1 E is the energy after charging or discharging; x,t is the energy before charging or discharging; δ x is the energy loss rate of the energy storage system; P x,c,t , P x,d,t are charging and discharging power respectively; μ x is a 0,1 variable, μ x 0 means energy release, μ x 1 means charging; E x,min 、E x,max are the minimum and maximum energy storage respectively.
3. The method for optimizing the scheduling of a combined heat and power system according to claim 2, wherein: The upper and lower models are interactively solved: the energy storage device capacity configuration optimization model and the combined heat and power system wind power consumption and low-carbon economic operation model are interactively solved in a two-way manner to obtain the optimal operation plan of the combined heat and power system and the optimal configuration capacity of the energy storage device, including: Solving the energy storage device capacity configuration optimization model to obtain the energy storage device capacity configuration information; The capacity configuration information of the corresponding energy storage device is used as the decision variable of the lower-level dispatch optimization model to solve the low-carbon economic operation model of the combined heat and power system to absorb wind power abandonment and obtain the optimal operation plan, and return it to the upper-level capacity optimization model; The upper-level capacity optimization model recalculates the system operating cost in the objective function according to the optimal operating plan fed back, updates the fitness function, and iterates again to obtain the optimal configuration capacity of the energy storage device according to the optimal operating plan and the capacity configuration information of the energy storage device.
4. The method for optimizing the scheduling of a combined heat and power system according to claim 3, wherein: The algorithms used to solve the upper-level capacity optimization model and the lower-level scheduling optimization model include: particle swarm optimization algorithm, whale algorithm, genetic algorithm, and mixed integer programming method.
