A water level control method for cascade hydropower spot market in response to wind power and load balancing needs

Through the double-layer optimization model and linearization method, Cascade Hydropower formulates generation dispatch plans in the power spot market, responds to wind power and load fluctuations, maintains water level stability, solves the challenges of power system balance and project implementation, and achieves reasonable power generation plans and Efficient water level control.

CN118396354BActive Publication Date: 2024-10-01DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864794.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

How to formulate a power generation dispatch plan in the power spot market to respond to random fluctuations in wind power and load, maintain water level stability, and improve the implementability of the dispatch plan faces complex power system balancing and engineering implementation challenges for cascade hydropower.

Method used

A double-layer optimization model is used to construct a cascade hydropower generation dispatching model through optimality conditions and linearization methods. The fluctuation characteristics of wind power and load are taken into account, and random scene samples are used to represent the relative fluctuation constraints of water levels to achieve stable control of water levels and convert them into single Layer optimization model and solve to determine the 24-hour power generation and water level plan.

Benefits of technology

It realizes the reasonable power generation planning arrangement of cascade hydropower in the power spot market, responds to wind power and load fluctuations, keeps water level fluctuations stable, and the calculation speed meets the requirements of engineering applications, improving the flexibility and security of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396354B_ABST
    Figure CN118396354B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of hydropower generation, and discloses a water level control method for a cascade hydropower spot market that responds to the demand for wind power and load balance. The method is characterized by a power generation dispatching model that responds to the random fluctuation characteristics of wind power and load and water level control constraints in the power spot market in the form of an optimization model. The model is transformed from a two-layer optimization model, and the upper model is used to formulate a 24-hour water level and power generation plan for each cascade power station; the lower model is used to simulate the day-ahead and real-time market clearing process and the balance of power supply and demand in the power system; the fluctuation characteristics of wind power and load are represented by random scenarios, and the control method of the water level is realized by the relative fluctuation constraints of the water level between different random scenarios. The present invention can arrange a reasonable power generation plan for cascade hydropower stations in the power spot market, respond to the random fluctuations of wind power and load while keeping the water level fluctuation stable, and the calculation speed meets the requirements of engineering applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of hydropower generation, and in particular to a water level control method for cascade hydropower stations in power generation dispatching in a power spot market. Background Art

[0002] The natural randomness, volatility and undispatchability of new energy sources such as wind power and solar power place high demands on the balance of the power system. Their large-scale grid connection in a short period of time brings a huge flexibility gap to the power system and poses a major safety hazard to the operation of the power system. Clean energy with excellent regulation performance is urgently needed to undertake the increasingly urgent task of supporting power balance and flexibility in the power grid. How to give full play to the supporting role of hydropower in the real-time balance of the power system is a technical issue that urgently needs to be tackled in the context of the current high-speed grid connection of new energy sources.

[0003] At present, the electricity spot market is about to become the most important channel for balancing electricity supply and demand. How hydropower can complete its own power generation scheduling in the spot market and respond to the balance demand brought by new energy and grid load fluctuations is a key technical problem that needs to be solved in the field of hydropower generation and operation, which is specifically manifested in the following three aspects:

[0004] First, how can cascade hydropower formulate its own power generation scheduling plan in the emerging spot market. The power spot market is generally composed of the day-ahead power market (hereinafter referred to as the "day-ahead market") and the real-time power market (hereinafter referred to as the "real-time market"), etc.: the day-ahead market determines the basic power generation or power consumption of both the supply (power station) and the demand (load) through power supply-demand matching one day before the delivery date, which plays a role in stabilizing the power system; the real-time market is carried out in real time on the delivery date, based on the day-ahead market contract, and through real-time transactions, it ensures that the power grid supply and demand are further balanced at the hourly level or smaller time scale, and realizes the flexible adjustment of power supply and demand; the two are carried out successively in time. How cascade hydropower arranges its own power generation plan in this complex power system environment is the primary technical challenge faced by the new environment.

[0005] The second is how to consider the balance between power generation and consumption when generating cascade hydropower. The traditional planning model in which the power grid company coordinates the balance of power will be gradually replaced by a market-oriented model. The hydropower generation problem has changed from the traditional arrangement of unit production to a complex problem that requires consideration of both its own power generation characteristics and the feasibility of the power generation plan. How to take new energy and load fluctuations in the power grid into account in the production plan is a new and important factor in the smooth generation of hydropower.

[0006] The third is how to ensure that the power generation plan is highly feasible. To support the flexibility of new energy and load, hydropower will inevitably lead to high-frequency and large fluctuations in its own water level, which is not conducive to the safe operation of hydropower and difficult to implement in engineering. Therefore, how to ensure the stability of its own water level changes while playing the role of balancing the power grid and improving the feasibility of the hydropower dispatch plan is a technical requirement faced by cascade hydropower in the spot market.

[0007] In response to the above-mentioned technical difficulties in hydropower generation, the present invention constructs a water level control method for the cascade hydropower spot market that responds to the needs of wind power and load balancing. The method aims to provide a method for formulating power generation plans for cascade hydropower to play a role in power balancing in the power spot market. The core content of the present invention is a hydropower generation optimization scheduling model, which is transformed from a two-layer optimization model for cascade hydropower to formulate power generation plans in the day-ahead market and the real-time market, in which the fluctuation characteristics of wind power and load are represented by random scenario samples, and the control method of water level is achieved through the relative fluctuation constraints of water levels between different random scenarios. The simulation experiment conducted with a large-scale cascade hydropower station in a certain area as the actual engineering background verified the effectiveness and rationality of the present invention. Summary of the invention

[0008] The present invention discloses a method for formulating a power generation plan for cascade hydropower in response to wind power and load balancing needs and maintaining a stable water level in a power spot market. The specific form of the method is a power generation scheduling model that is expressed in the form of an optimization model and is responsive to the random fluctuation characteristics of wind power and load and water level control constraints in the power spot market. The model is transformed from a two-layer optimization model through optimality conditions and linearization methods, wherein the upper model is used to formulate a 24-hour water level plan for each cascade power station and a power generation plan for the day-ahead market and the real-time market; the lower model is used to simulate the clearing process of the day-ahead market and the real-time market and the balance of power supply and demand in the power system; the fluctuation characteristics of wind power and load are represented by random scenario samples, and the water level is controlled by the relative fluctuation constraints of the water level between different random scenarios.

[0009] Technical solution of the present invention:

[0010] A cascade hydropower spot market water level control method that responds to wind power and load balance needs is a method for formulating power generation plans in which cascade hydropower responds to wind power and load balance needs and maintains a stable water level in the power spot market. The invention first uses a double-layer optimization model to construct a cascade hydropower power generation plan formulation model that takes into account the randomness of wind power output and load demand. The upper model is used to formulate the power generation plan of each cascade power station to the day-ahead market and the real-time market in 24 hours and the 24-hour water level plan. The lower model is used to simulate the clearing process of the day-ahead market and the real-time market and the balance of power supply and demand in the power system, wherein the fluctuation characteristics of wind power and load are represented by random scenario samples; then, according to actual engineering needs, the 24-hour water level process of the cascade power station under different random scenarios is jointly constrained to achieve the purpose of stabilizing the change of water level when dealing with random fluctuations in wind power and load; then, according to the optimality conditions of the lower model, the above double-layer optimization model is converted into a single-layer optimization model; finally, a variety of linearization techniques are used to convert and solve the model for solvability; and finally, the cascade power station is obtained in 24 hours. Planned power generation and stable planned water level process. The steps include:

[0011] Step 1: Construct a generation dispatch model for cascade hydropower in the electricity spot market;

[0012] The electricity spot market includes the day-ahead electricity market and the real-time electricity market. The day-ahead electricity market is hereinafter referred to as the day-ahead market, and the real-time electricity market is hereinafter referred to as the real-time market. The power generation dispatching model of cascade hydropower in the electricity spot market is a two-layer model. The upper model is used to decide the power generation plan and 24-hour water level reported by each cascade power station to the day-ahead market and the real-time market in each period of 24 hours. The lower model is used to simulate the clearing process of the day-ahead market and the real-time market and the balance of power supply and demand in the power system. It specifically includes the following steps:

[0013] Step 1.1: Construct the objective function of power generation dispatch in the electricity spot market;

