A system and method for optimizing day-ahead market scheduling

By introducing the A3C model and policy learning, combined with value function learning, the problem of traditional energy storage scheduling optimization models being difficult to make optimal decisions in complex environments is solved, and optimal scheduling and optimal control of energy storage systems in the power market are achieved. , improving grid stability and market efficiency.

CN117713153BActive Publication Date: 2024-09-10GUANGZHOU HUIDIAN CLOUD INTERNET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311685502.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2024-09-10
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Traditional energy storage dispatch optimization models are difficult to obtain accurate results in complex environments and cannot flexibly respond to dynamic changes, resulting in low efficiency and inaccurate results.

Method used

The asynchronous advantageous action evaluation algorithm (A3C) model in the reinforcement learning algorithm is used, combined with policy learning and value function learning, to adjust the state of the energy storage system through the interaction of environmental components and optimization components to achieve adaptive scheduling and optimal control.

Benefits of technology

Finding the optimal charging and discharging strategy for the energy storage system in the power market environment improves grid stability and market operation efficiency, reduces computing resource requirements, and improves dispatch accuracy and resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117713153B
    Figure CN117713153B
Patent Text Reader

Abstract

The present invention discloses a system for optimizing the scheduling of the day-ahead market, which includes an environment component, a first optimization component, and a plurality of parallel second optimization components. The environment component is used to calculate the benefits and update the state based on the charging and discharging power and constraint parameters of the input energy storage system. The first optimization component updates the parameters of the first and second optimization components based on the accumulated local gradient of the second optimization component. The second optimization component determines the accumulated local gradient based on the reward and the updated state. The structure of the second optimization component is the same as that of the first optimization component, including a strategy module and an evaluation module. The strategy module is used to determine the action according to the state, and the evaluation module is used to calculate the advantage function to update the strategy module, and the strategy module and the evaluation module both include a residual structure. The system can find the optimal declaration strategy in the continuous action space of the energy storage system to achieve the scheduling of the optimal charging and discharging power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy storage scheduling, and in particular to a system and method for optimizing scheduling in a day-ahead market. Background Art

[0002] With the transformation of energy structure and the rapid popularization and development of renewable energy such as wind power and solar power, the instability of output power has become a challenge for power system dispatch. As a dispatching resource, energy storage system can serve as a dynamic power reserve to solve the challenges brought to the power system by the uncertainty and intermittency of renewable energy. On the other hand, it can also optimize the power load curve, balance the gap between supply and demand, reduce the idleness and overload of the power system, and thus improve the stability and reliability of the power system. In addition, energy storage system can also participate in the dispatch of the power spot market as a flexible resource, thereby increasing market competition, improving market operation efficiency, providing the market with more energy options, and promoting the rationality of power pricing and ensuring the fairness and transparency of the market.

[0003] Traditional energy storage dispatch optimization models usually rely on accurate environmental models and parameters, such as the system's dynamic model, variable constraints, etc. In complex practical situations, it is often difficult to obtain an accurate environmental model, and the uncertainty of the model may lead to inaccurate dispatch results. At the same time, traditional energy storage dispatch optimization models cannot flexibly respond to dynamic environments. For example, fixed rules and parameters established in advance cannot adapt to environmental changes in a timely manner. In addition, they are subject to a large amount of manual intervention. Therefore, it is difficult for them to learn and make optimal dispatch decisions in the ever-changing power market environment. The final effect is often inefficient and inaccurate.

