Power grid regulation-oriented user side resource dynamic aggregation method and related device

Through the particle swarm method that dynamically adjusts the number of particles and inertia weight, the day-ahead and intra-day control models are optimized, which solves the problem of low accuracy of distribution network control in the existing technology and achieves flexible adjustment and efficient control of user-side resources.

CN118659532APending Publication Date: 2024-09-17ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410836097.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing technology only considers the regulation of the day before or within the day in the regulation of distribution network, resulting in low accuracy of distribution network aggregation regulation, making it difficult to use the flexible regulation characteristics of user-side resources. Moreover, the number of particles in the traditional particle swarm algorithm is fixed, resulting in a small search space. It is easy to fall into the local optimal solution.

Method used

A user-side resource dynamic aggregation method for power grid regulation is adopted. By receiving the load status information of user-side resources, the day-ahead and intra-day regulation models are optimized based on the particle swarm method, and the number of particles and inertia weight are dynamically adjusted to improve search accuracy and regulation accuracy.

Benefits of technology

It realizes day-ahead and intraday two-way complementary aggregation regulation, improves the accuracy of demand response regulation, avoids local optimal solutions, and improves the overall accuracy and efficiency of distribution network regulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659532A
    Figure CN118659532A
Patent Text Reader

Abstract

The invention discloses a user side resource dynamic aggregation method for power grid regulation and control and a related device. A resource regulation and control platform receives load state information of user side resources uploaded by a power distribution area; based on the load state information, optimizing the day-ahead regulation and control optimization model by adopting a particle swarm method to obtain a day-ahead optimization regulation and control strategy, and updating the number of particles in the particle swarm method based on a historical intra-day optimization regulation and control strategy in the optimization process; the day-ahead optimization regulation and control strategy is executed, the day-ahead optimization regulation and control strategy is sent to the power distribution area, the power distribution area constructs an intra-day regulation and control optimization model, the intra-day regulation and control optimization model is optimized based on the historical day-ahead optimization regulation and control strategy to obtain an intra-day optimization regulation and control strategy, and the intra-day optimization regulation and control strategy is executed. And the intra-day optimization regulation and control strategy is sent to the resource regulation and control platform. The technical problem that the distribution network aggregation regulation and control precision is low in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power distribution networks, and in particular to a method and related devices for dynamically aggregating user-side resources for power grid regulation. Background Art

[0003] The existing resource control methods only consider the control before or within the day, resulting in low distribution network aggregation control accuracy, making it difficult to give full play to the flexible adjustment characteristics of user-side resources. In addition, the existing technology uses the traditional particle swarm algorithm for control optimization. The number of particles is fixed, the particle search space is small, and it is easy to fall into the local optimal solution, resulting in low control accuracy. Summary of the invention

[0004] The present application provides a method and related devices for dynamic aggregation of user-side resources for power grid regulation, which are used to improve the existing technology that only considers regulation before or within the day, resulting in low distribution network aggregation regulation accuracy and difficulty in giving full play to the flexible adjustment characteristics of user-side resources, and the existing technology uses a traditional particle swarm algorithm for regulation optimization, the number of particles is a fixed value, the particle search space is small, and it is easy to fall into a local optimal solution, resulting in a technical problem of low regulation accuracy.

[0005] In view of this, the first aspect of the present application provides a user-side resource dynamic aggregation method for power grid regulation, which is applied to a resource regulation platform. The method includes:

[0006] Receive the load status information of user-side resources uploaded by the distribution station area;

[0007] Based on the load state information, a particle swarm method is used to optimize the day-ahead control optimization model to obtain a day-ahead optimization control strategy, wherein the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy during the optimization process;

[0008] Execute the day-ahead optimization and control strategy, and send the day-ahead optimization and control strategy to the distribution station area, the distribution station area constructs an intraday control optimization model, optimizes the intraday control optimization model based on the historical day-ahead optimization and control strategy to obtain the intraday optimization and control strategy, executes the intraday optimization and control strategy, and sends the intraday optimization and control strategy to the resource control platform.

[0009] Optionally, based on the load state information, optimizing the day-ahead control optimization model using a particle swarm method to obtain a day-ahead optimization control strategy includes:

[0010] S1. Initialize the particle swarm parameters, which include the number of particles and the position information of each particle, wherein one particle represents a day-ahead optimization control strategy;

[0011] S2. Calculate the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period;

[0012] S3, based on the fitness value of each particle in the current control period, determine the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period, and update the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period;

[0013] S4. Determine whether the maximum number of iterations has been reached. If so, output the global optimal position of the particle swarm in the current control period to obtain the day-ahead optimization control strategy. If not, update the number of particles in the next control period based on the historical day-to-day optimization control strategy and return to step S2.

[0014] Optionally, the updating of the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period includes:

[0015] Determine the global optimal fitness value of the particle swarm in the current control period according to the fitness value of each particle in the current control period, and update the inertia weight of each particle in the current control period according to the difference between the global optimal fitness value of the particle swarm in the current control period and the fitness value of each particle in the current control period;

[0016] The state of each particle in the current control period is updated according to the inertia weight of each particle in the current control period, the individual optimal position of each particle and the global optimal position of the particle group.

[0017] Optionally, the updating of the number of particles in the next control period based on the historical intra-day optimization control strategy includes:

[0018] Calculate the average total cost of historical intraday optimization and control corresponding to the historical intraday optimization and control strategy and the average total cost of intraday optimization and control during the current control period;

[0019] If the average total cost of optimization and control in the past days is greater than the average total cost of optimization and control in the current control period, the number of particles will be increased;

[0020] If the average total cost of optimization and control in the historical day is less than the average total cost of optimization and control in the current control period, the number of particles will be reduced.

[0021] Optionally, the calculating the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period includes:

[0022] Based on the load state information and the position information of each particle in the current control period, the total cost of the day-ahead optimization control corresponding to each particle in the current control period is calculated to obtain the fitness value of each particle;

[0023] Or, based on the load state information and the position information of each particle in the current control period, the total cost of the day-ahead optimization control corresponding to each particle in the current control period is calculated, and during the optimization process, a penalty term is calculated for a solution that does not meet the constraint conditions, and the fitness value of each particle is calculated according to the total cost of the day-ahead optimization control and the penalty term;

[0024] Among them, the constraints include the day-ahead power balance constraints of the distribution network area, the active power constraints of the distribution network nodes, the power flow constraints of the distribution network, the reactive power constraints of the distribution network nodes and the voltage constraints of the distribution network nodes.

[0025] Optionally, optimizing the intraday regulation optimization model based on the historical day-ahead optimization regulation strategy to obtain the intraday optimization regulation strategy includes:

[0026] Based on the historical day-ahead optimization control strategy, the penalty factor in the alternating direction multiplier method is updated to obtain the improved alternating direction multiplier method.

[0027] The intraday optimization regulation strategy is obtained by optimizing the intraday optimization model through the improved alternating direction multiplier method.

[0028] A second aspect of the present application provides a user-side resource dynamic aggregation method for power grid regulation, which is applied to a distribution station area, and the method includes:

[0029] Upload the load status information of the user-side resources to the resource control platform, and the resource control platform uses the particle swarm method to optimize the day-ahead control optimization model based on the load status information to obtain the day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area; wherein, during the optimization process, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy;