[0014] The objective function is constructed with the goal of maximizing the expected power generation benefits of cascade hydropower in the day-ahead market and the real-time market, as shown in formula (1).

[0015] (1)

[0016] Where: is the time period index, which is an integer from 1 to 24. Each time period corresponds to a day-ahead market and a real-time market. To refer to the hydropower stations in the form of positive integers, the leading hydropower station is denoted as 1, and the downstream cascades are incremented in sequence; is the index of the day-ahead market declaration segment, which is a positive integer; is the index of the scenario. A scenario describes a possibility of wind power output and load demand in the real-time market. The scenario is sampled from the forecast case. The number of sampled scenarios is , indicating that a real-time market will simultaneously respond to possible supply and demand fluctuations; For the scene Probability of occurrence; For the The clearing electricity price in the day-ahead market during the time period; For the scene Next The clearing electricity price of the real-time market during the period; For hydropower station In the The first day of the market The planned power generation of the declared section; and Respectively for scenes Lower Hydropower Station In the The planned increase and decrease of power generation in the real-time market during the period.

[0017] Step 1.2: Construct the supply curve in the electricity spot market;

[0018] Step 1.2.1: Construct the day-ahead market supply curve;

[0019] Due to power generation restrictions, the total declared power generation of each hydropower station should be less than its maximum power generation. At the same time, the supply curve of the day-ahead market must meet the non-decreasing condition. The constraints are constructed as Equations (2) and (3) respectively.

[0020] (2)

[0021] (3)

[0022] Where: , Hydropower Station In the The market of the day before The declared power generation and electricity price of the declared section; For hydropower station Maximum output is the total available capacity of the power station units after deducting the maintenance capacity; The length of each period is 3600 seconds corresponding to 1 hour; It is the highest reported electricity price allowed by the day-ahead market.

[0023] Step 1.2.2: Construct a real-time market supply curve;

[0024] According to the requirements of power market operation, the upward bid price in the real-time market should be greater than the bid price in the day-ahead market and should not exceed the maximum bid price allowed by the real-time market. The constraints are as follows: (4) to (6). The downward bid price in the real-time market should be greater than 0 and less than the day-ahead bid price. The constraints are as follows: (7) to (9).

[0025] (4)

[0026] (5)

[0027] (6)

[0028] (7)

[0029] (8)

[0030] (9)

[0031] Where: and Respectively for scenes Lower Hydropower Station In the The upward and downward adjustment of the reported power generation in the real-time market during the period; and Respectively for scenes Lower Hydropower Station In the The real-time market increases and decreases the electricity price during the period; The highest reported electricity price allowed by the real-time market; and Hydropower Station The upper limit of climbing capacity and the lower limit of climbing capacity within a period of time; Indicates The clearing electricity price in the day-ahead market during the time period.

[0032] Step 1.3: Construct hydropower operation constraints;

[0033] Step 1.3.1: Construct hydropower operation constraints in the day-ahead market;

[0034] The hydropower operation constraints in the day-ahead market include the functional relationship description of the water balance equation, flow boundary constraints, reservoir capacity boundary constraints, water level boundary constraints, water level-reservoir capacity curve, tailwater level-discharge flow curve and output characteristic curve, and also include the relationship between the planned power generation in the declared section and the total planned output in the day-ahead market, as shown in formula (10).

[0035] (10)

[0036] Where: For hydropower station In the The total planned output of the day-ahead market during the period.

[0037] Step 1.3.2: Construct real-time market hydropower operation constraints;

[0038] The real-time market hydropower operation constraints include the functional relationship description of the water balance equation, flow boundary constraints, reservoir capacity boundary constraints, water level boundary constraints, water level-reservoir capacity curve, tailwater level-discharge flow curve and output characteristic curve, and also include the relationship between the real-time market planned power generation and the total planned hydropower output. The modeling is shown in formula (11).

[0039] (11)

[0040] Where: For the scene Lower Hydropower Station In the Total planned output for the real-time market during the session.

[0041] Step 2: Construct a day-ahead market clearing model;

[0042] The electricity market clearing process is modeled to express the relationship between the declared power generation and the final power generation plan and to describe the power balance condition of the power system. The constructed day-ahead market clearing model is the constraint condition of the power generation dispatching model in step 1 and constitutes a component of the lower model in the two-layer model. A total of 24 lower models are constructed in this step. The steps for constructing the market clearing model for the period day ahead are as follows:

[0043] Step 2.1: Build Objective function of the market clearing model for the period ahead;

[0044] According to the basic principles of the electricity market, a clearing target with the maximum social welfare is constructed, as shown in formula (12). The day-ahead market clearing model is used to calculate the first The clearing electricity price of the day-ahead market, the clearing power generation of each power generation entity and the clearing electricity consumption of each load entity in the time period.

[0045] (12)

[0046] Where: For hydropower station In the The first day of the market The clearing power generation of the declared section; and Wind power station In the The declared electricity price and cleared electricity generation in the day-ahead market during the time period; and For other power stations besides the cascade hydropower and wind power considered in this method In the The market of the day before The declared electricity price and cleared power generation of the declared section; hereinafter, other power stations except the cascade hydropower and wind power considered in this method are referred to as "other power stations"; and Load In the The market of the day before The declared electricity price and cleared electricity consumption of the declared section; , Other power stations ,load The declared segment number is a positive integer.

[0047] Step 2.2: Build Constraints of the market clearing model for the period ahead;

[0048] Step 2.2.1: Build The balance of market supply and demand during the day before the time period;

[0049] The supply and demand balance relationship of the day-ahead market is constructed as shown in formula (13). The variable after the colon and before the vertical bar “|” represents the dual variable corresponding to the constraint. The dual variable of formula (13) is The clearing electricity price in the day-ahead market during the period; the physical quantity after the vertical line “|” represents a given condition, that is, the value of this physical quantity in the formula is known.

[0050] (13);

[0051] Step 2.2.2: Build Other constraints of the day-ahead market during the period;

[0052] For the four types of market entities, namely cascade hydropower, wind power, other power stations and loads, the clearing power generation in each reporting section shall not be greater than their reported power generation or their reported electricity consumption, thus establishing a transaction electricity constraint.

[0053] For cascade hydropower, its planned power generation in the day-ahead market is the clearing power generation in the market, and the relationship is shown in formula (14).

[0054] (14);

[0055] Step 3: Build a real-time market clearing model;

[0056] The role of the real-time market is to rebalance the fluctuations of wind power and load under the market mechanism. Therefore, the clearing results of the real-time market are related to the wind power and load values ​​in the corresponding scenario. Each real-time market has There are 24 possible supply and demand fluctuations, so the real-time market clearing model has 24× The real-time market clearing model constructed is the constraint condition of the power generation dispatch model in step 1, and constitutes the component of the lower model in the two-layer model. This step constructs a total of 24× The underlying model. Scene Next The steps for constructing the real-time market clearing model for a period are as follows:

[0057] Step 3.1: Build the scene Next Objective function of the real-time market clearing model during the period;

[0058] Since the real-time market needs to redispatch power, the goal is to minimize the real-time market redispatch cost, and the objective function is constructed as shown in formula (15).

[0059] (15)

[0060] Where: , Other power stations In the Increase or decrease the reported electricity price in the real-time market during the time period; , Respectively for scenes Lower Hydropower Station In the The upward and downward adjustment of the real-time market during the period to clear the power generation; , Respectively for scenes Other power stations In the The upward and downward adjustment of the real-time market during the period to clear the power generation; For the scene Downwind power station In the The electricity price reported in the real-time market during the period; For the scene Under the wind power station In the Forecasted power generation in the real-time market during the period; For the scene Downwind power station In the The amount of wind power abandoned in the real-time market during the period; For the scene Under load In the The electricity price reported in the real-time market during the period; For the scene Under load In the The clearing electricity consumption of the real-time market during the period.

[0061] Step 3.2: Build the scene Next Constraints of the real-time market clearing model during the period;

[0062] Step 3.2.1: Build the scene Next Real-time market supply and demand balance conditions during the time period;

[0063] Build the scene Next The supply and demand balance relationship of the real-time market during the period is shown in formula (16), where the dual variable It's a scene Next The clearing electricity price in the real-time market during the period.