[0004] Specifically, the existing energy storage dispatch optimization models in the power market mainly include enumeration method, mathematical optimization algorithm and intelligent optimization algorithm. Among them, the enumeration method is also called exhaustive method, which is a method to solve the problem by enumerating all possible situations. This method is usually applied to situations where the problem scale is small or the number of possible solutions is limited. The basic idea of ​​the enumeration method is to traverse all possible solutions through a loop, and then judge whether the solution meets the requirements according to specific conditions or objective functions. The enumeration method is simple and easy to understand, suitable for less complex problems, and can get an exact answer, but when the problem scale is large or the number of possible solutions is very large, its time complexity is often very high, resulting in excessive calculation or even impossible to achieve. The enumeration method is simple and easy to implement, especially for the problem that the variables in the energy storage dispatch optimization model in the power market are continuous. Enumerating all possible combinations or solutions often requires very large computing resources and time, and is not easy to achieve. Mathematical optimization algorithm is a solution algorithm in optimization theory, mainly including linear programming method, nonlinear programming method and mixed integer linear programming method. Linear programming is a mathematical optimization method for solving linear objective functions and optimal solutions under linear constraints. It assumes that the objective function and constraints are linear and the variables are continuous real numbers. Nonlinear programming is a mathematical optimization method for solving nonlinear objective functions or optimal solutions under nonlinear constraints. Common nonlinear programming algorithms include gradient descent, quasi-Newton method, and global optimization algorithm. Mixed integer linear programming is a mathematical optimization method for solving problems that contain linear objective functions, linear constraints, and integer variables. Linear programming requires that the objective function and constraints are linear relationships, which limits its application in solving nonlinear problems. At the same time, since linear programming problems are continuous, there may be multiple optimal solutions with the same objective function value, which increases the complexity of the problem. Nonlinear programming usually requires an initial point as a starting point, and there may be a local optimal solution problem that depends on the initial point. If the initial point is not selected appropriately, the global optimal solution may not be found. Mixed integer linear programming problems are difficult problems, which means that it is difficult to find efficient and accurate solutions for large-scale problems. At the same time, mixed integer linear programming problems may not be able to find the global optimal solution, but only an approximate solution. Intelligent optimization algorithms are a type of computational model that simulates biological and social behaviors in nature. By continuously searching the solution space, they gradually evolve toward the optimal solution. This type of algorithm has good robustness for optimization problems and can adaptively adjust the search strategy. Such as particle swarm optimization, genetic algorithm, simulated annealing, taboo search, etc. This method is a heuristic algorithm and relies on a random search strategy search process, so it may fall into a local optimal solution and fail to find the global optimal solution.At the same time, the parameter values ​​in the intelligent optimization algorithm largely determine the search effect, and the optimal parameter values ​​for different problems are different. Appropriate parameter settings have a great impact on the convergence speed and final effect of the algorithm. Summary of the invention

[0005] In view of some or all of the problems in the prior art, the first aspect of the present invention provides a system for optimizing the day-ahead market scheduling, which effectively adjusts the state of the energy storage system by introducing an asynchronous advantage actor-critic (A3C) model in a reinforcement learning algorithm and combining two learning methods, strategy learning and value function learning, thereby achieving adaptive scheduling and optimization control, so as to reasonably utilize resources and help energy conservation and emission reduction. The system includes:

[0006] An environment component (Environment), which includes constraint parameters, and is used to calculate a reward (Reward) and update a state based on an input action (Action) and the constraint parameters, wherein the action includes charging and discharging power of the energy storage system, and the reward includes revenue of the energy storage system;

[0007] A first optimization component, which is used to update component parameters based on the accumulated local gradient sent by the second optimization component and synchronize to each second optimization component, wherein the first optimization component includes a first strategy module (Actor) and a first evaluation module (Critic);

[0008] A plurality of parallel second optimization components, wherein each second optimization component is communicatively connected to the first optimization component to send the accumulated local gradient determined based on the reward and the updated state to the first optimization component, and each second optimization component has the same structure as the first optimization component, including:

[0009] a second strategy module, configured to determine an action according to a state provided by the environment component, wherein the second strategy module comprises a residual structure; and

[0010] A second evaluation module is used to determine an advantage function (Advantage) based on the reward (Reward) and the updated state, and feed it back to the second strategy module to update the second strategy module, wherein the second evaluation module includes a residual structure.