[0030] Construct an intraday regulation optimization model, optimize the intraday regulation optimization model based on the historical day-ahead optimization regulation strategy to obtain an intraday optimization regulation strategy, execute the intraday optimization regulation strategy, and send the intraday optimization regulation strategy to the resource regulation platform.

[0031] A third aspect of the present application provides a user-side resource dynamic aggregation system for power grid regulation, including a resource regulation platform and a distribution substation;

[0032] The distribution station area is used to upload the load status information of the user-side resources to the resource control platform;

[0033] The resource control platform is used to optimize the day-ahead control optimization model based on the load state information using a particle swarm method to obtain a day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area; wherein, during the optimization process, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy;

[0034] The distribution station area is also used to construct an intraday regulation optimization model, optimize the intraday regulation optimization model based on the historical day-ahead optimization regulation strategy to obtain an intraday optimization regulation strategy, execute the intraday optimization regulation strategy, and send the intraday optimization regulation strategy to the resource regulation platform.

[0035] A fourth aspect of the present application provides an electronic device, the device comprising a processor and a memory;

[0036] The memory is used to store program codes and transmit the program codes to the processor;

[0037] The processor is used to execute the user-side resource dynamic aggregation method for power grid regulation described in any one of the first aspects or the second aspect according to the instructions in the program code.

[0038] In a fifth aspect, the present application provides a computer-readable storage medium, which is used to store program code. When the program code is executed by a processor, it implements the user-side resource dynamic aggregation method for power grid regulation described in any one of the first aspect or the second aspect.

[0039] It can be seen from the above technical solutions that this application has the following advantages:

[0040] In this application, the dynamic characteristics of user-side resources are fully considered in the day-ahead stage, and the number of particles is dynamically adjusted based on the historical intraday optimization control strategy to improve the search accuracy, thereby improving the accuracy of day-ahead control; in the intraday stage, intraday control optimization is performed according to the historical day-ahead optimization control strategy to achieve day-ahead and intraday two-way complementary aggregation control, which effectively improves the accuracy of demand response control. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1A schematic flow chart of a method for dynamically aggregating user-side resources for power grid regulation and applied to a resource regulation platform provided in an embodiment of the present application;

[0043] Figure 2 An architecture diagram of a user-side resource dynamic aggregation method for power grid control provided in an embodiment of the present application;

[0044] Figure 3 Another schematic diagram of a flow chart of a method for dynamically aggregating user-side resources for power grid control provided in an embodiment of the present application;

[0045] Figure 4 A flowchart of a method for dynamically aggregating user-side resources for power grid control in a power distribution area provided in an embodiment of the present application;

[0046] Figure 5 A structural diagram of a user-side resource dynamic aggregation system for power grid regulation provided in an embodiment of the present application;

[0047] Figure 6 Another structural schematic diagram of a user-side resource dynamic aggregation system for power grid regulation provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] For easier understanding, please refer to Figure 1 The embodiment of the present application provides a user-side resource dynamic aggregation method for power grid regulation, which is applied to a resource regulation platform. The method includes:

[0050] Step 110: Receive the load status information of the user-side resources uploaded by the distribution station area.

[0051] You can refer to Figure 2The architecture diagram of a user-side resource dynamic aggregation method for power grid control is provided. The resource control platform receives the load status information of the user-side resources uploaded by the distribution station area, processes the load status information, and realizes multi-time scale aggregation control. The resource control platform divides the control time into multiple control periods, that is, large time scales. The control period set can be expressed as ε = {1,2,...,e,...,E}, where E is the total number of control periods. Each control period includes T0 time slots of length τ, that is, small time scales. The time slot set is expressed as Among them, the set of time slots included in the e-th control period is expressed as T(e) = {(e-1)T0+1, (e-1)T0+2, ..., eT0}. In the day-ahead stage, only the decision instructions of the controllable loads of the day-ahead are executed, and the instructions of the controllable loads within the day are not issued and executed for the time being, which is only used as a reference for intra-day decisions. At the moment of formulating each day-ahead control strategy, the resource control platform collects the load status information of user-side resources such as distributed power sources, controllable loads and distributed energy storage in different distribution station areas. The load status information of user-side resources can include the power purchased from the superior in each control period of the distribution network station area. Power sold Distributed energy storage power regulation Day-ahead transferable load input power Day-ahead transferable load output power And distributed power supply control power The state set is represented as

[0052] The distribution substation mainly includes an edge server and various types of user-side resources. The edge server receives the load status information uploaded by each user-side resource and makes intraday decisions on the distribution substation in combination with the day-ahead decision instructions issued by the resource control platform. Assume that the total number of distribution substations in the scenario is K, and the set of distribution substations is Each distribution substation contains user-side resources such as distributed power sources, controllable loads, and distributed energy storage systems. Assume that the distribution substation s k Including O k Distributed power sources, M k distributed energy storage systems and N k controllable loads, and the distributed generation collection is The distributed energy storage system is The controllable load set is

[0053] Step 120: Based on the load state information, a particle swarm method is used to optimize the day-ahead control optimization model to obtain a day-ahead optimization control strategy.

[0054] Resource control platform is constructed to minimize the day-ahead control cost F k(t) and distribution network loss C loss The day-ahead control optimization model with the weighted sum of (t) as the target is:

[0055]

[0056]

[0057]

[0058] Where, SI(t) is the total cost of the optimal control of all distribution stations in time slot t; π is the weight coefficient of the distribution network loss; For distribution station area k The cost of day-ahead controllable load regulation; For distribution station area k The cost of controlling the intraday controllable load; For distribution station area k The regulation cost of distributed energy storage; For distribution station area k The cost of distributed power generation regulation; For distribution station area k The cost of purchasing and selling electricity to the superior; I is the total number of distribution network nodes; γ loss is the unit network loss cost; R ij (t) is the resistance value between node i and node j in the distribution network in time slot t; v(i) is the set of branch end nodes in the power grid with node i as the starting node; P ij (t) and Q ij (t) are the active power and reactive power flowing from upstream node i to node j in time slot t; V i (t) is the voltage amplitude at node i.

[0059] You can refer to Figure 3 The specific optimization process of the day-ahead control optimization stage is provided. After the day-ahead control optimization model is constructed, the particle swarm method is used to optimize the day-ahead control optimization model. In the process of optimizing the day-ahead control optimization model, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy to improve the existing traditional particle swarm algorithm. The number of particles is a fixed value, and the particle search space is small, resulting in low day-ahead control accuracy and slow convergence speed. Based on the load state information, the particle swarm method is used to optimize the day-ahead control optimization model to obtain the day-ahead optimization control strategy, which specifically includes:

[0060] S1, initialize particle swarm parameters;

[0061] Define the maximum number of particle searches as d max, the initial search times d = 1, the number of particles is A, one particle represents a day-ahead optimization control strategy, and the position information of each particle. In this application, the particle information of the particle swarm can be expressed as a 7-dimensional vector, and the position information is expressed as X a , the speed information is expressed as Where a is the number of the particle, and speed refers to the direction and distance the particle moves in the search space, which determines the next position of the particle.

[0062] S2. Calculate the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period;

[0063] By calculating the fitness value of a particle in a certain search, the quality of the optimization control strategy corresponding to the particle can be determined.

[0064] In one embodiment, the total cost of the day-ahead optimization control corresponding to each particle in the current control period e is calculated based on the load state information and the position information of each particle in the current control period e, and the fitness value of each particle is obtained. The total cost of the day-ahead optimization control of each particle in a certain search can be calculated as the fitness value of each particle in a certain search.