[0064] (16);

[0065] Step 3.2.2: Build the scene Next Constraints related to the clearing of cascade hydropower in real-time market during the period;

[0066] Build the scene Next The constraint relationship between the upward and downward adjustment of cascade hydropower clearing power generation and the corresponding declared power generation in the real-time market of the period is shown in equations (17) and (18), respectively.

[0067] (17)

[0068] (18)

[0069] Where: , , , They are the dual variables of the corresponding constraints, and are auxiliary variables for solving the model, representing whether the inequality conditions of the corresponding variables have equal signs.

[0070] The planned power generation of cascade hydropower in the real-time market is the clearing power generation of the market, and the relationship is shown in formula (19).

[0071] (19);

[0072] Step 3.2.3: Build the scene Next Relevant constraints on wind power clearing quantity in real-time market during the period;

[0073] Build the scene Next The wind power curtailment constraint in the real-time market during the period is shown in formula (20).

[0074] (20)

[0075] Where: , is the dual variable corresponding to formula (20), which is the auxiliary variable for solving the model, and represents whether the left and right inequalities have equal signs.

[0076] Step 3.2.4: Build the scene Next Relevant constraints on the electricity cleared by other power stations in the real-time market during the period;

[0077] Build the scene Next The constraint relationship between the upward and downward adjustment of the cleared electricity volume and the corresponding output of other power stations in the time period real-time market is shown in Equation (21) and Equation (22) respectively.

[0078] (twenty one)

[0079] (twenty two)

[0080] Where: , , , They are the dual variables of the corresponding constraints, and are auxiliary variables for solving the model, representing whether the inequality conditions of the corresponding variables have equal signs.

[0081] Step 3.2.5: Build the scene Next Constraints related to the real-time market load clearing quantity during the period;

[0082] Build the scene Next The load clearing quantity constraint in the time period real-time market is shown in formula (23).

[0083] (twenty three)

[0084] Where: For the scene Next Real-time market load during the period The amount of deviation; , is the dual variable corresponding to formula (23), which is the auxiliary variable for solving the model, and represents whether the left and right inequalities have equal signs.

[0085] Step 4: Add water level control to the cascade hydropower generation plan;

[0086] Step 4.1: Measure the deviation of the water level process under different power balance requirements from the day-ahead planned water level process;

[0087] The deviation measurement between each real-time market planned water level process and the day-ahead market planned water level is constructed as shown in formula (24), and is used as a constraint condition for the hydropower generation scheduling model.

[0088] (twenty four)

[0089] Where: For the scene The deviation between the planned water level process of the lower cascade hydropower in the real-time market and the planned water level process in the day-ahead market; For hydropower station In the The end-of-period water level of the day-ahead market; Representation scene Lower Hydropower Station In the Water level during the period.

[0090] Step 4.2: Adjust the objective function of the cascade hydropower generation scheduling model;

[0091] The water level deviation index is included in the objective function in the form of a negative number, that is, the objective function formula (1) is changed to the objective function formula (25).

[0092] (25)

[0093] Where: is a coefficient, which is a preset positive real number used for dimensional conversion and to reflect the importance of water level control.

[0094] Step 5: Perform equivalent transformation on the model structure;

[0095] The model given in steps 1 to 4 is a two-layer model as a whole, denoted as model , specifically, The upper model includes equations (2) to (11), (24), (25) and the functional relationship between the water balance equation in the day-ahead market and the real-time market, the flow boundary constraint, the reservoir capacity boundary constraint, the water level boundary constraint, the water level-reservoir capacity curve, the tailwater level-discharge flow curve and the output characteristic curve; The lower model of consists of two parts. One is the day-ahead market clearing model, which is expressed by equations (12) to (14). The value of is an integer from 1 to 24, so this part specifically includes 24 lower-level models; the second is the real-time market clearing model, which is expressed by equations (15) to (23). The value is an integer from 1 to 24. The number of Therefore, this part specifically includes 24× A lower-level model. The solution includes the following steps:

[0096] Step 5.1: Equivalent variable substitution;

[0097] As shown in equations (14) and (19), the planned power generation of the upper model is numerically equal to the market-clearing power generation of the lower model. Therefore, the two equations are substituted into the upper model, that is, the equations (14) and (19) are correspondingly substituted into equations (4), (7), (10), (11), and (25), and equations (14) and (19) are deleted.

[0098] Step 5.2: The two-layer model is equivalently converted into a single-layer model;

[0099] Model 24×( +1) lower models are all convex models, so the optimality condition of each lower model is used to transform the corresponding lower model. After transformation, the equivalent conditions of each lower model are obtained, including the first-order optimality condition equation group and complementary relaxation condition inequality group corresponding to each lower model. At this time, the model Become a single-layer model, denoted as model .

[0100] Step 6: Linearize the model;

[0101] Model The nonlinear terms in are linearized and approximated, including the following steps:

[0102] Step 6.1: Linearize the objective function;

[0103] Step 6.1.1 Nonlinear term of the objective function Perform linearization;

[0104] Since the day-ahead market clearing model is a convex model, a strong dual relationship of the day-ahead market clearing model is constructed, as shown in formula (26).

[0105] (26)

[0106] in, For wind power plants In the The declared power generation in the day-ahead market during the time period; For other power stations In the The market of the day before The declared power generation of the declared section; For load In the The market of the day before The reported electricity consumption of the section reported; , , , They are the dual variables of the transaction quantity constraints corresponding to the four types of market entities, namely cascade hydropower, wind power, other power stations and loads. They are auxiliary variables for solving the model, and represent whether the corresponding transaction quantity constraints have obtained an equal sign.

[0107] From formula (26), we can get The linearization result is shown in formula (27).

[0108] (27);

[0109] Step 6.1.2 Nonlinear term of the objective function Perform linearization;

[0110] Since the real-time market clearing model is a convex model, a strong duality relationship of the real-time market clearing model is constructed, as shown in formula (28).

[0111] (28)

[0112] in, , Respectively for scenes Other power stations In the Increase or decrease the electricity price reported in the real-time market during the time period.

[0113] Then get The linearization result is shown in formula (29).

[0114] (29);

[0115] Step 6.2: Linearization of complementary relaxation conditions;

[0116] Use large The complementary relaxation conditions obtained after the transformation in step 5.2 are linearly approximated by the method. The transformation methods of each complementary relaxation condition are the same. , construct its linearized approximate constraints, as shown in formula (30).

[0117] (30)

[0118] Where: It is a 0-1 integer variable, which is an intermediate variable for auxiliary calculation; , is a real number, and the supremum or empirical upper bound of the middle fraction of the inequality is taken.

[0119] Step 6.3: Piecewise linearize the hydropower generation function;

[0120] Among the hydropower generation functions, the water level-reservoir capacity curve, tailwater level-discharge curve and output characteristic curve are all nonlinear functions, which are converted into piecewise linear functions using piecewise linearization technology.

[0121] Step 7: Solve the model;

[0122] The model is solved using Gurobi, Cplex or lingo solvers to obtain the planned power generation and planned water level process of cascade hydropower in the electricity spot market.

[0123] The beneficial effects of the present invention are as follows: the present invention can arrange a reasonable power generation plan for cascade hydropower stations in the electricity spot market, respond to random fluctuations in wind power and load while maintaining stable water level fluctuations, and the calculation speed of the provided method meets the requirements of engineering applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0124] Figure 1 It is a schematic diagram of the principle of the technology disclosed in the present invention;

[0125] Figure 2 It is the ratio of the forecasted wind power output in the day-ahead market and the real-time market to its installed capacity;

[0126] Figure 3 is the forecast load factor in the day-ahead market and the real-time market;

[0127] Figure 4 It is the day-ahead market clearing result on a certain day after the implementation of the present invention;

[0128] Figure 5 It is the clearing result of the cascade hydropower stations in the A basin in the real-time market under a certain scenario on a certain day after the implementation of the present invention;

[0129] Figure 6 It is the planned water level process of hydropower station A on a certain day when water level control is not performed;

[0130] Figure 7 It is the planned water level process of hydropower station A on a certain day after water level control;

[0131] Figure 8 It is the planned water level process of B hydropower station on a certain day when water level control is not performed;