[0011] Furthermore, the number of the environmental components is the same as that of the second optimization components.

[0012] Furthermore, the constraint parameters include the maximum energy value (State of Charge, SOC) of the energy storage system, the minimum energy value, the starting energy value, the ending energy value, the charging efficiency, the discharging efficiency, the rated capacity, the maximum power value of charging and discharging, the minimum power value of charging and discharging, the time when the energy storage system discharges at full power, the transmission and distribution price, the government fund and surcharge, the day-ahead clearing price at 24 time points every day, and the compensation price.

[0013] Furthermore, the initialization state of the system is a one-dimensional list, and the one-dimensional list includes time t and the energy state of the energy storage system corresponding to the time t.

[0014] Furthermore, the first optimization component uses the frequency of past charge and discharge moments as weights to update the component parameters.

[0015] Based on the system for optimizing the day-ahead market scheduling as described above, the second aspect of the present invention provides a method for optimizing the day-ahead market scheduling, comprising:

[0016] Determine constraint parameters of an environment component, wherein the environment component includes N identical environment components, where N is the maximum number of threads of a CPU of the computer;

[0017] Constructing and initializing an optimization component, wherein the optimization component includes a first optimization component and N second optimization components, and the N second optimization components correspond one to one to the N environment components;

[0018] Each second optimization component determines an action according to the initial state and sends it to the corresponding environment component respectively;

[0019] The environment component updates the state according to the action, and calculates the reward value and sends it to the second optimization component;

[0020] The second optimization component updates the accumulated local gradient and sends it to the first optimization component, and at the same time calculates the advantage function to update the strategy module;

[0021] The first optimization component updates component parameters according to the accumulated local gradients sent by each second optimization component and sends the updated component parameters to the second optimization component;

[0022] updating the first optimization component and the second optimization component based on the updated parameters, and repeating the steps of determining the actions to updating the components as described above until the iteration end requirement is met; and

[0023] The final total benefit is determined based on the reward value obtained in each iteration.

[0024] Furthermore, the energy state of the energy storage system corresponding to the time t is calculated based on the energy value and rated capacity of the energy storage system at the time t.

[0025] Furthermore, the action includes charging and discharging power values ​​at multiple consecutive moments, wherein the accuracy of the charging and discharging power values ​​is 0.01.

[0026] Furthermore, the reward value is calculated according to the following formula:

[0027]

[0028] in, The discharge power and the charging power output by the second optimization component are respectively, is the electricity price in the day-ahead market, is the user-side compensation price, It is the sum of transmission and distribution prices, government funds and surcharges.

[0029] Based on the method for optimizing the day-ahead market scheduling as described above, the third aspect of the present invention provides an electronic device for optimizing the day-ahead market scheduling, which includes a memory and a processor, wherein the memory is configured to store a computer program, and the computer program executes the method for optimizing the day-ahead market scheduling as described above when the processor is running.

[0030] The present invention provides a system and method for optimizing the day-ahead market scheduling. Aiming at the dynamic and difficult-to-determine characteristics of the power market environment, the improved A3C model is used to adjust the charging and discharging power of the energy storage system. Compared with the existing mathematical optimization algorithms and intelligent optimization algorithms, the system and method can find the optimal declaration strategy in the continuous action space of the energy storage system to achieve the scheduling of the optimal charging and discharging power. For example, charging when the electricity price is low can smooth the load curve of the power grid, reduce the difference between load peaks and valleys, and thus improve the operation stability of the power grid; while discharging when the electricity price is high can reduce the pressure on the power system and avoid overload operation of the power grid. Compared with the existing enumeration method, the system and method are more efficient and require fewer computing resources. At the same time, due to the higher scheduling and control accuracy, it also provides data and decision-making basis for optimizing resource utilization and energy conservation and emission reduction. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.

[0032] Figure 1 A schematic structural diagram of a system for optimizing day-ahead market scheduling according to an embodiment of the present invention is shown;