[0065] In another embodiment, the total cost of the day-ahead optimization control corresponding to each particle in the current control period e is calculated based on the load state information and the position information of each particle in the current control period e, and a penalty item is calculated for the solution that does not meet the constraint conditions during the optimization process, and the fitness value of each particle is calculated according to the total cost of the day-ahead optimization control and the penalty item; wherein the constraint conditions include the day-ahead power balance constraint of the distribution station area, the active power constraint of the distribution network node, the reactive power constraint of the distribution network node, and the voltage constraint of the distribution network node.

[0066] In this embodiment, a penalty term is further introduced to penalize solutions that do not meet the constraints. The larger the fitness value of the particle, the better the solution, that is, the more likely it is the optimal solution. Penalties are introduced for solutions that do not meet the constraints in order to improve the accuracy of finding the optimal solution. The fitness value of the a-th particle in the d-th search process in the e-th time period can be expressed as:

[0067]

[0068]

[0069]

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076]

[0077] Γ 10 (t)=max{0,V i min -V i (t)}

[0078] Γ 11 (t)=max{0,V i (t)-V i max}

[0079] Among them, Γ1(t) and Γ2(t) are penalty items for not meeting the power balance constraint of the distribution station area before the day. If they meet the constraint, the value is 0, and if they do not meet the constraint, the value is 1. σ is the constraint penalty coefficient, which imposes a penalty on the fitness value of the particle when the constraint item is not met. For distribution station area k The load day at time slot t regulates the power. For distribution station area k Original load power, For distribution station area k The load in n The predicted value of interruption power of the daily interruptible load during the day-ahead control optimization process, and are the predicted outgoing power and incoming power of the intraday transferable load in the day-ahead control optimization process, respectively; Γ3(t), Γ4(t) are the penalty items for not satisfying the power flow of the distribution network; are the lower limit and upper limit of active power of node j, P j (t) is the active power of node j, are the lower and upper limits of reactive power of node j, Q j (t) is the reactive power of node j; B ij (t) is the current between node i and node j in the line, are the active power and reactive power of the branch end node set with node j as the starting node in the power grid; Γ5(t)~Γ8(t) are the penalty items for not meeting the active power constraint and reactive power constraint of the distribution network node; Γ9(t)~Γ 11 (t) is the penalty term for not meeting the voltage constraint of the distribution network node; X ij(t) is the reactance value between nodes ij, is the conductance value between nodes ij, V i min 、V i max are the lower and upper voltage limits of node i, respectively. i (t) is the voltage value of node i in time slot t.

[0080] S3, based on the fitness value of each particle in the current control period, determine the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period, and update the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period;

[0081] In the process of solving, the historical best position of the particle, that is, the individual best position, is dynamically updated. And the global optimal position B of the particle with the largest fitness value among all particles best The individual historical best fitness value of particle a is defined as The global optimal fitness value of all particles is If the fitness function value of the a-th particle in a certain day-ahead control optimization process after the d-th search process ends and Then update the individual best position and the global best position of the a-th particle, and take the individual best position of the a-th particle as the global best position; if the fitness function value of the a-th particle after the d-th search process is and Then only the individual best position of the a-th particle is updated; otherwise, the individual best position of the a-th particle and the global optimal position are not updated, and the a-th particle continues to execute the next search process.

[0082] According to the fitness value of each particle in the current control period e, the global optimal fitness value of the particle group in the current control period e is determined, and the inertia weight of each particle in the current control period e is updated according to the difference between the global optimal fitness value of the particle group in the current control period e and the fitness value of each particle in the current control period e. As the number of iterations increases, the particles gradually approach the optimal solution. At this time, it is necessary to gradually reduce the search speed, improve the search accuracy, strengthen the use of the current particle position state, and reduce the inertia weight. Therefore, this application adds an inertia weight ω a (d) Improvement is made by introducing the global optimal fitness value and the fitness value H of the ath particle after the current iteration d a The difference between (d) and (d) increases the global search capability in the early stage of the search and improves the local exploration capability in the later stage of the search. The inertia weight ω of the a-th particle in the d-th search process aThe improved formula of (d) is as follows:

[0083]

[0084] Among them, ω max ,ω min Represent the maximum and minimum values ​​of the inertia weight respectively. By dynamically adjusting the inertia weight ω a The size of (d) can effectively balance the global search and local search capabilities of the particle swarm algorithm, improve the search accuracy, avoid falling into the local optimum, improve the control accuracy, and accelerate the convergence speed.

[0085] According to the inertia weight of each particle in the current control period e, the individual optimal position of each particle and the global optimal position of the particle group, the state of each particle in the current control period e is updated. The state update formula of the ath particle is expressed as:

[0086]

[0087] X a (d+1)=X a (d)+V a (d+1)

[0088] Among them, V a (d) is the velocity of the a-th particle at the d-th search; X a (d) is the position of the ath particle at the dth search; Both are learning factors, representing the self-learning ability and social learning ability of particles respectively; r1 and r2 are random numbers with values ​​of [0,1].

[0089] S4. Determine whether the maximum number of iterations has been reached. If so, output the global optimal position of the particle swarm in the current control period to obtain the day-ahead optimization control strategy. If not, update the number of particles in the next control period based on the historical day-to-day optimization control strategy and return to step S2.

[0090] Determine whether the maximum number of iterations has been reached. If e=E, that is, the maximum number of iterations has been reached, terminate the iteration, output the global optimal position of the particle swarm in the current control period, and obtain the day-ahead optimization control strategy. If e≠E, that is, the maximum number of iterations has not been reached, set e=e+1, return to step S2, and continue to explore the day-ahead optimization control strategy.

[0091] In order to further enhance the search performance and computational efficiency of the particle swarm for the day-ahead control optimization strategy, this application considers the influence of the spatiotemporal complementarity of the user-side resources in the distribution network distribution area, and dynamically adjusts the number of particles in the next control period based on the average total cost of the historical intraday optimization control. If the average total cost of the historical intraday optimization control is greater than the average total cost of the intraday optimization control in the current control period, it means that the day-ahead optimization effect is poor, then more particles are added to expand the search space and enhance the global optimization capability; if the average total cost of the historical intraday optimization control is less than the average total cost of the intraday optimization control in the current control period, then the number of particles is reduced to speed up the convergence of the algorithm. The adjustment of the number of particles in the e-th control period of the day-ahead control optimization can be expressed as:

[0092]

[0093] Where A(e) is the number of particles in the e-th control period, A(e-1) is the number of particles in the e-1th control period, and μ is the sensitivity coefficient of the number of particles relative to the total cost of intraday optimization control; is the average value of the total cost of daily optimization control of all distribution substations in the previous e-2 control periods, Represents the ceiling function.

[0094] Step 130, execute the day-ahead optimization and control strategy, and send the day-ahead optimization and control strategy to the distribution station area, the distribution station area constructs an intraday control optimization model, optimizes the intraday control optimization model based on the historical day-ahead optimization and control strategy to obtain the intraday optimization and control strategy, executes the intraday optimization and control strategy, and sends the intraday optimization and control strategy to the resource control platform.

[0095] After the resource control platform optimizes and obtains the day-ahead optimization control strategy, it executes the day-ahead optimization control strategy and sends it to the distribution substation. The distribution substation preferably uses the alternating direction method of multipliers (ADMM) to optimize the intraday control strategy based on a small time scale. Figure 3 The specific optimization process of the intraday regulation optimization stage is provided. Of course, other optimization algorithms can also be used to optimize the intraday regulation strategy based on a small time scale. Each distribution substation can deploy an edge server, and perform distributed intraday regulation optimization through the edge servers of each distribution substation to improve the solution speed.