[0132] Fig. 9 It is the planned water level process of B hydropower station on a certain day after water level control;

[0133] Fig.10 It is a statistical box plot of the deviation between the real-time market and the day-ahead market water levels before and after the water level control of Hydropower Station A under the condition of multi-day water inflow;

[0134] Fig.11 It is a statistical box plot of the real-time market and day-ahead market water level deviations before and after the water level control of Hydropower Station B under multi-day water inflow conditions. DETAILED DESCRIPTION

[0135] The principle diagram of the technology disclosed in the present invention is as follows Figure 1 As shown, the present invention is further described below in conjunction with the accompanying drawings and implementation examples.

[0136] Project background and main parameter settings:

[0137] The present invention is implemented below with the A River Basin (hereinafter referred to as "A River Basin") in the Y Province as the engineering background. The present invention is implemented with the hydropower cascade consisting of two large hydropower stations A and B located in the A River Basin (hereinafter referred to as "A Hydropower Station" and "B Hydropower Station", which together constitute the A River Basin cascade hydropower station) as the implementation object, and the power station parameters adopt the actual data of A and B Hydropower Stations.

[0138] The number of scenes Based on the actual wind power output data of Province Y, five groups of typical wind power output scenarios were obtained through k-means clustering. These five groups of scenarios are used to represent the predicted wind power output, such as Figure 2 Based on the actual load data of Province Y, the person similarity is used in the actual load data of the past five years to obtain the five load processes that are most similar to the load process of the day before. The load data processes of the next day of these five loads are used as the five scenarios of real-time market load forecasting, as shown in Figure 1. Figure 3 shown.

[0139] With reference to the public information of the clearing electricity price and clearing power generation on a certain day in the Nordic electricity market, normal distribution is used to generate multiple segments of declaration data to form a declaration curve, which represents the joint declaration curve of multiple other power stations.

[0140] The implementation steps of the present invention in the A basin are as follows:

[0141] Step 1: Construct a generation dispatch model for cascade hydropower in the electricity spot market;

[0142] Step 1.1: Construct the objective function of power generation dispatch in the electricity spot market;

[0143] Different from the traditional fixed-price power generation model, in the power market environment, the power generation of the power station will correspond to different power prices in different periods. Therefore, when hydropower formulates power generation production plans, power generation efficiency is generally used as an important reference indicator for power generation decision-making. Therefore, the objective function is constructed with the maximum expected power generation efficiency of the cascade hydropower stations in the A basin in the day-ahead market and the real-time market as the goal, as shown in formula (31). The decision variables are the power generation in the day-ahead market and the real-time market, which respectively represent the power generation plans of the cascade hydropower to the day-ahead market and the real-time market in 24 periods.

[0144] (31)

[0145] Where: The value range is , When referring to Hydropower Station A, It refers to Hydropower Station B.

[0146] Step 1.2: Construct the supply curve in the electricity spot market;

[0147] Different from the traditional power generation dispatching rules, in the power market environment, the planned power generation of cascade hydropower is required to be reported to the trading center together with the power price information, and then the trading center determines the power generation plan of the power station in the corresponding period according to the market rules. A binary combination of power generation and power price reported by cascade hydropower to the trading center is called a reporting segment, and the segmented polyline composed of multiple reporting segments is called a supply curve.

[0148] The electricity price declared by cascade hydropower is generally the marginal cost of power generation corresponding to the declared section. If it is lower than this price, the power generation production benefits cannot cover the costs of unit wear and tear, equipment maintenance, etc., which is generally considered to be the basic condition for arranging unit power generation in the project. Therefore, the declared section and supply curve declared by cascade hydropower are the expressions of its basic power generation conditions under market rules and are the basis for production decision-making of hydropower stations.

[0149] Step 1.2.1: Construct the day-ahead market supply curve;

[0150] Due to power generation restrictions, the total declared power generation of each hydropower station should be less than its maximum power generation. At the same time, the supply curve of the day-ahead market must meet the non-decreasing condition. The constraints are constructed as Equations (32) and (33) respectively.

[0151] (32)

[0152] (33)

[0153] Step 1.2.2: Construct a real-time market supply curve;

[0154] According to the requirements of power market operation, the upward bid price in the real-time market should be greater than the bid price in the day-ahead market and should not exceed the maximum bid price allowed by the real-time market. The constraints are as follows: (34) to (36). The downward bid price in the real-time market should be greater than 0 and less than the day-ahead bid price. The constraints are as follows: (37) to (39).

[0155] (34)

[0156] (35)

[0157] (36)

[0158] (37)

[0159] (38)

[0160] (39)

[0161] Step 1.3: Construct hydropower operation constraints;

[0162] Step 1.3.1: Construct hydropower operation constraints in the day-ahead market;

[0163] The day-ahead market hydropower operation constraints include the water balance equation, flow boundary constraints, reservoir capacity boundary constraints, water level boundary constraints, water level-reservoir capacity curve, tailwater level-discharge flow curve and output characteristic curve. The functional relationship is described as shown in equations (40) to (51).

[0164] 1) Water balance constraints;

[0165] (40)

[0166] (41)

[0167] Where: for Time-limited hydropower station Storage capacity; , , , Hydropower Station In the The inflow, outflow, power generation and abandoned water flows in the market during the day-ahead period.

[0168] 2) Traffic boundary constraints;

[0169] (42)

[0170] (43)

[0171] Where: and Hydropower Station The upper and lower boundaries of outbound flow; and Hydropower Station The upper and lower boundaries of the power generation flow.

[0172] 3) Storage capacity boundary constraints;

[0173] (44)

[0174] Where: and Hydropower Station The upper and lower boundaries of the reservoir capacity.

[0175] 4) Water level boundary constraints;

[0176] (45)

[0177] (46)

[0178] (47)

[0179] Where: For hydropower station In the The end-of-period water level of the day-ahead market; , Respectively Time-limited hydropower station The upper and lower boundaries of the water level; For hydropower station The initial water level; For hydropower station The water level at the end of the scheduling period.

[0180] 5) Water level-reservoir capacity curve;

[0181] (48)

[0182] Where: For hydropower station The water level-reservoir capacity relationship function is a nonlinear function.

[0183] 6) Tailwater level-discharge curve;

[0184] (49)

[0185] Where: For hydropower station The tailwater level-discharge relationship function is a nonlinear function.

[0186] 7) Output characteristic curve;

[0187] (50)

[0188] Where: For hydropower station The output characteristic function is a nonlinear function.

[0189] (51)

[0190] Where: , , Hydropower Station In the Tail water level, net head and head loss in the market during the day before the period.

[0191] 8) The relationship between the reported planned power generation and the total planned output;

[0192] The relationship between the planned power generation in the declared period and the total planned output in the day-ahead market is shown in formula (52).

[0193] (52)

[0194] Step 1.3.2: Construct real-time market hydropower operation constraints;

[0195] Due to the randomness and volatility of wind power and load, multiple supply and demand situations may occur in the real-time market, and each situation is represented by a scenario. The hydropower operation constraints in the real-time market are shown in Equations (53) to (65).

[0196] 1) Water balance constraints;

[0197] (53)

[0198] (54)

[0199] Where: for Time-limited hydropower station Storage capacity; , , , Respectively for scenes Lower Hydropower Station In the The real-time market water inflow, outflow, power generation and abandoned water flows during the period.

[0200] 2) Traffic boundary constraints;

[0201] (55)

[0202] (56);

[0203] 3) Storage capacity boundary constraints;

[0204] (57);

[0205] 4) Water level boundary constraints;

[0206] (58)

[0207] (59)

[0208] (60);

[0209] Where: For the scene Lower Hydropower Station In the The end-of-session water level of the real-time market during the session.

[0210] 5) Water level-reservoir capacity curve;

[0211] (61);

[0212] 6) Tailwater level-discharge curve;

[0213] (62);

[0214] 7) Output characteristic curve;

[0215] (63)

[0216] (64)

[0217] Where: , , Respectively for scenes Lower Hydropower Station In the Tail water level, net head and head loss of the real-time market during the period.

[0218] 8) The relationship between planned power generation and total planned hydropower output;

[0219] The relationship between the real-time market planned power generation and the total planned hydropower output is constructed and modeled as follows:

[0220] (65).