[0033] Figure 2 A schematic diagram showing a residual structure in a strategy and evaluation module according to an embodiment of the present invention; and

[0034] Figure 3 A flow chart of a method for optimizing day-ahead market scheduling according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0035] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that various embodiments may be implemented without one or more specific details or with other replacement and / or additional methods or components. In other cases, well-known structures or operations are not shown or described in detail to avoid obscuring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of embodiments of the present invention. However, the present invention is not limited to these specific details.

[0036] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.

[0037] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.

[0038] In the present invention, each module of the system according to the present invention can be implemented using software, hardware, firmware or a combination thereof. When the module is implemented using software, the function of the module can be implemented by a computer program flow, for example, the module can be implemented by a code segment (such as a code segment of a language such as C, C++) stored in a storage device (such as a hard disk, a memory, etc.), wherein the corresponding function of the module can be implemented when the code segment is executed by a processor. When the module is implemented using hardware, the function of the module can be implemented by setting a corresponding hardware structure, for example, the function of the module can be implemented by hardware programming a programmable device such as a field programmable gate array (FPGA), or the function of the module can be implemented by designing an application-specific integrated circuit (ASIC) including electronic devices such as a plurality of transistors, resistors and capacitors. When the module is implemented using firmware, the function of the module can be written into a read-only memory such as an EPROM or EEPROM of the device in the form of a program code, and the corresponding function of the module can be implemented when the program code is executed by a processor. In addition, certain functions of the module may need to be implemented by separate hardware or by collaboration with the hardware, for example, the detection function is implemented by corresponding sensors (such as proximity sensors, acceleration sensors, gyroscopes, etc.), the signal transmission function is implemented by corresponding communication devices (such as Bluetooth devices, infrared communication devices, baseband communication devices, Wi-Fi communication devices, etc.), the output function is implemented by corresponding output devices (such as displays, speakers, etc.), and so on.

[0039] In practical applications, the power market environment is constantly changing and does not conform to the existing common model structure. Traditional energy storage scheduling optimization models are difficult to flexibly respond to such dynamic environments, so it is difficult to make optimal scheduling decisions. After research, the inventors found that the A3C model in the reinforcement learning algorithm can be applied to dynamic environments. Specifically, based on the difficulty of convergence of the Actor-Critic algorithm, the A3C model uses a multi-threaded method to interact with the environment in multiple auxiliary threads of the same network at the same time. Each auxiliary thread will summarize the learning results and upload them to the global network, and then regularly synchronize its own neural network parameters with the parameters in the global network to guide subsequent environmental interactions. In order to make the A3C model more suitable for the day-ahead market optimization scheduling, the inventor further studied and found that if the existing A3C model is improved to a certain extent, its strategy network, evaluation network and gradient update method, that is, the optimal strategy can be learned directly through interaction with the environment, and the decision-making performance can be gradually improved in continuous trial and error, and the improved A3C model can adapt to the dynamic environment, and the type of environmental model does not need to be determined to make the best decision in the environment, so it can be applied to various situations such as nonlinear, non-static or non-deterministic, and has wide applicability. In addition, the improved A3C model can deal with the problem of long-term returns, that is, the long-term benefits can be considered through the discount factor, rather than just focusing on the immediate benefits. At the same time, the improved A3C model has advantages in dealing with complex problems, and can obtain the representation of high-dimensional input states by establishing technologies such as deep neural networks, and perform efficient decision-making learning. Therefore, the improved A3C model can be applied to the optimization scheduling of the power market environment. Based on this, in order to solve the problem of scheduling the optimal charging and discharging power of the energy storage system in the power day-ahead trading market, the present invention provides a system and method for optimizing the scheduling of the day-ahead market, which optimizes the scheduling of the day-ahead market based on the improved A3C model. By introducing the A3C model in the reinforcement learning algorithm and improving its policy network, evaluation network and gradient update method, the state of the energy storage system can be effectively adjusted by combining the two learning methods of policy learning and value function learning, and the optimal declaration strategy can be found in the continuous action space of the energy storage system, thereby realizing adaptive scheduling and optimization control.