[0096] The distribution station area calculates the daily optimization control parameters of the distribution station area. The daily optimization control parameters include the total cost of the daily optimization control. The total cost of the daily optimization control in the distribution station area k within the time period T is The total cost of intraday optimization control in each time slot is SN k(t) is the total control cost within the day and distribution network loss C loss The weighted sum of (t), that is:

[0097]

[0098]

[0099] Furthermore, the intraday optimization control parameters can also include the regional coupling equation coefficient matrix A k and c, c represents the difference between the total power supply and demand of each distribution station interval, ensuring the balance of the power of the entire distribution network during the optimization process, A k It reflects the influence of the intraday regulation decision variables on the distribution station area s k The impact of power balance, K is the number of distribution stations, x k For distribution station area k The intraday optimization control decision variable matrix, Distribution station area k The daily power purchase and sale to the upper-level distribution network in the tth time slot; Distribution station area k The transferable load transferable power and transferable power of the day in the tth time slot, For distribution station area k The distributed generation power regulation in the tth time slot is: For distribution station area k In the tth time slot, the distributed energy storage regulates the power.

[0100] The intraday regulation optimization model is constructed according to the intraday optimization regulation parameters. The objective function of the intraday regulation optimization model aims to minimize the weighted sum of the total intraday regulation cost and the distribution network loss. At the same time, in order to ensure that the optimization target meets the intraday optimization regulation inequality constraint, the substation auxiliary variable z and the equality constraint indicator function h(z) and the inequality constraint indicator function y(z) are introduced to improve the objective function. Specifically, when the intraday optimal decision variable satisfies the equality constraint, the equality constraint indicator function h(z)=0, and the equality constraint term of the optimization target does not work at this time; when the intraday optimal decision variable does not meet the equality constraint, the equality constraint indicator function h(z)=+∞, thereby forcing the optimization algorithm to adjust it to the range that satisfies the inequality constraint to reduce the intraday optimization regulation cost. Similarly, when the intraday optimal decision variable meets the inequality constraint, the inequality constraint indicator function y(z)=0, otherwise y(z)=+∞.

[0101] Based on the improved objective function, the corresponding augmented Lagrangian function is constructed The construction process of the augmented Lagrangian function belongs to the existing technology and will not be described here. Among them, x is the decision variable for intraday regulation optimization; z is the value of the auxiliary variable of the equality constraint and inequality constraint; u is the Lagrangian multiplier, which is used to penalize the constraint conditions, so as to make the optimization process as close as possible to the optimal solution of the original problem while considering the constraint conditions. Then, it is solved iteratively.

[0102] To determine whether the solution meets the iteration accuracy requirements, we can determine whether the solution meets ||r n+1 ||2≤ε prime And||s n+1 ||2≤ε dual If it is satisfied, then the solution result is determined to meet the iteration accuracy requirement. Otherwise, then the solution result is determined to not meet the iteration accuracy requirement. n+1 and n+1 are the original residual and dual residual after the n+1th iteration, ε prime With ε dual are the original infeasibility and the dual infeasibility respectively. If the solution meets the iteration accuracy requirements, the best solution is output. and Otherwise, continue iterating until the iteration accuracy requirement is met.

[0103] Taking into account that the penalty factor in the traditional ADMM method is fixed, which easily causes distributed computing to be difficult to converge, the present application improves the penalty factor of the ADMM method. Based on the historical day-ahead optimization and control results, the penalty factor of each time slot in the intraday optimization and control process is dynamically adjusted to balance the importance of the optimization problem and the constraints, improve the convergence speed of the intraday optimization and control, and reduce the control cost. Specifically, the penalty factor in the alternating direction multiplier method is updated based on the historical day-ahead optimization and control strategy to obtain an improved alternating direction multiplier method; the intraday optimization and control strategy is obtained by optimizing the intraday optimization model using the improved alternating direction multiplier method. The update method of the penalty factor is as follows:

[0104]

[0105] Among them, ρ e (t+1) is the penalty factor for the t+1th time slot in the eth regulation period, is the average value of the optimized time slot penalty factor for each day during the e-1th day-ahead control period; SI(t) e is the total cost of the optimal regulation during the e-th regulation period, SI(t) e-1 is the total cost of the day-ahead optimization control in the e-1th control period; δ is the update weight of the penalty factor; SN k (t) is the distribution station area s kThe total cost of intraday optimization regulation in the tth time slot; is the average value of the total cost of optimizing regulation from t-(e-1)T0-1 time slot to t-time slot in the e-th regulation period. e >SI(t) e-1 When , it indicates that the control result in the current period is poor, and it is necessary to increase the initial value of the penalty factor to speed up the convergence. Otherwise, keep the current state to solve.

[0106] The update formula of the above penalty factor comprehensively considers the impact of the day-ahead control results and the intraday control results to adjust the penalty factor. The average value of the penalty factor of the previous control period is used as the initial penalty factor at the beginning of the current control period, and its initial size is dynamically adjusted through the historical day-ahead optimization control results. During the intraday control process, the penalty factor of each time slot is dynamically adjusted based on the total cost of intraday optimization control. If the total cost of intraday optimization control in the current time slot is lower than the average level, it indicates that the current optimization result is poor. At this time, the value of the penalty factor needs to be increased to speed up the search for the optimal solution. On the contrary, the value of the penalty factor is reduced and the current state is maintained for solution.

[0107] After optimizing the intraday control optimization model through the improved alternating direction multiplier method to obtain the intraday optimization control strategy of each distribution station area, the distribution station area executes the corresponding intraday optimization control strategy, corrects the error of the day-ahead optimization control, and uploads the intraday optimization control strategy to the resource control platform as a reference for the next day-ahead optimization control, to achieve day-ahead and intraday multi-time scale aggregation control, and improve the control accuracy. Since the day-ahead optimization process is to formulate the control strategy for the distribution station area one day in advance, the actual change of the intraday load is not known in advance. Therefore, the day-ahead control strategy of this application is formulated based on the actual value of the day-ahead load and the predicted value of the day-ahead load. In the intraday stage, due to the uncertainty of the load, the result formulated the day-ahead has a certain error compared to the actual situation. Therefore, the intraday control stage is based on the day-ahead control stage, based on the real-time change of the small time scale load, to formulate an intraday optimization control strategy to correct the error of the day-ahead optimization control result.

[0108] The large-time-scale day-ahead control strategy optimization method based on improved particle swarm proposed in this application fully considers the dynamic characteristics of user-side resources, dynamically adjusts the number of particles based on historical intraday optimization results, and adaptively adjusts the particle inertia weight while ensuring day-ahead constraints, thereby improving search accuracy and search speed, improving day-ahead optimization accuracy, and reducing control costs; by simulating the search and iterative update process of particles in the solution space, centralized day-ahead optimization control of user-side resources of the distribution network is realized;

[0109] The small-time-scale intraday control strategy optimization method based on the improved ADMM proposed in this application adopts the ADMM method to allocate the control tasks to each marginal substation for distributed solution, and adaptively adjusts the penalty factor of the intraday control time slot of each substation through the historical day-ahead optimization results, thereby improving the accuracy and convergence speed of intraday control, reducing the optimization cost of intraday control, and further correcting the day-ahead optimization control error according to the actual value of the intraday load, thereby greatly improving the control accuracy of the distribution network.