[0221] Step 2: Construct a day-ahead market clearing model;

[0222] In order to express the relationship between the declared power and the final power generation plan and describe the power balance conditions of the power system, it is necessary to model the power market clearing process. The constructed market clearing model is the constraint condition of the hydropower generation plan model in step 1 and constitutes a component of the lower model in the two-layer model. A total of 24 lower models are constructed in this step. The steps for constructing the market clearing model for the period day ahead are as follows:

[0223] Step 2.1: Build Objective function of the market clearing model for the period ahead;

[0224] The electricity market is usually constructed with the market clearing objective of maximizing social welfare, as shown in equation (66).

[0225] (66).

[0226] Step 2.2: Build Constraints of the market clearing model for the period ahead;

[0227] Step 2.2.1: Build The balance of supply and demand in the market during the day before the time period;

[0228] Construct the supply and demand balance relationship of the day-ahead market, as shown in formula (67), and its dual variable is The clearing electricity price in the day-ahead market during the time period.

[0229] (67).

[0230] Step 2.2.2: Build Other constraints of the day-ahead market during the period;

[0231] For the four types of market entities, namely, cascade hydropower stations in the A basin, wind power, other power stations, and loads, the clearing power generation in each reporting section shall not be greater than their reported power generation or their reported electricity consumption, thus constructing a transaction volume constraint, as shown in equations (68) to (71).

[0232] (68)

[0233] (69)

[0234] (70)

[0235] (71)

[0236] Where: For other power stations In the The market of the day before The declared power generation of the declared section; Wind power station In the The declared power generation in the day-ahead market during the time period; load In the The market of the day before The reported electricity consumption of the section is reported.

[0237] For the cascade hydropower stations in Basin A, their planned power generation in the day-ahead market is the clearing power generation in the market, and the relationship is shown in formula (72).

[0238] (72);

[0239] Step 3: Build a real-time market clearing model;

[0240] The role of the real-time market is to rebalance the fluctuations of wind power and load under the market mechanism. Each real-time market is described by five scenarios, so there are 24×5=120 real-time market clearing models in total. The 120 real-time market clearing models constructed are the constraints of the model in step 1 and constitute the lower model in the two-layer model. Next The steps to construct the real-time market clearing model for the period are as follows:

[0241] Step 3.1: Build the scene Next Objective function of the real-time market clearing model during the period;

[0242] The real-time market aims to minimize the redispatching cost, and the objective function is constructed as shown in formula (73).

[0243] (73).

[0244] Step 3.2: Build the scene Next Constraints of the real-time market clearing model during the period;

[0245] Step 3.2.1: Build the scene Next Real-time market supply and demand balance conditions during the time period;

[0246] Build the scene Next The supply and demand balance relationship of the real-time market during the period is shown in formula (74), where the dual variable It's a scene Next The clearing electricity price in the real-time market during the period.

[0247] (74).

[0248] Step 3.2.2: Build the scene Next Constraints related to the clearing of cascade hydropower in real-time market during the period;

[0249] The constraint relationship between the upward and downward adjustment of the clearing power generation of the cascade hydropower stations in Basin A and the corresponding declared power generation is constructed as shown in Equations (75) and (76) respectively.

[0250] (75)

[0251] (76)

[0252] The planned power generation of the cascade hydropower stations in Basin A in the real-time market is the clearing power generation of the market, and the relationship is shown in formula (77).

[0253] (77).

[0254] Step 3.2.3: Build the scene Next Relevant constraints on wind power clearing quantity in real-time market during the period;

[0255] Build the scene Next The wind power curtailment constraint in the real-time market during the period is shown in formula (78).

[0256] (78).

[0257] Step 3.2.4: Build the scene Next Relevant constraints on the electricity cleared by other power stations in the real-time market during the period;

[0258] Build the scene Next The constraint relationship between the upward and downward adjustment of the cleared electricity and the corresponding output of other power stations except the cascade hydropower stations and wind power stations in the A basin in the time period real-time market is shown in equations (79) and (80), respectively.

[0259] (79)

[0260] (80).

[0261] Step 3.2.5: Build the scene Next Constraints related to the real-time market load clearing quantity during the period;

[0262] Build the scene Next The load clearing quantity constraint in the time period real-time market is shown in formula (81).

[0263] (81).

[0264] Step 4: Add water level control to the cascade hydropower generation plan;

[0265] In order to meet the power balance requirements of the power grid, the cascade hydropower stations in Basin A need to cope with all possible fluctuations in wind power and load. Since the predicted output of wind power varies greatly between different scenarios, if each scenario is considered separately, there will be a large deviation between the real-time market water level process and the water level process planned in the day-ahead market, which will cause a sudden adjustment of the water level process during real-time formal power generation, greatly threatening the safe operation of the unit. Therefore, it is necessary to control the water level to ensure the stability of the water level plan, which includes the following steps:

[0266] Step 4.1: Measure the deviation of the water level process under different power balance requirements from the day-ahead planned water level process;

[0267] The deviation measurement between each real-time market planned water level process and the day-ahead market planned water level is constructed, as shown in formula (82), and is used as a constraint condition for the hydropower generation scheduling model.

[0268] (82);

[0269] Step 4.2: Adjust the objective function of the cascade hydropower generation scheduling model;

[0270] The above water level deviation index is included in the objective function in the form of a negative number, that is, the objective function formula (31) is changed to the objective function formula (83).

[0271] (83);

[0272] Step 5: Perform equivalent transformation on the model structure;

[0273] The model given in steps 1 to 4 is a two-layer model as a whole, denoted as model , specifically, The upper model includes equations (32) to (65), (82), and (83); The lower model of consists of two parts. One is the day-ahead market clearing model, which is expressed by equations (66) to (72). The value of is an integer from 1 to 24, so this part specifically includes 24 lower-level models; the second is the real-time market clearing model, which is expressed by equations (73) to (81). The value is an integer from 1 to 24. The number of is 5, so this part specifically contains 120 lower-level models. The solution includes the following steps:

[0274] Step 5.1: Equivalent variable substitution;

[0275] As shown in equations (72) and (77), the planned power generation of the upper model is numerically equal to the market-clearing power generation of the lower model, so the two-equality relationship is substituted into the upper model, and equations (72) and (77) are deleted. The specific substitution process is as follows.

[0276] Replace the objective function formula (83) with formula (84).

[0277] (84)

[0278] Replace equation (85) to (88) with equation (34), equation (37), equation (52), and equation (65) respectively.

[0279] (85)

[0280] (86)

[0281] (87)

[0282] (88).

[0283] Step 5.2: The two-layer model is equivalently converted into a single-layer model;

[0284] Model Each of the 120 lower-level models is a convex model, so the optimality condition of each lower-level model is used to transform the corresponding lower-level model. After the transformation, the equivalent conditions of each lower-level model are obtained, including the first-order optimality condition equation group and the complementary relaxation condition inequality group corresponding to each lower-level model, which specifically includes the following steps:

[0285] Step 5.2.1: Construct the optimality conditions of the day-ahead market clearing model;

[0286] 1) Taking the partial derivative of the Lagrangian function of the day-ahead market clearing model with respect to the decision variables, we can obtain the first-order optimality conditions of the day-ahead market clearing model, as shown in Equations (89) to (92).

[0287] (89)

[0288] (90)

[0289] (91)

[0290] (92)

[0291] Where: , , , They are the dual variables of the transaction quantity constraints corresponding to the four types of market entities, namely cascade hydropower stations in Basin A, wind power, other power stations, and loads. They are auxiliary variables for solving the model, and represent whether the corresponding transaction quantity constraints have an equal sign.

[0292] 2) Construct the complementary relaxation conditions of the day-ahead market clearing model, as shown in equations (93) to (100).

[0293] (93)

[0294] (94)

[0295] (95)

[0296] (96)

[0297] (97)

[0298] (98)

[0299] (99)

[0300] (100).

[0301] Step 5.2.2: Construct the optimality conditions of the real-time market clearing model;

[0302] 1) Taking the partial derivative of the Lagrangian function of the real-time market clearing model with respect to the decision variables, we can obtain the first-order optimality conditions of the real-time market clearing model, as shown in Equations (101) to (106).

[0303] (101)

[0304] (102)

[0305] (103)