[0040] The technical solution of the present invention is further described below in conjunction with the accompanying drawings of the embodiments.

[0041] Figure 1 FIG. 1 is a schematic diagram showing a structure of a system for optimizing day-ahead market scheduling according to an embodiment of the present invention. Figure 1As shown, a system for optimizing the day-ahead market scheduling includes an environment component (Environment) 101, a first optimization component 102, and a plurality of parallel second optimization components 103. The environment component 101 includes a plurality of components, and is communicatively connected to the second optimization component 103 in a one-to-one correspondence. The environment component 101 is used to update the state (State) according to the action (Action) output by the second optimization component 103, and calculate the reward (Reward) and feed it back to the second optimization component 103. The second optimization component 103 is communicatively connected to the first optimization component 102. The first optimization component 102 is used to update the parameters of the first and second optimization components based on the accumulated local gradient uploaded by the second optimization component. The second optimization component 103 determines the action according to the state output by the environment component 101 on the one hand, and determines the accumulated local gradient based on the reward calculated by the environment component 101 and the updated state on the other hand, and can also calculate the advantage function (Advantage) according to the reward and the updated state to update the strategy.

[0042] In one embodiment of the present invention, the environment component 101 is used to calculate the reward and update the state based on the input action under the preset constraint parameters. In one embodiment of the present invention, the action mainly includes the charging and discharging power of the energy storage system, and the reward refers to the income of the energy storage system. In one embodiment of the present invention, the reward value is calculated according to the following formula:

[0043]

[0044] in, The discharge power and the charging power output by the second optimization component are respectively, is the electricity price in the day-ahead market, is the user-side compensation price, It is the sum of transmission and distribution prices, government funds and surcharges.

[0045] Based on this, it can be seen that in one embodiment of the present invention, the preset constraint parameters include:

[0046] Energy storage status constraint: The calculation formula for the electricity reported on the day before is: in represents the day-ahead electricity consumption reported by the energy storage system at time t, They represent the charging and discharging amount of the energy storage system at time t-1 in the day-ahead trading market. At the same time, the day-ahead reported amount must also meet the constraints of the maximum and minimum energy values ​​of the energy storage system, that is, in Where Δt is the time, η in For charging efficiency, is the charging power in the day-ahead trading market, η out is the discharge efficiency, and is the discharge power in the day-ahead trading market;

[0047] Single-day total electricity consumption constraint: The total electricity consumption reported daily by the energy storage system must not exceed the rated capacity of the energy storage system.

[0048] Charging and discharging power constraints: The charging and discharging power of the energy storage system in the day-ahead trading market must meet the following constraints:

[0049]

[0050]

[0051]

[0052]

[0053] That is, in the day-ahead trading market, the energy storage system cannot charge and discharge at the same time at a certain point in time, and the charging and discharging power must be within the maximum and minimum power value range of the energy storage system respectively;

[0054] Arbitrage recovery rules constraints: the charging and discharging strategies in the real-time market are consistent with the declared strategies in the day-ahead trading market, that is, they are not subject to arbitrage recovery rules; and

[0055] Capacity compensation constraint: Since power trading centers in some regions, such as Shandong Power Trading Center, etc., will apply the power spot market capacity compensation price mechanism, reasonable compensation will be made to the reserved adjustment and spare capacity of the power generation entity to ensure that the unit can also obtain capacity benefits when it is shut down and standby, thereby helping the company to recover capacity costs. Therefore, in one embodiment of the present invention, the constraint parameters also include the capacity compensation constraint of the energy storage system, that is, the energy storage system will discharge at full power at least once a day.