[0110] The above is an embodiment of a user-side dynamic resource aggregation method for power grid regulation applied to a resource regulation platform provided by the present application. The following is an embodiment of a user-side dynamic resource aggregation method for power grid regulation applied to a distribution station area provided by the present application.

[0111] Please refer to Figure 4 , a user-side resource dynamic aggregation method for power grid control provided in an embodiment of the present application is applied to a distribution station area, and the method includes:

[0112] Step 410: upload the load status information of the user-side resources to the resource control platform. The resource control platform uses the particle swarm method to optimize the day-ahead control optimization model based on the load status information to obtain the day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area.

[0113] You can refer to Figure 2 An architecture diagram of a method for dynamic aggregation of user-side resources for power grid control is provided. The distribution substation mainly includes an edge server and various types of user-side resources. The edge server receives the load status information uploaded by each user-side resource, uploads it to the resource control platform, and then makes intraday decisions for the distribution substation in combination with the day-ahead decision instructions issued by the resource control platform. The resource control platform receives the load status information of the user-side resources uploaded by the distribution substation, processes the load status information, and realizes multi-time scale aggregation control. The resource control platform divides the control time into multiple control periods, i.e., large time scales. The set of control periods can be expressed as ε = {1,2,...,e,...,E}, where E is the total number of control periods. Each control period includes T0 time slots of length τ, i.e., small time scales. The set of time slots is expressed as Among them, the set of time slots included in the e-th control period is expressed as T(e) = {(e-1)T0+1, (e-1)T0+2, ..., eT0}. In the day-ahead stage, only the decision instructions of the controllable loads of the day-ahead are executed, and the instructions of the controllable loads within the day are not issued and executed for the time being, which is only used as a reference for intra-day decisions. At the moment of formulating each day-ahead control strategy, the resource control platform collects the load status information of user-side resources such as distributed power sources, controllable loads and distributed energy storage in different distribution station areas. The load status information of user-side resources can include the power purchased from the superior in each control period of the distribution network station area. Power sold Distributed energy storage power regulation Day-ahead transferable load input power Day-ahead transferable load output power And distributed power supply control power The state set is represented as

[0114] Assume that the total number of distribution stations in the scenario is K, and the set of distribution stations is Each distribution substation contains user-side resources such as distributed power sources, controllable loads, and distributed energy storage systems. Assume that the distribution substation s k Including O k Distributed power sources, M k distributed energy storage systems and N k controllable loads, and the distributed generation collection is The distributed energy storage system is The controllable load set is

[0115] Resource control platform is constructed to minimize the day-ahead control cost F k (t) and distribution network loss C loss The day-ahead control optimization model with the weighted sum of (t) as the target is:

[0116]

[0117]

[0118]

[0119] Where, SI(t) is the total cost of the optimal control of all distribution stations in time slot t; π is the weight coefficient of the distribution network loss; For distribution station area k The cost of day-ahead controllable load regulation; For distribution station area k The cost of controlling the intraday controllable load; For distribution station areak The regulation cost of distributed energy storage; For distribution station area k The cost of distributed power generation regulation; For distribution station area k The cost of purchasing and selling electricity to the superior; I is the total number of distribution network nodes; γ loss is the unit network loss cost; R ij (t) is the resistance value between node i and node j in the distribution network in time slot t; v(i) is the set of branch end nodes in the power grid with node i as the starting node; P ij (t) and Q ij (t) are the active power and reactive power flowing from upstream node i to node j in time slot t; V i (t) is the voltage amplitude at node i.

[0120] After building the day-ahead control optimization model, the particle swarm method is used to optimize the day-ahead control optimization model. In the process of optimizing the day-ahead control optimization model, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy to improve the existing traditional particle swarm algorithm. The number of particles is a fixed value, and the particle search space is small, resulting in low day-ahead control accuracy and slow convergence speed. Based on the load state information, the particle swarm method is used to optimize the day-ahead control optimization model to obtain the day-ahead optimization control strategy, which specifically includes:

[0121] S1, initialize particle swarm parameters;

[0122] Define the maximum number of particle searches as d max , the initial search times d = 1, the number of particles is A, one particle represents a day-ahead optimization control strategy, and the position information of each particle. In this application, the particle information of the particle swarm can be expressed as a 7-dimensional vector, and the position information is expressed as X a , the speed information is expressed as Where a is the number of the particle, and speed refers to the direction and distance the particle moves in the search space, which determines the next position of the particle.

[0123] S2. Calculate the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period;

[0124] By calculating the fitness value of a particle in a certain search, the quality of the optimization control strategy corresponding to the particle can be determined.

[0125] In one embodiment, the total cost of the day-ahead optimization control corresponding to each particle in the current control period e is calculated based on the load state information and the position information of each particle in the current control period e, and the fitness value of each particle is obtained. The total cost of the day-ahead optimization control of each particle in a certain search can be calculated as the fitness value of each particle in a certain search.

[0126] In another embodiment, the total cost of the day-ahead optimization control corresponding to each particle in the current control period e is calculated based on the load state information and the position information of each particle in the current control period e, and a penalty item is calculated for the solution that does not meet the constraint conditions during the optimization process, and the fitness value of each particle is calculated according to the total cost of the day-ahead optimization control and the penalty item; wherein the constraint conditions include the day-ahead power balance constraint of the distribution station area, the active power constraint of the distribution network node, the reactive power constraint of the distribution network node, and the voltage constraint of the distribution network node.

[0127] In this embodiment, a penalty term is further introduced to penalize solutions that do not meet the constraints. The larger the fitness value of the particle, the better the solution, that is, the more likely it is the optimal solution. Penalties are introduced for solutions that do not meet the constraints in order to improve the accuracy of finding the optimal solution. The fitness value of the a-th particle in the d-th search process in the e-th time period can be expressed as:

[0128]

[0129]

[0130]

[0131]

[0132]

[0133]

[0134]

[0135]

[0136]

[0137]

[0138] Γ 10 (t)=max{0,V i min -V i (t)}

[0139] Γ 11 (t)=max{0,V i(t)-V i max}

[0140] Among them, Γ1(t) and Γ2(t) are penalty items for not meeting the power balance constraint of the distribution station area before the day. If they meet the constraint, the value is 0, and if they do not meet the constraint, the value is 1; σ is the constraint penalty coefficient; For distribution station area k The load day at time slot t regulates the power. For distribution station area k Original load power, For distribution station area k The load in n The predicted value of interruption power of the daily interruptible load during the day-ahead control optimization process, and are the predicted outgoing power and incoming power of the intraday transferable load in the day-ahead control optimization process, respectively; Γ3(t), Γ4(t) are the penalty items for not satisfying the power flow of the distribution network; are the lower limit and upper limit of active power of node j, P j (t) is the active power of node j, are the lower and upper limits of reactive power of node j, Q j (t) is the reactive power of node j; B ij (t) is the current between node i and node j in the line, are the active power and reactive power of the branch end node set with node j as the starting node in the power grid; Γ5(t)~Γ8(t) are the penalty items for not meeting the active power constraint and reactive power constraint of the distribution network node; Γ9(t)~Γ 11 (t) is the penalty term for not meeting the voltage constraint of the distribution network node; X ij (t) is the reactance value between nodes ij, is the conductance value between nodes ij, V i min 、V i max are the lower and upper voltage limits of node i, respectively. i (t) is the voltage value of node i in time slot t.