[0306] (104)

[0307] (105)

[0308] (106).

[0309] 2) Construct complementary slack conditions for the real-time market clearing model, as shown in equations (107) to (118):

[0310] (107)

[0311] (108)

[0312] (109)

[0313] (110)

[0314] (111)

[0315] (112)

[0316] (113)

[0317] (114)

[0318] (115)

[0319] (116)

[0320] (117)

[0321] (118)

[0322] Use equations (89) to (100) to replace the day-ahead market clearing model in the lower model, i.e., equations (66) to (72). At the same time, use equations (101) to (118) to replace the real-time market clearing model in the lower model, i.e., equations (73) to (81). The resulting new model is a single-layer model, denoted as model .

[0323] Step 6: Linearize the model;

[0324] Model The nonlinear terms in are linearized and approximated, including the following steps:

[0325] Step 6.1: Linearize the objective function;

[0326] Step 6.1.1 Nonlinear term of the objective function Perform linearization;

[0327] Since the day-ahead market clearing model is a convex model, a strong duality relationship of the day-ahead market clearing model is constructed, as shown in formula (119).

[0328] (119)

[0329] From formula (119), we can get The linearization result is shown in formula (120).

[0330] (120).

[0331] Step 6.1.2 Nonlinear term of the objective function Perform linearization;

[0332] Since the real-time market clearing model is a convex model, a strong duality relationship of the real-time market clearing model is constructed, as shown in formula (121).

[0333] (121)

[0334] Then get The linearization result is shown in formula (122).

[0335] (122).

[0336] Step 6.2: Linearization of complementary relaxation conditions;

[0337] Use large The complementary relaxation conditions obtained after the transformation in step 5.2 are linearly approximated by the method. For the complementary relaxation conditions (93) to (100) and (107) to (118), their linear approximate constraints are constructed, as shown in (123) to (129) and (130) to (141), respectively.

[0338] Linearization of complementary relaxation conditions of cascade hydropower stations in basin A in the day-ahead market:

[0339] (123)

[0340] (124).

[0341] Linearization of complementary relaxation conditions of other power plants in the day-ahead market:

[0342] (125)

[0343] (126).

[0344] Linearization of the wind power complementarity relaxation condition in the day-ahead market:

[0345] (127)

[0346] (128).

[0347] Linearization of the complementary relaxation condition of the day-ahead market load:

[0348] (129)

[0349] (130).

[0350] Linearization of complementary relaxation conditions for cascade hydropower stations in basin A in real-time market:

[0351] (131)

[0352] (132).

[0353] Linearization of complementary relaxation conditions for down-regulation of cascade hydropower stations in basin A in real-time market:

[0354] (133)

[0355] (134).

[0356] Linearization of complementary relaxation conditions for other power stations in the real-time market:

[0357] (135)

[0358] (136).

[0359] Linearization of complementary relaxation conditions for other power stations in the real-time market:

[0360] (137)

[0361] (138).

[0362] Linearization of the complementary relaxation conditions for wind curtailment in real-time market:

[0363] (139)

[0364] (140).

[0365] Linearization of real-time market load complementary relaxation conditions:

[0366] (141)

[0367] Where: 0-1 integer variable, which is an intermediate variable for auxiliary calculation; ~ , ~ is a real number, and the supremum or empirical upper bound of the middle fraction of the inequality is taken.

[0368] Step 6.3: Piecewise linearize the hydropower generation function;

[0369] In the hydropower generation function, the water level-reservoir capacity curve, tailwater level-discharge curve and output characteristic curve are all nonlinear functions. They are converted into piecewise linear functions using mature piecewise linearization technology. The specific steps are as follows:

[0370] Step 6.3.1: Perform piecewise linearization on the water level-storage capacity curve;

[0371] The feasible range of hydropower station storage capacity is discretized into interval, introduce integer variables and auxiliary variables for linear modeling, as shown in Equations (142) to (145).

[0372] (142)

[0373] (143)

[0374] (144)

[0375] (145)

[0376] Where: It is the indicator variable of the discrete interval of storage capacity, with a value of 1~ The number of positive integers; It is a 0-1 integer variable used to determine the storage capacity Is it in Within a range; For hydropower station In the Time period The storage capacity of each interval; For hydropower station No. The right boundary of the interval; The corresponding water level.

[0377] Step 6.3.2: Perform piecewise linearization on the tailwater level-discharge flow curve;

[0378] The linearization method of the tailwater level-discharge flow curve is the same as the linearization method of the water level-reservoir capacity curve mentioned above, and will not be repeated here.

[0379] Step 6.3.3: Perform piecewise linearization on the output characteristic curve;

[0380] The output characteristic curve of a hydropower station is a curve that characterizes the nonlinear relationship between the output of the power station, the power generation flow, and the water head. By discretizing the water head interval, a dynamic characteristic curve is used as a representative in the sub-interval, and then the two-dimensional nonlinear relationship between the power station output and the power generation flow is processed. Specifically, the following steps are included:

[0381] 1) Discretize the water head interval;

[0382] The model after discretization of the head interval is shown in Equations (146) to (148).

[0383] (146)

[0384] (147)

[0385] (148)

[0386] Where: It is the indicator variable of the discrete interval of water head, with a value of 1~ The number of positive integers; It is a 0-1 indicator variable, representing the water head Is it in the Within a range; For hydropower station No. The right boundary of the interval; For hydropower station In the Time period The output auxiliary variable of the interval.

[0387] 2) Piecewise linearization of the two-dimensional relationship between power station output and power generation flow;

[0388] Furthermore, the two-dimensional nonlinear relationship between the power station output and the power generation flow is further linearized in each discrete head interval. The linearization method is the same as the linearization method of the water level-reservoir capacity curve, which will not be repeated here.

[0389] Step 7: Solve the model;

[0390] After the above steps, a model that can be quickly solved using mature solving tools is obtained. This model is a water level control model of the cascade hydropower spot market that responds to wind power and load balancing needs. Its decision variables are the water level and power generation of each cascade hydropower station in each time period.

[0391] The Gurobi 11 solver is used to solve the model and obtain the power generation plan of the cascade hydropower stations in Basin A in the electricity spot market.

[0392] Implementation results analysis:

[0393] 1) Effect analysis;

[0394] Figure 4 The results of the day-ahead market clearing after the implementation of the present invention are shown. Figure 5 The clearing results of the cascade hydropower stations in the A basin in the real-time market under a certain scenario on a certain day are shown. According to formula (72) and formula (77), the clearing power generation of the A and B hydropower stations in the figure is the power generation plan of their day-ahead market. The day-ahead clearing results show that after the application of the present invention, the cascade hydropower planned for the midday peak and evening peak is large, and the market clearing price is also high. This shows that on the one hand, the present invention can achieve the response of cascade hydropower to the large-scale electricity demand of the power system during peak hours, and on the other hand, it can also help cascade hydropower to obtain higher power generation efficiency. The real-time market clearing results show that after the application of the present invention, cascade hydropower can cope with the imbalance of the power grid caused by wind power and load fluctuations and meet the flexibility requirements of the power grid. In summary, the cascade hydropower generation plan formulated using the present invention meets the balance requirements of the power system and plays a flexible supporting role for cascade hydropower.

[0395] Figure 6~Figure 9 The planned water level process of A and B hydropower stations before and after the implementation of the water level control method of the present invention under the water inflow conditions on a certain day is shown. The results show that after the implementation of the water level control method, the deviation between the real-time market water level control plan and the day-ahead water level plan is significantly reduced, which means that in actual power generation production, cascade hydropower does not need to make major adjustments based on the day-ahead water level plan when responding to random fluctuations in wind power and load, thereby ensuring a smooth change in the water level process.

[0396] To further verify the universality of the effect, the present invention was implemented under different water inflow conditions during the flood season and reservoir period for a total of 10 days, and the maximum deviations under 5 groups of scenarios in 24 time periods every day of these 10 days were statistically analyzed. Fig.10 , Fig.11 The comparison results of water level deviation of hydropower stations A and B before and after water level control are given respectively. The results show that the water level deviation of both power stations is significantly controlled after water level control. In addition, the water level deviation of hydropower station B is more sensitive to water level control operation, which further shows that the present invention can also avoid water level fluctuations caused by the coordination of upstream and downstream hydraulic relations.

