A dual-layer optimization method and system for energy storage capacity configuration considering flexibility requirements
By constructing a two-layer optimization model and quantum particle swarm algorithm, the problem of flexible resource allocation optimization is solved, the optimal flexible resource allocation plan for the regional power grid is realized, and the stability and economy of the power grid are improved.
Patent Information
- Application Number
- CN202410411890.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-04-08
AI Technical Summary
Existing technology is difficult to effectively optimize the flexible resource allocation in regional power grids, resulting in insufficient stability of the power grid during peak power consumption periods and the lack of an indicator system for quickly calculating flexible resource allocation.
A two-layer optimization method for energy storage capacity allocation that takes into account flexibility requirements is adopted. By constructing a short-time scale minimum operating cost model of flexible resource output and a minimum operating cost model of the energy storage system, combined with the improved quantum particle swarm algorithm, the flexibility is calculated. Resource adequacy and constraint conditions are determined to realize interactive decision-making in the two-layer model and quickly obtain the optimal allocation plan.
It achieves flexible and stable operation of the regional power grid, reduces system investment and operation costs and flexible resource adjustment costs, and improves the economy and security of the power grid.
Smart Images

Figure CN118014164B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of energy storage capacity optimization, and in particular relates to a double-layer optimization method and system for energy storage capacity configuration considering flexibility requirements. Background Art
[0002] Flexibility resources include distributed energy storage, demand response loads, and adjustable power sources, which are widely distributed and dispersed. During peak electricity consumption, flexibility resources can achieve the effect of peak load regulation or frequency regulation by reducing load or increasing output, improving the safety and stability of the power grid and reducing redundant investment. However, the response degree of various types of flexibility resources is different. Therefore, how to quantify the flexibility response degree according to the characteristics of various types of flexibility resources, optimize the configuration and scheduling of flexibility resources in the region, and improve the economy of the power grid is an unresolved problem. In current research, different types of indicators are often used for different types of flexibility needs. There is a lack of a quantitative indicator that can systematically describe the degree of flexibility supply for different types of resources, and there is a lack of an indicator system that can quickly calculate the configuration of flexibility resources.
[0003] The configuration optimization of flexibility resources needs to consider the dispatching cost, operation cost, and construction cost supply of each flexibility resource, as well as the investment and operation cost of the system. Different dispatching schemes and different capacity configuration schemes have different flexibility adjustment costs. Therefore, achieving flexible and stable operation of regional power grids is an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a double-layer optimization method and system for energy storage capacity configuration taking flexibility requirements into consideration, which are used to solve the technical problem that flexible and stable operation of a regional power grid cannot be achieved.
[0005] In a first aspect, the present invention provides a two-layer optimization method for energy storage capacity configuration considering flexibility requirements, comprising:
[0006] Under the preset first constraint condition, the energy storage capacity configuration inner layer model is constructed with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is:
[0007] ,
[0008] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods;
[0009] Calculating the flexibility resource sufficiency in a short time scale, and determining a second constraint condition according to the flexibility resource sufficiency;
[0010] Under the second constraint condition, the outer model of energy storage capacity configuration is constructed with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is:
[0011] ,
[0012] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0013] The expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0014] ,
[0015] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0016] The energy storage capacity configuration inner model and the energy storage capacity configuration outer model are iteratively solved according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0017] In a second aspect, the present invention provides a two-layer optimization system for energy storage capacity configuration considering flexibility requirements, comprising:
[0018] The first construction module is configured to construct an inner layer model of energy storage capacity configuration under a preset first constraint condition with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is:
[0019] ,
[0020] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods;
[0021] A calculation module, configured to calculate the flexibility resource margin in a short time scale, and determine a second constraint condition according to the flexibility resource margin;
[0022] The second construction module is configured to construct an outer model of energy storage capacity configuration under the second constraint condition with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is:
[0023] ,
[0024] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0025] The expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0026] ,
[0027] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0028] The solution module is configured to iteratively solve the energy storage capacity configuration inner model and the energy storage capacity configuration outer model according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0029] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the two-layer optimization method for energy storage capacity configuration considering flexibility requirements of any embodiment of the present invention.
[0030] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the steps of a two-layer optimization method for energy storage capacity configuration considering flexibility requirements of any embodiment of the present invention.
[0031] The double-layer optimization method and system for energy storage capacity configuration considering flexibility requirements in the present application calculates the flexibility resource abundance in a short time scale, determines the second constraint condition based on the flexibility resource abundance, considers both the system investment and operating costs and the output and operating costs of the flexibility resources, constructs a double-layer capacity configuration model, realizes interactive decision-making of the double-layer model, and quickly obtains the optimal solution for flexibility resource allocation in the region. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 A flowchart of a double-layer optimization method for energy storage capacity configuration considering flexibility requirements provided by one embodiment of the present invention;
[0034] Figure 2 A structural block diagram of a two-layer optimization system for energy storage capacity configuration considering flexibility requirements provided by an embodiment of the present invention;
[0035] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] See also Figure 1 , which shows a flow chart of a two-layer optimization method for energy storage capacity configuration considering flexibility requirements of the present application.
[0038] like Figure 1 As shown in FIG. 1 , the two-layer optimization method for energy storage capacity configuration considering flexibility requirements specifically includes the following steps:
[0039] Step S101, under a preset first constraint condition, an inner model of energy storage capacity configuration is constructed with the minimization of the operating cost of the short-time-scale flexible resource output as the first objective function.
[0040] In this step, the expression of the first objective function is:
[0041] ,
[0042] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods.
[0043] It should be noted that the first constraint condition includes power generation-load balance constraint, electrochemical energy storage charge and discharge constraint, and power constraint;
[0044] The expression of the generation-load balance constraint is:
[0045] ,
[0046] In the formula, is the power generation of all generator sets at time t, is the discharge power of electrochemical energy storage i at time t, is the load at time t, is the charging power of electrochemical energy storage i at time t, is the number of electrochemical energy storages;
[0047] The expression of electrochemical energy storage charge and discharge constraint is:
[0048] ,
[0049] ,
[0050] ,
[0051] In the formula, is the minimum discharge power of electrochemical energy storage i, is the discharge power of electrochemical energy storage i at time t, is the shutdown state of the electrochemical energy storage i at time t, is the maximum discharge power of electrochemical energy storage i, is the minimum charging power of electrochemical energy storage i, is the charging power of electrochemical energy storage i at time t, is the starting state of electrochemical energy storage i at time t, is the maximum charging power of electrochemical energy storage i;
[0052] The expression of power constraint is:
[0053] ,
[0054] ,
[0055] ,
[0056] In the formula, is the minimum output of adjustable hydropower i, is the maximum output of adjustable hydropower i, The upper limit of the downward ramp rate of adjustable hydropower is The upper limit of the ramp rate of adjustable hydropower is is the actual output of adjustable hydropower station i at time t-1, is the number of monthly periods, is the monthly maximum power generation of the adjustable hydropower station i.
[0057] Step S102, calculate the flexibility resource margin in a short time scale, and determine the second constraint condition according to the flexibility resource margin.
[0058] In this step, the expression for calculating the flexibility resource sufficiency in the short time scale is:
[0059] ,
[0060] ,
[0061] ,
[0062] In the formula, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, is the power generation of all generator sets at time t, The flexibility of the hydropower supply at time t is adjustable. is the degree of flexible supply of electrochemical energy storage at time t, is the degree of flexible supply that is adjusted upward in response to demand load at time t, The flexibility of the hydropower supply that can be adjusted downward at time t is is the degree of flexible supply of electrochemical energy storage at time t, is the degree of flexible supply that responds to demand by adjusting the load downward at time t.
[0063] It should be noted that the expression for the flexible supply degree of adjustable hydropower is:
[0064] ,
[0065] In the formula, The upper limit of the ramp rate of adjustable hydropower is is the time scale, is the maximum output power of adjustable hydropower, The upper limit of the downward ramp rate of adjustable hydropower is is the minimum output power of adjustable hydropower;
[0066] The expression for the degree of flexibility of electrochemical energy storage is:
[0067] ,
[0068] In the formula, is the maximum discharge power, is the rated capacity of the electrochemical energy storage i, is the discharge efficiency of electrochemical energy storage, is the real-time value of the electrochemical energy storage charge state, is the minimum value of the electrochemical energy storage state of charge, is the maximum charging power, is the maximum value of the electrochemical energy storage state of charge, is the charging efficiency of electrochemical energy storage;
[0069] The expression of the flexible supply degree of demand response load is:
[0070] ,
[0071] In the formula, The additional power consumption due to demand response loads, The power removed for demand response loads, is the number of demand response loads.
[0072] Step S103: constructing an outer model of energy storage capacity configuration under the second constraint condition with the minimum operation cost of the energy storage system as the second objective function.
[0073] In this step, the expression of the second objective function is:
[0074] ,
[0075] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0076] It should be noted that the expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0077] ,
[0078] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0079] The expression for calculating the investment cost of adjustable hydropower units is:
[0080] ,
[0081] In the formula, is the total number of adjustable hydropower units, is the unit investment cost of adjustable hydropower unit i, is the capacity of the adjustable hydropower unit i;
[0082] The expression for calculating the investment cost of electrochemical energy storage is:
[0083] ,
[0084] In the formula, is the total amount of electrochemical energy storage, is the unit investment cost of electrochemical energy storage i, is the capacity of electrochemical energy storage i.
[0085] Furthermore, the second constraint condition is to consider the flexibility resource abundance constraint. The expression of considering the flexibility resource abundance constraint is: , where It is the limit of flexibility resource abundance.
[0086] Step S104, iteratively solving the energy storage capacity configuration inner model and the energy storage capacity configuration outer model according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0087] In this step, the random initial position and speed of the particle swarm are set, that is, the position and capacity of the flexibility resource;
[0088] Input the first objective function and the first constraint condition of the inner model of energy storage capacity configuration to optimize the output of flexible resources in each period;
[0089] Feeding back the optimization result of the output of the flexible resources to the outer model of the energy storage capacity configuration, calculating the second objective function and the second constraint condition of the outer model of the energy storage capacity configuration, and optimizing the location and capacity of the flexible resources;
[0090] Calculate the fitness function and update the particle swarm;
[0091] Perform a chaotic search for the top 20% of the best particles in the particle swarm and update their historical optimal speed and position;
[0092] Perform chaotic search on the remaining particles and update their historical optimal speed and position;
[0093] Calculate the local attraction point of the particle and the average optimal position of the population, and update the particle position;
[0094] If the convergence conditions are met, the final energy storage capacity configuration plan is obtained.
[0095] In summary, the method of the present application calculates the abundance of flexibility resources in a short time scale, and determines the second constraint condition based on the abundance of flexibility resources. It considers both the system investment and operating costs and the output and operating costs of flexibility resources, and constructs a two-layer capacity configuration model. It realizes interactive decision-making of the two-layer model and quickly obtains the optimal solution for the configuration of flexibility resources in the region.
[0096] See also Figure 2 , which shows a structural block diagram of a two-layer optimization system for energy storage capacity configuration taking into account flexibility requirements of the present application.
[0097] like Figure 2 As shown, the energy storage capacity configuration double-layer optimization system 200 includes a first construction module 210, a calculation module 220, a second construction module 230 and a solution module 240.
[0098] The first construction module 210 is configured to construct an inner model of energy storage capacity configuration under a preset first constraint condition with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is:
[0099] ,
[0100] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods;
[0101] A calculation module 220, configured to calculate the flexibility resource margin in a short time scale, and determine a second constraint condition according to the flexibility resource margin;
[0102] The second construction module 230 is configured to construct an outer layer model of energy storage capacity configuration under the second constraint condition with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is:
[0103] ,
[0104] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0105] The expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0106] ,
[0107] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0108] The solution module 240 is configured to iteratively solve the energy storage capacity configuration inner model and the energy storage capacity configuration outer model according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0109] It should be understood that Figure 2 Modules and references documented in Figure 1 Therefore, the operations and features described above for the method and the corresponding technical effects are also applicable to Figure 2 The modules in it will not be described in detail here.
[0110] In other embodiments, embodiments of the present invention further provide a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor is caused to execute the double-layer optimization method for energy storage capacity configuration considering flexibility requirements in any of the above method embodiments;
[0111] As an implementation mode, the computer-readable storage medium of the present invention stores computer-executable instructions, and the computer-executable instructions are configured as follows:
[0112] Under the preset first constraint condition, the energy storage capacity configuration inner layer model is constructed with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is:
[0113] ,
[0114] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods;
[0115] Calculating the flexibility resource sufficiency in a short time scale, and determining a second constraint condition according to the flexibility resource sufficiency;
[0116] Under the second constraint condition, the outer model of energy storage capacity configuration is constructed with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is:
[0117] ,
[0118] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0119] The expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0120] ,
[0121] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0122] The energy storage capacity configuration inner model and the energy storage capacity configuration outer model are iteratively solved according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0123] The computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the energy storage capacity configuration dual-layer optimization system considering flexibility requirements, etc. In addition, the computer-readable storage medium may include a high-speed random access memory, and may also include a memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the computer-readable storage medium may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the energy storage capacity configuration dual-layer optimization system considering flexibility requirements via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the device includes: a processor 310 and a memory 320. The electronic device may also include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330 and the output device 340 may be connected via a bus or other means. Figure 3 The example of connection via bus is taken. The memory 320 is the above-mentioned computer-readable storage medium. The processor 310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, the double-layer optimization method of energy storage capacity configuration considering flexibility requirements of the above-mentioned method embodiment is implemented. The input device 330 can receive input digital or character information, and generate key signal input related to user settings and function control of the double-layer optimization system for energy storage capacity configuration considering flexibility requirements. The output device 340 may include display devices such as display screens.
[0125] The electronic device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0126] As an implementation mode, the electronic device is applied to a two-tier optimization system for energy storage capacity configuration considering flexibility requirements, and is used for a client, and includes: at least one processor; and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:
[0127] Under the preset first constraint condition, the energy storage capacity configuration inner layer model is constructed with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is:
[0128] ,
[0129] In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, is the unit power generation cost of adjustable hydropower station i, is the actual output of adjustable hydropower station i at time t, They are adjustable hydropower station and demand response load. is the number of time periods;
[0130] Calculating the flexibility resource sufficiency in a short time scale, and determining a second constraint condition according to the flexibility resource sufficiency;
[0131] Under the second constraint condition, the outer model of energy storage capacity configuration is constructed with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is:
[0132] ,
[0133] In the formula, Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, Risk loss caused by insufficient flexibility resources in the system;
[0134] The expression for calculating the risk loss of the system due to insufficient flexibility resources is:
[0135] ,
[0136] In the formula, , They are all auxiliary variables for calculating CvaR values. is the confidence level, , The loss costs caused by insufficient upward and downward flexibility resources of the unit, is the power generation of all generator sets at time t, is the probability of a typical scenario n occurring, For a typical scenario, The total supply of flexible resources is adjusted downward. The total supply of flexible resources is adjusted upward. is the load at time t, , for or , Indicates the degree of inflexibility;
[0137] The energy storage capacity configuration inner model and the energy storage capacity configuration outer model are iteratively solved according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration solution.
[0138] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A two-layer optimization method for energy storage capacity configuration considering flexibility requirements, characterized in that: include: Under the preset first constraint condition, the energy storage capacity configuration inner layer model is constructed with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is: In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, c AH,i is the unit power generation cost of adjustable hydropower station i, P AH,i,t is the actual output of adjustable hydropower station i at time t, G and L are the adjustable hydropower station and demand response load respectively, and T is the number of time periods; The first constraint condition includes power generation-load balance constraint, electrochemical energy storage charge and discharge constraint and power constraint; The expression of the power generation-load balance constraint is: Where P gen,t is the power generation of all generator sets at time t, is the discharge power of electrochemical energy storage i at time t, P ld,t is the load at time t, is the charging power of electrochemical energy storage i at time t, S is the number of electrochemical energy storages; The expression of the electrochemical energy storage charge and discharge constraint is: P dis,i,min ≤P dis,i,t ≤X dis,i,t P dis,i,max , P ch,i,min ≤P ch,i,t ≤c h,i, P ch,i,max , X dis,i,t +X ch,i,t ≤1, Where P dis,i,min is the minimum discharge power of electrochemical energy storage i, P dis,i,t is the discharge power of electrochemical energy storage i at time t, X dis,i,t is the shutdown state of electrochemical energy storage i at time t, P dis,i,max is the maximum discharge power of electrochemical energy storage i, P ch,i,min is the minimum charging power of electrochemical energy storage i, P ch,i,t is the charging power of electrochemical energy storage i at time t, X ch,i,t is the starting state of electrochemical energy storage i at time t, P ch,i,max is the maximum charging power of electrochemical energy storage i; The expression of the power constraint is: P min AH,i ≤P AH,i,t ≤P max AH,i , Where P min AH,i is the minimum output of adjustable hydropower i, P max AH,i is the maximum output of adjustable hydropower i, The upper limit of the downward ramp rate of adjustable hydropower is is the upper limit of the ramp rate of adjustable hydropower, P AH,i,t-1 is the actual output of adjustable hydropower station i at time t-1, N tm is the number of monthly periods, is the monthly maximum power generation of adjustable hydropower station i; Calculating the flexibility resource sufficiency in a short time scale, and determining a second constraint condition according to the flexibility resource sufficiency; Under the second constraint condition, the outer model of energy storage capacity configuration is constructed with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is: In the formula, C sys Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, CVaR t Risk loss caused by insufficient flexibility resources in the system; The expression for calculating the risk loss of the system due to insufficient flexibility resources is: In the formula, β1 and β2 are auxiliary variables for calculating CvaR value, α is the confidence level, and c up 、c down P is the loss cost caused by insufficient upward and downward flexibility resources of the unit. gen,t is the power generation of all generator sets at time t, p n is the probability of typical scenario n occurring, N is the typical scenario, The total supply of flexible resources is adjusted downward. is the total upward supply of flexible resources, P ld,t is the load at time t, [x] + =max{x,0}, x is or () + Indicates the degree of inflexibility; The second constraint condition is to consider the flexibility resource abundance constraint. The expression for considering the flexibility resource abundance constraint is: f<θ, where θ is the flexibility resource abundance limit; The expression for calculating the flexibility resource sufficiency in a short time scale is: In the formula, p n is the probability of typical scenario n occurring, N is the typical scenario, The total supply of flexible resources is adjusted downward. is the total upward supply of flexible resources, P ld,t is the load at time t, P gen,t is the power generation of all generator sets at time t, The flexibility of the hydropower supply at time t is adjustable. is the degree of flexible supply of electrochemical energy storage at time t, is the degree of flexible supply that is adjusted upward in response to demand load at time t, The flexibility of the hydropower supply that can be adjusted downward at time t is is the degree of flexible supply of electrochemical energy storage at time t, The degree of flexible supply that is adjusted downward for demand response load at time t; The expression for the flexibility of hydropower supply is: In the formula, is the upper limit of the ramp rate of adjustable hydropower, ΔT is the time scale, is the maximum output power of adjustable hydropower, The upper limit of the downward ramp rate of adjustable hydropower is is the minimum output power of adjustable hydropower; The expression for the degree of flexibility of electrochemical energy storage is: Where η dis,i,max is the maximum discharge power, E ess,i is the rated capacity of electrochemical energy storage i, η dis,i is the discharge efficiency of electrochemical energy storage, SOC i,t is the real-time value of the state of charge of electrochemical energy storage, SOC i,min is the minimum value of the electrochemical energy storage charge state, P ch,i,max is the maximum charging power, SOC i,max is the maximum value of the electrochemical energy storage state of charge, η ch,i is the charging efficiency of electrochemical energy storage; The expression of the flexible supply degree of demand response load is: In the formula, The additional power consumption due to demand response loads, is the power removed by the demand response load, and D is the number of demand response loads; The inner layer model of the energy storage capacity configuration and the outer layer model of the energy storage capacity configuration are iteratively solved according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration scheme, wherein the inner layer model of the energy storage capacity configuration and the outer layer model of the energy storage capacity configuration are iteratively solved according to the improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration scheme includes: Set the random initial position and speed of the particle swarm, that is, the position and capacity of the flexibility resource; Input the first objective function and the first constraint condition of the inner model of energy storage capacity configuration to optimize the output of flexible resources in each period; Feeding back the optimization result of the output of the flexible resources to the outer model of the energy storage capacity configuration, calculating the second objective function and the second constraint condition of the outer model of the energy storage capacity configuration, and optimizing the location and capacity of the flexible resources; Calculate the fitness function and update the particle swarm; Perform a chaotic search for the top 20% of the best particles in the particle swarm and update their historical optimal speed and position; Perform chaotic search on the remaining particles and update their historical optimal speed and position; Calculate the local attraction point of the particle and the average optimal position of the population, and update the particle position; If the convergence conditions are met, the final energy storage capacity configuration plan is obtained.
2. A two-layer optimization method for energy storage capacity configuration considering flexibility requirements according to claim 1, characterized in that: in, The expression for calculating the investment cost of adjustable hydropower units is: Where G is the total number of adjustable hydropower units, is the unit investment cost of adjustable hydropower unit i, Q AH,i is the capacity of the adjustable hydropower unit i; The expression for calculating the investment cost of electrochemical energy storage is: Where L is the total amount of electrochemical energy storage, is the unit investment cost of electrochemical energy storage i, Q ess,i is the capacity of electrochemical energy storage i.
3. A two-layer optimization system for energy storage capacity configuration considering flexibility requirements, characterized in that: include: The first construction module is configured to construct an inner layer model of energy storage capacity configuration under a preset first constraint condition with the minimum operating cost of the short-time scale flexible resource output as the first objective function, wherein the expression of the first objective function is: In the formula, Adjusting costs for flexible resources, is the unit start-up and shutdown cost of adjustable hydropower station i, is the start-stop capacity of the adjustable hydropower station i at time t, is the unit load shedding cost of demand response load unit i, is the load shedding amount of demand response load i at time t, is the increased output cost of demand response load unit i, is the increase in output of demand response load unit i, c AH,i is the unit power generation cost of adjustable hydropower station i, P AH,i,t is the actual output of adjustable hydropower station i at time t, G and L are the adjustable hydropower station and demand response load respectively, and T is the number of time periods; The first constraint condition includes power generation-load balance constraint, electrochemical energy storage charge and discharge constraint and power constraint; The expression of the power generation-load balance constraint is: Where P gen,t is the power generation of all generator sets at time t, is the discharge power of electrochemical energy storage i at time t, P ld,t is the load at time t, is the charging power of electrochemical energy storage i at time t, S is the number of electrochemical energy storages; The expression of the electrochemical energy storage charge and discharge constraint is: P dis,i,min ≤P dis,i,t ≤X dis,i,t P dis,i,max , P ch,i,min ≤P ch,i,t ≤ ch,i,t P ch,j,max , X dis,i,t +X ch,i,t ≤1, Where P dis,i,min is the minimum discharge power of electrochemical energy storage i, P dis,i,t is the discharge power of electrochemical energy storage i at time t, X dis,i,t is the shutdown state of electrochemical energy storage i at time t, P dis,i,max is the maximum discharge power of electrochemical energy storage i, P ch,i,min is the minimum charging power of electrochemical energy storage i, P ch,i,t is the charging power of electrochemical energy storage i at time t, X ch,i,t is the starting state of electrochemical energy storage i at time t, P ch,i,max is the maximum charging power of electrochemical energy storage i; The expression of the power constraint is: P min AH,i ≤P AH,t ≤P max AH,i , Where P min AH,i is the minimum output of adjustable hydropower i, P max AH,i is the maximum output of adjustable hydropower i, The upper limit of the downward ramp rate of adjustable hydropower is is the upper limit of the ramp rate of adjustable hydropower, P AH,i,-1 is the actual output of adjustable hydropower station i at time t-1, N tm is the number of monthly periods, is the monthly maximum power generation of adjustable hydropower station i; A calculation module, configured to calculate the flexibility resource margin in a short time scale, and determine a second constraint condition according to the flexibility resource margin; The second construction module is configured to construct an outer model of energy storage capacity configuration under the second constraint condition with the minimum operation cost of the energy storage system as the second objective function, wherein the expression of the second objective function is: In the formula, C sys Investment and operation costs for the system, The investment cost of adjustable hydropower unit is is the investment cost of electrochemical energy storage, is the system operating cost, CVaR t Risk loss caused by insufficient flexibility resources in the system; The expression for calculating the risk loss of the system due to insufficient flexibility resources is: In the formula, β1 and β2 are auxiliary variables for calculating CvaR value, α is the confidence level, and c up 、c down P is the loss cost caused by insufficient upward and downward flexibility resources of the unit. gen,t is the power generation of all generator sets at time t, P n is the probability of typical scenario n occurring, N is the typical scenario, The total supply of flexible resources is adjusted downward. is the total upward supply of flexible resources, P ld,t is the load at time t, [x] + =max{x,0}, x is or () + Indicates the degree of inflexibility; The second constraint condition is to consider the flexibility resource abundance constraint. The expression for considering the flexibility resource abundance constraint is: f<θ, where θ is the flexibility resource abundance limit; The expression for calculating the flexibility resource sufficiency in a short time scale is: In the formula, p n is the probability of typical scenario n occurring, N is the typical scenario, The total supply of flexible resources is adjusted downward. is the total upward supply of flexible resources, P ld,t is the load at time t, P gen,t is the power generation of all generator sets at time t, The flexibility of the hydropower supply at time t is adjustable. is the degree of flexible supply of electrochemical energy storage at time t, is the degree of flexible supply that is adjusted upward in response to demand load at time t, The flexibility of the hydropower supply that can be adjusted downward at time t is is the degree of flexible supply of electrochemical energy storage at time t, The degree of flexible supply that is adjusted downward for demand response load at time t; The expression for the flexibility of hydropower supply is: In the formula, is the upper limit of the ramp rate of adjustable hydropower, ΔT is the time scale, is the maximum output power of adjustable hydropower, The upper limit of the downward ramp rate of adjustable hydropower is is the minimum output power of adjustable hydropower; The expression for the degree of flexibility of electrochemical energy storage is: Where P dis,i,max is the maximum discharge power, E ess,i is the rated capacity of electrochemical energy storage i, η dis,i is the discharge efficiency of electrochemical energy storage, SOC i,t is the real-time value of the state of charge of electrochemical energy storage, SOC i,min is the minimum value of the electrochemical energy storage charge state, P ch,i,max is the maximum charging power, SOC i,max is the maximum value of the electrochemical energy storage state of charge, η ch,i is the charging efficiency of electrochemical energy storage; The expression of the flexible supply degree of demand response load is: In the formula, The additional power consumption due to demand response loads, is the power removed by the demand response load, and D is the number of demand response loads; A solution module is configured to iteratively solve the energy storage capacity configuration inner model and the energy storage capacity configuration outer model according to an improved quantum particle swarm algorithm to obtain a final energy storage capacity configuration scheme, wherein the energy storage capacity configuration inner model and the energy storage capacity configuration outer model are iteratively solved according to the improved quantum particle swarm algorithm to obtain the final energy storage capacity configuration scheme includes: Set the random initial position and speed of the particle swarm, that is, the position and capacity of the flexibility resource; Input the first objective function and the first constraint condition of the inner model of energy storage capacity configuration to optimize the output of flexible resources in each period; Feeding back the optimization result of the output of the flexible resources to the outer model of the energy storage capacity configuration, calculating the second objective function and the second constraint condition of the outer model of the energy storage capacity configuration, and optimizing the location and capacity of the flexible resources; Calculate the fitness function and update the particle swarm; Perform a chaotic search for the top 20% of the best particles in the particle swarm and update their historical optimal speed and position; Perform chaotic search on the remaining particles and update their historical optimal speed and position; Calculate the local attraction point of the particle and the average optimal position of the population, and update the particle position; If the convergence conditions are met, the final energy storage capacity configuration plan is obtained.
4. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in any one of claims 1 to 2.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