[0141] S3, based on the fitness value of each particle in the current control period, determine the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period, and update the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period;

[0142] In the process of solving, the historical best position of the particle, that is, the individual best position, is dynamically updated. And the global optimal position B of the particle with the largest fitness value among all particles best The individual historical best fitness value of particle a is defined as The global optimal fitness value of all particles is If the fitness function value of the a-th particle in a certain day-ahead control optimization process after the d-th search process ends and Then update the individual best position and the global best position of the a-th particle, and take the individual best position of the a-th particle as the global best position; if the fitness function value of the a-th particle after the d-th search process is and Then only the individual best position of the a-th particle is updated; otherwise, the individual best position of the a-th particle and the global optimal position are not updated, and the a-th particle continues to execute the next search process.

[0143] According to the fitness value of each particle in the current control period e, the global optimal fitness value of the particle group in the current control period e is determined, and the inertia weight of each particle in the current control period e is updated according to the difference between the global optimal fitness value of the particle group in the current control period e and the fitness value of each particle in the current control period e. As the number of iterations increases, the particles gradually approach the optimal solution. At this time, it is necessary to gradually reduce the search speed, improve the search accuracy, strengthen the use of the current particle position state, and reduce the inertia weight. Therefore, this application adds an inertia weight ω a (d) Improvement is made by introducing the global optimal fitness value and the fitness value H of the ath particle after the current iteration d a The difference between (d) and (d) increases the global search capability in the early stage of the search and improves the local exploration capability in the later stage of the search. The inertia weight ω of the a-th particle in the d-th search process a The improved formula of (d) is as follows:

[0144]

[0145] Among them, ω max ,ω min Represent the maximum and minimum values ​​of the inertia weight respectively. By dynamically adjusting the inertia weight ω a The size of (d) can effectively balance the global search and local search capabilities of the particle swarm algorithm, improve the search accuracy, avoid falling into the local optimum, improve the control accuracy, and accelerate the convergence speed.

[0146] According to the inertia weight of each particle in the current control period e, the individual optimal position of each particle and the global optimal position of the particle group, the state of each particle in the current control period e is updated. The state update formula of the ath particle is expressed as:

[0147]

[0148] X a (d+1)=X a (d)+V a (d+1)

[0149] Among them, V a (d) is the velocity of the a-th particle at the d-th search; X a (d) is the position of the ath particle at the dth search; Both are learning factors, representing the self-learning ability and social learning ability of particles respectively; r1 and r2 are random numbers with values ​​of [0,1].

[0150] S4. Determine whether the maximum number of iterations has been reached. If so, output the global optimal position of the particle swarm in the current control period to obtain the day-ahead optimization control strategy. If not, update the number of particles in the next control period based on the historical day-to-day optimization control strategy and return to step S2.

[0151] Determine whether the maximum number of iterations has been reached. If e=E, that is, the maximum number of iterations has been reached, terminate the iteration, output the global optimal position of the particle swarm in the current control period, and obtain the day-ahead optimization control strategy. If e≠E, that is, the maximum number of iterations has not been reached, set e=e+1, return to step S2, and continue to explore the day-ahead optimization control strategy.

[0152] In order to further enhance the search performance and computational efficiency of the particle swarm for the day-ahead control optimization strategy, this application considers the influence of the spatiotemporal complementarity of the user-side resources in the distribution network distribution area, and dynamically adjusts the number of particles in the next control period based on the average total cost of the historical intraday optimization control. If the average total cost of the historical intraday optimization control is greater than the average total cost of the intraday optimization control in the current control period, it means that the day-ahead optimization effect is poor, then more particles are added to expand the search space and enhance the global optimization capability; if the average total cost of the historical intraday optimization control is less than the average total cost of the intraday optimization control in the current control period, then the number of particles is reduced to speed up the convergence of the algorithm. The adjustment of the number of particles in the e-th control period of the day-ahead control optimization can be expressed as:

[0153]

[0154] Where A(e) is the number of particles in the e-th control period, A(e-1) is the number of particles in the e-1th control period, and μ is the sensitivity coefficient of the number of particles relative to the total cost of intraday optimization control; is the average value of the total cost of daily optimization control of all distribution substations in the previous e-2 control periods, Represents the ceiling function.

[0155] After the resource control platform optimizes and obtains the day-ahead optimization control strategy, it executes the day-ahead optimization control strategy and sends the day-ahead optimization control strategy to the distribution station area.

[0156] The large-time-scale day-ahead control strategy optimization method based on improved particle swarm proposed in this application fully considers the dynamic characteristics of user-side resources, dynamically adjusts the number of particles based on historical intraday optimization results, and adaptively adjusts the particle inertia weight while ensuring day-ahead constraints, thereby improving search accuracy and search speed, improving day-ahead optimization accuracy, and reducing control costs; by simulating the search and iterative update process of particles in the solution space, centralized day-ahead optimization and control of user-side resources of the distribution network is realized.

[0157] Step 420, construct an intraday control optimization model, optimize the intraday control optimization model based on the historical day-ahead optimization control strategy to obtain the intraday optimization control strategy, execute the intraday optimization control strategy, and send the intraday optimization control strategy to the resource control platform.

[0158] The distribution substation preferably uses the Alternating Direction Method of Multipliers (ADMM) to optimize the intraday control strategy based on a small time scale. Of course, other optimization algorithms can also be used to optimize the intraday control strategy based on a small time scale. Each distribution substation can deploy an edge server, and perform distributed intraday control optimization solutions through the edge servers of each distribution substation to improve the solution speed.

[0159] The distribution station area calculates the daily optimization control parameters of the distribution station area. The daily optimization control parameters include the total cost of the daily optimization control. The total cost of the daily optimization control in the distribution station area k within the time period T is The total cost of intraday optimization control in each time slot is SN k (t) is the total control cost within the day and distribution network loss C loss The weighted sum of (t), that is:

[0160]

[0161]

[0162] Furthermore, the intraday optimization control parameters can also include the regional coupling equation coefficient matrix A k and c, c represents the difference between the total power supply and demand of each distribution station interval, ensuring the balance of the power of the entire distribution network during the optimization process, A k It reflects the influence of the intraday regulation decision variables on the distribution station area s k The impact of power balance, K is the number of distribution stations, x k For distribution station area k The intraday optimization control decision variable matrix, Distribution station area k The daily power purchase and sale to the upper-level distribution network in the tth time slot; Distribution station area k The transferable load transferable power and transferable power of the day in the tth time slot, For distribution station area k The distributed generation power regulation in the tth time slot is: For distribution station area k In the tth time slot, the distributed energy storage regulates the power.

[0163] The intraday regulation optimization model is constructed according to the intraday optimization regulation parameters. The objective function of the intraday regulation optimization model aims to minimize the weighted sum of the total intraday regulation cost and the distribution network loss. At the same time, in order to ensure that the optimization target meets the intraday optimization regulation inequality constraint, the substation auxiliary variable z and the equality constraint indicator function h(z) and the inequality constraint indicator function y(z) are introduced to improve the objective function. Specifically, when the intraday optimal decision variable satisfies the equality constraint, the equality constraint indicator function h(z)=0, and the equality constraint term of the optimization target does not work at this time; when the intraday optimal decision variable does not meet the equality constraint, the equality constraint indicator function h(z)=+∞, thereby forcing the optimization algorithm to adjust it to the range that satisfies the inequality constraint to reduce the intraday optimization regulation cost. Similarly, when the intraday optimal decision variable meets the inequality constraint, the inequality constraint indicator function y(z)=0, otherwise y(z)=+∞.