[0397] In order to quantify the practical effect after controlling the water level change, the frequency density of the water level deviation of the above experimental results was further counted, and then the risk of water level deviation was measured by two indicators, 5%-VaR (risk value, unit: meter) and 5%-CVaR (5% conditional risk value, unit: meter), as shown in Table 1. The 5%-VAR risk of water level deviation represents the water level elevation (meter) that must be adjusted at least when the water level changes suddenly due to the hydropower station responding to wind power and grid load demand; the 5%-CVaR of water level deviation represents the average sudden change of water level elevation (meter) during sudden changes. The results show that after implementing the method of the present invention, the 5%-VaR of the water level deviation of Hydropower Station A decreased by 40.7%, and the 5%-CVaR decreased by 22.2%; the 5%-VaR of the water level deviation of Hydropower Station B decreased by 71.6%, and the 5%-CVaR decreased by 49.5%. The above results mean that the present invention can help the user of the invention to avoid drastic changes in water level to a large extent when responding to wind power and grid load demand in the electricity spot market.

[0398] Table 1: Comparison of water level change risks before and after implementation of the present invention

[0399]

[0400] 2) Efficiency analysis;

[0401] Calculations were performed on a microcomputer with Windows operating system, 32GB memory, and Intel i5 processor to solve the model disclosed in the present invention under two water inflow conditions: flood season and dry season. The average calculation time was 17.16 seconds and 16.49 seconds, respectively. This calculation speed meets the requirements for practical application in engineering.

[0402] 3) Summary;

[0403] In summary, the present invention can arrange a reasonable power generation plan for cascade hydropower stations in the electricity spot market, respond to random fluctuations in wind power and load while maintaining stable water level fluctuations, and the calculation speed of the provided method meets the requirements of engineering applications.

Claims

