Virtual power plant regulation and control method and device based on demand response
By adjusting the demand response strategy in multiple time periods in the virtual power plant regulation system, the problem of insufficient regulation accuracy under a single strategy is solved, and more efficient virtual power plant regulation and power system balance is achieved.
Patent Information
- Application Number
- CN202411591154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the regulation process, due to the change of time parameters, a single demand response strategy leads to insufficient regulation accuracy, and it is impossible to effectively respond to multiple demand changes in multiple time periods.
By constructing the objective function and determining the demand response strategy within the first regulation cycle, and executing the strategy within the second regulation cycle, the objective function and determining a new strategy are reconstructed based on the data of the second regulation cycle, thereby comprehensively considering multiple times Multiple requirements during the cycle improve the accuracy of regulation.
It improves the regulation accuracy of virtual power plants, optimizes the operating cost of virtual power plants and the balance of power systems, reduces the operation and carbon emission costs of thermal power units, and enhances the efficiency of power market transactions.
Smart Images

Figure CN119090249A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of virtual power plant control, and in particular to a virtual power plant control method and device based on demand response. Background Art
[0002] Demand response (DR) refers to the behavior of power users actively changing their original power consumption patterns in response to market prices or incentive signals. Demand response uses the load side as an alternative resource for power supply, which can not only alleviate the dilemma of power supply and demand balance, but also promote environmental protection and energy conservation. The participation of clusters such as virtual power plants in the balance of power grid supply and demand will become an important direction for the development of future power systems, and participating in the regulation of virtual power plants based on demand response characteristics is the key.
[0003] At present, the way to participate in the regulation of virtual power plants based on the characteristics of demand response is that the server of the virtual power plant regulation system models the virtual power plant based on a single demand response, and then determines the virtual power plant regulation measures for the single demand response, and finally regulates the virtual power plant based on the determined virtual power plant regulation measures. Since the operating status and total operating cost and other relevant parameters of the virtual power plant will change over time, and the previously determined regulation measures only consider the relevant parameters of the virtual power plant for a period of time, the virtual power plant regulation measures determined by relying solely on a single demand response are insufficient in terms of the accuracy of regulation of the virtual power plant. Summary of the invention
[0004] An embodiment of the present application provides a virtual power plant control method and device based on demand response, by determining a first demand response strategy for controlling the virtual power plant according to a first demand in a first control cycle, and then continuing to determine a second demand response strategy for controlling the virtual power plant according to a second demand during the process of controlling the virtual power plant to execute the first demand response strategy in a second control cycle, thereby comprehensively considering multiple demands in multiple time periods in the process of controlling the virtual power plant, thereby improving the control accuracy of the virtual power plant.
[0005] In a first aspect, an embodiment of the present application provides a virtual power plant control method based on demand response, which is applied to a server of the virtual power plant control method, and the method includes: Constructing a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle; Determining a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulating the virtual power plant to execute the first demand response strategy within a second regulation cycle; Constructing a second objective function according to second total operating cost data of the virtual power plant in a target time period within the second control cycle; A second demand response strategy is determined based on the second objective function and multiple second constraints for the second demand, and the virtual power plant is regulated to execute the second demand response strategy in the next target time period.
[0006] In a second aspect, an embodiment of the present application provides a virtual power plant control device based on demand response, the device comprising: A construction module, configured to construct a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle; an execution module, configured to determine a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulate the virtual power plant to execute the first demand response strategy within a second regulation cycle; The construction module is further used to construct a second objective function according to the second total operating cost data of the virtual power plant in the target time period within the second control cycle; The execution module is also used to determine a second demand response strategy based on the second objective function and multiple second constraints for the second demand, and regulate the virtual power plant to execute the second demand response strategy in the next target time period.
[0007] In a third aspect, an embodiment of the present application provides a computer, including: A memory, a processor, and a demand response-based virtual power plant control program stored in the memory and executable on the processor, wherein the demand response-based virtual power plant control program is configured to implement part or all of the steps described in any method in the first aspect.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a demand response-based virtual power plant control program is stored. When the demand response-based virtual power plant control program is executed by a processor, some or all of the steps described in any method in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product can be a software installation package.
[0010] By implementing the embodiment of the present application, the server of the virtual power plant control system first constructs a first objective function according to the first total operating cost data of the virtual power plant in the first control cycle; then determines the first demand response strategy according to the first objective function and multiple first constraints for the first demand, and controls the virtual power plant to execute the first demand response strategy in the second control cycle; then constructs a second objective function according to the second total operating cost data of the virtual power plant in the target time period in the second control cycle; finally, determines the second demand response strategy according to the second objective function and multiple second constraints for the second demand, and controls the virtual power plant to execute the second demand response strategy in the next target time period. By determining the first demand response strategy for controlling the virtual power plant according to the first demand in the first control cycle, and then in the process of controlling the virtual power plant to execute the first demand response strategy in the second control cycle, the second demand response strategy for controlling the virtual power plant continues to be determined according to the second demand, thereby comprehensively considering multiple demands in multiple time periods in the process of controlling the virtual power plant, and improving the control accuracy of the virtual power plant. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0012] Figure 1 It is a schematic diagram of the architecture of a virtual power plant control system based on demand response provided in an embodiment of the present application; Figure 2 It is a flow chart of a virtual power plant control method based on demand response provided in an embodiment of the present application; Figure 3 It is a curve diagram showing the relationship between response probability and incentive degree provided in an embodiment of the present application; Figure 4 It is a schematic diagram of a prediction curve of photovoltaic output, wind power output and user total load provided in an embodiment of the present application; Figure 5 is a schematic diagram of a comparison result of electricity price and load provided in an embodiment of the present application; Figure 6 It is a curve diagram of load power changes in multiple scenarios provided by an embodiment of the present application; Figure 7 is a schematic diagram of a day-ahead regulation result provided in an embodiment of the present application; Figure 8 It is a schematic diagram of an intraday regulation result provided in an embodiment of the present application; Fig. 9 It is a curve diagram of a day-ahead output plan and a day-intraday output plan provided in an embodiment of the present application; Fig.10 It is a curve diagram of a day-ahead energy storage charging and discharging plan and a day-intraday energy storage charging and discharging plan provided in an embodiment of the present application; Fig.11 It is a curve diagram of a day-ahead power purchase and sale plan and an intraday power purchase and sale plan provided in an embodiment of the present application; Fig.12 It is a structural schematic diagram of a virtual power plant control device provided in an embodiment of the present application; Fig.13 It is a structural diagram of a computer provided in an embodiment of the present application. DETAILED DESCRIPTION
[0013] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. According to the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0014] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0015] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0016] Demand response (DR) refers to the behavior of power users actively changing their original power consumption patterns in response to market prices or incentive signals. Demand response uses the load side as an alternative resource for power supply, which can not only alleviate the dilemma of power supply and demand balance, but also promote environmental protection and energy conservation. The participation of clusters such as virtual power plants in the balance of power grid supply and demand will become an important direction for the development of future power systems, and participating in the regulation of virtual power plants based on demand response characteristics is the key.
[0017] At present, the way to participate in the regulation of virtual power plants based on the characteristics of demand response is that the server of the virtual power plant regulation system models the virtual power plant based on a single demand response, and then determines the virtual power plant regulation measures for the single demand response, and finally regulates the virtual power plant based on the determined virtual power plant regulation measures. Since the operating status and total operating cost and other relevant parameters of the virtual power plant will change over time, and the previously determined regulation measures only consider the relevant parameters of the virtual power plant for a period of time, the virtual power plant regulation measures determined by relying solely on a single demand response are insufficient in terms of the accuracy of regulation of the virtual power plant.
[0018] The virtual power plant control method and device based on demand response provided in the application embodiment can be applied to Figure 1 In the virtual power plant control system shown, see Figure 1 , Figure 1 It is a schematic diagram of the architecture of a virtual power plant control system provided in an embodiment of the present application. The virtual power plant control system 100 includes a terminal 101 and a server 102. The terminal 101 can communicate with the server 102 through a network. The terminal 101 refers to a device used by a user, such as a smart phone, a computer, etc. In this solution, the terminal 101 provides an interface for a user to interact with the virtual power plant control system 100 based on demand response. Through the terminal 101, a user can interact with the virtual power plant control system 100 based on demand response, receive prompt information including the demand response strategy within the corresponding control cycle sent from the server 102, and display it on the user interface. The user can understand the demand response strategy implemented by the virtual power plant in the current time period through the terminal 101, and can also set or change multiple parameters required to be used in determining the demand response strategy through the terminal 101.
[0019] Server 102 refers to a remote computer used to process a large number of computing tasks and store data. In this solution, server 102 is responsible for obtaining the total operating cost data of the virtual power plant in different control cycles or time periods from various data sources, including the total operation and maintenance cost data of the wind, solar and energy storage system, the operating cost data of the thermal power unit, the virtual power plant's electricity purchase and sales cost data, and the carbon emission cost data, etc. Server 102 constructs an objective function based on the collected total operating cost data, and then determines the demand response strategy for the demand based on the objective function and multiple constraints for different demands, and finally regulates the virtual power plant to execute the demand response strategy. Server 102 is also used to obtain a wind and solar uncertainty model based on historical wind power generation data and thermal power generation historical data.
[0020] Based on this, the present application provides a virtual power plant control method and device based on demand response, and the present application is described in detail below in conjunction with the accompanying drawings.
[0021] See also Figure 2 , Figure 2 is a flow chart of a virtual power plant control method based on demand response provided in an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps: In a possible implementation, before constructing the first objective function according to the first total operating cost data of the virtual power plant in the first regulation cycle, that is, step S201, the method further includes: A wind-solar uncertainty model is obtained based on historical data of wind power generation and historical data of photovoltaic power generation; and based on the wind-solar uncertainty model, total operation and maintenance cost data of the wind-solar energy storage system in the first total operation cost data within the first regulation cycle is determined.
[0022] Among them, historical data of wind power generation refers to the relevant data of wind power generation recorded in the past period of time, including hourly, daily or monthly power generation. Historical data of wind power generation can be obtained through measuring equipment (such as anemometer) or extracted from the operation records of power stations; historical data of photovoltaic power generation refers to the relevant data of photovoltaic power generation recorded in the past period of time, also including hourly, daily or monthly power generation. Historical data of photovoltaic power generation is usually obtained through radiometers and measuring instruments installed on solar photovoltaic arrays.
[0023] Among them, the wind and solar uncertainty model is a model established based on the uncertainty factors generated by two renewable energy sources, wind power and photovoltaic power. Due to the randomness and variability of natural resources (such as wind speed and sunshine intensity), there is uncertainty in wind and photovoltaic power generation. Therefore, when planning and operating renewable energy systems, this uncertainty needs to be considered. The wind and solar uncertainty model can help evaluate how much wind power and / or photovoltaic energy may be generated in a certain period of time in the future. Specifically, the model takes the historical data of wind power generation and photovoltaic power generation collected in the past period as input, and uses statistical methods to analyze it. By analyzing the fluctuations, trends and other characteristics in these historical data, a mathematical model is established to describe the uncertain situations that may occur in the future.
[0024] Among them, the wind and solar uncertainty model can be used to predict the total operating cost data of the virtual power plant in the future based on the total operating cost data of the virtual power plant that has been collected currently. For example, at the end of a day, the wind and solar uncertainty model can predict the total operating and maintenance cost data of the wind and solar energy storage system in the total operating cost data of the virtual power plant collected on that day to predict the total operating and maintenance cost data of the wind and solar energy storage system in the total operating cost data of the virtual power plant on the next day.
[0025] It can be seen that in this example, the wind-solar uncertainty model is obtained based on the historical data of wind power generation and photovoltaic power generation, which is conducive to more accurately predicting the cost of maintenance of the energy storage system while comprehensively considering the volatility and variability of natural resources, thereby improving the accuracy of the subsequent demand response strategy obtained based on the total operating cost data of the virtual power plant.
[0026] In a possible implementation, obtaining the wind / solar uncertainty model based on the historical data of wind power generation and the historical data of photovoltaic power generation includes: The random features in the wind power generation historical data and the photovoltaic power generation historical data are obtained by the Monte Carlo method; multiple scenes are generated according to the random features, and the multiple scenes are clustered according to similarity to obtain multiple typical scene sets; the distance between each scene in the multiple typical scene sets is obtained by the Manhattan distance measurement method; the probability of each scene in the multiple typical scene sets is determined according to the distance between each scene; and a wind-solar uncertainty model is established according to the multiple typical scene sets and the probability of each scene in the multiple typical scene sets.
[0027] Among them, the Monte Carlo method is a numerical calculation method based on probability statistics, which is used to solve random problems or problems that cannot be solved by analytical methods. It is based on probability and random sampling, and performs approximate calculations in a large number of repeated experiments to obtain approximate solutions to the problem.
[0028] Specifically, when using the Monte Carlo method to generate multiple sets of typical scenarios with equal probability, according to the fluctuation law of historical data, the standard deviation s is selected and multiplied by the standard normal distribution of the generated random number, and then superimposed on the original prediction value, and the Monte Carlo method is used to generate m equal probability prediction scenarios. The formula is as follows: ; in, is the i-th typical prediction scenario, is the original prediction value of the i-th scene, Generate a standard normal distribution of random numbers for the i-th scenario, where s is the standard deviation of the historical data.
[0029] Among them, Manhattan distance, also known as city block distance or L1 distance, is a measurement method for calculating the distance between two points. Specifically, Manhattan distance can represent the geometric distance between different scenes and reflect the degree of discreteness between data. Manhattan distance is defined as follows: ; in, is the Manhattan distance between scene i and scene j, is the number of data in a scene, is the u-th data in scene i, is the u-th data in scene j.
[0030] Therefore, the Manhattan distance matrix D between m equally probable prediction scenarios is as follows: ; Among them, d ij represents the Manhattan distance between scene i and scene j, for example, d 1m represents the Manhattan distance between scene 1 and scene m.
[0031] After obtaining the Manhattan distance matrix between m equally probable prediction scenes, the probability distance sum of each scene and the remaining scenes is calculated to obtain the distance probability matrix Y, which is as follows: ; Among them, d ij represents the Manhattan distance between scene i and scene j.
[0032] The scene reduction method may be to set a distance threshold and delete the scenes whose Manhattan distances are less than the distance threshold from the scene set. Alternatively, the scene reduction method may be to select a preset number of scenes with the smallest sum of distances from the remaining scenes according to the distance probability matrix and merge them into one new scene. For example, when the preset number is 2, the formula for scene reduction is as follows: ; Among them, a and b are the numbers of the scenes to be cut; , is the probability of scene a and scene b at the tth iteration, where is the mth scene in a scene set.
[0033] It can be seen that in this example, the scenario clustering method based on the Monte Carlo method and Manhattan distance can effectively obtain the random characteristics of historical data of wind power generation and historical data of photovoltaic power generation. By constructing multiple typical scenario sets and determining the probability of each scenario, a wind-solar uncertainty model is finally established, which is beneficial to improve the robustness of the established wind-solar uncertainty model.
[0034] S201, constructing a first objective function according to the first total operating cost data of the virtual power plant in the first regulation cycle.
[0035] Among them, the executor of each step in this embodiment can be the server of the virtual power plant control system, the first control cycle can be set or changed by the user at the terminal of the virtual power plant control system, and the time length of the first control cycle can be one week, one day or one hour. There is no restriction on the first control cycle here.
[0036] Among them, a virtual power plant (VPP) refers to an energy system that is operated and managed in a manner similar to a traditional power plant by integrating and coordinating decentralized and diverse energy resources and loads. It connects distributed energy resources (such as solar photovoltaics, wind power generation, energy storage equipment, etc.) with flexible loads through information technology to form an integrated virtual power plant.
[0037] Among them, the first total operating cost data of the virtual power plant includes the total operating and maintenance cost data of the wind, solar and energy storage systems, the operating cost data of the thermal power units, the virtual power plant's electricity purchase and sales cost data, and the carbon emission cost data.
[0038] Among them, the first total operating cost data including the total operating and maintenance cost data of the wind, solar and energy storage systems can be directly obtained according to the actual total operating cost data of the virtual power plant, or predicted according to the actual total operating cost data of the virtual power plant and the prediction model. The prediction model includes a wind and solar uncertainty model. For example, the server of the virtual power plant control system can predict the total operating and maintenance cost data of the wind, solar and energy storage systems in the total operating cost data of the virtual power plant from 6:00 a.m. of the previous day to 6:00 a.m. of the current day by using the total operating and maintenance cost data of the wind, solar and energy storage systems in the total operating cost data of the virtual power plant collected from 6:00 a.m. of the previous day to 6:00 a.m. of the current day.
[0039] In a possible implementation, constructing a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle includes: According to the wind operation and maintenance coefficient, the photovoltaic operation and maintenance coefficient, the energy storage system operation and maintenance coefficient, the wind output value, the photovoltaic output value and the total discharge of the energy storage system, the total operation and maintenance cost data of the wind, solar and energy storage system are obtained; according to the cost coefficients of multiple thermal power units, the output data of thermal power units, the startup cost of thermal power units, the shutdown cost of thermal power units and the Boolean variables used to indicate the start and stop status of thermal power units, the operation cost data of thermal power units are obtained; according to the purchase price of electricity from the virtual power plant to the power grid, the sales price of electricity from the virtual power plant to the power grid, the purchase power of the virtual power plant to the power grid and the sales power of the virtual power plant to the power grid, the purchase and sale cost data of the virtual power plant are obtained; according to the unit carbon emission price, the unit output carbon emissions of the thermal power units and the unit output free carbon emissions of the thermal power units, the carbon emission cost data are obtained; according to the total operation and maintenance cost data of the wind, solar and energy storage system, the operation cost data of the thermal power units, the purchase and sale cost data of the virtual power plant and the carbon emission cost data, the first total operation cost data are obtained; and the first objective function is constructed by minimizing the first total operation cost data within the first regulation cycle.
[0040] Specifically, the total operation and maintenance cost data of the wind, solar and energy storage system The calculation formula is as follows: ; Among them, T is the number of regulation cycles a day ago, T=24, is the day-ahead control time scale, =1h, , , They are wind power operation and maintenance coefficient, photovoltaic operation and maintenance coefficient and energy storage system operation and maintenance coefficient, respectively. <r<1, , are the wind power output and photovoltaic power output at time t respectively; is the total discharge capacity of the energy storage system at time t.
[0041] Specifically, the operating cost data of thermal power units The calculation formula is as follows: ; in, is the number of thermal power units, a, b, c are the cost coefficients of thermal power units, and there are 0 <a,b,c<1; is the output data of thermal power unit i at time t; , are the startup cost and shutdown cost of thermal power unit i respectively; It is a Boolean variable at time t, indicating the start and stop status of thermal power unit i at time t. It is set to 1 to indicate that unit i is in the running state, and it is set to 0 to indicate that unit i is in the stopped state.
[0042] Specifically, the cost data of electricity purchase and sale of virtual power plants The calculation formula is as follows: ; in, , is the purchase price and sales price of electricity from the virtual power plant to the grid at time t; , is the power purchased and sold by the virtual power plant to the grid at time t.
[0043] Specifically, carbon emission cost data The calculation formula is as follows: ; in, is the unit carbon emission price; Carbon emissions per unit output of thermal power units; Free carbon emissions per unit output of thermal power units.
[0044] Specifically, the first total operating cost data is the total operating cost of the virtual power plant in a single regulation cycle, and the calculation formula is as follows: ; in, The total operation and maintenance cost data of the wind-solar-energy storage system in the first regulation cycle, is the operating cost data of thermal power units in the first regulation cycle, The cost data of electricity purchase and sale of virtual power plants in the first regulation cycle, This is the carbon emission cost data during the first regulation cycle.
[0045] Among them, the first objective function f1 is as follows: .
[0046] It can be seen that in this example, by considering the operation and maintenance costs of wind power, photovoltaic and energy storage systems, the operation costs of thermal power units, the electricity purchase and sales costs of the virtual power plant, and the carbon emission costs, the first total operating cost data is obtained, and then the first objective function is constructed with the first total operating cost data, which facilitates the subsequent comprehensive management and optimization of the economy, reliability and environmental protection of the virtual power plant by solving the first objective function.
[0047] S202: Determine a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulate the virtual power plant to execute the first demand response strategy within a second regulation cycle.
[0048] Among them, the first demand can be a price-type demand, and the first demand response strategy determined for the first demand is a price-type demand response strategy. The first demand can also be a capacity-type demand, a resource balance demand, a response speed demand, a reliability and stability demand, etc., and the first demand is not restricted here.
[0049] In a possible implementation, determining the first demand response strategy according to the first objective function and a plurality of first constraints for the first demand includes: Obtaining a plurality of first demand response parameters by minimizing the first objective function under the plurality of first constraint conditions for the first demand; A first demand response strategy is determined according to the multiple first demand response parameters, wherein the first demand response strategy includes a thermal power unit start and stop strategy, a thermal power unit operation strategy, an energy storage charging and discharging strategy, an electricity trading strategy, and an energy use strategy.
[0050] Among them, multiple constraints include thermal power unit output and ramp constraints, energy storage equipment constraints, power trading constraints, virtual power plant positive and negative spinning reserve constraints, price-based demand response constraints and virtual power plant power balance constraints.
[0051] Specifically, the formulas for the output and ramp constraints of thermal power units are as follows: ; ; in, is the minimum output of the thermal power unit, is the maximum output of the thermal power unit, is the minimum climbing power of the thermal power unit, It is the maximum climbing power of the thermal power unit.
[0052] Among them, the energy storage equipment is a multi-energy storage system, mainly including electric storage equipment (ES), heat storage equipment (HS) and gas storage equipment (GS). The charging and discharging processes of the three are similar. Specifically, the formula for energy storage equipment constraints is as follows: ; where x∈{ES, HS, GS}, is the energy storage capacity of energy storage device x at time t; is the energy self-loss coefficient of energy storage device x per unit time; and is the charging and discharging power of energy storage device x at time t; and are the charging efficiency and discharging efficiency of the energy storage device x respectively, and 0< , <1.
[0053] Among them, the energy storage equipment complies with the energy storage capacity constraint, the charge and discharge energy constraint and the mutual exclusion constraint. Among them, ES must also meet the charge and discharge frequency constraint. The specific formula is as follows: ; ; ; ; ; ; ; in, , are the minimum energy storage capacity and the maximum energy storage capacity of the energy storage device respectively; is a Boolean variable that reflects the charging state of the energy storage device x at time t. A value of 1 indicates that it is in a charging state, and a value of 0 indicates that it is in a non-charging state. It is a Boolean variable, reflecting the discharge state of the energy storage device x at time t. It is set to 1 to indicate that it is in the discharge state, and it is set to 0 to indicate that it is in the non-discharge state. The energy storage device has three states: balance, charge and discharge; , are the minimum charging power and maximum charging power of the energy storage device respectively; , are the minimum discharge power and maximum discharge power of the energy storage device respectively; , They respectively represent the minimum climbing power and the maximum climbing power when the energy storage device is charging; , They respectively represent the minimum climbing power and maximum climbing power when the equipment is discharging.
[0054] Among them, the formula for power trading constraints is as follows: ; ; ; in, It is a Boolean variable that reflects the power purchasing status of the virtual power plant at time t. A value of 1 indicates that the virtual power plant is purchasing power from the power market, and a value of 0 indicates that the virtual power plant is not purchasing power. It is a Boolean variable that reflects the power selling status of the virtual power plant at time t. A value of 1 indicates that the virtual power plant is selling power to the power market, and a value of 0 indicates that the virtual power plant is not selling power. The transaction limit of the power market; the virtual power plant and the power market transaction can be in three states: no power sales or purchase, only power purchase, and only power sales. , is the power purchased and sold by the virtual power plant to the grid at time t.
[0055] The formula for the positive and negative spinning reserve constraints of the virtual power plant is as follows: ; ; in, is the virtual power plant positive spinning reserve safety margin factor, is the negative spinning reserve safety margin factor of the virtual power plant.
[0056] Among them, when the first demand is a price-type demand, the formula for the price-type demand response constraint for the price-type demand is as follows: ; ; ; ; in, is the Tx1-dimensional demand response load change matrix; is the modified electricity price elasticity coefficient matrix after introducing the elasticity impact weight factor, is the Tx1-dimensional loading matrix; is the Tx1-dimensional electricity price change matrix; is the Tx1-dimensional electricity price matrix; is the load change of price-based demand response at time t; , is the minimum and maximum proportion of the transferable load in the total load; is the change in electricity price at time t; , The minimum and maximum change rates of the flexible electricity price; the transferable load satisfies the requirement that the total load remains unchanged within a single regulation cycle.
[0057] Specifically, The steps to obtain are as follows: Firstly, the time-of-use electricity price mechanism is used to attract transferable loads to participate in demand response, and the price elasticity coefficient matrix containing elastic influence weight factors is used to model the price-type demand response. The demand price elasticity commonly used in economics reflects the sensitivity of demand to price changes. The larger the value, the greater the fluctuation of commodity demand when the price changes.
[0058] The price elasticity coefficient of commodity demand is as follows: ; in, is the price elasticity coefficient of commodity demand, P is the quantity demanded of the commodity, is the change in demand for the commodity, For the price of goods, is the change in commodity price; Then, electricity, as a special commodity, can be traded in the electricity market, and its price changes in real time. For flexible loads, changing the electricity consumption time period can save costs, which not only affects the electricity demand in this period, but also has an impact on other periods. Therefore, the self-elasticity coefficient and cross-elasticity coefficient are used to form the electricity price elasticity coefficient matrix.
[0059] Specifically, the electricity price elasticity coefficient matrix E is as follows: ; in, is defined as follows: ; Among them, when i=j, is the self-elasticity coefficient, reflecting the impact of electricity price changes at time i on demand at time j; when i≠j, is the cross elasticity coefficient, reflecting the impact of electricity price changes at time i on demand at time j; n is the number of time periods in a single regulation cycle; E is the nxn-dimensional electricity price elasticity coefficient matrix; From the above formula, we know that the change in demand at any moment is affected by the change in electricity prices at all moments. According to the load characteristics, the change in demand at any moment is most affected by the change in electricity prices at this moment. In order to accurately predict the relationship between electricity price changes and demand changes, the elastic impact weight factor is introduced to characterize the weight of the impact of electricity price changes at a certain moment on the change in demand at that moment. The elastic impact weight factor is shown in the following formula: ; Among them, in the above formula and The position can be changed as needed, and there is no restriction here. In the above formula, when i=j, is the self-elastic influence weight; when i≠j, is the cross elasticity influence weight.
[0060] Therefore, the modified electricity price elasticity coefficient matrix obtained after introducing the elasticity impact weight factor is as follows: ; By modifying the electricity price elasticity coefficient matrix , the load after price-type demand response is as follows: .
[0061] Among them, the formula for the power balance constraint of the virtual power plant is as follows: ; in, is the number of energy storage devices.
[0062] It can be seen that in this example, by comprehensively considering multiple constraints and objective functions, the first demand response strategy is determined, including the start-stop and operation strategy of thermal power units, energy storage charging and discharging strategy, power trading strategy and energy use strategy. By optimizing and adjusting parameters, the objective function is minimized while meeting the demand and constraints, which is conducive to the comprehensive management and optimization of the economy, reliability and environmental protection of the virtual power plant.
[0063] S203: Construct a second objective function according to the second total operating cost data of the virtual power plant in the target time period within the second control cycle.
[0064] Among them, the second control cycle can be set or changed by the user at the terminal of the virtual power plant control system. The second control cycle can be the first control cycle or a new control cycle. The time length of the second control cycle can be one week, one day or one hour. There is no restriction on the second control cycle. The target time period is a fixed time length. The target time period is less than the second control cycle. For example, when the second control cycle is one day, the target time period is one hour.
[0065] Among them, the second total operating cost data of the virtual power plant includes the total operating and maintenance cost data of the wind, solar and energy storage systems, the operating cost data of the thermal power units, the virtual power plant's electricity purchase and sales cost data, the carbon emission cost data, the output deviation penalty cost data and the second demand response cost data. Among them, the second total operating cost data can be the actual data generated, which is directly collected by the server of the virtual power plant control system. For example, the second control cycle is 1 hour, and the target time period is 15 minutes. After each 15 minutes, the total operating cost data within the 15 minutes is directly collected by the server of the virtual power plant control system to obtain the second total operating cost data.
[0066] In a possible implementation, constructing a second objective function according to second total operating cost data of the virtual power plant in a target time period within the second control cycle includes: According to the wind operation and maintenance coefficient, photovoltaic operation and maintenance coefficient, energy storage system operation and maintenance coefficient, wind output value, photovoltaic output value and total discharge of the energy storage system, the total operation and maintenance cost data of the wind, solar and energy storage system is obtained; according to the cost coefficients of multiple thermal power units, the output data of thermal power units, the startup cost of thermal power units, the shutdown cost of thermal power units and the Boolean variables used to indicate the start and stop status of thermal power units, the operation cost data of thermal power units are obtained; according to the power purchase price of the virtual power plant from the power grid, the power sales price of the virtual power plant to the power grid, the power purchase power of the virtual power plant from the power grid and the power sales power of the virtual power plant to the power grid, the power purchase and sale cost data of the virtual power plant are obtained; according to the unit carbon emission price, the carbon emissions per unit output of the thermal power unit and the free carbon emissions per unit output of the thermal power unit, the carbon emission cost is obtained. Data; according to the deviation penalty coefficient of the thermal power unit, the deviation penalty coefficient of the energy storage, the deviation penalty coefficient of the power purchase and sale transaction, the deviation before and after the regulation of the thermal power unit, the deviation before and after the regulation of the energy storage charging, the deviation before and after the regulation of the energy storage discharging, the deviation before and after the regulation of the power sales and the deviation before and after the regulation of the power purchase, the output deviation penalty cost data is obtained; according to the electricity price and the second demand response compliance change, the second demand response cost data is obtained; according to the total operation and maintenance cost data of the wind-solar energy storage system, the operation cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, the carbon emission cost data, the output deviation penalty cost data and the second demand response cost data, the second total operation cost data is obtained; the second total operation cost data is minimized within the second regulation cycle to construct the second objective function.
[0067] Among them, the specific calculation formulas for the total operation and maintenance cost data of wind, solar and energy storage systems, the operation cost data of thermal power units, the power purchase and sales cost data of virtual power plants, and the carbon emission cost data are consistent with the formulas in the aforementioned methods and will not be further explained here.
[0068] Among them, output deviation penalty cost data The calculation formula is as follows: ; in, is the target time period in the second control cycle, which can be =15min; is the deviation penalty coefficient of the thermal power unit, is the energy storage deviation penalty coefficient, It is the penalty coefficient for the deviation of power purchase and sale transaction; , , , , They are the deviation before and after regulation of thermal power units, the deviation before and after regulation of energy storage charging, the deviation before and after regulation of energy storage discharging, the deviation before and after regulation of power sales, and the deviation before and after regulation of power purchase. The deviation before and after regulation here refers to the deviation between the regulation value in the first regulation cycle and the regulation value in the target time period in the second regulation cycle.
[0069] Specifically, the calculation formula for the deviation of each data before and after regulation is as follows: ; ; ; ; ; in, is the number of time periods in the second regulation cycle; , , , , They are thermal power generation units, energy storage charging, energy storage discharging, electricity sales, and electricity purchase power at time The control power of the target time period in the second control cycle; , , , , For the corresponding time The control power of the first control cycle.
[0070] Among them, when the second demand is an incentive demand, the incentive demand response cost C for the incentive demand is IBDR_in The formula is as follows: ; in, is the incentive electricity price at time t; It is the load change of incentive demand response.
[0071] Specifically, the second total operating cost data is the total operating cost of the target time period within a single control cycle of the virtual power plant, and the calculation formula is as follows: ; in, The total operation and maintenance cost data of the wind-solar-energy storage system in the target time period of the second regulation cycle, is the operating cost data of thermal power units in the target time period of the second regulation cycle, The cost data of electricity purchase and sale of the virtual power plant in the target time period of the second regulation cycle. is the carbon emission cost data for the target time period in the second regulation cycle, Penalize cost data for output deviation, This is the second demand response cost data.
[0072] Among them, the second objective function f2 is as follows: .
[0073] It can be seen that in this example, by considering the operation and maintenance costs of wind power, photovoltaic and energy storage systems, the operation costs of thermal power units, the power purchase and sales costs of the virtual power plant, carbon emission costs, output deviation penalty costs and the second demand response costs, the second total operating cost data is obtained, and then the second objective function is constructed with the second total operating cost data, which facilitates the subsequent comprehensive management and optimization of the economy, reliability and environmental protection of the virtual power plant by solving the second objective function.
[0074] S204: Determine a second demand response strategy according to the second objective function and a plurality of second constraints for the second demand, and regulate the virtual power plant to execute the second demand response strategy in the next target time period.
[0075] Among them, the second demand can be an incentive-type demand, and the second demand response strategy determined for the second demand is an incentive-type demand response strategy. The second demand can also be a capacity demand, a resource balancing demand, a response speed demand, a reliability and stability demand, etc., and the second demand is not restricted here.
[0076] Among them, the multiple second constraints include the multiple first constraints and the second demand response constraint, the virtual power plant power balance constraint, and the operating status constraint.
[0077] In a possible implementation, determining the second demand response strategy according to the second objective function and a plurality of second constraints for the second demand includes: By minimizing the second objective function under the multiple second constraints for the second demand, multiple second demand response parameters are obtained; a second demand response strategy is determined based on the multiple second demand response parameters, and the second demand response strategy includes a thermal power unit operation strategy, an energy storage charging and discharging strategy, a power trading strategy, and an energy use strategy.
[0078] Specifically, when the second demand is an incentive-type demand, the second demand response constraint is an incentive-type demand response constraint, and the formula of the incentive-type demand response constraint is as follows: ; ; in, is the demand response probability, is the load change of incentive demand response, is the proportion of interruptible and curtailable load in the total load; , They are the minimum and maximum proportions of interruptible and curtailable load in the total load respectively.
[0079] In one possible implementation, the demand response probability The steps to obtain include: When the second demand is an incentive demand, the main participants of the incentive demand response are interruptible loads and curtailable loads, and the uncertainty of its response probability is affected by economic factors and psychological factors. In terms of economic factors, based on the principles of consumer psychology, the relationship between response probability and incentive degree can be seen in the diagram Figure 3 , Figure 3 is a curve diagram showing the relationship between response probability and incentive degree provided in an embodiment of the present application, such as Figure 3 As shown, δ in the figure is the probability of economic demand response; and is the lower limit and upper limit of the probability of demand response, satisfying 0< , <1; is the incentive price; a and b are the effective response incentive price and the saturation response incentive price; Figure 3 It can be seen that when 0< When a≤a, the incentive price does not meet the expectations of the demand response participants, and the probability of participating in the demand response is very small; when a< When ≤b, as the incentive price increases, the probability of participating in demand response increases, showing a linear growth trend; >b, the demand response reaches saturation, and the increase in incentive price will not cause a change in the probability of demand response, as shown below: ; Specifically, when the incentive level is too low or too high, the uncertainty of the demand response probability can be basically ignored; however, when the incentive level is at an intermediate value, the uncertainty satisfies the trend of increasing first and then decreasing, and can be fitted by a normal distribution, and the formula is as follows: ; in, is the uncertainty boundary coefficient.
[0080] Among them, in terms of psychological factors, the probability of demand response is determined by loss aversion factors and coercion factors; loss aversion factors refer to the fact that the demand response object has the right to use the load, tends to seek benefits and avoid harm when deciding to respond, and is more sensitive to loss of benefits, which will reduce the probability of response; coercion factors refer to the fact that the response object must complete a specific response target due to coercion or constraint, which determines the lower limit of the response probability. The calculation formula for the probability of psychological demand response is as follows: ; in, is the probability of psychological demand response; is the loss aversion factor, satisfying 0< <1; is a stress factor, satisfying 0< <1; Based on the linear weighted method, the impact of economic and psychological factors on the probability of demand response is comprehensively considered to obtain the probability of demand response As shown below: ; in, The probability of demand response for incentive-based demand; , are the influence proportions of economic factors and psychological factors respectively, satisfying 0< <1, ; Related research shows that economic factors are the main ones, and psychological factors are the secondary ones, that is, .
[0081] It can be seen that in this example, comprehensively considering the impact of economic and psychological factors on the demand response probability based on the linear weighted method is conducive to ensuring that the obtained demand response probability is more accurate, thereby improving the subsequent prediction accuracy.
[0082] Specifically, the formula for the power balance constraint of the virtual power plant is as follows: ; Specifically, the formula for the running state constraint is as follows: ; Among them, z∈{G,sell,buy,dis,chr}; (t) is a Boolean variable, reflecting the operating status of project z at time t in the second regulation cycle; (t) is a Boolean variable, reflecting the operating status of project z at time t in the first regulation cycle.
[0083] It can be seen that in this example, by comprehensively considering multiple constraints and objective functions, the second demand response strategy is determined, including the operation strategy of thermal power units, energy storage charging and discharging strategy, power trading strategy, and energy use strategy. By optimizing and adjusting parameters, the objective function is minimized while meeting the needs and constraints, which is conducive to the comprehensive management and optimization of the economy, reliability, and environmental protection of the virtual power plant.
[0084] In a possible implementation method, this embodiment is illustrated by an example. To verify this embodiment, the YALMIP toolbox in MATLAB2021a is used to build a model, and the CPLEX12.6.0 solver is called to solve it. Take a virtual power plant in a western region as an example for analysis, which includes wind power, photovoltaics, thermal power units, energy storage, and load-side loads. The standard deviation s of wind and solar fluctuations in the scenario generation and reduction method proposed in this embodiment is 20%, and the photovoltaic output, wind power output, and user total load forecast curves after scenario generation and reduction processing. As Figure 4 As shown, the parameters in the example are shown in Table 1. The power unit in the table is KW and the capacity unit is KW·h.
[0085] Table 1
[0086] Among them, taking the first regulation cycle as the day before, the second regulation cycle as the day within, the first demand as price-based demand, and the second demand as incentive-based demand as an example, the day before regulation result analysis, the day within regulation result analysis, and the day before regulation result comparison analysis are as follows: Analysis of day-ahead regulation results: In order to compare the impact of price-based demand response strategies on the day-ahead regulation results of virtual power plants, four scenarios are set up for analysis as shown in Table 2. PSDR in Table 2 represents price-based demand. Table 2 is as follows: Table 2
[0087] Among them, scenarios 1 and 3 include PSDR, and energy storage equipment participates in the regulation process in scenarios 1 and 2. The statistics of day-ahead regulation costs under the four scenarios are shown in Table 3: Table 3
[0088] In order to analyze the impact of PSDR on the day-ahead regulation results, two groups of control scenarios were set up for analysis using the control variable method. In the first group of control scenarios, scenario 1 was the experimental group and scenario 2 was the control group, to study the impact of the lack of PSDR on the day-ahead regulation results; in the second group of control scenarios, scenario 3 was the experimental group and scenario 4 was the blank control group, to study the impact of adding PSDR on the day-ahead regulation results.
[0089] In terms of electricity price and load fluctuation, please refer to the comparison results of electricity price and load of the two groups of control scenarios. Figure 5 , Figure 5 is a schematic diagram of a comparison result of electricity price and load provided in an embodiment of the present application, such as Figure 5 As shown in the figure, the period from 00:00 to 07:00 is the load valley period, the price elasticity of scenarios 1 and 3 decreases, and the load power increases; the period from 08:00 to 18:00 is the load peak period, the price elasticity of scenarios 1 and 3 increases, and the load power decreases; the period from 19:00 to 24:00 presents another peak, the price elasticity of scenarios 1 and 3 decreases, and the load power increases. The elastic price and load demand meet the supply and demand value theory, and the market-oriented adjustment of electricity prices and electric energy is conducive to the formation of power market transactions. At the same time, under the incentive of PSDR, the shift in load time makes the load curve smoother, and the peak-to-valley difference and volatility are reduced.
[0090] In terms of cost, the total cost of scenario 1 is 4.2% lower than that of scenario 2, the operating cost of thermal power units is reduced by 4.0%, the carbon emission cost is reduced by 3.3%, and the profit from electricity purchase and sale is increased by 6.3%; the total cost of scenario 3 is 6.7% lower than that of scenario 4, the operating cost of thermal power units is reduced by 11.6%, the carbon emission cost is reduced by 3.3%, and the profit from electricity purchase and sale is reduced by 2.7 times. RSDR changes the load power distribution to adjust the output of thermal power units, reducing the operation and carbon emission costs of thermal power units; adopting electricity price flexibility enables virtual power plants to purchase idle electricity at a lower price and sell busy electricity at a higher price to obtain greater profits. Since scenarios 3 and 4 do not have energy storage devices and use electricity as soon as it is generated, scenario 3 purchases a large amount of electricity during the 00:00-07:00 period due to the increase in load transfer, resulting in an increase in the cost of electricity purchase and sale.
[0091] Therefore, the adoption of the PSDR strategy in the day-ahead stage can reasonably adjust the load according to the peak and valley changes, smooth the load power distribution within the day, reduce the operation and carbon emission costs of thermal power units, optimize the electricity market transaction structure, and reduce the total operating cost of virtual power plants while reducing the peak-time load and standby pressure and increasing the valley-time usage, which is of great significance to the safe and stable operation of the power system.
[0092] Analysis of intraday regulation results: In order to compare the impact of incentive demand response on the intraday regulation results, four scenarios are set up for analysis as shown in Table 4. In Table 4, IBDR represents incentive demand response. Table 4 is as follows: Table 4
[0093] In order to measure the system stability, the tie line power wave power is defined as follows: ; Among them, N is the total number of nodes optimized in a day at a scale of 15 minutes; is the contact line wave power.
[0094] The intraday regulation costs and interconnection line power fluctuation rates under the four scenarios are shown in Table 5, which is as follows: Table 5
[0095] Among them, in order to analyze the impact of IBDR on the intraday regulation results, two groups of control scenarios, scenarios 5 and 6 and scenarios 7 and 8 in Table 5, are set for analysis.
[0096] Specifically, in terms of load fluctuation, please refer to the load power changes in scenarios 5-8. Figure 6 , Figure 6 is a curve diagram of load power changes in multiple scenarios provided in an embodiment of the present application, such as Figure 6 As shown in the figure, during high load periods such as 10:00-14:00, the load decayed to varying degrees; while during low load periods such as 14:00-18:00 and 22:00-23:00, due to the influence of user energy satisfaction, there was basically no decay. Through subsidy incentives, IBDR enables users to adjust their energy strategies during the day to smooth out source and load fluctuations.
[0097] Specifically, in terms of cost, the total cost of Scenario 5 is 8.23% lower than that of Scenario 6, and the system operating cost is reduced; the total cost of Scenario 7 is 2.35% higher than that of Scenario 8. This is because Scenario 7 does not involve output deviation penalty costs, the user's response volume is high when performing IBDR response, the load fluctuation is quite different from the day-ahead regulation result, and the corresponding thermal power, power purchase and sales, and energy storage charging and discharging plan adjustments are large, which increases the output deviation penalty cost and slightly increases the total cost.
[0098] Therefore, the IBDR strategy is adopted during the intraday stage to adjust users' energy usage patterns, reduce peak loads, stabilize system operation and reduce total costs.
[0099] Comparative analysis of the regulation results within the day and before the day: For the day-ahead control results of scenario 1, please refer to Figure 7 , Figure 7 is a schematic diagram of a day-ahead control result provided in an embodiment of the present application, such as Figure 7As shown, it can be seen that: during the period of 00:00-07:00, due to insufficient sunlight, the photovoltaic output of a certain western city is zero, and the output of thermal power units is limited by carbon emission quotas. Therefore, the virtual power plant meets the energy demand of users through wind power output and purchased electricity, and reduces costs by charging energy storage when electricity prices are low and discharging energy storage when electricity prices are high; during the period of 08:00-18:00, the photovoltaic output is approximately normally distributed, and the wind power output is close to zero. The virtual power plant is mainly regulated by market-based transactions to meet the supply and demand balance and reduce costs. After the remaining electricity reaches the maximum transaction volume, energy storage charging is carried out to avoid electricity waste; during the period of 19:00-24:00, the load presents a peak again, and the load demand is met by the output of thermal power units and wind power output, while energy storage discharge is used for market transactions to make profits.
[0100] For the results of the control within 5 days of the scenario, please refer to Figure 8 , Figure 8 is a schematic diagram of a daily regulation result provided in an embodiment of the present application, such as Figure 8 As shown, it can be seen that: Overall, the thermal power output, photovoltaic output, wind power output, power purchase, energy storage discharge, power sales, energy storage charging and compliance power in the daily control plan are basically the same as the change rules of the same parameters in the day-ahead plan. However, in detail, the intraday stage will be corrected according to the changes in new energy output and load, and the control plan will be more accurate. For example, in the 00:00-03:30 period, the power change of energy storage charging is smoother, which helps to extend the life of the equipment and reduce maintenance costs; in the 07:00-15:00 period, the energy storage link is added to provide energy backup for peak hours and optimize the energy structure; around 14:00, the state of discharge and power sales is adjusted to the state of charging and power sales.
[0101] For a comparison of the control results between scenario 1 and scenario 5, please refer to Figures 9 to 11 , Fig. 9 is a curve diagram of a day-ahead output plan and a day-intraday output plan provided in an embodiment of the present application. Fig.10 is a curve diagram of a day-ahead energy storage charging and discharging plan and a day-intraday energy storage charging and discharging plan provided in an embodiment of the present application, Fig.11 : is a curve diagram of a day-ahead power purchase and sale plan and an intraday power purchase and sale plan provided in an embodiment of the present application, such as Figure 9-11 As shown in the figure, the day-ahead and intraday trends of thermal power generation unit output plans, energy storage charging and discharging plans, and power purchase and sales plans are basically the same. The thermal power generation unit output plan is slightly adjusted from 04:00 to 06:00, and the power purchase and sales plan changes smoothly around 03:00. The control results in other time periods are almost the same; while the energy storage charging and discharging plan is adjusted more in the intraday stage, and is obvious in the peak and valley periods, indicating that the virtual power plant will continuously adjust and correct according to the intraday situation during the intraday control stage to meet the overall operation goals.
[0102] Therefore, the day-ahead dispatch results are based on the hourly granularity, and the control results are too ideal. They may not be able to respond to new energy and load fluctuations in a timely manner. Intraday control adopts a 15-minute rolling optimization method, which shortens the time scale and continuously updates data. Combining day-ahead control with intraday control can make the control results more accurate.
[0103] It can be seen that in this example, by determining the first demand response strategy for regulating the virtual power plant according to the first demand in the first regulation cycle, and then continuing to determine the second demand response strategy for regulating the virtual power plant according to the second demand during the process of regulating the virtual power plant to execute the first demand response strategy in the second regulation cycle, multiple demands in multiple time periods are comprehensively considered in the process of regulating the virtual power plant, thereby improving the regulation accuracy of the virtual power plant.
[0104] See also Fig.12 , Fig.12 is a structural diagram of a virtual power plant control device provided in an embodiment of the present application, such as Fig.12 As shown, the virtual power plant control device 1200 includes: A construction module 1201 is used to construct a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle; An execution module 1202 is used to determine a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulate the virtual power plant to execute the first demand response strategy within a second regulation cycle; The construction module 1201 is further used to construct a second objective function according to the second total operating cost data of the virtual power plant in the target time period within the second control cycle; The execution module 1202 is further used to determine a second demand response strategy based on the second objective function and multiple second constraints for the second demand, and regulate the virtual power plant to execute the second demand response strategy in the next target time period.
[0105] In one possible implementation, the first total operating cost data includes the total operating and maintenance cost data of the wind, solar and energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant and the carbon emission cost data. In terms of constructing the first objective function according to the first total operating cost data of the virtual power plant in the first regulation cycle, the construction module 1201 is specifically used to: obtain the total operating and maintenance cost data of the wind, solar and energy storage system according to the wind operation and maintenance coefficient, the photovoltaic operation and maintenance coefficient, the energy storage system operation and maintenance coefficient, the wind output value, the photovoltaic output value and the total discharge of the energy storage system; obtain the total operating and maintenance cost data of the wind, solar and energy storage system according to the cost coefficients of multiple thermal power units, the output data of thermal power units, the startup cost of thermal power units, the shutdown cost of thermal power units and the data used to indicate the start and stop status of the thermal power units. Boolean variables are used to obtain the operating cost data of the thermal power unit; the power purchase and sale cost data of the virtual power plant are obtained according to the power purchase price of the virtual power plant from the power grid, the power sale price of the virtual power plant to the power grid, the power purchase power of the virtual power plant from the power grid and the power sale power of the virtual power plant to the power grid; the carbon emission cost data are obtained according to the unit carbon emission price, the unit output carbon emissions of the thermal power unit and the unit output free carbon emissions of the thermal power unit; the first total operating cost data are obtained according to the total operation and maintenance cost data of the wind and solar energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant and the carbon emission cost data; the first objective function is constructed by minimizing the first total operating cost data within the first regulation cycle.
[0106] In one possible implementation, multiple first constraints include thermal power unit output and ramp constraints, energy storage equipment constraints, power trading constraints, virtual power plant positive and negative spinning reserve constraints, price-based demand response constraints, and virtual power plant power balance constraints. In determining the first demand response strategy based on the first objective function and multiple first constraints for the first demand, the execution module 1202 is specifically used to: obtain multiple first demand response parameters by minimizing the first objective function under the multiple first constraints for the first demand; determine the first demand response strategy based on the multiple first demand response parameters, and the first demand response strategy includes a thermal power unit start and stop strategy, a thermal power unit operation strategy, an energy storage charging and discharging strategy, a power trading strategy, and an energy use strategy.
[0107] In one possible implementation, the second total operating cost includes total operation and maintenance cost data of the wind, solar and energy storage system, operation cost data of the thermal power unit, power purchase and sale cost data of the virtual power plant, carbon emission cost data, output deviation penalty cost data and second demand response cost data. In terms of constructing the second objective function according to the second total operation cost data of the virtual power plant in the target time period within the second regulation cycle, the construction module 1201 is specifically used to: obtain the total operation and maintenance cost data of the wind, solar and energy storage system according to the wind operation and maintenance coefficient, the photovoltaic operation and maintenance coefficient, the energy storage system operation and maintenance coefficient, the wind output value, the photovoltaic output value and the total discharge of the energy storage system; obtain the operation cost data of the thermal power unit according to the cost coefficients of multiple thermal power units, the output data of the thermal power units, the startup cost of the thermal power units, the shutdown cost of the thermal power units and the Boolean variable used to indicate the start and stop status of the thermal power units; obtain the operation cost data of the thermal power units according to the purchase price of the virtual power plant from the power grid, the sales price of the virtual power plant to the power grid, the purchase power of the virtual power plant from the power grid and The power sold by the virtual power plant to the power grid is used to obtain the power purchase and sale cost data of the virtual power plant; the carbon emission cost data is obtained according to the unit carbon emission price, the carbon emission per unit output of the thermal power unit and the free carbon emission per unit output of the thermal power unit; the output deviation penalty cost data is obtained according to the deviation penalty coefficient of the thermal power unit, the energy storage deviation penalty coefficient, the power purchase and sale transaction deviation penalty coefficient, the deviation before and after regulation of the thermal power unit, the deviation before and after regulation of the energy storage charging, the deviation before and after regulation of the energy storage discharging, the deviation before and after regulation of the power sale and the deviation before and after regulation of the power purchase; the second demand response cost data is obtained according to the electricity price and the change in the second demand response; the second total operating cost data is obtained according to the total operation and maintenance cost data of the wind, solar and energy storage system, the operation cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, the carbon emission cost data, the output deviation penalty cost data and the second demand response cost data; the second total operating cost data is minimized within the second regulation cycle to construct a second objective function.
[0108] In one possible implementation, the multiple second constraints include the multiple first constraints and a second demand response constraint, a virtual power plant power balance constraint, and an operating status constraint. In determining the second demand response strategy based on the second objective function and the multiple second constraints for the second demand, the execution module 1202 is specifically used to: obtain multiple second demand response parameters by minimizing the second objective function under the multiple second constraints for the second demand; determine the second demand response strategy based on the multiple second demand response parameters, the second demand response strategy including a thermal power unit operation strategy, an energy storage charging and discharging strategy, a power trading strategy, and an energy use strategy.
[0109] In one possible implementation, before constructing the first objective function based on the first total operating cost data of the virtual power plant in the first regulation cycle, the execution module 1202 is also used to: obtain a wind-solar uncertainty model based on historical wind power generation data and historical photovoltaic power generation data; and determine the total operating and maintenance cost data of the wind-solar energy storage system in the first total operating cost data in the first regulation cycle based on the wind-solar uncertainty model.
[0110] In one possible implementation, in terms of obtaining a wind / solar uncertainty model based on historical wind power generation data and historical photovoltaic power generation data, the execution module 1202 is specifically used to: obtain random features in the historical wind power generation data and the historical photovoltaic power generation data through the Monte Carlo method; generate multiple scenes based on the random features, cluster the multiple scenes according to similarity, and obtain multiple typical scene sets; obtain the distance between each scene in the multiple typical scene sets through the Manhattan distance measurement method; determine the probability of each scene in the multiple typical scene sets based on the distance between the scenes; and establish a wind / solar uncertainty model based on the multiple typical scene sets and the probability of each scene in the multiple typical scene sets.
[0111] In a possible implementation, in terms of determining the probability of each scene in the multiple typical scene sets according to the distances between the scenes, the execution module 1202 is specifically used to: obtain multiple distance probability matrices according to the distances between the scenes in the multiple typical scene sets, and the distance probability matrices are used to indicate the similarity between two scenes. According to the multiple distance probability matrices, remove the scenes in the multiple typical scene sets whose sum of distances with all other scenes is less than a target threshold; and obtain the probability of each scene in the multiple typical scene sets according to the distance probability matrices of each scene retained in the multiple typical scene sets.
[0112] In one possible implementation, after regulating the virtual power plant to execute the second demand response strategy in the next target time period, the execution module 1202 is also used to: determine whether the virtual power plant is within the second regulation cycle; detect that the virtual power plant is within the second regulation cycle, and construct a third objective function based on the third total operating cost data of the virtual power plant in the target time period within the second regulation cycle; determine a third demand response strategy based on the third objective function and multiple second constraints for the second demand, and regulate the virtual power plant to execute the third demand response strategy in the next target time period.
[0113] It is worth noting that the specific functional implementation of the virtual power plant control device 1200 is shown in the above Figure 2The description of the virtual power plant control method based on demand response shown in the figure, for example, the construction module 1201 is used to implement the relevant content of executing S201 and S203, and the execution module 1202 is used to implement the relevant content of executing S202 and S204. Each unit or module in the virtual power plant control device 1200 can be separately or completely combined into one or several other units or modules to constitute, or one (some) of the units or modules can be further divided into multiple functionally smaller units or modules to constitute, which can achieve the same operation without affecting the realization of the technical effect of the embodiment of the present invention. The above-mentioned units or modules are divided according to logical functions. In actual applications, the function of one unit (or module) is realized by multiple units (or modules), or the functions of multiple units (or modules) are realized by one unit (or module).
[0114] According to the description of the above method embodiment and related device embodiment, please refer to Fig.13 , Fig.13 It is a schematic diagram of the structure of a computer provided in an embodiment of the present application. Fig.13 The computer 1300 shown includes a processor 1301 , a memory 1302 , a communication interface 1303 , and a bus 1304 . The processor 1301 , the memory 1302 , and the communication interface 1303 are connected to each other through the bus 1304 .
[0115] Optionally, the memory 1302 is a ROM, a static storage device, a dynamic storage device or a RAM.
[0116] The memory 1302 can store executable program codes. When the executable program codes stored in the memory 1302 are executed by the processor 1301, the processor 1301 and the communication interface 1303 are used to execute the executable program codes. Figure 2 The various steps of the demand response-based virtual power plant control method of the illustrated embodiment.
[0117] Processor 1301 uses a general-purpose CPU, a microprocessor, an application-specific integrated circuit ASIC, a GPU or one or more integrated circuits to execute relevant programs to execute the demand response-based virtual power plant control method of the method embodiment of the present application.
[0118] The processor 1301 can also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the virtual power plant control method based on demand response of the present application can be completed by the hardware integrated logic circuit or software instructions in the processor 1301. Optionally, the processor 1301 is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The processor can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor is a microprocessor or the processor is any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or a combination of hardware and software modules in the decoding processor to execute. The optional software module is located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory 1302, and the processor 1301 reads the information in the memory 1302, and combines its hardware to complete the functions required to be performed by the modules included in a virtual power plant control device 1200 of an embodiment of the present application, or executes the virtual power plant control method based on demand response of the method embodiment of the present application.
[0119] The communication interface 1303 uses a transceiver or other related device such as, but not limited to, a transceiver.
[0120] The bus 1304 may include a path for transmitting information between various components of the computer 1300 (eg, the memory 1302 , the processor 1301 , and the communication interface 1303 ).
[0121] It should be noted that although Fig.13 The computer 1300 shown only shows a memory, a processor, and a communication interface, but in the specific implementation process, those skilled in the art should understand that the computer 1300 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the computer 1300 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the computer 1300 may also only include the devices necessary for implementing the embodiments of the present application, and does not necessarily include Fig.13 All devices shown in .
[0122] An embodiment of the present application provides a computer-readable storage medium, in which a computer program for electronic data exchange is stored. The computer program includes execution instructions, and the execution instructions are used to execute part or all of the steps of any one of the demand-response-based virtual power plant control methods recorded in the above-mentioned demand-response-based virtual power plant control method embodiments. The above-mentioned computer includes an electronic terminal device.
[0123] An embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program can be operated to enable a computer to perform part or all of the steps of any one of the demand response-based virtual power plant control methods recorded in the above method embodiments. The computer program product can be a software installation package.
[0124] It should be noted that for any of the aforementioned embodiments of the virtual power plant control method based on demand response, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited to the described order of actions, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by this application.
[0125] The above is a detailed introduction to the embodiments of the present application. In this article, specific examples are used to illustrate the principles and implementation methods of a virtual power plant control method and device based on demand response in the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, based on the idea of a virtual power plant control method and device based on demand response in the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, hardware products, and computer program products of the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1The memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0128] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "one" does not exclude multiple situations. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0129] A person of ordinary skill in the art may understand that all or part of the steps in the various methods of any of the above-mentioned methods of implementing the demand response-based virtual power plant control method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0130] It can be understood that any product that is controlled or configured to execute the processing method of the flowchart described in an embodiment of a virtual power plant control method based on demand response in this application, such as the device and computer program product of the above flowchart, falls within the scope of related products described in this application.
[0131] Obviously, those skilled in the art can make various changes and modifications to the demand response-based virtual power plant control method and device provided in this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these modifications and variations.
Claims
1. A virtual power plant control method based on demand response, characterized in that: A server applied to a virtual power plant control method, the method comprising: Constructing a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle; Determining a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulating the virtual power plant to execute the first demand response strategy within a second regulation cycle; Constructing a second objective function according to second total operating cost data of the virtual power plant in a target time period within the second control cycle; A second demand response strategy is determined based on the second objective function and multiple second constraints for the second demand, and the virtual power plant is regulated to execute the second demand response strategy in the next target time period.
2. The method according to claim 1, characterized in that The first total operating cost data includes the total operating and maintenance cost data of the wind and solar energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, and the carbon emission cost data. The first objective function is constructed according to the first total operating cost data of the virtual power plant in the first regulation cycle, including: According to the wind power operation and maintenance coefficient, photovoltaic operation and maintenance coefficient, energy storage system operation and maintenance coefficient, wind power output value, photovoltaic output value and total discharge of energy storage system, the total operation and maintenance cost data of wind-solar-energy storage system is obtained; According to the cost coefficients of multiple thermal power units, the output data of the thermal power units, the startup cost of the thermal power units, the shutdown cost of the thermal power units, and the Boolean variable used to indicate the start and stop status of the thermal power units, the operation cost data of the thermal power units are obtained; According to the power purchase price of the virtual power plant from the power grid, the power sale price of the virtual power plant to the power grid, the power purchase power of the virtual power plant from the power grid, and the power sale power of the virtual power plant to the power grid, the power purchase and sale cost data of the virtual power plant are obtained; The carbon emission cost data is obtained based on the unit carbon emission price, the unit carbon emission of thermal power units and the unit free carbon emission of thermal power units; Obtaining first total operating cost data according to the total operating and maintenance cost data of the wind-solar energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, and the carbon emission cost data; The first objective function is constructed by minimizing the first total operating cost data within the first control cycle.
3. The method according to claim 1, characterized in that The multiple first constraints include thermal power unit output and ramp constraints, energy storage equipment constraints, power trading constraints, virtual power plant positive and negative spinning reserve constraints, price-based demand response constraints, and virtual power plant power balance constraints. The first demand response strategy is determined according to the first objective function and the multiple first constraints for the first demand, including: Obtaining a plurality of first demand response parameters by minimizing the first objective function under the plurality of first constraint conditions for the first demand; A first demand response strategy is determined according to the multiple first demand response parameters, wherein the first demand response strategy includes a thermal power unit start and stop strategy, a thermal power unit operation strategy, an energy storage charging and discharging strategy, an electricity trading strategy, and an energy use strategy.
4. The method according to claim 1, characterized in that The second total operating cost includes the total operating and maintenance cost data of the wind-solar energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, the carbon emission cost data, the output deviation penalty cost data and the second demand response cost data. The second objective function is constructed according to the second total operating cost data of the virtual power plant in the target time period within the second regulation cycle, including: According to the wind power operation and maintenance coefficient, photovoltaic operation and maintenance coefficient, energy storage system operation and maintenance coefficient, wind power output value, photovoltaic output value and total discharge of energy storage system, the total operation and maintenance cost data of wind-solar-energy storage system is obtained; According to the cost coefficients of multiple thermal power units, the output data of the thermal power units, the startup cost of the thermal power units, the shutdown cost of the thermal power units, and the Boolean variable used to indicate the start and stop status of the thermal power units, the operation cost data of the thermal power units are obtained; According to the power purchase price of the virtual power plant from the power grid, the power sale price of the virtual power plant to the power grid, the power purchase power of the virtual power plant from the power grid, and the power sale power of the virtual power plant to the power grid, the power purchase and sale cost data of the virtual power plant are obtained; The carbon emission cost data is obtained based on the unit carbon emission price, the unit carbon emission of thermal power units and the unit free carbon emission of thermal power units; According to the deviation penalty coefficient of thermal power unit, the deviation penalty coefficient of energy storage, the deviation penalty coefficient of power purchase and sale transaction, the deviation before and after regulation of thermal power unit, the deviation before and after regulation of energy storage charging, the deviation before and after regulation of energy storage discharging, the deviation before and after regulation of power sales and the deviation before and after regulation of power purchase, the output deviation penalty cost data is obtained; Obtaining second demand response cost data according to the electricity price and the second demand response compliance change amount; Obtain second total operating cost data according to the total operating and maintenance cost data of the wind-solar energy storage system, the operating cost data of the thermal power unit, the power purchase and sale cost data of the virtual power plant, the carbon emission cost data, the output deviation penalty cost data, and the second demand response cost data; The second objective function is constructed by minimizing the second total operating cost data within the second control cycle.
5. The method according to claim 1, characterized in that The multiple second constraints include the multiple first constraints and a second demand response constraint, a virtual power plant power balance constraint, and an operation state constraint. The determining of the second demand response strategy according to the second objective function and the multiple second constraints for the second demand includes: Obtaining a plurality of second demand response parameters by minimizing the second objective function under the plurality of second constraint conditions for the second demand; A second demand response strategy is determined according to the multiple second demand response parameters, wherein the second demand response strategy includes a thermal power unit operation strategy, an energy storage charging and discharging strategy, a power trading strategy, and an energy use strategy.
6. The method according to any one of claims 1 to 5, characterized in that: Before constructing the first objective function according to the first total operating cost data of the virtual power plant in the first regulation cycle, the method further includes: Based on the historical data of wind power generation and photovoltaic power generation, the wind and solar uncertainty model is obtained; According to the wind-solar uncertainty model, the total operation and maintenance cost data of the wind-solar energy storage system in the first total operation cost data within the first regulation cycle is determined.
7. The method according to claim 6, characterized in that The wind and solar uncertainty model is obtained based on the historical data of wind power generation and the historical data of photovoltaic power generation, including: Acquire random features in the wind power generation historical data and the photovoltaic power generation historical data by using the Monte Carlo method; Generate multiple scenes according to the random features, cluster the multiple scenes according to similarities, and obtain multiple typical scene sets; Obtaining the distance between each scene in the plurality of typical scene sets by using a Manhattan distance measurement method; Determining the probability of each scene in the plurality of typical scene sets according to the distance between the scenes; A wind and solar uncertainty model is established according to the multiple typical scene sets and the probability of each scene in the multiple typical scene sets.
8. The method according to claim 7, characterized in that The determining the probability of each scene in the plurality of typical scene sets according to the distance between the scenes includes: According to the distances between the respective scenes in the plurality of typical scene sets, a plurality of distance probability matrices are obtained, wherein the distance probability matrices are used to indicate the similarity between two scenes; According to the multiple distance probability matrices, removing scenes whose sum of distances with all other scenes in the multiple typical scenes is less than a target threshold; The probability of each scene in the plurality of typical scene sets is obtained according to the distance probability matrix of each scene retained in the plurality of typical scene sets.
9. The method according to any one of claims 1 to 5, characterized in that: After regulating the virtual power plant to execute the second demand response strategy in the next target time period, the method further includes: Determining whether the virtual power plant is within the second control cycle; It is detected that the virtual power plant is in the second regulation cycle, and a third objective function is constructed according to the third total operating cost data of the virtual power plant in the target time period within the second regulation cycle; a third demand response strategy is determined according to the third objective function and multiple second constraints for the second demand, and the virtual power plant is regulated to execute the third demand response strategy in the next target time period.
10. A virtual power plant control device based on demand response, characterized in that: The device comprises: A construction module, configured to construct a first objective function according to first total operating cost data of the virtual power plant in a first regulation cycle; an execution module, configured to determine a first demand response strategy according to the first objective function and a plurality of first constraints for the first demand, and regulate the virtual power plant to execute the first demand response strategy within a second regulation cycle; The construction module is further used to construct a second objective function according to the second total operating cost data of the virtual power plant in the target time period within the second control cycle; The execution module is also used to determine a second demand response strategy based on the second objective function and multiple second constraints for the second demand, and regulate the virtual power plant to execute the second demand response strategy in the next target time period.
Citation Information
Patent Citations
Virtual power plant optimization trading strategy model based on two-stage stochastic programming
CN108960510A
Virtual power plant marketization optimization scheduling method based on multiple uncertainty characterization
CN115456242A
Virtual power plant scheduling method and system
CN115879983A
Multi-time scale optimization scheduling method and system for virtual power plant
CN117196228A
Photovoltaic energy storage scheduling method and device, computer equipment and storage medium
CN118137542A