[0164] Based on the improved objective function, the corresponding augmented Lagrangian function is constructed The construction process of the augmented Lagrangian function belongs to the existing technology and will not be described here. Among them, x is the decision variable for intraday regulation optimization; z is the value of the auxiliary variable of the equality constraint and inequality constraint; u is the Lagrangian multiplier, which is used to penalize the constraint conditions, so as to make the optimization process as close as possible to the optimal solution of the original problem while considering the constraint conditions. Then, it is solved iteratively.

[0165] To determine whether the solution meets the iteration accuracy requirements, we can determine whether the solution meets ||rn+1 ||2≤ε prime And||s n+1 ||2≤ε dual If it is satisfied, then the solution result is determined to meet the iteration accuracy requirement. Otherwise, then the solution result is determined to not meet the iteration accuracy requirement. n+1 and n+1 are the original residual and dual residual after the n+1th iteration, ε prime With ε dual are the original infeasibility and the dual infeasibility respectively. If the solution meets the iteration accuracy requirements, the best solution is output. and Otherwise, continue iterating until the iteration accuracy requirement is met.

[0166] Taking into account that the penalty factor in the traditional ADMM method is fixed, which easily causes distributed computing to be difficult to converge, the present application improves the penalty factor of the ADMM method. Based on the historical day-ahead optimization and control results, the penalty factor of each time slot in the intraday optimization and control process is dynamically adjusted to balance the importance of the optimization problem and the constraints, improve the convergence speed of the intraday optimization and control, and reduce the control cost. Specifically, the penalty factor in the alternating direction multiplier method is updated based on the historical day-ahead optimization and control strategy to obtain an improved alternating direction multiplier method; the intraday optimization and control strategy is obtained by optimizing the intraday optimization model using the improved alternating direction multiplier method. The update method of the penalty factor is as follows:

[0167]

[0168] Among them, ρ e (t+1) is the penalty factor for the t+1th time slot in the eth regulation period, is the average value of the optimized time slot penalty factor for each day during the e-1th day-ahead control period; SI(t) e is the total cost of the optimal regulation during the e-th regulation period, SI(t) e-1 is the total cost of the day-ahead optimization control in the e-1th control period; δ is the update weight of the penalty factor; SN k (t) is the distribution station area s k The total cost of intraday optimization regulation in the tth time slot; is the average value of the total cost of optimizing regulation from t-(e-1)T0-1 time slot to t-time slot in the e-th regulation period. e >SI(t) e-1 When , it indicates that the control result in the current period is poor, and it is necessary to increase the initial value of the penalty factor to speed up the convergence. Otherwise, keep the current state to solve.

[0169] The update formula of the above penalty factor comprehensively considers the impact of the day-ahead control results and the intraday control results to adjust the penalty factor. The average value of the penalty factor of the previous control period is used as the initial penalty factor at the beginning of the current control period, and its initial size is dynamically adjusted through the historical day-ahead optimization control results. During the intraday control process, the penalty factor of each time slot is dynamically adjusted based on the total cost of intraday optimization control. If the total cost of intraday optimization control in the current time slot is lower than the average level, it indicates that the current optimization result is poor. At this time, the value of the penalty factor needs to be increased to speed up the search for the optimal solution. On the contrary, the value of the penalty factor is reduced and the current state is maintained for solution.

[0170] After optimizing the intraday control optimization model through the improved alternating direction multiplier method to obtain the intraday optimization control strategy of each distribution station area, the distribution station area executes the corresponding intraday optimization control strategy, corrects the error of the day-ahead optimization control, and uploads the intraday optimization control strategy to the resource control platform as a reference for the next day-ahead optimization control, realizing multi-time scale aggregation control of the day-ahead and intraday, and improving the control accuracy.

[0171] The small-time-scale intraday control strategy optimization method based on the improved ADMM proposed in this application adopts the ADMM method to allocate the control tasks to each marginal substation for distributed solution, and adaptively adjusts the penalty factor of the intraday control time slot of each substation through the historical day-ahead optimization results, thereby improving the accuracy and convergence speed of intraday control, reducing the optimization cost of intraday control, and further correcting the day-ahead optimization control error according to the actual value of the intraday load, thereby greatly improving the control accuracy of the distribution network.

[0172] The above is an embodiment of a user-side resource dynamic aggregation method for power grid regulation provided by the present application and applied to a distribution station area. The following is an embodiment of a user-side resource dynamic aggregation system for power grid regulation provided by the present application.

[0173] Please refer to Figure 5 , the embodiment of the present application provides a user-side resource dynamic aggregation system for power grid regulation, including a resource regulation platform and a distribution station area;

[0174] The distribution station area is used to upload the load status information of user-side resources to the resource control platform;

[0175] The resource control platform is used to optimize the day-ahead control optimization model based on load status information using a particle swarm method to obtain a day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area; during the optimization process, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy;

[0176] The distribution station area is also used to construct an intraday control optimization model, optimize the intraday control optimization model based on the historical day-ahead optimization control strategy to obtain the intraday optimization control strategy, execute the intraday optimization control strategy, and send the intraday optimization control strategy to the resource control platform.

[0177] Please note that, please refer to Figure 6 ,The resource control platform can be deployed in the cloud layer, the edge servers of each ,distribution station area can be deployed in the edge layer, and the resource control ,platform can include a state information extraction module, a particle swarm parameter update module and a day-ahead control ,optimization module.

[0178] The status information extraction module can be used to extract the user-side resource load status information. At each day-ahead control strategy formulation moment, the module collects the load status of user-side resources such as distributed power sources, controllable loads, and distributed energy storage in each distribution station area at the equipment layer.

[0179] The particle swarm parameter update module can be used to improve the parameter update of the particle swarm method, achieve a compromise between the exploration space and the exploration speed, improve the day-ahead control accuracy, and reduce the control cost. Based on the historical intraday optimization control strategy, the number of particles and the inertia weight of the particles are updated.

[0180] The day-ahead control optimization module can be used to execute the day-ahead control optimization. Taking the weighted sum of minimizing the day-ahead control cost and the distribution network loss as the optimization goal, the improved particle swarm algorithm is used to optimize the day-ahead control using the latest particle number and particle inertia weight to obtain the day-ahead optimization control strategy.

[0181] The edge layer includes multiple distribution substations, each of which includes a substation subsystem and edge servers deployed in the substation. The substation subsystem may include an optimization parameter acquisition module, a penalty factor update module, and an intraday control optimization module.

[0182] The optimization parameter acquisition module can be used to calculate the intraday optimization control parameters. Calculate the total cost of the intraday control optimization of the distribution station area; calculate the regional coupling equation coefficient matrix A k and c; Calculate the intraday control optimization decision variable matrix of the substation

[0183] The penalty factor update module can be used to improve the parameter update of the ADMM method to balance the importance of the optimization problem and the constraints, improve the convergence speed of the intraday optimization control, and reduce the control cost. The penalty factor is updated based on the historical day-ahead optimization control results.

[0184] The intraday control optimization module can be used to execute the intraday control optimization. Taking minimizing the weighted sum of the total intraday control cost and the distribution network loss as the optimization goal, using the latest penalty factor, using the improved ADMM method to optimize the intraday control, obtain the intraday optimization control strategy, and execute the intraday optimization control strategy.