[0056] The first optimization component 102 is used to update the component parameters based on the accumulated local gradients sent by each second optimization component 103, and synchronize them to each second optimization component. The first optimization component includes a first strategy module (Actor) 121 and a first evaluation module (Critic) 122. In view of the characteristics of continuous charging and continuous discharging at adjacent moments in some day-ahead trading markets, in order to make the system pay more attention to the learning of charging and discharging moments, in one embodiment of the present invention, the frequency of past charging and discharging moments is used to calculate the charging and discharging moments. Update the component parameters as weights:

[0057]

[0058]

[0059] The structure of the second optimization component 103 is the same as that of the first optimization component 102, and also includes a strategy module and an evaluation module. However, in the second optimization component 103, its second strategy module 131 is used to determine an action (Action) according to the state (State) provided by the environment component 101, and the second evaluation module 132 is used to determine the advantage function (Advantage) based on the reward (Reward) and the updated state, and feed back to the second strategy module 131 to update the second strategy module 131. In some day-ahead trading markets, such as the Shandong day-ahead trading market, the daily charging and discharging time is clustered, that is, there are characteristics of continuous charging and continuous discharging at adjacent moments, and the energy storage system actually charges and discharges for a short time every day, and most of the time is in a non-action moment. Therefore, in order to accelerate convergence, in one embodiment of the present invention, a residual network structure is added to the first strategy module 121, the first evaluation module 122, the second strategy module 131 and the second evaluation module 132. Figure 2 A schematic diagram of the structure of the residual structure in the strategy and evaluation module of an embodiment of the present invention is shown. This can accelerate the training process on the one hand, and on the other hand, better information transmission can be performed through jump connections, thereby alleviating the gradient disappearance and gradient explosion.

[0060] As mentioned above, the first optimization component 102 and the plurality of parallel second optimization components 103 form an improved A3C model, wherein the first optimization component 102 serves as the main thread of the global network of the improved A3C model, and the second optimization component 103 serves as the auxiliary thread of the local network of the improved A3C model. In one embodiment of the present invention, the state of the improved A3C model is a one-dimensional list [t, E t ], where E t is the energy state of the energy storage system at time t. In one embodiment of the present invention, the energy state of the energy storage system is determined according to the energy value SOC and the rated capacity of the energy storage system at time t:

[0061] E t = SO* rated capacity of the energy storage system at time t.

[0062] In one embodiment of the present invention, the action space of the improved A3C model is composed of the charging and discharging power of the energy storage system. The expression is: A={a1,a2,...,a n}. Its value range is [-P max ,P max], where -P and P represent the power values ​​of charging and discharging, respectively. At the same time, the accuracy of the P value can be determined according to the declaration rules of the day-ahead trading market in each region. For example, according to the declaration rules of the day-ahead trading market in Shandong, the accuracy of the P value can be set to 0.01.

[0063] In the process of interaction between the agent and the external environment, the improved A3C model needs to continuously adjust the action of the agent according to the reward value returned by the external environment, so it is necessary to set other necessary parameters of the model to calculate the reward value of each selected charging and discharging action, and update the action and state accordingly. In one embodiment of the present invention, the additional parameters set by the model include: the rated capacity of the energy storage system, the maximum charging power of the energy storage system, the starting SOC of the energy storage system, the ending SOC of the energy storage system, the charging efficiency of the energy storage system, the discharge efficiency of the energy storage system, the minimum SOC of the energy storage system, the maximum SOC of the energy storage system, the transmission and distribution price, and the government fund and surcharge. In addition, for the special settings of some power trading markets, parameters such as day-ahead price and compensation price can also be set. For example, the income of Shandong Power Trading Market is settled on an hourly basis, so the day-ahead clearing price and compensation price at 24 time points every day can be calculated. Among them, since the trading center announces the price every 15 minutes, it is also necessary to perform arithmetic averaging on the day-ahead price within each hour, and the compensation price can be calculated according to 99.1*the user-side capacity compensation coefficient k at each time point in the month.