1. A method for controlling water level in a cascade hydropower spot market in response to wind power and load balancing requirements, characterized in that: The steps include: Step 1: Construct a generation dispatch model for cascade hydropower in the electricity spot market; The electricity spot market includes the day-ahead electricity market and the real-time electricity market. The day-ahead electricity market is hereinafter referred to as the day-ahead market, and the real-time electricity market is hereinafter referred to as the real-time market. The power generation dispatching model of the cascade hydropower in the electricity spot market is a two-layer model. The upper model is used to decide the power generation plan and 24-hour water level reported by each cascade power station to the day-ahead market and the real-time market in each period of 24 hours. The lower model is used to simulate the clearing process of the day-ahead market and the real-time market and the balance of power supply and demand in the power system. It specifically includes the following steps: Step 1.1: Construct the objective function of power generation dispatch in the electricity spot market; The objective function is constructed with the goal of maximizing the expected power generation benefits of cascade hydropower in the day-ahead market and the real-time market, as shown in formula (1); (1) Where: is the time period index, which is an integer from 1 to 24. Each time period corresponds to a day-ahead market and a real-time market. To refer to the hydropower stations in the form of positive integers, the leading hydropower station is denoted as 1, and the downstream cascades are incremented in sequence; is the index of the day-ahead market declaration segment, which is a positive integer; is the index of the scenario. A scenario describes a possibility of wind power output and load demand in the real-time market. The scenario is sampled from the forecast case. The number of sampled scenarios is , indicating that a real-time market will simultaneously respond to possible supply and demand fluctuations; For the scene Probability of occurrence; For the The clearing electricity price in the day-ahead market during the time period; For the scene Next The clearing electricity price of the real-time market during the period; For hydropower station In the The first day of the market The planned power generation of the declared section; and Respectively for scenes Lower Hydropower Station In the Planned increase and decrease of power generation in the real-time market during the time period; Step 1.2: Construct the supply curve in the electricity spot market; Step 1.2.1: Construct the day-ahead market supply curve; Due to power generation restrictions, the total declared power generation of each hydropower station should be less than its maximum power generation. At the same time, the supply curve of the day-ahead market must meet the non-decreasing condition. The constraints are constructed as equations (2) and (3) respectively. (2) (3) Where: , Hydropower Station In the The market of the day before The declared power generation and electricity price of the declared section; For hydropower station Maximum output is the total available capacity of the power station units after deducting the maintenance capacity; The length of each period is 3600 seconds corresponding to 1 hour; The highest reported electricity price allowed by the day-ahead market; Step 1.2.2: Construct a real-time market supply curve; According to the requirements of power market operation, the upward bid price in the real-time market should be greater than the bid price in the day-ahead market and should not exceed the maximum bid price allowed by the real-time market. The constraints are as follows: (4) to (6); the downward bid price in the real-time market should be greater than 0 and less than the day-ahead bid price. The constraints are as follows: (7) to (9); (4) (5) (6) (7) (8) (9) Where: and Respectively for scenes Lower Hydropower Station In the The upward and downward adjustment of the reported power generation in the real-time market during the period; and Respectively for scenes Lower Hydropower Station In the The real-time market increases and decreases the electricity price during the period; The highest reported electricity price allowed by the real-time market; and Hydropower Station The upper limit of climbing capacity and the lower limit of climbing capacity within a period of time; Indicates The clearing electricity price in the day-ahead market during the time period; Step 1.3: Construct hydropower operation constraints; Step 1.3.1: Construct hydropower operation constraints in the day-ahead market; The hydropower operation constraints in the day-ahead market include the functional relationship description of the water balance equation, flow boundary constraint, reservoir capacity boundary constraint, water level boundary constraint, water level-reservoir capacity curve, tailwater level-discharge flow curve and output characteristic curve, and also include the relationship between the planned power generation of the declared section and the total planned output in the day-ahead market, as shown in formula (10); (10) Where: For hydropower station In the Total planned output of the day-ahead market during the period; Step 1.3.2: Construct real-time market hydropower operation constraints; The real-time market hydropower operation constraints include the functional relationship description of the water balance equation, flow boundary constraints, reservoir capacity boundary constraints, water level boundary constraints, water level-reservoir capacity curve, tailwater level-discharge flow curve and output characteristic curve, and also include the relationship between the real-time market planned power generation and the total planned hydropower output. The modeling is shown in formula (11); (11) Where: For the scene Lower Hydropower Station In the Total planned output of the real-time market during the session; Step 2: Construct a day-ahead market clearing model; The electricity market clearing process is modeled to express the relationship between the declared power generation and the final power generation plan and to describe the power balance condition of the power system. The constructed day-ahead market clearing model is the constraint condition of the power generation dispatching model in step 1 and constitutes a component of the lower model in the two-layer model. A total of 24 lower models are constructed in this step. The steps for constructing the market clearing model for the period day ahead are as follows: Step 2.1: Build Objective function of the market clearing model for the period ahead; According to the basic principles of the electricity market, a clearing target with the maximum social welfare is constructed, as shown in formula (12); the day-ahead market clearing model is used to calculate the The clearing electricity price of the day-ahead market, the clearing power generation of each power generation entity, and the clearing power consumption of each load entity; (12) Where: For hydropower station In the The first day of the market The clearing power generation of the declared section; and Wind power station In the The declared electricity price and cleared electricity generation in the day-ahead market during the time period; and For other power stations besides the cascade hydropower and wind power considered in this method In the The market of the day before The declared electricity price and cleared power generation of the declared section; hereinafter, other power stations except the cascade hydropower and wind power considered in this method are referred to as "other power stations"; and Load In the The market of the day before The declared electricity price and cleared electricity consumption of the declared section; , Other power stations ,load The declared segment number is a positive integer; Step 2.2: Build Constraints of the market clearing model for the period ahead; Step 2.2.1: Build The balance of market supply and demand during the day before the time period; Construct the supply and demand balance relationship of the day-ahead market, as shown in formula (13); the variable after the colon and before the vertical line "|" represents the dual variable corresponding to the constraint. The dual variable of formula (13) is The clearing electricity price in the day-ahead market during the period; the physical quantity after the vertical line "|" represents a given condition, that is, the value of this physical quantity in this formula is known; (13) Step 2.2.2: Build Other constraints of the day-ahead market during the period; For the four types of market entities, namely, cascade hydropower, wind power, other power stations and loads, the cleared power generation in each reporting period shall not be greater than their reported power generation or their reported power consumption, thus establishing a transaction power constraint; For cascade hydropower, its planned power generation in the day-ahead market is the clearing power generation in the market, and the relationship is shown in formula (14); (14); Step 3: Build a real-time market clearing model; The role of the real-time market is to rebalance the fluctuations of wind power and load under the market mechanism; therefore, the clearing results of the real-time market are related to the wind power and load values ​​in the corresponding scenario. Each real-time market has There are 24 possible supply and demand fluctuations, so the real-time market clearing model has 24× The real-time market clearing model constructed is the constraint condition of the power generation dispatching model in step 1, and constitutes the component of the lower model in the two-layer model. This step constructs 24× underlying model; scene Next The steps for constructing the real-time market clearing model for a period are as follows: Step 3.1: Build the scene Next Objective function of the real-time market clearing model during the period; Since the real-time market needs to redispatch power, the objective is to minimize the real-time market redispatch cost, and the objective function is constructed as shown in formula (15); (15) Where: , Other power stations In the Increase or decrease the reported electricity price in the real-time market during the time period; , Respectively for scenes Lower Hydropower Station In the The upward and downward adjustment of the real-time market during the period to clear the power generation; , Respectively for scenes Other power stations In the The upward and downward adjustment of the real-time market during the period to clear the power generation; For the scene Downwind power station In the The electricity price reported in the real-time market during the period; For the scene Under the wind power station In the Forecasted power generation in the real-time market during the period; For the scene Downwind power station In the The amount of wind power abandoned in the real-time market during the period; For the scene Under load In the The electricity price reported in the real-time market during the period; For the scene Under load In the The clearing electricity consumption of the real-time market during the period; Step 3.2: Build the scene Next Constraints of the real-time market clearing model during the period; Step 3.2.1: Build the scene Next Real-time market supply and demand balance conditions during the time period; Build the scene Next The supply and demand balance relationship of the real-time market during the period is shown in formula (16), where the dual variable It's a scene Next The clearing electricity price of the real-time market during the period; (16); Step 3.2.2: Build the scene Next Constraints related to the clearing of cascade hydropower in real-time market during the period; Build the scene Next The constraint relationship between the upward and downward adjustment of cascade hydropower clearing power generation and the corresponding declared power generation in the real-time market of the period is shown in equations (17) and (18) respectively; (17) (18) Where: , , , They are the dual variables of the corresponding constraints, and are auxiliary variables for solving the model, representing whether the inequality conditions of the corresponding variables have an equal sign; The planned power generation of cascade hydropower in the real-time market is the clearing power generation of the market, and the relationship is shown in formula (19); (19); Step 3.2.3: Build the scene Next Relevant constraints on wind power clearing quantity in real-time market during the period; Build the scene Next The wind power curtailment constraint in the real-time market during the period is shown in formula (20); (20) Where: , is the dual variable corresponding to formula (20), which is the auxiliary variable for solving the model, representing whether the left and right inequalities have equal signs; Step 3.2.4: Build the scene Next Relevant constraints on the electricity cleared by other power stations in the real-time market during the period; Build the scene Next The constraint relationship between the upward and downward adjustment of the cleared power and the corresponding output of other power stations in the real-time market during the period is shown in equations (21) and (22) respectively; (21) (22) Where: , , , They are the dual variables of the corresponding constraints, and are auxiliary variables for solving the model, representing whether the inequality conditions of the corresponding variables have an equal sign; Step 3.2.5: Build the scene Next Constraints related to the real-time market load clearing quantity during the period; Build the scene Next The load clearing quantity constraint in the real-time market during the period is shown in formula (23); (23) Where: For the scene Next Real-time market load during the period The amount of deviation; , is the dual variable corresponding to formula (23), which is the auxiliary variable for solving the model, representing whether the left and right inequalities have equal signs; Step 4: Add water level control to the cascade hydropower generation plan; Step 4.1: Measure the deviation of the water level process under different power balance requirements from the day-ahead planned water level process; Construct the deviation measurement between each real-time market planned water level process and the day-ahead market planned water level, as shown in formula (24), and use it as the constraint condition of the hydropower generation scheduling model; (24) Where: For the scene The deviation between the planned water level process of the lower cascade hydropower in the real-time market and the planned water level process in the day-ahead market; For hydropower station In the The end-of-period water level of the day-ahead market; Representation scene Lower Hydropower Station In the Water level during the period; Step 4.2: Adjust the objective function of the cascade hydropower generation scheduling model; The water level deviation index is included in the objective function in the form of a negative number, that is, the objective function formula (1) is changed to the objective function formula (25); (25) Where: is a coefficient, which is a preset positive real number used for dimension conversion and reflects the importance of water level control; Step 5: Perform equivalent transformation on the model structure; The model given in steps 1 to 4 is a two-layer model, denoted as model , specifically, The upper model includes equations (2) to (11), (24), (25) and the functional relationship between the water balance equation in the day-ahead market and the real-time market, the flow boundary constraint, the reservoir capacity boundary constraint, the water level boundary constraint, the water level-reservoir capacity curve, the tailwater level-discharge flow curve and the output characteristic curve; The lower model of consists of two parts. One is the day-ahead market clearing model, which is expressed by equations (12) to (14). The value of is an integer from 1 to 24, so this part specifically includes 24 lower-level models; the second is the real-time market clearing model, which is expressed by equations (15) to (23). The value is an integer from 1 to 24. The number of Therefore, this part specifically includes 24× A lower-level model; The solution includes the following steps: Step 5.1: Equivalent variable substitution; As shown in equations (14) and (19), the planned power generation of the upper model is numerically equal to the market-clearing power generation of the lower model, so the two equations are substituted into the upper model, that is, the equations (14) and (19) are correspondingly substituted into equations (4), (7), (10), (11), and (25), and equations (14) and (19) are deleted at the same time; Step 5.2: The two-layer model is equivalently converted into a single-layer model; Model 24×( +1) lower models are all convex models, so the optimality condition of each lower model is used to transform the corresponding lower model. After transformation, the equivalent conditions of each lower model are obtained, including the first-order optimality condition equation group and complementary relaxation condition inequality group corresponding to each lower model; at this time, the model Become a single-layer model, denoted as model ; Step 6: Linearize the model; Model The nonlinear terms in are linearized and approximated, including the following steps: Step 6.1: Linearize the objective function; Step 6.1.1 Nonlinear term of the objective function Perform linearization; Since the day-ahead market clearing model is a convex model, the strong duality relationship of the day-ahead market clearing model is constructed, as shown in formula (26); (26) in, For wind power plants In the The declared power generation in the day-ahead market during the time period; For other power stations In the The market of the day before The declared power generation of the declared section; For load In the The market of the day before The electricity consumption reported by the section; , , , They are the dual variables of the transaction power constraints corresponding to the four types of market entities: cascade hydropower, wind power, other power stations, and loads. They are auxiliary variables for model solution, indicating whether the corresponding transaction power constraints have an equal sign. From formula (26), we can get The linearization result is shown in formula (27); (27); Step 6.1.2 Nonlinear term of the objective function Perform linearization; Since the real-time market clearing model is a convex model, the strong duality relationship of the real-time market clearing model is constructed, as shown in formula (28); (28) in, , Respectively for scenes Other power stations In the Increase or decrease the reported electricity price in the real-time market during the time period; Then get The linearization result is shown in formula (29); (29); Step 6.2: Linearization of complementary relaxation conditions; Use large The complementary relaxation conditions obtained after the transformation in step 5.2 are linearly approximated by the method. The transformation methods of each complementary relaxation condition are the same. , construct its linearized approximate constraints, as shown in formula (30); (30) Where: It is a 0-1 integer variable, which is an intermediate variable for auxiliary calculation; , is a real number, and the supremum or empirical upper bound of the middle fraction of the inequality is taken; Step 6.3: Piecewise linearize the hydropower generation function; Among the hydropower generation functions, the water level-storage capacity curve, tailwater level-discharge curve and output characteristic curve are all nonlinear functions, and they are converted into piecewise linear functions using piecewise linearization technology. Step 7: Solve the model; The model is solved using Gurobi, Cplex or lingo solvers to obtain the planned power generation and planned water level process of cascade hydropower in the electricity spot market.