[0185] The present application proposes a user-side resource dynamic aggregation system for power grid regulation, including a state information extraction module, a particle swarm parameter update module, and a day-ahead regulation optimization module of a resource regulation platform deployed in the cloud layer, and an optimization parameter acquisition module, a penalty factor update module, and an intraday regulation optimization module of each substation subsystem deployed in the edge layer. The user-side resource dynamic aggregation system for power grid regulation is equipped with a large-time scale day-ahead regulation strategy optimization method based on an improved particle swarm and a small-time scale intraday regulation strategy optimization method based on an improved ADMM. The particle swarm parameter update module updates the number of particles and the particle variable inertia weight based on the historical intraday optimization and control results to achieve a compromise between the exploration space and the exploration speed; the penalty factor update module updates the penalty factor based on the historical day-ahead optimization and control results to balance the importance of the optimization problem and the constraint conditions. The modules work together to achieve dynamic aggregation of user-side resources on multiple time scales, improve the distribution network control accuracy, and reduce the control cost.

[0186] The embodiment of the present application also provides an electronic device, the device comprising a processor and a memory;

[0187] The memory is used to store the program code and transmit the program code to the processor;

[0188] The processor is used to execute the user-side resource dynamic aggregation method for power grid regulation in the aforementioned method embodiment according to the instructions in the program code.

[0189] An embodiment of the present application also provides a computer-readable storage medium, which is used to store program code. When the program code is executed by a processor, the user-side resource dynamic aggregation method for power grid regulation in the aforementioned method embodiment is implemented.

[0190] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0191] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0192] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0193] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0194] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0195] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0196] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0197] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A user-side resource dynamic aggregation method for power grid control, characterized in that: Applied to a resource control platform, the method includes: Receive the load status information of user-side resources uploaded by the distribution station area; Based on the load state information, a particle swarm method is used to optimize the day-ahead control optimization model to obtain a day-ahead optimization control strategy, wherein the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy during the optimization process; Execute the day-ahead optimization and control strategy, and send the day-ahead optimization and control strategy to the distribution station area, the distribution station area constructs an intraday control optimization model, optimizes the intraday control optimization model based on the historical day-ahead optimization and control strategy to obtain the intraday optimization and control strategy, executes the intraday optimization and control strategy, and sends the intraday optimization and control strategy to the resource control platform.

2. The method for dynamic aggregation of user-side resources for power grid control according to claim 1, characterized in that: The method of optimizing the day-ahead control optimization model based on the load state information by using a particle swarm method to obtain a day-ahead optimization control strategy includes: S1. Initialize the particle swarm parameters, which include the number of particles and the position information of each particle, wherein one particle represents a day-ahead optimization control strategy; S2. Calculate the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period; S3, based on the fitness value of each particle in the current control period, determine the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period, and update the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle swarm in the current control period; S4. Determine whether the maximum number of iterations has been reached. If so, output the global optimal position of the particle swarm in the current control period to obtain the day-ahead optimization control strategy. If not, update the number of particles in the next control period based on the historical day-to-day optimization control strategy, and return to step S2.

3. The method for dynamic aggregation of user-side resources for power grid control according to claim 2, characterized in that: The updating of the state of each particle in the current control period based on the individual optimal position of each particle in the current control period and the global optimal position of the particle group in the current control period includes: Determine the global optimal fitness value of the particle swarm in the current control period according to the fitness value of each particle in the current control period, and update the inertia weight of each particle in the current control period according to the difference between the global optimal fitness value of the particle swarm in the current control period and the fitness value of each particle in the current control period; The state of each particle in the current control period is updated according to the inertia weight of each particle in the current control period, the individual optimal position of each particle and the global optimal position of the particle group.

4. The method for dynamic aggregation of user-side resources for power grid control according to claim 2, characterized in that: The method of updating the number of particles in the next control period based on the historical intraday optimization control strategy includes: Calculate the average total cost of historical intraday optimization and control corresponding to the historical intraday optimization and control strategy and the average total cost of intraday optimization and control during the current control period; If the average total cost of optimization and control in the past days is greater than the average total cost of optimization and control in the current control period, the number of particles will be increased; If the average total cost of optimization and control in the historical day is less than the average total cost of optimization and control in the current control period, the number of particles will be reduced.

5. The method for dynamic aggregation of user-side resources for power grid control according to claim 2, characterized in that: The calculating the fitness value of each particle in the current control period based on the load state information and the position information of each particle in the current control period includes: Based on the load state information and the position information of each particle in the current control period, the total cost of the day-ahead optimization control corresponding to each particle in the current control period is calculated to obtain the fitness value of each particle; Or, based on the load state information and the position information of each particle in the current control period, the total cost of the day-ahead optimization control corresponding to each particle in the current control period is calculated, and during the optimization process, a penalty term is calculated for a solution that does not meet the constraint conditions, and the fitness value of each particle is calculated according to the total cost of the day-ahead optimization control and the penalty term; Among them, the constraints include the day-ahead power balance constraints of the distribution network area, the active power constraints of the distribution network nodes, the power flow constraints of the distribution network, the reactive power constraints of the distribution network nodes and the voltage constraints of the distribution network nodes.

6. The method for dynamic aggregation of user-side resources for power grid control according to claim 1, characterized in that: The optimizing the intraday control optimization model based on the historical day-ahead optimization control strategy to obtain the intraday optimization control strategy includes: Based on the historical day-ahead optimization control strategy, the penalty factor in the alternating direction multiplier method is updated to obtain the improved alternating direction multiplier method. The intraday optimization regulation strategy is obtained by optimizing the intraday optimization model through the improved alternating direction multiplier method.

7. A user-side resource dynamic aggregation method for power grid control, characterized in that: Applied to a distribution station area, the method comprises: Upload the load status information of the user-side resources to the resource control platform, and the resource control platform uses the particle swarm method to optimize the day-ahead control optimization model based on the load status information to obtain the day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area; wherein, during the optimization process, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy; Construct an intraday regulation optimization model, optimize the intraday regulation optimization model based on the historical day-ahead optimization regulation strategy to obtain an intraday optimization regulation strategy, execute the intraday optimization regulation strategy, and send the intraday optimization regulation strategy to the resource regulation platform.

8. A user-side resource dynamic aggregation system for power grid control, characterized in that: Including resource control platform and distribution area; The distribution station area is used to upload the load status information of the user-side resources to the resource control platform; The resource control platform is used to optimize the day-ahead control optimization model based on the load state information using a particle swarm method to obtain a day-ahead optimization control strategy, execute the day-ahead optimization control strategy, and send the day-ahead optimization control strategy to the distribution station area; wherein, during the optimization process, the number of particles in the particle swarm method is updated based on the historical intraday optimization control strategy; The distribution station area is also used to construct an intraday regulation optimization model, optimize the intraday regulation optimization model based on the historical day-ahead optimization regulation strategy to obtain an intraday optimization regulation strategy, execute the intraday optimization regulation strategy, and send the intraday optimization regulation strategy to the resource regulation platform.

9. An electronic device, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the user-side resource dynamic aggregation method for power grid regulation according to any one of claims 1-6 or claim 7 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and when the program code is executed by a processor, it implements the user-side dynamic aggregation method for power grid regulation described in any one of claims 1 to 6 or claim 7.