[0064] As mentioned above, the improved A3C model in the embodiment of the present invention is mainly improved in strategy, evaluation network structure, and global network parameter update formula, and is more suitable for the characteristics of continuous charging and continuous discharging at adjacent times in the day-ahead trading market.

[0065] Based on the system for optimizing the day-ahead market dispatch as described above, Figure 3 A flow chart of a method for optimizing day-ahead market scheduling according to an embodiment of the present invention is shown as follows: Figure 3 As shown, a method for optimizing scheduling in a day-ahead market includes:

[0066] First, in step 301, a constraint environment is constructed. The constraint parameters of the environment components as described above are determined, that is, a rule constraint environment for the energy storage system to participate in the day-ahead trading market is constructed;

[0067] Next, in step 302, the optimization component is initialized. The optimization component is constructed and initialized, wherein the optimization component includes a first optimization component and N parallel second optimization components, wherein N is the maximum number of threads of the computer CPU; the first optimization component and the plurality of parallel second optimization components construct an improved A3C model, wherein the state, action space, parameters, architecture, policy network, evaluation network, and global network parameter update formula of the improved A3C model are as described above;

[0068] Next, in step 303, the second optimization component interacts with the environment component. Each second optimization component interacts with the environment component, wherein the number of the environment components is the same as the second optimization component, which is N. In one embodiment of the present invention, the value of N is the maximum number of threads of the computer CPU. Initially, the second optimization component takes the initial state S0 of the environment component as input to calculate the output π(S0) in the second strategy network and the output V(S0) in the second evaluation network, and selects a0=argmax a π(a|S0) is the action executed at this time and sent to the environment component;

[0069] Next, in step 304, the reward value is calculated and the state is updated. The environment component updates the state according to the action, and calculates the reward value and sends it to the second optimization component. After receiving the transaction action, the environment component jumps to the next transaction state s t+1 , and calculate the reward value at this time. In one embodiment of the present invention, the reward value is calculated based on the income of the energy storage system:

[0070]

[0071] in, are the discharge and charging powers reported on the previous day, i.e., the transaction actions output by the second optimization component. is the electricity price in the day-ahead market, is the user-side compensation price, is the sum of the transmission and distribution price, government funds and additional. After the reward value is calculated, the environment component will set the next transaction state s t+1 and the reward value r t Send to a second optimization component;

[0072] Next, in step 305, the accumulated local gradient is updated. The second optimization component updates the accumulated local gradient and sends it to the first optimization component, and calculates the advantage function to update the second strategy module. The second optimization component receives s t+1 and r t Then, the accumulated local gradients in the second strategy component and the second evaluation component are updated respectively. The update formula is as follows:

[0073]

[0074]

[0075] Each second optimization component sends the accumulated local gradient in the respective strategy and evaluation network to the first optimization component;

[0076] Next, in step 306, the component parameters are updated. After receiving the strategies sent by the second optimization components and the accumulated local gradients in the evaluation network, the first optimization component updates its component parameters:

[0077]

[0078]

[0079] After the component parameters are updated, the t+1 As the new input of the second optimization component, repeat steps 303 to 306 until the iteration end requirement is met. At this time, the model training is completed and the action set and reward set are output. In one embodiment of the present invention, the iteration end requirement refers to reaching the maximum number of iterations; and

[0080] Finally, in step 307, the total benefit is calculated. The sum of all elements in the reward set is calculated to obtain the final total benefit, thus completing the day-ahead market optimization scheduling.

[0081] Based on the method for optimizing the day-ahead market scheduling as described above, the present invention also provides an electronic device for optimizing the day-ahead market scheduling, which includes a memory and a processor, wherein the memory is configured to store a computer program, and the computer program executes the method for optimizing the day-ahead market scheduling as described above when the processor is running.

[0082] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.

Claims

