Power distribution network source-network load interaction carbon reduction method based on Hemma optimization algorithm
Through the Hippo optimization algorithm and the master-slave game model, the output of coal-fired units and the charging strategy of electric vehicles in the distribution network are optimized, which solves the problems of low efficiency and insufficient accuracy in energy-charge interactive carbon reduction in the distribution network, and achieves safe operation and safety of the power grid. The dual goal of maximizing user benefits.
Patent Information
- Application Number
- CN202410679006.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-10-08
AI Technical Summary
Existing technology is difficult to achieve efficient and dynamic interaction between distribution network sources and loads to reduce carbon emissions, especially in terms of new energy consumption and electric vehicle charging behavior guidance, which suffers from low efficiency and insufficient accuracy.
An interactive carbon reduction method for distribution network sources and grids based on the Hippo optimization algorithm is adopted. By building a network topology and a master-slave game model, combined with dynamic carbon emission factors, the output of coal-fired units and electric vehicle charging strategies are optimized to achieve high efficiency at the upper and lower levels. Interactive controls.
It achieves the minimization of power grid peak and valley differences, minimization of user costs and carbon costs, improves the security and carbon reduction efficiency of the power system, and has rapid convergence and high-precision optimization capabilities.
Smart Images

Figure CN118748397A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution network control, and in particular to a distribution network source-grid-load interactive carbon reduction method based on a Hippo optimization algorithm. Background Art
[0002] In the current environment, although the power system has implemented demand response measures based on electricity price incentives, the current regulatory mechanism has not been able to effectively stimulate carbon emission reduction behavior among end users, mainly because of the lack of targeted carbon reduction incentive signals, resulting in poor carbon reduction results.
[0003] With the increase of distributed generation (DG), the randomness and volatility of wind power and photovoltaic power generation have brought great challenges to the stability and security of the power system. There will be wind and solar abandonment, and the consumption of new energy has also become a problem that needs to be considered. But at the same time, due to the cleanliness of new energy, ensuring the full utilization of new energy is of great significance to carbon reduction. And with the popularization of electric vehicles, a large number of electric vehicles are connected to the grid at the same time, resulting in more obvious peak-to-valley differences in the power grid, and may lead to more carbon dioxide emissions. Guiding the charging behavior of electric vehicles can not only achieve peak-to-valley filling of the power grid, but also increase the utilization rate of new energy power generation. When electric vehicles are connected to the grid when "green electricity" is high, carbon emissions are much lower than when they are generated by "thermal power", thereby achieving carbon reduction based on user behavior.
[0004] At present, the carbon emission calculation of the power system mainly adopts the life cycle method, mass balance method and actual measurement method, which have certain limitations, such as long cycle and difficulty in defining the accounting boundary. The calculation method of carbon emission factor, relying on dynamic power flow calculation, can more accurately define carbon responsibility and improve the accuracy of calculation.
[0005] Carbon emission reduction can be achieved through source-load interaction. This is a two-layer scheduling problem. The upper layer can be designed as an optimization method for the output of a generator set. Although the solution is fast through traditional mathematical optimization methods (such as Lagrange multiplier method and interior point method), the global search ability is poor and it is easy to fall into the local optimal solution. In comparison, intelligent optimization algorithms represented by genetic algorithm (GA) and particle swarm optimization (PSO) have higher flexibility and practicality, but the above intelligent optimization algorithms still have problems such as slow convergence speed and low accuracy in complex system optimization; the lower layer can be designed as an optimization strategy for the charging behavior of electric vehicles, and the optimization can be quickly achieved through the interior point method. However, how to achieve efficient interactive control of the upper and lower layers is a thorny problem currently faced. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm to overcome the limitations of the prior art and achieve efficient dynamic interactive carbon reduction between the upper and lower layers of source and load.
[0007] The problem of the present invention is achieved as follows: A distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm comprises:
[0008] Build a network topology including power generation equipment and user-side load equipment participating in demand response;
[0009] A master-slave game model is used to construct an upper-layer interactive control model of source, grid and load, which includes an upper-layer power system optimization and regulation model and a lower-layer power user demand response model for participating in carbon reduction.
[0010] The upper-level power system optimization and control model is solved by the Hippo optimization algorithm to obtain the optimized coal-fired unit output strategy, and the dynamic carbon emission factor is calculated. The demand response model of lower-level power users participating in carbon reduction is solved in combination with the dynamic carbon emission factor to obtain the corresponding charging strategy. The coal-fired unit output strategy is then re-optimized according to the optimized charging strategy until the preset number of iterations is reached, and the final coal-fired unit output strategy and charging strategy are output.
[0011] Furthermore, the power generation equipment includes coal-fired units and wind turbines and photovoltaic units that generate electricity using renewable energy, and the user-side load equipment participating in demand response includes electric vehicle clusters.
[0012] Furthermore, the specific expression of the source-grid-load upper-lower layer interactive control model is:
[0013]
[0014] Among them, the upper layer plays the role of leader and the lower layer plays the role of follower. They represent the leader’s alternative solution and the current optimal solution respectively; X leader represents the optimization space of the leader; U leader represents the leader’s utility function; q and Respectively represent the alternative solutions of the follower and the current optimal solution; X follower represents the optimization space of the follower; U follower represents the utility function of the follower; represents the current carbon emission factor vector of the follower, that is, the carbon emission factor vector of all electric vehicle groups, f CEF Represents the dynamic carbon emission factor calculation function.
[0015] Furthermore, the goal of the upper power system dispatch model is to minimize the peak-to-valley difference, and its objective function is set as:
[0016]
[0017] Among them, p grid is the power exchanged between the distribution network and the external grid, p avg is the average value of tie line exchanges, T represents the number of control time periods;
[0018] The purpose of the constraint conditions of the upper power system dispatching model is to ensure the safe operation of the power grid. The constraint conditions include active power constraint, reactive power constraint, voltage amplitude constraint and power constraint, which are as follows:
[0019]
[0020]
[0021] V i min ≤V i ≤V i max ,i∈N B
[0022]
[0023] Among them, P Gi and Q Gi are the active power and reactive power output by the generator of the i-th node respectively; P Di and Q Di are the active power demand and reactive power demand of the ith node respectively; V i Represents the voltage amplitude of the ith node, V j represents the voltage amplitude of the jth node; g ij and b ij are the conductance and inductance of line ij respectively; θ ij represents the voltage phase angle difference between the i-th node and the j-th node; and Respectively represent P Gi The lower and upper limits of and Respectively represent Q Gi The lower and upper limits of V i min and V i max Respectively represent V i The lower and upper limits of S i represents the apparent power flow of the ith line; represents the maximum power flow allowed for the i-th line; N G 、N B and N L Respectively represent the generator set, PQ node set and branch set, N i N G 、N B and N L The sum of
[0024] While ensuring the safe operation of the power grid, the system changes the output strategy of the coal-fired units to minimize the peak-to-valley difference of the power grid.
[0025] Furthermore, the user electricity cost and user carbon cost are calculated based on the time-of-use electricity price and the dynamic carbon emission factor. The goal of the demand response model for lower-level electricity users to participate in carbon reduction is to minimize user costs, and its objective function is set as:
[0026]
[0027] in, represents the dynamic carbon emission factor of the jth group of electric vehicles; E and λ C represents the price of electricity and the price of carbon emissions; represents the charging power of electric vehicles at the i-th node; n represents the number of electric vehicle groups; T represents the number of control time periods;
[0028] The constraints of the demand response model for lower-level power users to participate in carbon reduction include battery capacity constraints, charging power constraints, and charging time constraints, as follows:
[0029]
[0030] in, is the total charging power of the jth group of electric vehicles; n is the number of electric vehicle groups; M j is the number of electric vehicles in group j; and denote the connection time and exit time of the j-th electric vehicle cluster; Δt c To control the time period; represents the state of charge when the mth car in the jth cluster exits; represents the initial charge state of the mth car in the jth cluster; e jm and are the maximum capacity and maximum charging power of the mth electric vehicle in the jth group; ηj m is the charging efficiency factor of the mth electric vehicle in the jth group.
[0031] Furthermore, the dynamic carbon emission factor is calculated based on the node data (including the power generated by the generator connected to the node, the power flow data calculated based on the power flow, and the carbon emission data of the generator set (ie, Eg)), and the calculation formula is as follows:
[0032] δ=A -1 E g
[0033] A is the carbon emission coefficient matrix, A=[A ij ]∈R k×k ; E g represents the carbon emission vector of all distributed generators.
[0034] Furthermore, the specific process of solving the output strategy of coal-fired units in the upper power system through the Hippo optimization algorithm is as follows:
[0035] Step 1: Initialize the algorithm parameters, set the number of iterations it = 1, the population size N = 50, generate the initial spatial position of the hippopotamus corresponding to the decision variable, and the position of the hippopotamus in the search space is updated to represent the value of the decision variable. The vector representation of the decision variable is:
[0036] χ i :x ij =lb j +r(ub j -lb j ),i=1,2,...,N,j=1,2,...,m
[0037] In the formula, χ i represents the position of the i-th candidate solution, x ij represents the jth decision variable of the i-th candidate solution, r is a random number between 0 and 1, and lb j andub j They represent the lower and upper bounds of the j-th decision variable, N represents the population size of hippos in the herd, and m represents the number of decision variables in the problem;
[0038] Step 2: Calculate individual fitness and update the hippopotamus position, calculate the objective function value of the current position and select the optimal position for update;
[0039] Step 3: Exploration stage: Male hippos will be expelled from the hippo group when they become adults. These male individuals require to attract females, or compete with other established male members in the hippo group to establish their own advantages. The position update process of these hippos is:
[0040]
[0041]
[0042] In the formula, j represents the jth decision variable, m represents the total number of decision variables, and N represents the population size. represents the position of the i-th male hippopotamus, represents the jth decision variable of the ith male hippopotamus, x ij Indicates that the hippopotamus individual currently considered is the jth decision variable, Indicates the position of the dominant hippopotamus, represents the fitness value of the i-th male hippopotamus, y 1 is a randomly generated number between 0 and 1. 1 , I 2 is an integer between 1 and 2, is a random vector, r 5 , r6, r7 are random numbers, and is a random number of 1 or 0. is the average of some randomly chosen hippo positions, represents the position of the i-th female hippopotamus, represents the j-th decision variable of the ith female hippopotamus, represents the fitness value of the i-th female hippopotamus, h 1 and h 2 is a number or vector randomly selected from h, H is a value calculated by an exponential function to measure the distance between hippos, t is the current iteration, is the maximum number of iterations;
[0043] Step 4: Hippo defends against predators. The main defense strategy adopted by hippos is to quickly turn towards predators and make loud calls to prevent predators from approaching them. Generate random positions for predators as follows:
[0044] Predator:
[0045] Calculate and update the hippo's position:
[0046]
[0047] Where Predator is the predator position, r is a random vector ranging from 0 to 1, represents the hippo's position update when facing a predator, is a random vector with Levy distribution, m represents the total number of decision variables, c, d, g are random numbers, is a random vector, is the fitness value of the j-th predator, is the fitness value of the i-th hippopotamus;
[0048] Step 5: In the development phase, limit the hippo's position, calculate and update the hippo's new position:
[0049]
[0050] in, is the lower limit of the Hippo search position, is the upper limit of the Hippo search position, is the location that Hippo searches for, represents the jth decision variable of the i-th hippopotamus, r 10 ,s 1 is a random number, t represents the current iteration, is the maximum number of iterations;
[0051] Step 6: Save the fitness value of the hippo group and select the best hippo position;
[0052] Step 7: Determine whether to continue iteration. If the current number of iterations is greater than or equal to the maximum number of iterations, output the decision and fitness value of the current best Hippo, that is, the optimal output strategy of the coal-fired unit and the peak-to-valley difference of the operator; otherwise, return to step 2 to continue optimizing.
[0053] Furthermore, the charging strategy of lower-level electric vehicles participating in carbon reduction is solved by the interior point method, and the steps include initializing optimization parameters, setting upper and lower limits, and constraints, combining the dynamic carbon emission factors calculated by the upper layer, and calculating the lower-level objective function value by changing the electric vehicle charging strategy to obtain the optimal strategy.
[0054] The advantages of the present invention are:
[0055] (1) The present invention constructs an electric power system that combines renewable energy power generation with traditional power generation technology and user-side demand response resources, which is of great significance for carbon reduction through interactive interaction between sources, grids and loads. Under a series of policy trends proposed around the "dual carbon goals", it has good feasibility and broad application prospects.
[0056] (2) The interactive carbon reduction method of the present invention adopts an upper and lower layer interactive control method. The upper layer adjusts the output of coal-fired units to minimize the peak-to-valley difference of the power grid and achieve safe operation of the power grid; the lower layer adjusts the user's electric vehicle charging strategy to minimize electricity cost and carbon cost and maximize user benefits; the upper and lower layers are coupled through dynamic carbon emission factors and solved through a master-slave game model to achieve interactive carbon reduction of the source, grid and load, providing a scientific method for interactive carbon reduction.
[0057] (3) The Hippo optimization algorithm adopted in the present invention coordinates the optimization through position exploration, defense exploration and escape development, and strikes a good balance between global search and local search. Compared with conventional heuristic algorithms, the algorithm adaptively adjusts the resolution and search speed of the search space to quickly and accurately find the optimal solution, and has the characteristics of fast convergence speed and high solution accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0059] Figure 1 The present invention is an execution flow chart of a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm.
[0060] Figure 2 This is a schematic diagram of the principle of a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm of the present invention.
[0061] Figure 3 This is a topological diagram of the IEEE 33-node power distribution network structure used in the embodiment of the present invention. Three groups of electric vehicles are set at nodes 15, 24, and 33, photovoltaic, coal-fired units, and wind power generation equipment are set at nodes 18, 25, and 30, respectively, and the rest are normal loads.
[0062] Figure 4 This is a comparison chart of the iterative convergence of the Hippo optimization algorithm and the Whale optimization algorithm used in the upper-layer solution of the present invention, where the horizontal axis is the number of iterations and the vertical axis is the population fitness value obtained in each iteration. DETAILED DESCRIPTION
[0063] The overall design idea of the present invention is as follows: First, a top-down interactive carbon reduction model is designed and constructed for the low-carbon economic dispatch problem of distribution networks in which electric vehicles participate in demand response; then, the upper and lower layers are optimized respectively, wherein the upper layer optimization is optimized using the Hippopotamus Algorithm to determine the optimal output strategy of the coal-fired unit. In addition, the dynamic carbon emission factor of the entire power system is monitored by power flow calculation as a coupling factor between the upper and lower layers. The lower layer optimization is to optimize the charging strategy of the electric vehicle cluster under the guidance of the dynamic carbon emission factor and the time-of-use electricity price. This process not only promotes the efficient use of energy, but also affects the optimization decision of the lower layer by updating the dynamic carbon emission factor. Its iterative mechanism is to couple the upper and lower layer optimizations with each other through the dynamic carbon emission factor to form a closed-loop feedback system, and through continuous cyclic iteration, the strategies of each layer are continuously refined to adapt to the dynamic changes of the system and real-time data. The overall optimization process is solved by the master-slave game model, which not only ensures the safe and stable operation of the power grid, but also takes carbon emission minimization as one of the core optimization goals. Through the above design, the present invention realizes an efficient and adaptive source-grid-load interactive carbon reduction framework, achieves the carbon reduction target through an intelligent decision support system, and maintains the economy and reliability of the power system.
[0064] In order to make the present invention more clearly understood, a preferred embodiment is now described in detail with reference to the accompanying drawings.
[0065] like Figure 1 and Figure 2 As shown, the present invention provides a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm, comprising:
[0066] Build a network topology including power generation equipment and user-side load equipment participating in demand response;
[0067] A master-slave game model is used to construct an upper-layer interactive control model of source, grid and load, which includes an upper-layer power system optimization and regulation model and a lower-layer power user participation in carbon reduction demand response model; the upper-layer power system optimization and regulation model is aimed at distribution system operators, and its goal is to minimize the system peak-to-valley difference (calculate the peak-to-valley difference, with the minimum variance as the goal), while the power user participation in carbon reduction demand response model is aimed at electric vehicle users, and its goal is to minimize carbon emissions and electricity costs, and adopt a two-layer dispatch to meet the independent profit maximization of distribution system operators and electric vehicle users;
[0068] Combining the network topology and node data, unit output and initial state data of electric vehicles, the Hippo optimization algorithm is used to solve the upper-level power system optimization and control model to obtain the optimized coal-fired unit output strategy, and calculate the dynamic carbon emission factor; combined with the dynamic carbon emission factor, the demand response model of lower-level power users participating in carbon reduction is solved to obtain the corresponding charging strategy, and then the coal-fired unit output strategy is re-optimized according to the optimized charging strategy until the preset number of iterations is reached, and the final coal-fired unit output strategy and charging strategy are output.
[0069] The power generation equipment includes coal-fired units and wind turbines and photovoltaic units that generate electricity using renewable energy, and the user-side load equipment participating in demand response includes electric vehicle clusters. Figure 3 As shown, this embodiment adopts the distribution network structure topology diagram of IEEE33 nodes.
[0070] Preferably, the specific expression of the source-grid-load upper-lower layer interactive control model is:
[0071]
[0072] Among them, the upper layer plays the role of leader and the lower layer plays the role of follower. They represent the leader’s alternative solution and the current optimal solution respectively; X leader represents the optimization space of the leader; U leader represents the leader’s utility function; q and Respectively represent the alternative solutions of the follower and the current optimal solution; X follower represents the optimization space of the follower; U follower represents the utility function of the follower; represents the current carbon emission factor CEF vector of the follower, that is, the carbon emission factor CEF vector of all electric vehicle EV groups (composed of the carbon emission factor of each electric vehicle group at each time point), f CEF Represents the dynamic carbon emission factor CEF calculation function; argmax represents the variable value that makes the given function reach the maximum value.
[0073] Preferably, the upper layer is the optimization of the power system distributor, which optimizes the output of the coal-fired units according to the power demand to meet the load operation and ensure the safe operation of the power grid. The goal of the upper power system dispatching model is to minimize the peak-to-valley difference, and the calculation is performed by calculating the variance. The objective function is set as:
[0074]
[0075] Among them, p grid is the power exchanged between the distribution network and the external grid, p avgis the average value of tie line exchanges, T represents the number of control time periods, and a day is divided into 24 time periods;
[0076] The purpose of the constraint conditions of the upper power system dispatching model is to ensure the safe operation of the power grid. The constraint conditions include active power constraint, reactive power constraint, voltage amplitude constraint and power constraint, which are as follows:
[0077]
[0078] V i min ≤V i ≤V i max ,i∈N B (9)
[0079]
[0080] Among them, P Gi and Q Gi are respectively the active power and reactive power output by the generator at the i-th node; P Di and Q Di are the active power demand and reactive power demand of the ith node respectively; V i Represents the voltage amplitude of the ith node, V j represents the voltage amplitude of the jth node; g ij and b ij are the conductance and inductance of line ij respectively; θ ij represents the voltage phase angle difference between the i-th node and the j-th node; and Respectively represent P Gi The lower and upper limits of and Respectively represent Q Gi The lower and upper limits of V i min and V i max Respectively represent V i The lower and upper limits of S i represents the apparent power flow of the ith line; represents the maximum power flow allowed for the i-th line; N G 、N B and N L Respectively represent the generator set, PQ node set and branch set, N i N G 、N B and N L The sum of
[0081] The above objective function follows the node power balance constraint, as well as the node power upper and lower limit constraints and other power grid constraints. While ensuring the safe operation of the power grid, the system changes the output strategy of the coal-fired units to minimize the peak-to-valley difference of the power grid.
[0082] For the upper model, first initialize the output power of photovoltaic and wind turbines (wherein, the output power of photovoltaic and wind turbines is fixed and not within the optimization range), initialize the initial energy state of the electric vehicle and allocate the initial charging power according to the proportion, and use the Hippo optimization algorithm to solve the upper design to determine the output of the coal-fired unit so that the peak-to-valley difference at each time point is minimized. After obtaining the optimization results, the dynamic carbon emission factor of each node is calculated in combination with the network topology and node data.
[0083] Preferably, the carbon emission factor obtained by the upper layer is coupled with the lower layer, and the design takes into account the electricity cost and carbon cost of the user end, wherein the user electricity cost is calculated according to the time-of-use electricity price, and the carbon emission is calculated according to the carbon emission factor of each node to calculate the user carbon cost. The goal of the demand response model for the participation of lower-level power users in carbon reduction is to minimize user costs, and its objective function is set as:
[0084]
[0085] in, represents the dynamic carbon emission factor of the jth group of electric vehicles; E and λ C represents the price of electricity and the price of carbon emissions; represents the charging power of electric vehicles at the i-th node; n represents the number of electric vehicle groups; T represents the number of control time periods.
[0086] It is not difficult to see that the above optimization goal is to minimize the total cost of electricity consumption of electric vehicles, and the total cost is calculated by the sum of electricity cost and carbon cost.
[0087] Guided by time-of-use electricity prices and dynamic carbon emission factors, a mathematical model of electric vehicle charging strategy is constructed, with the goal of reducing user costs, following capacity constraints and power constraints, and taking into account electric vehicle charging time, charging power constraints and charging capacity constraints, the constraints of the demand response model for lower-level power users to participate in carbon reduction include battery capacity constraints, charging power constraints and charging time constraints, as follows:
[0088]
[0089] in, is the total charging power of the jth group of electric vehicles; n is the number of electric vehicle groups; M j is the number of electric vehicles in group j; and denote the connection time and exit time of the j-th electric vehicle cluster; Δt c To control the time period; represents the expected state of charge (SOC) when the mth car in the jth cluster exits; represents the initial state of charge SOC of the mth car in the jth cluster; e jm and are the maximum capacity and maximum charging power of the mth electric vehicle in the jth group respectively; η jm is the charging efficiency factor of the mth electric vehicle in the jth group.
[0090] Preferably, the flow can be calculated by the power output, load demand and network topology determined by the distributed generators. The present invention constructs the carbon emission flow of the distribution network based on the proportional sharing principle, and the dynamic carbon emission factor calculation can be expressed as:
[0091]
[0092] In the formula, δ i is the dynamic carbon emission factor of the ith node; is the active power output of the distributed generator connected to the i-th node; is the carbon emission factor of the electricity from the distributed generator connected to the i-th node; P ij is the branch active power inflow from the jth node to the ith node; Ω i is the set of inflow branch nodes connected to the i-th node; δ j is the dynamic carbon emission factor of the jth node; the carbon emission factor here refers to the dynamic carbon emission factor of each of the 33 nodes.
[0093] Then the carbon emission vector of the entire system can be expressed as:
[0094] Aδ=E g
[0095]
[0096] Where δ represents the carbon emission factor vector of the entire distribution network; A is the carbon emission coefficient matrix, A = [A ij ]∈R k×k ; E g represents the carbon emission vector of all distributed generators; k is the number of all nodes in the topology.
[0097] A and E in the equation g It can be determined according to the power flow and carbon emission coefficient of all distributed generators. Therefore, the carbon emission factor vector of the entire distribution network, that is, the dynamic carbon emission factor, can be expressed as follows:
[0098] δ=A -1 E g (15)
[0099] Among them, A is the carbon emission coefficient matrix, E g Represents the carbon emission vector of all distributed generators. When calculating the dynamic carbon emission factor, the power flow can be calculated according to the network topology, unit data and node data to obtain the coefficient matrix A. Since the carbon emission factor vector of the generator set is known, the dynamic carbon emission factor of the entire system can be obtained.
[0100] Based on the carbon emissions, active power and node load data of the generator set, the present invention can calculate the dynamic carbon emission factor of each node in real time in combination with the flow calculation, as a coupling factor transmitted to the lower layer, and provide a coupling key factor for the upper and lower layer optimization. Here, node load data is required in the process of calculating dynamic carbon emissions. The coefficient matrix includes power flow conditions and node loads, or the power is balanced at a node. The generated power minus the flow power is the load of the node.
[0101] Preferably, the specific process of solving the output strategy of coal-fired units in the upper power system by Hippo optimization algorithm is as follows:
[0102] Step 1: Initialize the algorithm parameters, set the number of iterations it = 1, the population number N = 50, generate the initial spatial position of the hippopotamus corresponding to the decision variable (i.e., the output decision of the coal-fired unit in the upper optimization), and the position of the hippopotamus in the search space is updated to represent the value of the decision variable. The vector of the decision variable is expressed as:
[0103] χ i :x ij =lb j +r(ub j -lb j ),i=1,2,...,N,j=1,2,...,m (16)
[0104] In the formula, χ i represents the position of the i-th candidate solution, x ij represents the jth decision variable of the i-th candidate solution, r is a random number between 0 and 1, and lb j andub j They represent the lower and upper bounds of the j-th decision variable, N represents the population size of hippos in the herd (i.e., the candidate solution space of the decision variable), and m represents the number of decision variables in the problem. Here, the output strategy of the coal-fired unit for 24 hours is to be optimized, so each spatial position of the hippo distribution corresponds to a decision, and each decision corresponds to a 24-dimensional vector, i.e., the output value of the coal-fired unit for 24 hours. There are N sets of candidate solutions in total.
[0105] Step 2: Calculate the individual fitness and update the hippopotamus position. Calculate the objective function value of the current position according to formula (4) and select the optimal position for update.
[0106] Step 3: Exploration stage: Male hippos will be expelled from the hippo group when they become adults. These male individuals require to attract females, or compete with other established male members in the hippo group to establish their own advantages. The position update process of these hippos is:
[0107]
[0108]
[0109] In the formula, j represents the jth decision variable, m represents the total number of decision variables, and N represents the population size. represents the position of the i-th male hippopotamus, represents the jth decision variable of the ith male hippopotamus, x ij Indicates that the hippopotamus individual currently considered is the jth decision variable, Indicates the position of the dominant hippopotamus, represents the fitness value of the i-th male hippopotamus, y 1 is a randomly generated number between 0 and 1. 1 , I 2 is an integer between 1 and 2, is a random vector, r 5 , r6, r7 are random numbers, and is a random number of 1 or 0. is the average of some randomly chosen hippo positions, represents the position of the i-th female hippopotamus, represents the j-th decision variable of the ith female hippopotamus, represents the fitness value of the i-th female hippopotamus, h 1 and h 2 is a number or vector randomly selected from h, H is a value calculated by an exponential function to measure the distance between hippos, t is the current iteration, is the maximum number of iterations.
[0110] Calculate the new position of the hippopotamus according to formulas (17) and (18), and update the hippopotamus position according to formulas (20) and (21);
[0111] Step 4: Hippo defends against predators (exploration phase). The main defense strategy adopted by hippopotamuses is to quickly turn towards predators and make loud calls to prevent predators from approaching them. Formula (22) is used to generate random positions for predators. The positions of hippopotamuses are calculated and updated according to formulas (23) and (24).
[0112]
[0113]
[0114] Where Predator is the predator position, r is a random vector ranging from 0 to 1, represents the hippo's position update when facing a predator, is a random vector with Levy distribution, m represents the total number of decision variables, c, d, g are random numbers, is a random vector, is the fitness value of the j-th predator, is the fitness value of the i-th hippopotamus.
[0115] Step 5: Hippopotamus escapes from predators (development phase) To escape from predators, the hippopotamus finds a safe location close to its current location. Formula (25) represents the hippopotamus position boundary, and the hippopotamus' new location is calculated and updated according to formulas (26) and (27);
[0116]
[0117] in, is the lower limit of the Hippo search position, is the upper limit of the Hippo search position, is the location that Hippo searches for, represents the jth decision variable of the i-th hippopotamus, r 10 ,s 1 is a random number, t represents the current iteration, is the maximum number of iterations.
[0118] Step 6: Save the fitness value of the hippo group and select the best hippo position;
[0119] Step 7: Determine whether to continue iteration. If the current number of iterations is greater than or equal to the maximum number of iterations (in this embodiment, the maximum number of iterations is 50), output the decision and fitness value of the current best Hippo, that is, the optimal output strategy of the coal-fired unit and the peak-to-valley difference of the operator (here the upper layer optimizes only the power generation of the coal-fired unit, while the wind turbine and photovoltaic unit are only used as generators, and their power generation power is set at each moment and does not need to be optimized); otherwise, return to step 2 to continue to optimize.
[0120] Preferably, the charging strategy of the lower-level electric vehicles participating in carbon reduction is solved by the interior point method, and the steps include initializing the optimization parameters, setting upper and lower limits, and constraints, combining the dynamic carbon emission factors calculated by the upper layer, and calculating the lower-level objective function value by changing the electric vehicle charging strategy to obtain the optimal strategy. Since the lower-level objective function is the sum of the user's electricity cost and carbon cost, the user is not only concerned about the time-of-use electricity price, but the carbon emission factor will also affect the user's cost. The user is more inclined to choose a time period with a low carbon emission factor for charging, thereby selecting the electric vehicle charging strategy. The interior point method solution steps are: first, establish a Lagrangian function for the objective function, select the initial solution to satisfy the constraints; then calculate the gradient and Hessian matrix of the Lagrangian function, and use the Newton method to determine the search direction; then perform a line search to determine the appropriate step size α, so that the updated solution x+αΔx still satisfies all constraints and can effectively reduce the objective function value.
[0121] The method of the present invention uses the carbon emission factor obtained through the upper optimization process to calculate the carbon emissions and carbon cost and the electricity cost based on the time-of-use electricity price, and then obtains the total cost of the lower layer. Because the lower layer is a linear optimization problem, the interior point method has the characteristic of rapid optimization, so the classical interior point method can be directly used for solving, and the optimal charging strategy for electric vehicles is obtained. After feedback to the upper layer, the output strategy of the upper coal-fired units is readjusted according to the optimized node load, and the carbon emission factor is updated in real time. Then, the optimal charging strategy for the electric vehicle is calculated again, transmitted to the upper layer, and interactive control is formed with the upper layer. The upper layer solves again and iterates in sequence until the number of iterations is reached to obtain the optimal strategy for both parties.
[0122] The present invention constructs an electric power system that combines renewable energy power generation and traditional power generation technologies with user-side demand response resources, which is of great significance to the interactive carbon reduction of sources, grids and loads. Under a series of policy trends proposed around the "dual carbon goals", it has good feasibility and broad application prospects. The interactive carbon reduction method of the present invention adopts an upper and lower layer interactive control method. The upper layer adjusts the output of coal-fired units to minimize the peak-to-valley difference of the power grid and achieve safe operation of the power grid; the lower layer adjusts the user's electric vehicle charging strategy to minimize electricity costs and carbon costs and maximize user benefits; the upper and lower layers are coupled through dynamic carbon emission factors and solved through a master-slave game model to achieve interactive carbon reduction of sources, grids and loads, providing a scientific method for interactive carbon reduction. In addition, the Hippo optimization algorithm adopted by the present invention coordinates optimization through location exploration, defense exploration and escape development, and strikes a good balance between global search and local search. Compared with conventional heuristic algorithms, the algorithm adaptively adjusts the resolution and search speed of the search space to quickly and accurately find the optimal solution, and has a fast convergence speed (see Figure 4 ), high solution accuracy, etc.
[0123] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm, characterized by: include: Build a network topology including power generation equipment and user-side load equipment participating in demand response; A master-slave game model is used to construct an upper-layer interactive control model of source, grid and load, which includes an upper-layer power system optimization and regulation model and a lower-layer power user demand response model for participating in carbon reduction. The upper-level power system optimization and control model is solved by the Hippo optimization algorithm to obtain the optimized coal-fired unit output strategy, and the dynamic carbon emission factor is calculated. The demand response model of lower-level power users participating in carbon reduction is solved in combination with the dynamic carbon emission factor to obtain the corresponding charging strategy. The coal-fired unit output strategy is then re-optimized according to the optimized charging strategy until the preset number of iterations is reached, and the final coal-fired unit output strategy and charging strategy are output.
2. According to the Hippo optimization algorithm-based distribution network source-grid-load interactive carbon reduction method of claim 1, it is characterized in that: The power generation equipment includes coal-fired units and wind turbine units and photovoltaic units that generate electricity using renewable energy, and the user-side load equipment participating in demand response includes electric vehicle clusters.
3. According to the Hippo optimization algorithm-based distribution network source-grid-load interactive carbon reduction method of claim 1, it is characterized in that: The specific expression of the source-grid-load upper-lower layer interactive control model is: Among them, the upper layer plays the role of leader and the lower layer plays the role of follower. They represent the leader’s alternative solution and the current optimal solution respectively; X leader represents the optimization space of the leader; U leader represents the leader’s utility function; q and Respectively represent the alternative solutions of the follower and the current optimal solution; X follower represents the optimization space of the follower; U follower represents the utility function of the follower; represents the current carbon emission factor vector of the follower, that is, the carbon emission factor vector of all electric vehicle groups, f CEF Represents the dynamic carbon emission factor calculation function.
4. According to claim 3, a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm is characterized in that: The goal of the upper power system dispatch model is to minimize the peak-to-valley difference, and its objective function is set as: Among them, p grid is the power exchanged between the distribution network and the external grid, p avg is the average value of tie line exchanges, T represents the number of control time periods; The purpose of the constraint conditions of the upper power system dispatching model is to ensure the safe operation of the power grid. The constraint conditions include active power constraint, reactive power constraint, voltage amplitude constraint and power constraint, which are as follows: Among them, P Gi and Q Gi are the active power and reactive power output by the generator of the i-th node respectively; P Di and Q Di are the active power demand and reactive power demand of the ith node respectively; V i Represents the voltage amplitude of the ith node, V j represents the voltage amplitude of the jth node; g ij and b ij are the conductance and inductance of line ij respectively; θ ij represents the voltage phase angle difference between the i-th node and the j-th node; and Respectively represent P Gi The lower and upper limits of and Respectively represent Q Gi The lower and upper limits of V i min and V i max Respectively represent V i The lower and upper limits of S i represents the apparent power flow of the ith line; represents the maximum power flow allowed for the i-th line; N G 、N B and N L Respectively represent the generator set, PQ node set and branch set, N i N G 、N B and N L The sum of While ensuring the safe operation of the power grid, the system changes the output strategy of the coal-fired units to minimize the peak-to-valley difference of the power grid.
5. According to claim 3, a distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm is characterized in that: The user electricity cost and user carbon cost are calculated based on the time-of-use electricity price and the dynamic carbon emission factor. The goal of the demand response model for lower-level electricity users to participate in carbon reduction is to minimize user costs, and its objective function is set as: in, represents the dynamic carbon emission factor of the jth group of electric vehicles; E and λ C represents the price of electricity and the price of carbon emissions; represents the charging power of electric vehicles at the i-th node; n represents the number of electric vehicle groups; T represents the number of control time periods; The constraints of the demand response model for lower-level power users to participate in carbon reduction include battery capacity constraints, charging power constraints, and charging time constraints, as follows: in, is the total charging power of the jth group of electric vehicles; n is the number of electric vehicle groups; M j is the number of electric vehicles in group j; and denote the connection time and exit time of the j-th electric vehicle cluster; Δt c To control the time period; represents the expected state of charge when the mth car in the jth cluster exits; represents the initial charge state of the mth car in the jth cluster; e jm and are the maximum capacity and maximum charging power of the mth electric vehicle in the jth group respectively; η jm is the charging efficiency factor of the mth electric vehicle in the jth group.
6. The distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm according to claim 3 is characterized in that: The dynamic carbon emission factor is calculated based on the node data, and its calculation formula is as follows: δ=A -1 E g A is the carbon emission coefficient matrix, A=[A ij ]∈R k×k ; E g represents the carbon emission vector of all distributed generators.
7. The distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm according to claim 4 is characterized in that: The specific process of solving the output strategy of coal-fired units in the upper power system through the Hippo optimization algorithm is as follows: Step 1: Initialize the algorithm parameters, set the number of iterations it = 1, the population size N = 50, generate the initial spatial position of the hippopotamus corresponding to the decision variable, and the position of the hippopotamus in the search space is updated to represent the value of the decision variable. The vector representation of the decision variable is: χ i :x ij =lb j +r(ub j -lb j ),i=1,2,...,N,j=1,2,...,m In the formula, χ i represents the position of the i-th candidate solution, x ij represents the jth decision variable of the i-th candidate solution, r is a random number between 0 and 1, and lb j andub j They represent the lower and upper bounds of the j-th decision variable, N represents the population size of hippos in the herd, and m represents the number of decision variables in the problem; Step 2: Calculate individual fitness and update the hippopotamus position, calculate the objective function value of the current position and select the optimal position for update; Step 3: Exploration stage: When male hippos become adults, they will be expelled from the hippo herd. These male individuals seek to attract females or compete with other established male members in the hippo herd to establish their own dominance. The position update process of these hippos is as follows: In the formula, j represents the jth decision variable, m represents the total number of decision variables, and N represents the population size. represents the position of the i-th male hippopotamus, represents the jth decision variable of the ith male hippopotamus, x ij Indicates that the hippopotamus individual currently considered is the jth decision variable, Indicates the position of the dominant hippopotamus, represents the fitness value of the ith male hippopotamus, y1 is a randomly generated number between 0 and 1, I1, I2 are integers between 1 and 2, is a random vector, r5, r6, r7 are random numbers, and is a random number of 1 or 0. is the average of some randomly chosen hippo positions, represents the position of the i-th female hippopotamus, represents the j-th decision variable of the ith female hippopotamus, represents the fitness value of the ith female hippopotamus, h1 and h2 are numbers or vectors randomly selected from h, H is a value calculated by an exponential function to measure the distance between hippos, t is the current iteration, is the maximum number of iterations; Step 4: Hippo defends against predators. The main defense strategy adopted by hippos is to quickly turn towards predators and make loud calls to prevent predators from approaching them. Generate random positions for predators as follows: Calculate and update the hippo's position: Where Predator is the predator position, r is a random vector ranging from 0 to 1, represents the hippo's position update when facing a predator, is a random vector with Levy distribution, m represents the total number of decision variables, c, d, g are random numbers, is a random vector, is the fitness value of the j-th predator, is the fitness value of the i-th hippopotamus; Step 5: In the development phase, limit the hippo's position, calculate and update the hippo's new position: in, is the lower limit of the Hippo search position, is the upper limit of the Hippo search position, is the location that Hippo searches for, represents the jth decision variable of the i-th hippopotamus, r 10 , s1 is a random number, t represents the current iteration, is the maximum number of iterations; Step 5: Save the fitness value of the hippo group and select the best hippo position; Step 7: Determine whether to continue iteration. If the current number of iterations is greater than or equal to the maximum number of iterations, output the decision and fitness value of the current best Hippo, that is, the optimal output strategy of the coal-fired unit and the peak-to-valley difference of the operator; otherwise, return to step 2 to continue optimizing.
8. The distribution network source-grid-load interactive carbon reduction method based on the Hippo optimization algorithm according to claim 3 is characterized in that: The interior point method is used to solve the charging strategy of lower-level electric vehicles participating in carbon reduction. The steps include initializing optimization parameters, setting upper and lower limits, and constraints, combining the dynamic carbon emission factors calculated by the upper layer, and changing the electric vehicle charging strategy to calculate the lower-level objective function value to obtain the optimal strategy.
Citation Information
Cited By
Transformer fault diagnosis method based on improved neural network
CN119380755A
Low-frequency load shedding method, system and equipment for power grid containing new energy, and medium
CN119627953A
A low-carbon charging method and system for electric vehicles based on dynamic carbon emission factors
CN119784106A
Power distribution network low-carbon operation control method and device with source network load storage cooperation
CN122178381A
