Virtual power plant two-stage game operation optimization method considering real-time demand response
Patent Information
- Application Number
- CN202411028878.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-30
AI Technical Summary
VPP日内用户用能的不确定性问题进一步加剧,给用户日前和实时交易过程带来了不可避免的购能偏差,直接影响VPP运转的稳定性和经济性
[0072]采用上述技术方案,本发明通过建立日前-日内两阶段博弈优化模型,解决VPP中多个主体之间的决策和优化问题,实现VPP内部日前经济优化调度以及日内能量偏差协同优化。日前阶段通过良性竞争有效平衡市场的利益分布,在确保DERs收益均衡的基础上,有效降低VPP控制中心的购电成本。日内阶段,在保证用户用电经济性和满意度的同时,有效减小日内负荷侧的能量偏差,防止造成资源的浪费。同时也能更好地动员用户经济合理地用电,确保电力供应的可靠性,实现VPP的分布式自治和协同优化,减少VPP对电网的依赖,缓解电网的供电压力。
Smart Images

Figure CN118801366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual power plant operation, and specifically to a two-stage game operation optimization method for a virtual power plant taking real-time demand response into consideration. Background Art
[0002] With the rapid growth of urban population and rapid development of urban economy, energy consumption has increased significantly, which has brought great pressure to the operation of urban power systems. On the one hand, the imbalance of power supply and demand may lead to instability or even collapse of urban power systems. On the other hand, peak load may lead to high electricity prices, which will increase the energy cost of end users. The traditional solution is to build centralized thermal power plants to alleviate urban power shortages or imbalances in supply and demand. This approach is too expensive and will lead to a large amount of carbon emissions. In order to reduce the pollution of traditional thermal power plants and alleviate urban power shortages or imbalances in power supply and demand, the proportion of distributed energy resources (DERs) is increasing. However, DERs are usually distributed in small capacities and their output is volatile. In contrast, urban virtual power plants (VPPs) can aggregate various DERs, including wind power, photovoltaics, and energy storage systems, through advanced information and communication technologies. Urban VPPs make full use of these aggregated energies, achieve supply-side energy complementarity through optimal scheduling of traditional energy and renewable energy, and also improve the utilization rate of renewable energy. In addition, through the coordination of DERs, urban VPPs can participate in the operation and scheduling of the power system as a whole. Therefore, achieving the economic operation of urban VPPs and realizing the optimal dispatch of DERs in urban VPPs is an important issue.
[0003] Participation in demand response (DR) is also a mainstream measure to alleviate the power supply pressure in VPP, and it can also reduce the cost of energy use for users. Different users usually have different needs and reactions when participating in DR. Therefore, it is particularly important to formulate more flexible DR and provide different incentives for different users. In addition, both DERs and users have individual rationality and compete with each other in conflicts. In the process of VPP aggregating various distributed resources to participate in DR optimization, how to use game interaction to make fair and just revenue sharing decisions is conducive to motivating various distributed resources to participate in DR, and is also of great significance for VPP to participate in the demand response of power grid companies. The uncertainty of VPP users' energy consumption during the day is further aggravated, which brings inevitable energy purchase deviations to users' day-ahead and real-time trading processes, directly affecting the stability and economy of VPP operation. For the energy deviation problem in the energy market, the current mainstream solutions include improving the accuracy of energy consumption forecasting, introducing intermediaries and market regulation mechanisms, etc., but the current methods of dealing with energy deviation are still insufficient in balancing the interests of all parties on the supply and demand sides of the market, and cannot fully coordinate the interests of various entities. The flexibility of user DR resource regulation can effectively reduce energy deviation from the load side, but considering the regulation constraints of DR, most current studies implement DR regulation in the day-ahead stage, and the real-time regulation strategy of intraday DR needs to be further explored. Therefore, analyzing the VPP operation optimization problem considering real-time demand response will provide certain guidance for the distributed autonomy and collaborative optimization of VPP. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention proposes a two-stage game operation optimization method for a virtual power plant taking into account real-time demand response. The method obtains an energy scheduling scheme for DERs on the VPP energy supply side in the day-ahead stage and a real-time power consumption strategy for users that minimizes energy deviation on the user side in the intraday stage through a two-stage optimization model.
[0005] In order to solve the above technical problems, the technical solution of the present invention is:
[0006] A VPP two-stage game operation optimization method considering real-time demand response includes the following steps:
[0007] S1. Establish a VPP two-stage game optimization model that considers real-time demand response. The two-stage game optimization model includes an energy supply side scheduling optimization model in the day-ahead stage and an energy deviation coordination optimization model in the intraday stage.
[0008] S2. Initialize the VPP two-stage game optimization model, where the parameters of the two-stage game optimization model include the operating cost coefficient β of the energy storage system (ESS); the charging and discharging power coefficient ρ of the ESS ch , dis ; Optimize time step Δt; ESS capacity Maximum power of ESS charging and discharging GT cost coefficient k GT ; The average electricity purchase price provided by the market to DERs λ mk ; Limitation coefficient of user power load reduction ε cut ; User load reduction discomfort coefficient μ cut,i ; User load transfer discomfort coefficient μ tr,i ; Rated power P for transferable load operation rated ; Unit penalty cost for energy deviation Unit penalty cost
[0009] S3. In the VPP two-stage game operation optimization model, the energy supply side scheduling optimization model in the day-ahead stage adopts a distributed method combining an adaptive differential evolution algorithm with a Gurobi solver to solve the objective functions of the day-ahead DERs and the VPP control center, and obtain the energy scheduling plan of each DER and the power purchase plan of the VPP control center. The energy deviation coordination optimization model in the intraday stage adopts an iterative algorithm to obtain the user's real-time power consumption strategy that minimizes the energy deviation.
[0010] As a preferred option, the energy supply-side dispatch optimization model in the day-ahead stage in S1 is a two-layer optimization model based on the Stackelberg master-slave game, in which the bottom followers are the DERs, photovoltaic power generation, wind power generation and gas turbines are selected, and all equipment is considered to be equipped with energy storage systems; the upper leader is the VPP control center.
[0011] The unified modeling of the energy storage system equipped by each DERs is as follows:
[0012]
[0013] in, The operating cost of the energy storage device; is the charging and discharging power of the energy storage device at time t; is the amount of electricity stored in ES at time t.
[0014] To avoid fully charging and discharging the energy storage system and reducing battery life, the battery capacity should be between 20% and 80% of the rated capacity, and cannot be charged and discharged at the same time. The specific constraints are as follows:
[0015]
[0016] in, Respectively represent the maximum power of charging and discharging; are 0-1 variables, representing the charging state and discharging state of ESS at time t.
[0017] As a preferred option, in the energy supply side dispatch optimization model in the day-ahead stage, the photovoltaic power generation unit is based on its own revenue F PV Maximization is used as the optimization goal, and its objective function is:
[0018]
[0019] Among them, λ t is the electricity price within the VPP; is the total transaction power between PV and VPP control center at time t; Equip photovoltaic power stations with energy storage charging and discharging power; The operating cost of the ES equipped for PV; Predict power generation for PV.
[0020] As a preferred choice, in the energy supply side dispatch optimization model in the day-ahead stage, the wind turbine generator set is based on its own revenue F WT Maximization is used as the optimization goal, and its objective function is:
[0021]
[0022] in, is the total transaction power between WT and VPP control center at time t; Equip WT with energy storage for charging and discharging power; The operating cost of the ES equipped for WT; Predict the power generated for WT.
[0023] As a preferred choice, in the energy supply side dispatch optimization model in the day-ahead stage, the gas turbine is based on its own revenue F GT Maximization is used as the optimization goal, and its objective function is:
[0024]
[0025] In the formula, is the total transaction power between GT and VPP control center at time t; is the output power of GT at time t in the day-ahead power production scheduling; Equip GT with energy storage charging and discharging power; Running costs of the ES for the GT. The running cost of the GT.
[0026] As the preferred choice, the upper leader VPP control center in the day-ahead phase uses the VPP power purchase cost C VPP Minimization is the optimization goal, and its objective function is:
[0027]
[0028] Among them, CVPP The cost of purchasing electricity for the VPP control center; It is the agreed electricity quantity signed between the VPP control center and the power grid company; The agreed electricity price; The predicted power of the user side load at time t; is the total output power of DER inside VPP at time t.
[0029] In order to prevent the VPP control center from reducing the electricity price to the lowest level in order to maximize its own profits, the energy supply-side dispatch optimization model in the day-ahead stage sets relevant electricity price constraints to help adjust the electricity price within a certain range. At the same time, the average price of the electricity price throughout the day is not lower than the market price. The specific constraints are as follows:
[0030]
[0031] As a preferred model, the coordinated optimization model of energy deviation in the intra-day stage in S1 is a cooperative alliance composed of multiple users, with each user taking the electricity cost as Minimization is the optimization goal, and its objective function is:
[0032]
[0033] in, is the total electricity load of user i at time t within the day; Discounted electricity prices for users participating in cooperative alliances; is the discomfort cost caused by load reduction of user i at time t; is the discomfort cost caused by the transferable load of user i at time t; is the incentive benefit obtained by user i for participating in the cooperative alliance at time t; They are the basic load, curtailable load and transferable load of user i at time t within the day; is the external market electricity price at time t.
[0034] As a preference, the user can reduce the load control range constraint settings as follows:
[0035]
[0036] As a preferred method, in order to ensure the completion of the daily transferable load task, the relevant capacity constraints are set as follows:
[0037]
[0038] Among them, E i is the total amount of transferable load that user i needs to complete within 24 hours; Δt is the decision step within the day, and the decision step in this study is 30 minutes. When making a decision at time t within the day, user i needs to make the following judgments:
[0039]
[0040] If the judgment result of (I) is true, it means that the transferable load task of user i on that day has been completed, and the transferable load at time t and the subsequent time of the day is zero. If the judgment result of (II) is true, it means that the transferable load at time t and the subsequent time of the day needs to run at full power to complete the transferable load task of the day. In other cases, user i can freely adjust the start and stop of the transferable load as needed.
[0041] As a preferred method, the alliance uses the Shapley value method to allocate incentive allowances to users. The allocation rules are as follows:
[0042]
[0043] Where N is the set of participants in the alliance, represented as {user 1, user 2, ..., user i}; is the benefit obtained by alliance member e; φ(S) is the weight of the benefits shared by alliance members; S\{i} is the set after member i is excluded from set S; e(S) is the characteristic function of the alliance; v(S) is the total benefit of the alliance; x i is the income of member i before participating in the cooperative game; S is the set of different alliance combinations.
[0044] As a preferred option, the intraday cooperation alliance is based on the electricity cost Minimum is the optimization goal, and its objective function is:
[0045]
[0046] in, The penalty cost for the electricity deviation of the daily load.
[0047] Preferably, step S3 includes the following sub-steps:
[0048] S3-1. Initialize the predicted value of the total load power on the user side the day before (i.e., the sum of all user loads on the user side the next day, the initial value is set according to the actual prediction situation) and the predicted power generation power of each DERs the day before.
[0049] S3-2, the distributed algorithm of ADE nested Gurobi solver is used to solve the model in the day-ahead stage. The VPP control center transmits the initialized VPP internal power purchase price to each DER at the lower level. The DER at the lower level optimizes its own energy sales plan based on its own power generation forecast using Gurobi solver to obtain the power output result of the lower level. And transmit it to the upper VPP control center, which uses the ADE algorithm to calculate its benefit value C VPP, and update the electricity price, and pass it to the lower layer for optimization. Until the ADE algorithm converges, the optimal VPP energy acquisition plan and DERs energy scheduling plan are obtained, and the energy acquisition plan is passed to the intraday stage for optimization.
[0050] S3-3, in the intraday stage, real-time demand response and cooperative game are considered moment by moment. At moment t, the VPP control center determines whether the load is within the allowable power deviation range of ±2% based on the day-ahead power purchase plan and the real-time load at the current moment. If it is within the allowable power deviation range, there is no power deviation penalty at the current moment, no operation is performed, and the next moment is entered. If it exceeds the allowable power deviation range of ±2%, the iterative algorithm is used to solve the energy deviation collaborative optimization model based on the cooperative game to obtain the user's real-time power consumption strategy that minimizes the energy deviation.
[0051] Preferably, the step S3-2 includes the following sub-steps:
[0052] S3-2-1, initialize the simulation parameters of the energy supply side scheduling optimization model based on the Stackelberg master-slave game in the day-ahead stage in S1, the simulation parameters include the operation cost coefficient β of the energy storage system; the charging and discharging power coefficient ρ of the ESS ch , dis ; Optimize time step Δt; ESS capacity Maximum power of ESS charging and discharging GT cost coefficient k GT ; The average electricity purchase price provided by the market to DERs λ mk ; The maximum number of iterations K of the ADE algorithm max ; Population size n size ; The dimension n of each individual in the population dim ; Search interval for target solution The scaling factor F of population variation and the probability of crossover and recombination CR.
[0053] S3-2-2. Initialize population a, i.e. randomly generate n populations within the VPP internal electricity price control constraints. size The energy purchase price is used as the initial population, and the number of iterations is initialized to K = 0.
[0054] S3-2-3: The VPP internal energy purchase price in population a is transmitted to each DER in the lower layer. Each DER calls the Gurobi solver according to the electricity price to optimize its own power output. Upload the optimization results to the upper-level leader VPP control center.
[0055] S3-2-4. The VPP control center calculates the benefit value of each individual in population a according to the optimization results of the lower layer, and takes out the maximum benefit value E1 of this round.
[0056] S3-2-5. Mutate and crossover the population a to obtain a new population b.
[0057] S3-2-6. Transmit the internal energy acquisition price of the VPP in population b to each DER in the lower layer. The DERs call the Gurobi solver again to optimize their objective functions and transmit the optimization results to the upper layer. The VPP control center calculates the benefit values of each individual in population b based on the returned lower-layer optimization results and extracts the maximum benefit value E2 in this round.
[0058] S3-2-7. Selection operation. If E2 > E1, then a = b and E1 = E2. If E2 < E1, remain unchanged.
[0059] S3-2-8. Judgment operation. If the maximum number of iterations (K = K max ) is reached, then output the optimization result. Otherwise, jump to S3-2-5.
[0060] Preferably, the step S3-3 includes the following sub-steps:
[0061] S3-3-1. Initialize the simulation parameters of the intra-day stage energy deviation coordination optimization model in S1. The simulation parameters include the limitation coefficient ε of the reduction of each user's electricity load cut,i ; the discomfort coefficients μ cut,i of the reduction of each user's electricity load and the transfer of electricity load tr,i ; the rated power P of the operation of the transferable load rated ; the unit penalty cost of the energy deviation
[0062] S3-3-2. At time t, compare the real-time load at the current time with the power purchase plan at the same time in the day-ahead power purchase plan, and judge whether the load deviation is within the allowable power deviation range of ±2%, that is If it is within the allowable power deviation range, there is no power deviation penalty at the current time, no operation is performed, and it goes to S3-3-10; otherwise, it goes to S3-3-3.
[0063] S3-3-3. At time t, when the load deviation on the user side exceeds the allowable range, the VPP control center issues a call for load power adjustment. Each user adjusts the flexible load demand to the maximum extent within their respective load adjustment ranges to obtain the electricity consumption strategies of each user
[0064] S3-3-4. Calculate the incentive allowance for each user according to the Shapley value method and calculate the total energy consumption cost of each user
[0065] S3-3-5. Determine whether the power deviation exceeds the allowable deviation range. If it exceeds the range, it means that the maximum load response at time t cannot completely eliminate the energy deviation. The game stops and the power consumption strategy of each user is output. Go to S3-3-10; otherwise go to S3-3-6.
[0066] S3-3-6. Within the respective load adjustment range, the response load power of each user (the amount of change in load that can be reduced and load that can be transferred) is halved to obtain the power consumption strategy of each user.
[0067] S3-3-7. Determine whether the current round of power deviation exceeds the allowable deviation range. If it exceeds the range, output the power consumption strategy for each user. Go to S3-3-10; otherwise go to S3-3-8.
[0068] S3-3-8. According to the electricity strategy Calculate incentive allowance for each user And calculate the total energy cost of each user Compare each user's and like Use renew Using policy B, user i Update the electricity consumption strategy of user i in strategy A; otherwise The electricity usage strategy of user i remains unchanged.
[0069] S3-3-9. Determine whether all users meet If satisfied, all users determine their own DR strategies, the game ends, and the user power consumption strategy is output Go to S3-3-10; otherwise go to S3-3-6.
[0070] S3-3-10, the collaborative optimization of power deviation at time t is completed, and the process is waiting to enter time t+1.
[0071] The present invention has the following characteristics and beneficial effects:
[0072] By adopting the above technical scheme, the present invention solves the decision-making and optimization problems among multiple subjects in the VPP by establishing a two-stage game optimization model of the day-ahead and the day-intraday, and realizes the day-ahead economic optimization scheduling and the collaborative optimization of the intraday energy deviation within the VPP. In the day-ahead stage, the distribution of market benefits is effectively balanced through benign competition, and the electricity purchase cost of the VPP control center is effectively reduced on the basis of ensuring the balance of DERs benefits. In the intraday stage, while ensuring the economy and satisfaction of users' electricity use, the energy deviation on the intraday load side is effectively reduced to prevent waste of resources. At the same time, it can also better mobilize users to use electricity economically and reasonably, ensure the reliability of power supply, realize the distributed autonomy and collaborative optimization of VPP, reduce the dependence of VPP on the power grid, and alleviate the power supply pressure of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0074] Figure 1 This is a system architecture diagram of the VPP two-stage operation optimization method according to an embodiment of the present invention.
[0075] Figure 2 This is the gas turbine optimization result in the day-ahead stage in the embodiment of the present invention.
[0076] Figure 3 This is the optimization result of the photovoltaic power generation group in the day-ahead stage in the embodiment of the present invention.
[0077] Figure 4 This is the optimization result of the wind turbine generator set in the day-ahead stage in the embodiment of the present invention.
[0078] Figure 5 This is the optimization result of the VPP internal purchase electricity price in the day-ahead stage in the embodiment of the present invention.
[0079] Figure 6 Optimize pre- and post-load comparisons for intraday phases.
[0080] Figure 7 Comparison of power purchased by the power grid before and after optimization during the intra-day stage.
[0081] Figure 8 This is the VPP power deviation penalty in the intra-day stage in the embodiment of the present invention. DETAILED DESCRIPTION
[0082] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0083] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings.
[0084] On the contrary, the present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention as defined by the claims. Further, in order to make the public have a better understanding of the present invention, some specific details are described in detail in the detailed description of the present invention below. Those skilled in the art can fully understand the present invention without the description of these details.
[0085] The present invention provides a two-stage game operation optimization method for a virtual power plant considering real-time demand response, which relates to a VPP operation optimization method. A two-stage game optimization model is used to generate a VPP day-ahead economic optimization scheduling plan and a coordinated optimization strategy for intraday electricity deviation. The two-stage optimization models are respectively an energy supply side scheduling optimization model in the day-ahead stage and an energy deviation coordination optimization model in the intraday stage. The two stages respectively solve the optimal scheduling plan of day-ahead DERs and the real-time electricity consumption strategy of intraday users, as follows Figure 1 As shown. The purpose of the present invention is to propose a VPP two-stage game operation optimization method that takes into account real-time demand response, so as to enable DERs on the VPP energy supply side to obtain more production capacity benefits, effectively reduce the energy deviation on the load side during the day, operate the urban VPP at the lowest cost, realize the distributed autonomy and collaborative optimization of the VPP, reduce the dependence of the VPP on the power grid, and alleviate the power supply pressure of the power grid. To illustrate the effect of the present invention, the present invention is described in detail below with a certain VPP as the implementation object of the present invention, including the following steps:
[0086] S1. Establish a VPP two-stage game optimization model that considers real-time demand response. The two-stage game optimization model includes an energy supply side scheduling optimization model in the day-ahead stage and an energy deviation coordination optimization model in the intraday stage.
[0087] The two-stage optimization model is Figure 1 shown.
[0088] Ⅰ) The energy supply-side dispatch optimization model in the day-ahead stage is a two-layer optimization model based on the Stackelberg master-slave game, in which the bottom followers are the DERs, photovoltaic power generation, wind power generation and gas turbines are selected, and all equipment is considered to be equipped with energy storage systems; the upper leader is the VPP control center.
[0089] The unified modeling of the energy storage system equipped by each DERs is as follows:
[0090]
[0091] in, is the operating cost of the energy storage device; is the charging and discharging power of the energy storage device at time t; is the amount of electricity stored in ES at time t.
[0092] To avoid fully charging and discharging the energy storage system and reducing battery life, the battery capacity should be between 20% and 80% of the rated capacity, and cannot be charged and discharged at the same time. The specific constraints are as follows:
[0093]
[0094] in, Respectively represent the maximum power of charging and discharging; are 0-1 variables, representing the charging state and discharging state of ESS at time t.
[0095] Photovoltaic generator sets use their own income F PV Maximization is used as the optimization goal, and its objective function is:
[0096]
[0097] Among them, λ t is the electricity price within the VPP; is the total transaction power between PV and VPP control center at time t; Equip photovoltaic power stations with energy storage charging and discharging power; The operating cost of the ES equipped for PV; Predict power generation for PV.
[0098] The wind turbine generator system uses its own income F WT Maximization is used as the optimization goal, and its objective function is:
[0099]
[0100] in, is the total transaction power between WT and VPP control center at time t; Equip WT with energy storage for charging and discharging power; The operating cost of the ES equipped for WT; Predict the power generated for WT.
[0101] Gas turbines use their own revenue F GT Maximization is used as the optimization goal, and its objective function is:
[0102]
[0103]
[0104] In the formula, is the total transaction power between GT and VPP control center at time t; is the output power of GT at time t in the day-ahead power production scheduling; Equip GT with energy storage charging and discharging power; Running costs of the ES for the GT. The running cost of GT;
[0105] The upper leader VPP control center in the previous stage uses the VPP power purchase cost C VPP Minimization is the optimization goal, and its objective function is:
[0106]
[0107] Among them, C VPP The cost of purchasing electricity for the VPP control center; It is the agreed electricity quantity signed between the VPP control center and the power grid company; The agreed electricity price; The predicted power of the user side load at time t; is the total output power of DER inside VPP at time t.
[0108] In order to prevent the VPP control center from reducing the electricity price to the minimum in order to maximize its own profits, this model sets relevant electricity price constraints to help adjust the electricity price within a certain range. At the same time, the average price of the electricity price throughout the day is not lower than the market price. The specific constraints are as follows:
[0109]
[0110] II) The intra-day energy deviation coordination optimization model is a cooperative alliance composed of multiple users, each user has a certain electricity cost. Minimization is the optimization goal, and its objective function is:
[0111]
[0112] in, is the total electricity load of user i at time t within the day; Discounted electricity prices for users participating in cooperative alliances; is the discomfort cost caused by load reduction of user i at time t; is the discomfort cost caused by the transferable load of user i at time t; is the incentive benefit obtained by user i for participating in the cooperative alliance at time t; They are the basic load, curtailable load and transferable load of user i at time t within the day; is the external market electricity price at time t.
[0113] The user can reduce the load regulation range constraint settings as follows:
[0114]
[0115] To ensure the completion of daily transferable load tasks, the relevant capacity constraints are set as follows:
[0116]
[0117] Among them, E i is the total amount of transferable load that user i needs to complete within 24 hours; Δt is the decision step within the day, and the decision step in this study is 30 minutes. When making a decision at time t within the day, user i needs to make the following judgments:
[0118]
[0119] If the judgment result of (I) is true, it means that the transferable load task of user i on that day has been completed, and the transferable load at time t and the subsequent time of the day is zero. If the judgment result of (II) is true, it means that the transferable load at time t and the subsequent time of the day needs to run at full power to complete the transferable load task of the day. In other cases, user i can freely adjust the start and stop of the transferable load as needed.
[0120] The alliance uses the Shapley value method to allocate incentive allowances to users. The allocation rules are as follows:
[0121]
[0122] Where N is the set of participants in the alliance, represented as {user 1, user 2, ..., user i}; is the benefit obtained by alliance member e; φ(S) is the weight of the benefits shared by alliance members; S\{i} is the set after member i is excluded from set S; e(S) is the characteristic function of the alliance; v(S) is the total benefit of the alliance; x i is the income of member i before participating in the cooperative game; S is the set of different alliance combinations.
[0123] The daily phase of the alliance is based on electricity cost Minimum is the optimization goal, and its objective function is:
[0124]
[0125] in; The penalty cost for the electricity deviation of the daily load.
[0126] S2. Initialize the VPP two-stage game operation optimization model, where the optimization model parameters include the operation cost coefficient β of the energy storage system (ESS); the charging and discharging power coefficient ρ of the ESS ch ,dis ; Optimize time step Δt; ESS capacity Maximum power of ESS charging and discharging GT cost coefficient k GT ; The average electricity purchase price provided by the market to DERs λ mk ; Limitation coefficient of user power load reduction ε cut ; User load reduction discomfort coefficient μ cut,i ; User load transfer discomfort coefficient μ tr,i ; Rated power P for transferable load operation rated ; Unit penalty cost for energy deviation Unit penalty cost
[0127] S3. In the VPP two-stage game operation optimization model, the energy supply side scheduling optimization model in the day-ahead stage adopts a distributed method combining an adaptive differential evolution algorithm and a Gurobi solver to solve the objective functions of the day-ahead DERs and the VPP control center, and obtain the energy scheduling plan of each DER and the power purchase plan of the VPP control center. The energy deviation coordination optimization model in the intraday stage adopts an iterative algorithm to obtain the user's real-time electricity consumption strategy that minimizes the energy deviation. It specifically includes the following sub-steps:
[0128] S3-1. Initialize the predicted value of the total load power on the user side the day before (i.e., the sum of all user loads on the user side the next day, the initial value is set according to the actual prediction situation) and the predicted power generation power of each DERs the day before.
[0129] S3-2, in the day-ahead stage, the model is solved using the distributed algorithm of the ADE nested Gurobi solver. The VPP control center passes the initialized VPP internal electricity purchase price to each DER at the lower level. The DER at the lower level uses the Gurobi solver to optimize their respective energy sales plans based on their own power generation forecasts, obtains the power output results of the lower level and passes them to the upper VPP control center. The VPP control center uses the ADE algorithm to calculate its benefit value, updates the electricity price, and passes it to the lower level for optimization. Until the ADE algorithm converges, the optimal VPP energy acquisition plan and DERs energy scheduling plan are obtained, and the energy acquisition plan is passed to the intraday stage for optimization. The specific sub-steps are as follows:
[0130] S3-2-1, initialize the simulation parameters of the energy supply side scheduling optimization model based on the Stackelberg master-slave game in the day-ahead stage in S1, the simulation parameters include the operation cost coefficient β of the energy storage system; the charging and discharging power coefficient ρ of the ESS ch , dis ; Optimize time step Δt; ESS capacity Maximum power of ESS charging and discharging The cost coefficient k of GT GT ; The average purchase price of electricity λ provided by the market for DERs mk ; The maximum number of iterations K of the ADE algorithm max ; The population size n size ; The dimension n of each individual in the population dim ; The search interval of the target solution The scaling factor F for population mutation and the cross - recombination probability CR
[0131] S3 - 2 - 2. Initialize the population a, that is, randomly generate the energy acquisition prices with the quantity of n size within the internal electricity price regulation constraints of the VPP as the initial population, and initialize the iteration number K = 0
[0132] S3 - 2 - 3. Transmit the internal energy acquisition prices of the VPP in population a to each lower - layer DER. Each DER calls the Gurobi solver according to the electricity price to optimize its respective power output and upload the optimization results to the upper - layer leader VPP control center
[0133] S3 - 2 - 4. The VPP control center calculates the benefit values of each individual in population a according to the lower - layer optimization results, and extracts the maximum benefit value E1 in this round
[0134] S3 - 2 - 5. Mutate and cross population a to obtain a new population b
[0135] S3 - 2 - 6. Transmit the internal energy acquisition prices of the VPP in population b to each lower - layer DER. The DERs call the Gurobi solver again to optimize their objective functions, and transmit the optimization results to the upper layer. The VPP control center calculates the benefit values of each individual in population b according to the returned lower - layer optimization results, and extracts the maximum benefit value E2 in this round
[0136] S3 - 2 - 7. Selection operation: If E2 > E1, then a = b, E1 = E2; if E2 < E1, remain unchanged
[0137] S3 - 2 - 8. Judgment operation: If the maximum number of iterations (K = K max ) is reached, then output the optimization results; otherwise, jump to S3 - 2 - 5
[0138] S3-3, in the intraday stage, real-time demand response and cooperative game are considered moment by moment. At moment t, the VPP control center determines whether the load is within the allowable power deviation range of ±2% based on the day-ahead power purchase plan and the real-time load at the current moment. If it is within the allowable power deviation range, there is no power deviation penalty at the current moment, no operation is performed, and the next moment is entered. If it exceeds the allowable power deviation range of ±2%, an iterative algorithm is used to solve the energy deviation collaborative optimization model based on the cooperative game to obtain the user's real-time power consumption strategy that minimizes the energy deviation. Specifically, it is the following sub-steps:
[0139] S3-3-1. Initialize the simulation parameters of the intra-day energy deviation coordination optimization model in S1, wherein the simulation parameters include the restriction coefficient ε of each user's electricity load reduction cut,i ; The discomfort coefficient μ of individual user load reduction and load transfer cut,i , μ tr,i ; Rated power P for transferable load operation rated ; Unit penalty cost for energy deviation Unit penalty cost
[0140] S3-3-2, at time t, compare the current real-time load with the power purchase plan at the same time in the day-ahead power purchase plan to determine whether the load deviation is within the allowable power deviation range of ±2%, that is, If it is within the allowable power deviation range and there is no power deviation penalty at the current moment, no operation is performed and go to S3-3-10; otherwise go to S3-3-3.
[0141] S3-3-3, at time t, the load deviation on the user side exceeds the allowable range, and the VPP control center issues a load power adjustment call. Each user adjusts the flexible load demand to the maximum extent within their respective load adjustment range, and obtains the user's power consumption strategy.
[0142] S3-3-4. Calculate each user's incentive allowance based on the Shapley value method And calculate the total energy cost of each user
[0143] S3-3-5. Determine whether the power deviation exceeds the allowable deviation range. If it exceeds the range, it means that the maximum load response at time t cannot completely eliminate the energy deviation, the game stops, and the user's power consumption strategy is output Go to S3-3-10; otherwise go to S3-3-6.
[0144] S3-3-6. Within the respective load adjustment range, the response load power of each user (the amount of change in load that can be reduced and load that can be transferred) is halved to obtain the power consumption strategy of each user.
[0145] S3-3-7. Determine whether the current round power deviation exceeds the allowable deviation range. If it exceeds the range, output the user's power usage strategy Go to S3-3-10; otherwise go to S3-3-8.
[0146] S3-3-8. According to the electricity strategy Calculate incentive allowance for each user And calculate the total energy cost of each user Compare each user's and like Use renew Using policy B, user i Update the electricity consumption strategy of user i in strategy A; otherwise The electricity usage strategy of user i remains unchanged.
[0147] S3-3-9. Determine whether all users meet If satisfied, all users determine their own DR strategies, the game ends, and the user power consumption strategy is output Go to S3-3-10; otherwise go to S3-3-6.
[0148] S3-3-10, the collaborative optimization of power deviation at time t is completed, and the process is waiting to enter time t+1.
[0149] It should be noted that during the optimization process, the optimization results of each DER in the day-ahead phase are as follows: Figure 2 , Figure 3 , Figure 4 As shown; the optimization results of the power price on the VPP internal energy supply side are as follows Figure 5 As shown; the operating costs and benefits of each DER in the day-ahead game bidding and the costs and benefits of DER in the conventional power market are shown in Tables 1 and 2. The comparison of the energy purchase costs of the VPP control center in the conventional market and the VPP internal market is shown in Table 3. The above results show that DERs with different characteristics in the day-ahead model can be effectively optimized and regulated under the guidance of the power purchase price of the VPP control center, and the best optimization strategy can be selected to participate in market transactions, ensuring that the load demand is met while effectively improving the economic benefits of DERs and VPP control centers. The comparison of intraday load and power grid purchase volume is shown in Figure 6 , Figure 7 As shown in the figure, the penalty situation caused by VPP power default before and after load demand response optimization is compared. Figure 8The analysis of the user's 24h electricity cost and benefit data before and after the optimization of load demand response is shown in Table 4. From the above results, it can be seen that the energy deviation collaborative optimization model that considers real-time demand response and cooperative game moment by moment in the intraday stage can effectively reduce the energy deviation on the load side during the day while ensuring the user's electricity economy and satisfaction, and reduce the energy deviation penalty by 83.96%.
[0150] Table 1 Analysis of DER costs and benefits in the VPP internal market
[0151]
[0152] Table 2 DER costs and benefits in conventional electricity markets
[0153]
[0154] Table 3 Comparison of energy purchase costs for VPP control centers
[0155]
[0156] Table 4 Comparative analysis of users' 24-hour electricity consumption costs and benefits
[0157]
[0158]
[0159] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments including components are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
Claims
1. A two-stage game operation optimization method for a virtual power plant considering real-time demand response, characterized in that: The steps include: S1. Establish a two-stage game optimization model, which includes a day-ahead energy supply-side scheduling optimization model and an intra-day energy deviation coordination optimization model; the day-ahead energy supply-side scheduling optimization model is a two-layer optimization model based on the Stackelberg master-slave game; the intra-day energy deviation coordination optimization model is an energy deviation coordination optimization model based on cooperative game; S2. Initialize a two-stage game optimization model, wherein the parameters of the two-stage game optimization model include the operating cost coefficient β of the ESS; the charging and discharging power coefficient ρ of the ESS ch , dis ;Optimize time step Δt;Capacity of ESS Maximum power of ESS charging and discharging GT cost coefficient k GT ; Average electricity purchase price of DERs λ mk ; Limitation coefficient of user power load reduction ε cut ; User load reduction discomfort coefficient μ cut,i ; Uncomfortable coefficient μ of user load transfer tr,i ; Rated power P for transferable load operation rated ; Unit penalty cost for energy deviation Unit penalty cost S3. In the two-stage game optimization model, the energy supply-side scheduling optimization model in the day-ahead stage adopts a distributed method combining an adaptive differential evolution algorithm with a Gurobi solver to solve the objective functions of the day-ahead DERs and the virtual power plant control center, and obtain the energy scheduling plan of each DER and the power purchase plan of the VPP control center. The energy deviation coordination optimization model in the intraday stage adopts an iterative algorithm to obtain the user's real-time electricity consumption strategy that minimizes the energy deviation.
2. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 1 is characterized in that: In the two-layer optimization model based on the Stackelberg master-slave game, the bottom followers are the DERs, which select photovoltaic power generation, wind power generation and gas turbines, and the photovoltaic power generation, wind power generation and gas turbines are all equipped with energy storage systems; the upper leader is the VPP control center.
3. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 2 is characterized in that: The unified modeling of the energy storage system equipped with each DER is as follows: in, is the operating cost of the energy storage device; is the charging and discharging power of the energy storage device at time t; is the amount of electricity stored in ES at time t.
4. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 3 is characterized in that: The constraints for the unified modeling of the energy storage system equipped by each DER are: in, Respectively represent the maximum power of charging and discharging; are 0-1 variables, representing the charging state and discharging state of ESS at time t.
5. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 4 is characterized in that: In the energy supply side dispatch optimization model in the day-ahead stage, the photovoltaic power generation unit takes its own revenue F PV Maximization is used as the optimization goal, and its objective function is: Among them, λ t is the electricity price within the VPP; is the total transaction power between PV and VPP control center at time t; Equip photovoltaic power stations with energy storage charging and discharging power; The operating cost of the ES equipped for PV; Predict power generation for PV; The wind turbine generator system uses its own income F WT Maximization is used as the optimization goal, and its objective function is: in, is the total transaction power between WT and VPP control center at time t; Equip WT with energy storage for charging and discharging power; The operating cost of the ES equipped for WT; Predicting power generation for WT; Gas turbines with their own benefits F GT Maximization is used as the optimization goal, and its objective function is: In the formula, is the total transaction power between GT and VPP control center at time t; is the output power of GT at time t in the day-ahead power production scheduling; Equip GT with energy storage charging and discharging power; The running cost of the ES equipped for the GT; The running cost of the GT.
6. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 5 is characterized in that: In the energy supply side dispatch optimization model in the day-ahead stage, the upper-level leader VPP control center uses the VPP power purchase cost C VPP Minimization is the optimization goal, and its objective function is: Among them, C VPP The cost of purchasing electricity for the VPP control center; It is the agreed electricity quantity signed between the VPP control center and the power grid company; The agreed electricity price; The predicted power of the user side load at time t; is the total output power of DER inside VPP at time t.
7. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 6 is characterized in that: The energy supply-side dispatch optimization model in the day-ahead stage sets relevant electricity price constraints to adjust the electricity price within a specific range, and at the same time, the average 24-hour electricity price is not lower than the market electricity price. The specific constraints are as follows: Among them, λ mk is the average market electricity price; The upper and lower limits of the VPP internal electricity price; is the electricity price within 24 hours t The average value of .
8. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 1 is characterized in that: In the intra-day energy deviation coordination optimization model, each user uses electricity cost Minimization is the optimization goal, and its objective function is: in, is the total electricity load of user i at time t within the day; Discounted electricity prices for users participating in cooperative alliances; is the discomfort cost caused by load reduction of user i at time t; is the discomfort cost caused by the transferable load of user i at time t; is the incentive benefit obtained by user i for participating in the cooperative alliance at time t; They are the basic load, curtailable load and transferable load of user i at time t within the day; is the external market electricity price at time t.
9. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 8 is characterized in that: The intra-day phase energy deviation coordination optimization model includes a cooperative alliance composed of multiple users. Each user in the cooperative alliance uses electricity cost. Minimization is the optimization goal, and the constraints of the objective function include: The user can reduce the load regulation range constraint settings as follows: To ensure the completion of daily transferable load tasks, the relevant capacity constraints are set as follows: Among them, E i is the total amount of transferable load that user i needs to complete within 24 hours; Δt is the decision step within the day, and the decision step in this study is 30 minutes; When making a decision at time t within a day, user i needs to make the following judgments: If the judgment result of (Ⅰ) is true, it means that the transferable load task of user i on that day has been completed, and the transferable load at time t and the subsequent time of the day is zero; if the judgment result of (Ⅱ) is true, it means that the transferable load at time t and the subsequent time of the day needs to run at full power to complete the transferable load task of the day; in other cases, user i can freely adjust the start and stop of the transferable load as needed.
10. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 9 is characterized in that: The alliance uses electricity costs Minimum is the optimization goal, and its objective function is: in, The penalty cost for the electricity deviation of the daily load.
11. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 1 is characterized in that: The intra-day energy deviation coordination optimization model uses the Shapley value method to allocate incentive allowances to users, and its allocation rules are as follows: Where N is the set of participants in the alliance, represented as {user 1, user 2, ..., user i}; is the benefit obtained by alliance member e; φ(S) is the weight of the benefits shared by alliance members; S\{i} is the set after member i is excluded from set S; e(S) is the characteristic function of the alliance; v(S) is the total benefit of the alliance; x i is the income of member i before participating in the cooperative game; S is the set of different alliance combinations.
12. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 1 is characterized in that: The step S3 includes the following sub-steps: S3-1, initializing the total load power forecast value of the user side and the power generation forecast power of each DERs on the previous day; S3-2, the distributed algorithm of ADE nested Gurobi solver is used to solve the energy supply side scheduling optimization model in the day-ahead stage; the VPP control center transmits the initialized VPP internal power purchase price to each DER in the lower layer, and the DERs in the lower layer use the Gurobi solver to optimize their respective energy sales plans according to their own power generation forecasts, and obtain the power output results of the lower layer And transmit it to the upper VPP control center, which uses the ADE algorithm to calculate its benefit value C VPP , and update the electricity price, and pass it to the lower layer for optimization; until the ADE algorithm converges, the optimal VPP energy acquisition plan and DERs energy scheduling plan are obtained, and the energy acquisition plan is passed to the intraday stage for optimization; S3-3, in the intraday stage, real-time demand response and cooperative game are considered moment by moment. At time t, the VPP control center determines whether the load is within the allowable power deviation range of ±2% based on the day-ahead power purchase plan and the current real-time load; If it is within the allowable power deviation range, there is no power deviation penalty at the current moment, no operation is performed, and the next moment is entered; if it exceeds the allowable power deviation range of ±2%, the iterative algorithm is used to solve the energy deviation collaborative optimization model based on cooperative game to obtain the user's real-time power consumption strategy that minimizes the energy deviation.
13. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 12 is characterized in that: The step S3-2 includes the following sub-steps: S3-2-1. Initialize the simulation parameters of the energy supply side scheduling optimization model in the day-ahead stage, wherein the simulation parameters include the operation cost coefficient β of the energy storage system; the charging and discharging power coefficient ρ of the ESS ch , dis ;Optimize time step Δt;Capacity of ESS Maximum power of ESS charging and discharging GT cost coefficient k GT ; The average electricity purchase price provided by the market to DERs λ mk ; The maximum number of iterations K of the ADE algorithm max ; Population size n size ; The dimension n of each individual in the population dim ; Search interval for target solution The scaling factor F of population variation and the probability of crossover and recombination CR; S3-2-2. Initialize population a, i.e. randomly generate n populations within the VPP internal electricity price control constraints. size The energy purchase price is used as the initial population, and the number of iterations is initialized to K = 0; S3-2-3: The VPP internal energy purchase price in population a is transmitted to each DER in the lower layer. Each DER calls the Gurobi solver according to the electricity price to optimize its own power output. Upload the optimization results to the upper-level leader VPP control center; S3-2-4. The VPP control center calculates the benefit values of each individual in population a according to the lower-layer optimization results and extracts the maximum benefit value E1 in this round; S3-2-5. Mutate and crossover population a to obtain a new population b; S3-2-6. Transmit the internal energy acquisition price of VPP in population b to each DER in the lower layer. The DERs call the Gurobi solver again to optimize their objective functions and transmit the optimization results to the upper layer. The VPP control center calculates the benefit values of each individual in population b according to the returned lower-layer optimization results and extracts the maximum benefit value E2 in this round; S3-2-7. Selection operation: if E2 > E1, then a = b and E1 = E2; if E2 < E1, remain unchanged; S3-2-8, judgment operation, if the maximum number of iterations (K = K max ), then output the optimization result, otherwise jump to S3-2-5.
14. The two-stage game operation optimization method of a virtual power plant considering real-time demand response according to claim 12 is characterized in that: Step S3-3 includes the following sub-steps: S3-3-1. Initialize the simulation parameters of the intra-day energy deviation coordination optimization model in S1, wherein the simulation parameters include the restriction coefficient ε of each user's electricity load reduction cut,i ; The discomfort coefficient μ of individual user load reduction and load transfer cut,i , μ tr,i ; Rated power P for transferable load operation rated ; Unit penalty cost for energy deviation Unit penalty cost S3-3-2, at time t, compare the current real-time load with the power purchase plan at the same time in the day-ahead power purchase plan to determine whether the load deviation is within the allowable power deviation range of ±2%, that is, If it is within the allowable power deviation range and there is no power deviation penalty at the current moment, no operation is performed and the process goes to S3-3-10; otherwise, the process goes to S3-3-3; S3-3-3, at time t, the load deviation on the user side exceeds the allowable range, and the VPP control center issues a load power adjustment call. Each user adjusts the flexible load demand to the maximum extent within their respective load adjustment range, and obtains the power consumption strategy of each user. S3-3-4. Calculate each user's incentive allowance based on the Shapley value method And calculate the total energy cost of each user S3-3-5. Determine whether the power deviation exceeds the allowable deviation range. If it exceeds the range, it means that the maximum load response at time t cannot completely eliminate the energy deviation. The game stops and the power consumption strategy of each user is output. Go to S3-3-10; otherwise go to S3-3-6; S3-3-6. Within the respective load adjustment range, each user's response load power is halved to obtain the power consumption strategy of each user. S3-3-7. Determine whether the current round of power deviation exceeds the allowable deviation range. If it exceeds the range, output the power consumption strategy for each user. Go to S3-3-10; otherwise go to S3-3-8; S3-3-8. According to the electricity strategy Calculate incentive allowance for each user And calculate the total energy cost of each user Compare each user's and like Use renew Using policy B, user i Update the electricity consumption strategy of user i in strategy A; otherwise The electricity usage strategy of user i remains unchanged; S3-3-9. Determine whether all users meet If satisfied, all users determine their own DR strategies, the game ends, and the user power consumption strategy is output Go to S3-3-10; otherwise go to S3-3-6; S3-3-10. At time t, the coordinated optimization of the power deviation ends, and wait to enter time t+1.
Citation Information
Patent Citations
Virtual power plant-energy storage system energy collaborative optimization regulation and control method based on model predictive control
CN111934360A
Virtual power plant two-stage optimization scheduling method considering demand response and prediction error
CN116502427A
Energy hub multi-time scale scheduling method based on master-slave game and comprehensive demand response
CN117154742A
Multi-stage transaction method for virtual power plant to participate in electricity-carbon market
CN117670539A
VPP two-stage game transaction matching method and system based on block chain architecture
CN118395668A
Cited By
Power system demand response optimization method based on game model
CN119496140A
Micro-grid adjustment method and device based on virtual power plant, and storage medium
CN119543143A
Regulation and control method for optimizing multi-stage energy of virtual power plant
CN121813370A