1. A system for optimizing day-ahead market scheduling, characterized in that: The initialization state of the system includes a one-dimensional list, the one-dimensional list includes a time t and an energy state of the energy storage system corresponding to the time t, and the system includes: An environment component, comprising constraint parameters, wherein the environment component is configured to calculate a reward and update a state based on an input action and the constraint parameters, wherein the action comprises charging and discharging power of an energy storage system, and the reward comprises a profit of the energy storage system; A first optimization component, configured to update component parameters based on the accumulated local gradient sent by the second optimization component and synchronize to each second optimization component, wherein the first optimization component includes a first strategy module and a first evaluation module; A plurality of parallel second optimization components, wherein each second optimization component is communicatively connected to the first optimization component to send the accumulated local gradient determined based on the reward and the updated state to the first optimization component, and each second optimization component has the same structure as the first optimization component, including: a second strategy module configured to determine an action according to a state output by the environment component, wherein the second strategy module comprises a residual structure; and A second evaluation module is configured to determine an advantage function based on the reward and the updated state, and feed the advantage function back to the second policy module to update the second policy module, wherein the second evaluation module includes a residual structure.

2. The system according to claim 1, characterized in that The number of the environment components is the same as the number of the second optimization components.

3. The system according to claim 1, characterized in that The constraint parameters include the maximum energy value, minimum energy value, starting energy value, ending energy value, charging efficiency, discharging efficiency, rated capacity, maximum power value of charging and discharging, minimum power value of charging and discharging, the time when the energy storage system discharges at full power, transmission and distribution prices, government funds and surcharges, day-ahead clearing prices at 24 time points every day, and compensation prices.

4. The system according to claim 1, characterized in that The first optimization component uses the frequency of past charge and discharge moments as weights to update the component parameters.

5. A method for optimizing day-ahead market scheduling, characterized in that: The system according to any one of claims 1 to 4 is used to perform day-ahead market optimization scheduling, the method comprising the steps of: Determine constraint parameters of an environment component, wherein the environment component includes N identical environment components, where N is the maximum number of threads of a CPU of the computer; Constructing and initializing an optimization component, wherein the optimization component includes a first optimization component and N second optimization components, and the N second optimization components are communicatively connected to the N environment components in a one-to-one correspondence; Each second optimization component determines an action according to the initial state and sends it to the corresponding environment component respectively; The environment component updates the state according to the action, and calculates the reward value and sends it to the second optimization component; The second optimization component updates the accumulated local gradient and sends it to the first optimization component, and at the same time calculates the advantage function to update the strategy module; The first optimization component updates component parameters according to the accumulated local gradients sent by each second optimization component and sends the updated component parameters to the second optimization component; The first optimization component and the second optimization component are updated based on the updated parameters, and the steps of determining the components to be updated as described above are repeated until the iteration end requirement is met; as well as According to the reward value obtained in each iteration, the final total benefit and the charging and discharging power of the energy storage system are determined.

6. The method according to claim 5, characterized in that The energy state of the energy storage system corresponding to the time t is calculated based on the energy value of the energy storage system at the time t and the rated capacity.

7. The method according to claim 5, characterized in that The action includes the charging and discharging power values ​​of the energy storage system at multiple consecutive moments, wherein the accuracy of the charging and discharging power values ​​is 0.

01.

8. The method according to claim 5, characterized in that The reward value is calculated according to the following formula: in, The discharge power and the charging power output by the second optimization component are respectively, is the electricity price in the day-ahead market, is the user-side compensation price, It is the sum of transmission and distribution prices, government funds and surcharges.

9. The method according to claim 5, characterized in that The iteration end requirement includes the number of iterations reaching a preset value.

10. An electronic device for optimizing day-ahead market scheduling, characterized in that: It comprises a memory and a processor, wherein the memory is configured to store a computer program, and when the computer program is run on the processor, the method for optimizing the day-ahead market scheduling as claimed in any one of claims 5 to 9 is executed.