A multi-community energy storage double-layer control method, device, equipment and medium
The alternating multiplier algorithm and the generalized Nash bargaining theory are used to optimize the power dispatching and transaction price of multi-community energy storage systems, solving the problems of multi-community energy storage resource coordination and user cooperation, achieving energy mutual aid and cost reduction, and promoting user cooperation. cooperation between.
Patent Information
- Application Number
- CN202410823893.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In a distributed energy system, how to coordinate distributed energy storage resources among multiple communities, reduce total operating costs, stimulate cooperation enthusiasm among users, and improve energy utilization efficiency.
The alternating multiplier algorithm and generalized Nash bargaining theory are used to solve the double-layer power dispatch decision results and transaction price, and establish a community operation model, including user energy cost sub-model, distributed energy storage sub-model, multi-community expenditure sub-model and photovoltaic power generation. The output sub-model optimizes electric energy dispatch and transaction prices, and promotes energy mutual aid among multiple communities.
It realizes the mutual aid of distributed energy storage among multiple communities, reduces the total operating cost, stimulates the enthusiasm of users for cooperation, promotes exchanges and cooperation between users, and forms a healthy development.
Smart Images

Figure CN118378867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy storage technology, and in particular to a multi-community energy storage double-layer regulation method, device, equipment and medium. Background Art
[0002] Energy storage technology has gradually become an important means to solve energy transformation and improve energy efficiency. In distributed energy systems, distributed energy storage, as a flexibly adjustable distributed resource, has flexible two-way adjustment capabilities, can realize the time and space transfer of electric energy, and effectively respond to the challenges brought by the safe and stable access of renewable energy to the power system.
[0003] At present, energy storage technology has been widely used on the distributed power supply side, the grid side and the user side. As the cost of energy storage technology gradually decreases, people are paying more and more attention to the economic feasibility of distributed energy storage on the user side. Users equipped with distributed energy storage systems can not only optimize the local supply and demand balance, but also reduce their own electricity demand costs by implementing a "low storage and high release" scheduling method. In addition, this system also promotes electricity transactions between users and other power entities, and improves the energy utilization level and economic benefits of regional power grids. Therefore, how to coordinate the rational use of distributed energy storage resources between users and communities, and promote cooperation between communities and users to improve economic benefits is the current research focus. Summary of the invention
[0004] The present invention provides a multi-community energy storage double-layer control method, device, equipment and medium, adopts an alternating multiplier algorithm to solve the double-layer power dispatch decision results, promotes energy mutual assistance of distributed energy storage among multiple communities, and thus reduces the total operating cost of multiple communities; further adopts the generalized Nash bargaining theory to solve the transaction electricity price, which is conducive to stimulating the enthusiasm of users to participate in cooperation, promoting mutual communication and cooperation among users, and benign development.
[0005] The present invention provides a multi-community energy storage double-layer regulation method, comprising:
[0006] Obtain the energy storage power usage, energy storage power, energy demand, characteristic parameters of various equipment, and daily fluctuation curve of power grid electricity prices of users in the community; wherein the various equipment include rooftop photovoltaics and distributed energy storage;
[0007] According to the above data, a community operation model and constraints are established; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model;
[0008] The alternating multiplier algorithm and generalized Nash bargaining theory are used to solve the community operation model to obtain the optimal operation strategy and the optimal transaction electricity price.
[0009] Preferably, the user energy cost sub-model is specifically:
[0010]
[0011] in, express Community Cost to users, and Respectively represent users exist The price of buying and selling electricity from the grid at any given moment; and Indicates the amount of electricity a user buys and sells to the grid; is the total time period in a day;
[0012] The distributed energy storage sub-model is specifically:
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019] in, and Respectively Moment and Moment Community user The amount of stored electricity in the energy storage device; and Indicates the initial and final capacity of the energy storage device; Indicates the maximum storage capacity of the user's energy storage device; and They represent the charging and discharging efficiency of energy storage respectively; and Respectively represent the charge and discharge power; and Respectively represent the charging and discharging status of energy storage, which is a Boolean variable to ensure that the user's energy storage device will not be charged and discharged at the same time; Indicates the maximum charge and discharge power of the user's energy storage device;
[0020] The multi-community expenditure sub-model is specifically:
[0021]
[0022] in, represents the power loss cost coefficient of energy storage, and Represent multiple communities Total charging power and discharging power at all times; represents the line loss price, Indicates line loss power;
[0023] The photovoltaic power generation output sub-model is specifically:
[0024]
[0025] in, Representing the community user exist Photovoltaic output at all times; Indicates the maximum output of photovoltaic power;
[0026] The constraints are specifically:
[0027]
[0028] in, Indicates user The local electricity demand power.
[0029] Preferably, the community operation model is specifically:
[0030]
[0031] in, represents the total operating cost before the cooperation of multiple community energy storage devices, and Respectively Community Energy consumption costs of users before and after cooperation.
[0032] Preferably, the method of solving the community operation model by using the alternating multiplier algorithm and the generalized Nash bargaining theory to obtain the optimal operation strategy and the optimal transaction electricity price includes:
[0033] Based on the community operation model, the alternating direction multiplier algorithm is used to dispatch electricity in multiple communities to reduce the payment cost; the payment cost includes the user energy cost and the multi-community expenditure cost;
[0034] The generalized Nash bargaining theory is used to formulate transaction electricity prices between and within communities.
[0035] Preferably, the method of reducing the payment cost by using an alternating direction multiplier algorithm to dispatch electric energy in multiple communities based on a community operation model includes:
[0036] The optimization function of payment cost is as follows:
[0037]
[0038] The alternating direction multiplier algorithm is used to solve the problem, specifically:
[0039]
[0040]
[0041]
[0042] and are two communication variables, where express Community The user's desired energy storage capacity; express The total amount of energy storage expected by the community;
[0043] Introducing Lagrange dual multipliers and , introducing a penalty factor and , augmented Lagrangian function Specifically:
[0044]
[0045] According to the alternating multiplier algorithm, the augmented Lagrangian function can be decomposed into three parts: energy storage transactions within the community, energy storage transactions between communities, and optimization of community aggregators, specifically:
[0046] Energy storage transactions within the community:
[0047]
[0048] Energy storage transactions between communities:
[0049]
[0050] Optimization of community aggregator:
[0051]
[0052] According to the above decomposition, the alternating multiplier algorithm calculates the optimization of intra-community energy storage transactions, inter-community energy storage transactions and community aggregators, specifically:
[0053] initialization , , , and the number of external iterations , according to the following During the iteration, the user's energy storage device stores electricity ;
[0054]
[0055]
[0056] Update external iteration count , then the updated Lagrange dual multiplier is:
[0057]
[0058] Initialize the community's expected energy storage usage and the Lagrange dual multiplier, and obtain :
[0059]
[0060]
[0061] According to the optimization of community aggregator and :
[0062]
[0063]
[0064] Update internal iteration count , then the updated Lagrange dual multiplier is:
[0065]
[0066] Determine the internal iteration situation. , is the inner loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds.
[0067] Determine the external iteration situation, let , , is the outer loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds.
[0068] Preferably, the method of formulating the transaction electricity price between communities by adopting the generalized Nash bargaining theory includes:
[0069] The inter-community electricity price is obtained through the electricity contribution and risk level, specifically:
[0070] The transaction electricity price obtained through electric energy contribution is as follows:
[0071]
[0072] in, and Respectively The amount of energy storage provided by the community and the amount of energy storage used; and They represent the maximum value of community mutual assistance and energy storage power usage respectively; represents the electric energy contribution factor, i.e., bargaining power;
[0073] The transaction electricity price obtained by the risk level is as follows:
[0074]
[0075]
[0076] The utility function that indicates the significant impact of forecast error on members, whose forecast accuracy and output forecast deviation can be converted into each other;
[0077]
[0078]
[0079] It indicates that the deviation capability of a member is related to the power of the equipment and the output error curve deviation of the undispatched member;
[0080] The risk level factors are as follows:
[0081]
[0082] Bargaining factor of users Specifically:
[0083]
[0084] in, and Respectively represent the proportion of electric energy contribution and risk level, satisfying ;
[0085] Based on the community's electricity contribution and risk level, a community cooperation model is established, specifically:
[0086]
[0087] The inter-community collaboration model translates into:
[0088] .
[0089] Preferably, the method of formulating the transaction electricity price within the community by adopting the generalized Nash bargaining theory includes:
[0090] The user bargaining factors are as follows:
[0091]
[0092] Establish a cooperative benefit model, specifically:
[0093]
[0094] The cooperative benefit model is transformed into:
[0095]
[0096] According to the above model, the corresponding transaction electricity price is calculated using the alternating multiplier algorithm, and the benefits obtained by each user and community are further obtained.
[0097] Preferably, a multi-community energy storage double-layer control device comprises:
[0098] Data acquisition module; used to obtain the energy storage power usage, energy storage power, energy demand and characteristic parameters of various equipment and daily fluctuation curve of power grid electricity price of users in the community; wherein the various equipment include rooftop photovoltaic and distributed energy storage;
[0099] Model building module; used to establish a community operation model and constraints based on the above data; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model;
[0100] Model solving module: used to solve the community operation model using the alternating multiplier algorithm and generalized Nash bargaining theory to obtain the optimal operation strategy and the optimal transaction electricity price.
[0101] Preferably, a device comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the multi-community energy storage double-layer control method when executing the computer program.
[0102] Preferably, a computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the multi-community energy storage double-layer regulation method.
[0103] Compared with the prior art, the present invention has the following beneficial effects:
[0104] The present invention discloses a multi-community energy storage double-layer control method, device, equipment and medium, adopts an alternating multiplier algorithm to solve the double-layer power dispatch decision result, promotes energy mutual assistance of distributed energy storage among multiple communities, and thus reduces the total operating cost of multiple communities; further adopts the generalized Nash bargaining theory to solve the transaction electricity price, which is conducive to stimulating the enthusiasm of users to participate in cooperation, promoting mutual communication and cooperation among users, and benign development. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] Figure 1 It is a schematic flow chart of a multi-community energy storage double-layer control method provided by an embodiment of the present invention;
[0106] Figure 2 is a schematic diagram of a multi-community structure of distributed energy storage provided by an embodiment of the present invention;
[0107] Figure 3 It is a schematic diagram of a module of a multi-community energy storage double-layer control device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0108] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0109] See also Figure 1 , a multi-community energy storage double-layer regulation method, comprising:
[0110] S1: Obtain the energy storage power usage, energy storage power, energy demand, characteristic parameters of various equipment, and daily fluctuation curve of power grid electricity prices of users in the community; wherein the various equipment include rooftop photovoltaics and distributed energy storage;
[0111] S2: Based on the above data, establish a community operation model and constraints; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model;
[0112] S3: The alternating multiplier algorithm and generalized Nash bargaining theory are used to solve the community operation model to obtain the optimal operation strategy and the optimal transaction electricity price.
[0113] In the above scheme, see Figure 2, a two-layer control method for coordinated mutual assistance of user-side energy storage in multiple communities is proposed; the present invention adopts an alternating multiplier algorithm to solve the two-layer power dispatch decision results, which promotes the energy mutual assistance of distributed energy storage between multiple communities, thereby reducing the total operating cost of multiple communities. This method is concise in form, has good convergence and strong robustness, and can effectively guarantee the decision-making autonomy and information privacy of users and communities. The generalized Nash bargaining theory is further used to solve the transaction electricity price. Unlike the standard Nash theory, the generalized Nash bargaining theory takes into account the bargaining factor. The bargaining power of each community and each user is different. Therefore, this method is conducive to stimulating the enthusiasm of users to participate in cooperation, promoting mutual exchanges and cooperation between users, and benign development; the two-layer energy control strategy between and within communities and the two-layer transaction electricity price formulation strategy are aimed at achieving energy mutual assistance between multiple communities, reducing user costs, and promoting users to equip distributed energy storage to participate in the energy market.
[0114] Preferably, the user energy cost sub-model is specifically:
[0115]
[0116] in, express Community Cost to users, and Respectively represent users exist The price of buying and selling electricity from the grid at any given moment; and Indicates the amount of electricity a user buys and sells to the grid; is the total time period in a day;
[0117] The distributed energy storage sub-model is specifically:
[0118]
[0119]
[0120]
[0121]
[0122]
[0123]
[0124] in, and Respectively Moment and Moment Community user The amount of stored electricity in the energy storage device; and Indicates the initial and final capacity of the energy storage device; Indicates the maximum storage capacity of the user's energy storage device; and They represent the charging and discharging efficiency of energy storage respectively; and Respectively represent the charge and discharge power; and Respectively represent the charging and discharging status of energy storage, which is a Boolean variable to ensure that the user's energy storage device will not be charged and discharged at the same time; Indicates the maximum charge and discharge power of the user's energy storage device;
[0125] The multi-community expenditure sub-model is specifically:
[0126]
[0127] in, represents the power loss cost coefficient of energy storage, and Represent multiple communities Total charging power and discharging power at all times; represents the line loss price, Indicates line loss power;
[0128] The photovoltaic power generation output sub-model is specifically:
[0129]
[0130] in, Representing the community user exist Photovoltaic output at all times; Indicates the maximum output of photovoltaic power;
[0131] The constraints are specifically:
[0132]
[0133] in, Indicates user The local electricity demand power.
[0134] Preferably, the community operation model is specifically:
[0135]
[0136] in, represents the total operating cost before the cooperation of multiple community energy storage devices, and Respectively Community Energy consumption costs of users before and after cooperation.
[0137] In the above scheme, the community operation model is essentially a non-convex nonlinear problem, which cannot be solved directly using commercial solvers. Therefore, this problem is converted into two sub-problems, namely the power dispatch decision problem and the transaction electricity price setting problem.
[0138] Preferably, the method of solving the community operation model by using the alternating multiplier algorithm and the generalized Nash bargaining theory to obtain the optimal operation strategy and the optimal transaction electricity price includes:
[0139] Based on the community operation model, the alternating direction multiplier algorithm is used to dispatch electricity in multiple communities to reduce the payment cost; the payment cost includes the user energy cost and the multi-community expenditure cost;
[0140] The generalized Nash bargaining theory is used to formulate transaction electricity prices between and within communities.
[0141] Preferably, the method of reducing the payment cost by using an alternating direction multiplier algorithm to dispatch electric energy in multiple communities based on a community operation model includes:
[0142] The optimization function of payment cost is as follows:
[0143]
[0144] In the above scheme, conventional centralized algorithms have drawbacks for the above solution. The present invention combines the characteristics of community user cluster distribution and adopts an alternating direction multiplier algorithm, which has good convergence characteristics and strong robustness, can perform efficient solutions while protecting privacy, and is widely used in optimization problems of separable variables.
[0145] The present invention utilizes the algorithm to decouple the overall optimization process into two levels: intra-community energy storage mutual assistance and inter-community energy storage mutual assistance, thereby achieving distributed collaborative operation among multiple communities and improving computing efficiency.
[0146] The alternating direction multiplier algorithm is used to solve the problem, specifically:
[0147]
[0148]
[0149]
[0150] and are two communication variables, where express Community The user's desired energy storage capacity; express The total amount of energy storage expected by the community;
[0151] In the above scheme, express Community The user's expected energy storage capacity is used for communication and interaction between users in the community to determine the final energy storage mutual aid electricity usage plan; express The total expected energy storage capacity of the community is used for communication and interaction between community aggregators to determine the final energy storage capacity interaction plan of each community. The two communication variables satisfy a certain equation relationship.
[0152] Introducing Lagrange dual multipliers and , introducing a penalty factor and , augmented Lagrangian function Specifically:
[0153]
[0154] According to the alternating multiplier algorithm, the augmented Lagrangian function can be decomposed into three parts: energy storage transactions within the community, energy storage transactions between communities, and optimization of community aggregators, specifically:
[0155] Energy storage transactions within the community:
[0156]
[0157] Energy storage transactions between communities:
[0158]
[0159] Optimization of community aggregator:
[0160]
[0161] According to the above decomposition, the alternating multiplier algorithm calculates the optimization of intra-community energy storage transactions, inter-community energy storage transactions and community aggregators, specifically:
[0162] initialization , , , and the number of external iterations , according to the following During the iteration, the user's energy storage device stores electricity ;
[0163]
[0164]
[0165] Update external iteration count , then the updated Lagrange dual multiplier is:
[0166]
[0167] Initialize the community's expected energy storage usage and the Lagrange dual multiplier to obtain :
[0168]
[0169]
[0170] According to the optimization of community aggregator and :
[0171]
[0172]
[0173] Update internal iteration count , then the updated Lagrange dual multiplier is:
[0174]
[0175] Determine the internal iteration situation. , is the inner loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds.
[0176] Determine the external iteration situation, let , , is the outer loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds.
[0177] Preferably, the method of formulating the transaction electricity price between communities by adopting the generalized Nash bargaining theory includes:
[0178] The transaction price between communities is obtained through the power contribution and risk level. Each community has a different contribution to the whole, and communities with a high contribution will have higher bargaining power. The bargaining factor used in the present invention is calculated from the power contribution and risk level; specifically:
[0179] The transaction electricity price obtained through electric energy contribution is as follows:
[0180]
[0181] in, and Respectively The amount of energy storage provided by the community and the amount of energy storage used; and They represent the maximum value of community mutual assistance and energy storage power usage respectively; represents the electric energy contribution factor, i.e., bargaining power; according to the above, is a positive parameter. This indicates that in the process of cooperation, each community participating in the cooperation has made a contribution, and the community that provides energy storage power has made a greater contribution than the users who use energy storage power.
[0182] The transaction electricity price obtained by the risk level is as follows:
[0183]
[0184]
[0185] The utility function that indicates the significant impact of forecast error on members, its forecast accuracy and output forecast deviation can be converted to each other; utility theory is also called limited theory or consumer theory, which is a theory that analyzes the degree of likes and dislikes of decision makers when facing different risk levels, reflecting the attitude of decision makers towards risk. Risk often corresponds to benefits, and high risks usually result in high benefits. Generally speaking, the utility functions of distributed photovoltaics and energy storage are different. Distributed photovoltaics have poor dispatchability due to their high output volatility and corresponding regulation demand volatility. The impact of forecast error on this type of members is significant. Its forecast accuracy and output forecast deviation can be converted to each other.
[0186]
[0187]
[0188] The deviation capacity of the member is related to the power of the equipment and the output error curve deviation of the undispatched member; the distributed energy storage has strong response capability and high flexibility. The greater the risk, the more profit can be obtained from it. The deviation capacity of the member is mainly related to the power of the equipment and the output error curve deviation of the undispatched member.
[0189] The risk level factors are as follows:
[0190]
[0191] Bargaining factor of users Specifically:
[0192]
[0193] in, and Respectively represent the proportion of electric energy contribution and risk level, satisfying ;
[0194] Based on the community's electricity contribution and risk level, a community cooperation model is established, specifically:
[0195]
[0196] The inter-community collaboration model translates into:
[0197] .
[0198] In the above scheme, the participation of communities and users in cooperation will reduce the dependence on the main grid energy. In order to formulate a more reasonable transaction electricity price and stimulate the participation of subjects in cooperation, the present invention adopts the generalized Nash bargaining theory. Unlike the standard Nash bargaining theory, it introduces bargaining factors to measure the contribution of partners, thereby formulating a more reasonable transaction electricity price. This method is conducive to stimulating users to actively participate in cooperation and promoting fairness in cooperation.
[0199] Preferably, the method of formulating the transaction electricity price within the community by adopting the generalized Nash bargaining theory includes:
[0200] After the inter-community transaction electricity price is formulated, the reasonable formulation of the transaction electricity price for users within the community is very important for users to actively participate in cooperation. The formulation of the transaction electricity price between users within the community adopts the same method as that between communities, differentiating the bargaining power of users; the user bargaining factors are as follows:
[0201]
[0202] Establish a cooperative benefit model, specifically:
[0203]
[0204] The cooperative benefit model is transformed into:
[0205]
[0206] According to the above model, the corresponding transaction electricity price is calculated using the alternating multiplier algorithm, and the benefits obtained by each user and community are further obtained.
[0207] See also Figure 3 , a multi-community energy storage double-layer control device, comprising:
[0208] Data acquisition module; used to obtain the energy storage power usage, energy storage power, energy demand, characteristic parameters of various equipment and daily fluctuation curve of power grid electricity price of users in the community; wherein the various equipment includes rooftop photovoltaic and distributed energy storage;
[0209] Model building module; used to establish a community operation model and constraints based on the above data; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model;
[0210] Model solving module: used to solve the community operation model using the alternating multiplier algorithm and generalized Nash bargaining theory to obtain the optimal operation strategy and the optimal transaction electricity price.
[0211] In the above scheme, for the multi-community energy optimization problem with distributed energy storage, the present invention adopts the alternating multiplier algorithm to solve the two-layer power dispatch decision results, which promotes the energy mutual assistance of distributed energy storage among multiple communities, thereby reducing the total operating cost of multiple communities. This method is concise in form, has good convergence and strong robustness, and can effectively guarantee the decision-making autonomy and information privacy of users and communities. The generalized Nash bargaining theory is further used to solve the transaction electricity price. Unlike the standard Nash theory, the generalized Nash bargaining theory takes into account the bargaining factors. The bargaining power of each community and each user is different. Therefore, this method is conducive to stimulating the enthusiasm of users to participate in cooperation, promoting mutual exchanges and cooperation between users, and benign development.
[0212] Preferably, a computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the multi-community energy storage double-layer regulation method.
[0213] The present invention also provides a device, which is a structural schematic diagram of a preferred embodiment of the device provided by the present invention, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a multi-community energy storage double-layer control method as described in any of the above embodiments is implemented.
[0214] It should be noted that, in some specific embodiments, the device may further include multiple memories and / or multiple processors, and their specific number and connection method may be set and adaptively adjusted according to actual needs.
[0215] The present invention also provides a computer-readable storage medium, specifically including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a multi-community energy storage double-layer control method as described in any of the above embodiments.
[0216] It should be noted that the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be further noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0217] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A multi-community energy storage double-layer control method, characterized in that: include: Obtain the energy storage power usage, energy storage power and energy demand of users in the community, as well as the characteristic parameters of various types of equipment and the daily fluctuation curve of the power grid electricity price; wherein the various types of equipment include rooftop photovoltaics and distributed energy storage; According to the energy storage power usage, energy storage power and energy demand of users in the community, the characteristic parameters of various equipment and the daily fluctuation curve of power grid electricity price; wherein the various equipment includes rooftop photovoltaic and distributed energy storage; establish a community operation model and constraint conditions; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model; The community operation model is specifically as follows: in, represents the total operating cost before multi-community cooperation, and Respectively Community Energy costs of users before and after cooperation; The user energy cost sub-model is specifically: in, express Community Cost to users, and Respectively represent users exist The price of buying and selling electricity from the grid at any given moment; and Indicates the amount of electricity a user buys and sells to the grid; is the total time period in a day; The distributed energy storage sub-model is specifically: in, and Respectively Moment and Moment Community user of stored power; and Indicates the initial power and final power; Indicates the maximum storage capacity of the user's energy storage; and They represent the charging and discharging efficiency of energy storage respectively; and Respectively represent the charge and discharge power; and Respectively represent the charging and discharging status of energy storage, which is a Boolean variable used to ensure that the user's energy storage device is not charged and discharged at the same time; Indicates the maximum charging and discharging power of the user's energy storage; The multi-community expenditure sub-model is specifically: in, represents the power loss cost coefficient of energy storage; and Represent multiple communities Total charging power and discharging power at all times; represents the line loss price, Indicates line loss power; The photovoltaic power generation output sub-model is specifically: in, Representing the community user exist Photovoltaic output at all times; Indicates the maximum output of photovoltaic power; The constraints are specifically: in, Indicates user The local electricity demand power; The alternating multiplier algorithm and generalized Nash bargaining theory are used to solve the community operation model to obtain the optimal operation strategy and the optimal transaction electricity price; including: Based on the community operation model, the alternating direction multiplier algorithm is used to dispatch electricity in multiple communities to reduce the payment cost; the payment cost includes the user energy cost and the multi-community expenditure cost; The generalized Nash bargaining theory is used to set the transaction electricity prices between and within communities; The method of reducing the payment cost by using the alternating direction multiplier algorithm for multi-community power dispatch based on the community operation model includes: The optimization function of payment cost is as follows: The alternating direction multiplier algorithm is used to solve the problem, specifically: and are two communication variables, where express Community The user's desired energy storage capacity; express The total amount of energy storage expected by the community; Introducing Lagrange dual multipliers and , introducing the penalty factor and , augmented Lagrangian function Specifically: According to the alternating multiplier algorithm, the augmented Lagrangian function can be decomposed into three parts: energy storage transactions within the community, energy storage transactions between communities, and optimization of community aggregators, specifically: Energy storage transactions within the community: Energy storage transactions between communities: Optimization of community aggregator: According to the above decomposition, the alternating multiplier algorithm calculates the optimization of intra-community energy storage transactions, inter-community energy storage transactions and community aggregators, specifically: initialization , , , and the number of external iterations , according to the following During the iteration, the user's energy storage device stores electricity ; Update external iteration count , then the updated Lagrange dual multiplier is: Initialize the community's expected energy storage usage and the Lagrange dual multiplier, and obtain : According to the optimization of community aggregator and : Update internal iteration count , then the updated Lagrange dual multiplier is: Determine the internal iteration situation. , is the inner loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds. Determine the external iteration situation, let , , is the outer loop convergence coefficient. If the inequality does not hold, continue to iterate until it holds.
2. A multi-community energy storage double-layer control method according to claim 1, characterized in that: The method of using the generalized Nash bargaining theory to formulate the transaction electricity price between communities includes: The inter-community electricity price is obtained through the electricity contribution and risk level, specifically: The transaction electricity price obtained through electric energy contribution is as follows: in, and Respectively The amount of energy storage provided by the community and the amount of energy storage used; and They represent the maximum value of community mutual assistance and energy storage power usage respectively; represents the electric energy contribution factor, i.e., bargaining power; The transaction electricity price obtained by the risk level is as follows: The utility function that indicates the significant impact of forecast error on members, whose forecast accuracy and output forecast deviation can be converted into each other; It indicates that the deviation capability of a member is related to the power of the equipment and the output error curve deviation of the undispatched member; The risk level factors are as follows: Bargaining factor of users Specifically: in, and Respectively represent the proportion of electric energy contribution and risk level, satisfying ; Based on the community's electricity contribution and risk level, a community cooperation model is established, specifically: The inter-community collaboration model translates into: 。 3. A multi-community energy storage double-layer control method according to claim 1, characterized in that: The method of using the generalized Nash bargaining theory to formulate the transaction electricity price within the community includes: The user bargaining factors are as follows: Establish a cooperative benefit model, specifically: The cooperative benefit model is transformed into: According to the above model, the corresponding transaction electricity price is calculated using the alternating multiplier algorithm, and the benefits obtained by each user and community are further obtained.
4. A multi-community energy storage double-layer control device, using a multi-community energy storage double-layer control method according to claim 1, characterized in that: include: Data acquisition module; Used to obtain the energy storage usage, energy storage power, energy demand, characteristic parameters of various equipment, and daily fluctuation curve of power grid electricity prices of users in the community; wherein the various equipment includes rooftop photovoltaics and distributed energy storage; Model building module; used to establish a community operation model and constraints based on the energy storage power usage, energy storage power, energy demand, characteristic parameters of various equipment, and daily fluctuation curve of power grid electricity prices of users in the community; wherein the various equipment includes rooftop photovoltaics and distributed energy storage; wherein the community operation model includes a user energy cost sub-model, a distributed energy storage sub-model, a multi-community expenditure sub-model, and a photovoltaic power generation output sub-model; Model solving module: used to solve the community operation model using the alternating multiplier algorithm and generalized Nash bargaining theory to obtain the optimal operation strategy and the optimal transaction electricity price.
5. A device, characterized in that: It comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a multi-community energy storage double-layer control method as described in any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a multi-community energy storage double-layer control method as described in any one of claims 1 to 3.
