Distributed power supply and energy storage grid-connected site selection and capacity determination method, device and electronic equipment
By establishing multi-objective functions and constraint conditions, and using the hybrid simulated annealing algorithm optimization algorithm to determine the optimal access location and capacity of distributed power sources and energy storage, the problems of voltage fluctuations and output power fluctuations in the distribution network are solved, and economical Taking into account both performance and voltage quality, it alleviates the pressure on fossil energy supply.
Patent Information
- Application Number
- CN202210922009.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-08-02
AI Technical Summary
After distributed power sources and energy storage are connected to the distribution network, the voltage fluctuation of the distribution network will increase or decrease, affecting the stability of the system voltage. In addition, the output power fluctuation affects the normal operation of the power system, which requires taking into account both economy and voltage quality. Determine the optimal access location and capacity of distributed power sources and energy storage.
By establishing a multi-objective function, including minimizing distribution network investment costs, minimizing network losses, and minimizing the difference between energy storage access capacity and distributed power supply access capacity, combined with system power flow constraints, voltage deviation, voltage fluctuation, branch power, and distribution The power supply installation capacity and energy storage constraints are solved by an improved particle swarm optimization algorithm using a hybrid simulated annealing algorithm. The optimal solution includes the access location and access capacity of distributed power sources and energy storage in the distribution network.
It is possible to determine the capacity configuration plan of distributed power sources and energy storage on the basis of taking into account both economy and voltage quality, alleviate the pressure on traditional fossil energy supply, improve the voltage quality of the distribution network, and ensure the stable operation of the power system.
Smart Images

Figure CN115189378B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and in particular to a method, device and electronic equipment for site selection and capacity determination of distributed power supply and energy storage grid connection. Background Art
[0002] In recent years, traditional fossil energy has been depleted, and the use of traditional fossil energy for power generation can no longer meet the requirements of efficient energy utilization and clean production. Distributed power sources widely use clean and renewable energy, which can reduce the consumption of fossil energy and the emission of harmful gases; at the same time, distributed power sources are located on the user side, which can reduce the construction cost and loss of the transmission and distribution network. Since distributed power sources are environmentally friendly, flexible in configuration, enhance power supply reliability, and meet the advantages of sustainable development, connecting distributed power sources to the distribution network can become a supplement and improvement to centralized power generation.
[0003] With the development of distributed power and energy storage technology, the proportion of distributed power and energy storage equipment connected to the distribution network continues to increase. On the one hand, it supports the voltage of the distribution network; on the other hand, it will also increase or decrease the voltage fluctuation of the distribution network, making it difficult to control the system voltage, which is not conducive to the stability of the system voltage and affects the normal power consumption of users; and distributed power sources are widely distributed, and the shutdown and start-up are not uniform, which will cause output power fluctuations, affect the normal operation of the power system, and thus have an adverse impact on the distribution network. The magnitude of this impact is closely related to the access location and access capacity of distributed power and energy storage.
[0004] Therefore, it is necessary to determine the configuration scheme of distributed power sources and energy storage under different conditions while taking into account the economy and voltage quality of the distribution network, so as to provide a basis for the access of distributed power sources and energy storage. Summary of the invention
[0005] The embodiments of the present invention provide a distributed power source and energy storage grid-connected site selection method, device and electronic equipment to determine the optimal access location and optimal access capacity of the distributed power source and energy storage while taking into account both economy and distribution network voltage quality.
[0006] In a first aspect, an embodiment of the present invention provides a method for selecting a site and determining the capacity of a distributed power source and energy storage grid connection, comprising:
[0007] The first objective function is established with the goal of minimizing the investment cost of the distribution network, the second objective function is established with the goal of minimizing the network loss of the distribution network, and the third objective function is established with the goal of minimizing the difference between the energy storage access capacity and the distributed generation access capacity in the distribution network, thereby obtaining a multi-objective function;
[0008] Establishing constraints of the multi-objective function;
[0009] The multi-objective function is solved based on the constraint conditions to obtain an optimal solution; the optimal solution includes the access location and access capacity of the distributed power source and the energy storage in the distribution network.
[0010] In a possible implementation, the calculation formula of the multi-objective function is:
[0011]
[0012] in, is the calculation formula of the first objective function, is the calculation formula of the second objective function, is the calculation formula of the third objective function, C is the investment cost of the distribution network, P is the network loss of the distribution network, Z is the difference between the energy storage access capacity and the distributed power access capacity, N D is the set of nodes connected to the distributed power source, N S is the set of nodes connected to the energy storage, t is any time in a typical cycle of the distribution network, T is the time of a typical cycle of the distribution network, n is the set of nodes in the distribution network, L is the set of lines in the distribution network, is the investment cost of connecting k-node distributed power generation, is the investment cost of connecting k nodes to energy storage, is the fuel cost consumed during the operation of the distribution network, The pollution penalty for emissions, R l is the resistance of line l in the distribution network, I l (t) is the current flowing through line l at time t, P DG,k is the distributed generation capacity of access node k, P E,k is the energy storage capacity of access node k.
[0013] In a possible implementation, the constraints include system power flow constraints, voltage deviation constraints, voltage fluctuation constraints, branch power constraints, distributed power installation capacity constraints and energy storage constraints; wherein,
[0014] The system power flow constraint is:
[0015]
[0016] Where i and j represent any node in the distribution network, P i is the active power flowing into node i, Q i is the reactive power flowing into node i, P L.i is the active power of the load connected to node i, Q L.i is the reactive power flowing into node i, P DG.i is the active power injected by the distributed generation at node i, Q DG.iis the reactive power injected by the distributed generation at node i, U i is the voltage across the branch corresponding to node i, U j is the voltage across the branch corresponding to node j, G ij is the conductance value of the branch corresponding to nodes i and j, B ij is the susceptance value of the branch corresponding to nodes i and j, θ ij is the phase angle;
[0017] The voltage deviation constraint is:
[0018] U N (1-ε 1 )≤U m ≤U N (1+ε 2 ),m∈n
[0019] Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ε 1 and ε 2 All are deviation values specified in the standards;
[0020] The voltage fluctuation constraint is:
[0021] d m %≤d m.max %,m∈n
[0022] Among them, d m % is the voltage fluctuation at node m, d m.max % is the maximum value of voltage fluctuation allowed by regulations;
[0023] The branch power constraint is:
[0024] S l ≤S l.max ,l∈L
[0025] Among them, S l is the power transmitted by branch l, S l.max is the maximum power allowed to be transmitted by branch l, L is the set of all branches in the distribution network;
[0026] The distributed generation installation capacity constraint is:
[0027] G DG.k ≤G DG.max ,k∈N D
[0028] Among them, G DG.k is the distributed generation capacity of access node k, G DG.max The maximum capacity of distributed power sources allowed to be connected to each node, N DA collection of nodes connected to distributed power sources;
[0029] The energy storage constraint is:
[0030]
[0031]
[0032] in, k∈N S is the energy storage capacity constraint, E S.k The amount of electricity stored in the energy storage system of node k, is the upper limit of the energy storage system capacity, is the lower limit of the energy storage system capacity, N S A collection of nodes connected to energy storage;
[0033] k∈N S is the energy storage power constraint, P SS.k (t) is the charging power of the energy storage system connected to node k at time t, P SR.k (t) The discharge power of the energy storage system connected to the node at time t, is the maximum value of the charging power of the energy storage system, is the minimum charging power of the energy storage system, is the maximum discharge power of the energy storage system, is the minimum discharge power of the energy storage system, u S (t) is the charging state of the energy storage system at time t, u R (t) is the discharge state of the energy storage system at time t.
[0034] In a possible implementation, the calculation formula for the voltage at the node m in the voltage deviation constraint is:
[0035] U m =U N ×(1+ΔU m )
[0036]
[0037] Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ΔU m is the voltage deviation at node m, R 0 +jX 0 is the equivalent impedance on the power system side, R 0 is the resistance on the power system side, X 0 is the reactance on the power system side, R i +jX iis the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i The reactance of the branch corresponding to node i, P L.j +jQ L.j is the power flowing into the branch corresponding to node j, P L.j is the active power flowing into the branch corresponding to node j, Q L.j is the reactive power flowing into the branch corresponding to node j, P DG.j +jQ DG.j is the power injected by the distributed generation at node j, P DG.j is the active power injected by the distributed generation at node j, Q DG.j is the reactive power injected by the distributed generation at node j, P E.j +jQ E.j is the power of energy storage at node j, P E.j is the active power of energy storage at node j, Q E.j is the reactive power stored at node j.
[0038] In a possible implementation, the calculation formula for the voltage fluctuation at the node m in the voltage fluctuation constraint is:
[0039]
[0040] Among them, d m % is the voltage fluctuation at node m, d PV.m % is the voltage fluctuation caused by the photovoltaic power source in the distributed power supply at node m, d W.m % is the voltage fluctuation caused by the wind turbine in the distributed power supply at node m, U N is the nominal voltage of the distribution network, P PV.j is the power injected by the photovoltaic power source at node j, P W.j +jQ W.j is the power injected by the wind turbine at node j, P W.j is the active power injected by the wind turbine at node j, Q W.j is the reactive power injected by the wind turbine at node j, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i is the reactance of the branch corresponding to node i.
[0041] In a possible implementation, the algorithm for solving the multi-objective function based on the constraint conditions is an improved particle swarm optimization algorithm of a hybrid simulated annealing algorithm;
[0042] The process of solving the multi-objective function is as follows:
[0043] Step 1, setting relevant parameters of the improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm, wherein the relevant parameters include particle swarm size, initial temperature, cooling rate, number of iterations and maximum number of iterations;
[0044] Step 2: randomly generate the initial positions of particles in the particle swarm, calculate the fitness value of each particle according to the initial position of each particle, and determine the optimal position of each particle in the particle swarm and the optimal position of the particle swarm according to the fitness value of each particle;
[0045] Step 3: According to the optimal position of each particle and the optimal position of the particle swarm, the position of each particle is updated once, and the fitness value of each particle after the update is calculated;
[0046] Step 4: Perform neighborhood perturbation on each particle after an update to obtain the new position of each particle and calculate the fitness value corresponding to the new position;
[0047] Step 5: Determine whether to update the particle position for a second time based on the Metropolis criterion and the fitness value before and after the neighborhood disturbance, and use the particle position after the second update as the optimal particle position of each particle;
[0048] Step 6: According to the optimal position of each particle in the particle swarm, determine the optimal position of the particle swarm, and increase the current iteration number by 1;
[0049] Step 7, judging whether the number of iterations reaches the maximum number of iterations, if the number of iterations does not reach the maximum number of iterations, cooling is performed according to the cooling rate, and jumping to step 3;
[0050] Step eight, if the number of iterations reaches the maximum number of iterations, the iteration is stopped, and the optimal position of the current particle swarm is determined to be the optimal solution of the multi-objective function.
[0051] In a possible implementation, the optimal solution is a plurality of optimal solutions;
[0052] After obtaining the optimal solution, the method further includes:
[0053] Normalizing each objective function value of the multiple optimal solutions respectively;
[0054] According to the expected value of each preset objective function, the maximum difference between each objective function value in each optimal solution after normalization and the expected value of the corresponding objective function is calculated;
[0055] The optimal solution corresponding to the smallest maximum difference is determined as the desired optimal solution.
[0056] In a second aspect, an embodiment of the present invention provides a distributed power source and energy storage grid-connected site selection and capacity determination device, including:
[0057] Establishing a module for establishing a first objective function with the goal of minimizing the investment cost of the distribution network, establishing a second objective function with the goal of minimizing the network loss of the distribution network, and establishing a third objective function with the goal of minimizing the difference between the energy storage access capacity and the distributed power access capacity in the distribution network, to obtain a multi-objective function; and establishing constraint conditions for the multi-objective function;
[0058] A calculation module is used to solve the multi-objective function based on the constraint conditions to obtain an optimal solution; the optimal solution includes the access location and access capacity of the distributed power source and energy storage in the distribution network.
[0059] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.
[0060] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or any possible implementation method of the first aspect are implemented.
[0061] The embodiment of the present invention provides a distributed power source and energy storage grid-connected site selection method. By considering the access capacity of distributed power sources and the access capacity of energy storage, renewable energy is fully utilized to alleviate the severe situation of traditional fossil energy supply. At the same time, the voltage quality of the distribution network can be improved by using distributed power sources and energy storage. The multi-objective function is solved by minimizing the investment cost of the distribution network, minimizing the network loss of the distribution network, and minimizing the difference between the access capacity of energy storage and the access capacity of distributed power sources in the distribution network. The economic performance and the voltage quality of the distribution network can be taken into account at the same time, and the capacity configuration scheme of the distributed power source and energy storage under different conditions can be determined. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 It is a flow chart of the implementation of the distributed power source and energy storage grid-connected site selection and capacity determination method provided by an embodiment of the present invention;
[0064] Figure 2It is a schematic diagram of the structure of the distributed power supply and energy storage connected to the distribution network provided by an embodiment of the present invention;
[0065] Figure 3 is a schematic diagram of the structure of an IEEE33 node provided by an embodiment of the present invention;
[0066] Figure 4 is a spatial distribution diagram of the Pareto front provided by an embodiment of the present invention;
[0067] Figure 5 It is a structural schematic diagram of a distributed power source and energy storage grid-connected site selection and capacity determination device provided by an embodiment of the present invention;
[0068] Figure 6 is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0069] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0070] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0071] Figure 1 The implementation flow chart of the distributed power supply and energy storage grid-connected site selection and capacity determination method provided in the embodiment of the present invention is detailed as follows:
[0072] Step 101, a first objective function is established with the goal of minimizing the investment cost of the distribution network, a second objective function is established with the goal of minimizing the network loss of the distribution network, and a third objective function is established with the goal of minimizing the difference between the energy storage access capacity and the distributed generation access capacity in the distribution network, thereby obtaining a multi-objective function.
[0073] In this embodiment, a first objective function is established with the goal of minimizing the investment cost of the distribution network, taking into account the economic issues of the distribution network investment; a second objective function is established with the goal of minimizing the network loss of the distribution network, taking into account the voltage quality issues of the distribution network after the distributed power sources and the energy storage system are connected; a third objective function is established with the goal of minimizing the difference between the energy storage access capacity and the distributed power source access capacity in the distribution network, taking into account the size of the distributed power source access capacity and the energy storage access capacity, so as to make full use of renewable energy.
[0074] Step 102, establishing constraints of the multi-objective function.
[0075] In this embodiment, the constraints may include system flow constraints, voltage deviation constraints, voltage fluctuation constraints, branch power constraints, distributed power generation installation capacity constraints and energy storage constraints, constraining the multi-objective function from multiple aspects and then solving for the optimal solution of the objective function.
[0076] Step 103, solving the multi-objective function based on the constraint conditions to obtain an optimal solution; the optimal solution includes the access location and access capacity of the distributed generation and energy storage in the distribution network.
[0077] In this embodiment, a multi-objective function is obtained according to the first objective function, the second objective function and the third objective function, and the multi-objective function is solved. Considering the three objective functions at the same time, it is possible to take into account both the economy and the voltage quality of the distribution network, and then determine the capacity configuration scheme of distributed power sources and energy storage under different conditions.
[0078] The embodiment of the present invention takes into account the access capacity of distributed power sources and the access capacity of energy storage, makes full use of renewable energy, alleviates the severe situation of traditional fossil energy supply, and improves the voltage quality of the distribution network by utilizing distributed power sources and energy storage. By taking the minimum investment cost of the distribution network, the minimum network loss of the distribution network, and the difference between the access capacity of distributed power sources and the access capacity of energy storage as a multi-objective function, the solution is performed, which can take into account both the economy and the voltage quality of the distribution network, and can determine the capacity configuration scheme of distributed power sources and energy storage under different conditions.
[0079] In one possible implementation, the distributed power sources include wind turbines and photovoltaic power sources, and the output of wind turbines and photovoltaic power sources are both volatile and complementary. At the same time, the energy storage system can balance the impact of these two distributed power sources, wind turbines and photovoltaic power sources, on the distribution network.
[0080] Since the output of wind turbines and photovoltaic power sources is volatile, a scheduling strategy for the energy storage system can be set to charge, discharge, or not charge or discharge in different time periods; specifically, the scheduling strategy can be set to: take a natural day as a typical cycle, that is, a typical day, charging is performed between 14:00-16:00 every day, and discharging is performed between 18:00-20:00 every day. During the rest of the time, the energy storage system does not charge or discharge, and does not exchange energy with the distribution network.
[0081] Therefore, considering the 24 hours in a typical day, the calculation formula of the multi-objective function can be set as:
[0082]
[0083] in, is the calculation formula of the first objective function, is the calculation formula of the second objective function, is the calculation formula of the third objective function, C is the investment cost of the distribution network, P is the network loss of the distribution network, Z is the difference between the energy storage access capacity and the distributed generation access capacity, N D is the set of nodes connected to the distributed power source, N S is the set of nodes connected to the energy storage, t is any time in a typical cycle of the distribution network, T is the time of a typical cycle of the distribution network, m is any node in the distribution network, n is the set of nodes in the distribution network, L is the set of lines in the distribution network, is the investment cost of connecting k-node distributed power generation, is the investment cost of connecting k nodes to energy storage, is the fuel cost consumed during the operation of the distribution network, The pollution penalty for emissions, R l is the resistance of line l in the distribution network, I l (t) is the current flowing through line l at time t, P DG,k is the distributed generation capacity of access node k, P E,k is the energy storage capacity of access node k.
[0084] Specifically, the first objective function simultaneously considers the investment in distributed power sources, investment in energy storage, fuel costs consumed by each node, and pollution penalties for emissions, to ensure that the cost of investment is fully considered in subsequent calculations to ensure the economy of the final solution; the second objective function calculates the network loss through the current and resistance of each node, and sets the second objective function to ensure that the voltage quality of the solution can be considered in subsequent calculations to ensure good voltage quality of the distribution network; the third objective function considers the size of the distributed power access capacity and the energy storage access capacity to ensure that renewable energy can be fully utilized in subsequent calculations.
[0085] In one possible implementation, the constraints include system flow constraints, voltage deviation constraints, voltage fluctuation constraints, branch power constraints, distributed generation installation capacity constraints and energy storage constraints; establishing constraints from six aspects can comprehensively constrain and ensure that the final solution can adapt to different needs and conditions.
[0086] The system power flow constraint is:
[0087]
[0088] Where i and j represent any node in the distribution network, P i is the active power flowing into node i, Q i is the reactive power flowing into node i, P L.i is the active power of the load connected to node i, Q L.i is the reactive power flowing into node i, P DG.iis the active power injected by the distributed generation at node i, Q DG.i is the reactive power injected by the distributed generation at node i, U i is the voltage across the branch corresponding to node i, U j is the voltage across the branch corresponding to node j, G ij is the conductance value of the branch corresponding to nodes i and j, B ij is the susceptance value of the branch corresponding to nodes i and j, θ ij Is the phase angle.
[0089] Specifically, system flow constraints can clarify the power distribution of each line, prevent the phenomenon that some lines are overloaded while others are underloaded, ensure the static stability of the power system, and ensure that grid resources can be fully utilized.
[0090] The voltage deviation constraint is:
[0091] U N (1-ε 1 )≤U m ≤U N (1+ε 2 ),m∈n
[0092] Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ε 1 and ε 2 All are deviation values specified in the standards.
[0093] Specifically, when a large number of distributed power sources and energy storage are connected to the distribution network, the intermittency and volatility of distributed power sources and energy storage will greatly affect the power flow distribution in the distribution network, causing voltage deviations and fluctuations, and further affecting the stability of the distribution network. Therefore, by constraining the voltage of each node and avoiding the node voltage from exceeding the specified deviation, the node voltage can be stabilized to ensure the voltage quality of the distribution network.
[0094] The voltage fluctuation constraint is:
[0095] d m %≤d m.max %,m∈n
[0096] Among them, d m % is the voltage fluctuation at node m, d m.max % is the maximum value of voltage fluctuation allowed by regulations.
[0097] Specifically, as can be seen from the above, connecting distributed power sources and energy storage may cause voltage fluctuations and affect the stability of the distribution network. Therefore, in order to avoid excessive voltage fluctuations, which may cause the distribution network to operate under conditions of high or low voltage, resulting in uneconomic or unsafe problems, the voltage fluctuations of each node are constrained to ensure the stability of the node voltage and ensure that the distribution network can operate fully and safely.
[0098] The branch power constraint is:
[0099] S l ≤S l.max ,l∈L
[0100] Among them, S l is the power transmitted by branch l, S l.max is the maximum power allowed to be transmitted by branch l, and L is the set of all branches in the distribution network.
[0101] Specifically, when the power in the line is too high, the temperature of the line or the access device may exceed the allowed range, which may damage the insulation performance of the line or the access device and accelerate aging; in severe cases, combustion may occur, causing fire. Therefore, in order to ensure the safety and stability of the line, it is necessary to restrict the power transmitted by the line.
[0102] The installed capacity constraint of distributed generation is:
[0103] G DG.k ≤G DG.max ,k∈N D
[0104] Among them, G DG.k is the distributed generation capacity of access node k, G DG.max The maximum capacity of distributed power sources allowed to be connected to each node, N D It is the set of nodes connected to the distributed power source.
[0105] Specifically, by constraining the installation capacity of distributed power sources, it is possible to avoid excessive impact on the distribution network while ensuring the access capacity of distributed power sources.
[0106] The energy storage constraint is:
[0107]
[0108]
[0109] in, k∈N S is the energy storage capacity constraint, E S.k The amount of electricity stored in the energy storage system of node k, is the upper limit of the energy storage system capacity, is the lower limit of the energy storage system capacity, N S A collection of nodes connected to energy storage; k∈N S is the energy storage power constraint, P SS.k (t) is the charging power of the energy storage system connected to node k at time t, P SR.k (t) The discharge power of the energy storage system connected to the node at time t, is the maximum value of the charging power of the energy storage system, is the minimum charging power of the energy storage system, is the maximum discharge power of the energy storage system, is the minimum discharge power of the energy storage system, u S (t) is the charging state of the energy storage system at time t, u R (t) is the discharge state of the energy storage system at time t.
[0110] Specifically, the quantity and power of the energy storage system are constrained to accurately calculate the access capacity of the energy storage system and ensure the economy of the final solution and the stability of the distribution network.
[0111] In a possible implementation, the access of distributed power sources and energy storage will cause voltage deviation, so the voltage deviation caused by distributed power sources and energy storage needs to be fully considered.
[0112] Reference Figure 2 The schematic diagram of the structure of the distributed power supply and energy storage connected to the distribution network shown in the figure. There are n nodes in the distribution network. The node is the distribution network bus. At the same time, each node is connected to the load, distributed power supply and energy storage. When the power value is set to 0, it means that this node is not connected to the load, distributed power supply or energy storage. Among them, R 0 +jX 0 is the equivalent impedance on the power system side, R i +jX i is the equivalent impedance of the branch corresponding to node i, P L.j +jQ L.j is the power flowing into the branch corresponding to node j, P DG.j +jQ DG.j is the power injected by the distributed generation at node j, P E.j +jQ E.j is the power of energy storage at node j.
[0113] When neither the distributed generation nor the energy storage is connected, the voltage deviation ΔU at any node m m The calculation formula is:
[0114]
[0115] When only distributed generation is connected to the distribution network, because of the negative load, the voltage deviation ΔU at any node m after the distributed generation is connected m The calculation formula is:
[0116]
[0117] When the energy storage is also connected to the distribution network, the energy storage system is similar to the distributed power supply in the discharge state. At this time, the voltage deviation ΔU at any node m m The calculation formula is:
[0118]
[0119] When the energy storage system is in the charging state, it is similar to the load. At this time, the voltage deviation ΔU at any node m is m The calculation formula for % is:
[0120]
[0121] Therefore, the calculation formula for the voltage at node m in the voltage deviation constraint is:
[0122] U m =U N ×(1+ΔU m )
[0123]
[0124] In the above formula, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ΔU m is the voltage deviation at node m, R 0 +jX 0 is the equivalent impedance on the power system side, R 0 is the resistance on the power system side, X 0 is the reactance on the power system side, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i The reactance of the branch corresponding to node i, P L.j +jQ L.j is the power flowing into the branch corresponding to node j, P L.j is the active power flowing into the branch corresponding to node j, Q L.j is the reactive power flowing into the branch corresponding to node j, P DG.j +jQ DG.j is the power injected by the distributed generation at node j, P DG.j is the active power injected by the distributed generation at node j, QDG.j is the reactive power injected by the distributed generation at node j, P E.j +jQ E.j is the power of energy storage at node j, P E.j is the active power of energy storage at node j, Q E.j is the reactive power stored at node j.
[0125] By considering the voltage deviation caused by the access of distributed power sources and energy storage, the voltage at node m is accurately calculated, and then the voltage is constrained to ensure voltage stability.
[0126] In a possible implementation, when the output of the photovoltaic power source changes instantaneously, the ratio of the output change to the rated output is λ PV , then the voltage fluctuation at node m caused only by the photovoltaic power source is:
[0127]
[0128] Wind turbine power supply is generally connected directly to the grid in the distribution network. It is necessary to consider the impact of its reactive power on voltage fluctuations. The ratio of the instantaneous change of wind turbine output to the rated output is λ W , then the voltage fluctuation at node m caused only by the wind turbine power supply is:
[0129]
[0130] Therefore, when calculating the voltage fluctuation at node m, it is necessary to consider the impact of photovoltaic power supply and wind turbine power supply on the node at the same time. The voltage fluctuation at node m is:
[0131] d m % = d PV.m %+d W.m %
[0132] You can choose λ to deal with the volatility of photovoltaic and wind turbine output. PV and λ W For example, we can choose λ PV = 0.5 and λ W =0.6; Since the energy storage system is flexible and controllable, it can track the expected planned output to plan charging and discharging, smooth voltage fluctuations, and thus reduce the impact of distributed power generation after grid connection. Therefore, according to the coordination of energy storage and distributed power generation, λ can also be selected PV = 0.2 and λ W =0.4, then the calculation formula for the voltage fluctuation at node m in the voltage fluctuation constraint is:
[0133]
[0134] In the above formula, dm % is the voltage fluctuation at node m, d PV.m % is the voltage fluctuation caused by the photovoltaic power source in the distributed power supply at node m, d W.m % is the voltage fluctuation caused by the wind turbine in the distributed power supply at node m, U N is the nominal voltage of the distribution network, P PV.j is the power injected by the photovoltaic power source at node j, P W.j +jQ W.j is the power injected by the wind turbine at node j, P W.j is the active power injected by the wind turbine at node j, Q W.j is the reactive power injected by the wind turbine at node j, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i is the reactance of the branch corresponding to node i.
[0135] By considering the impact of different distributed power sources on voltage fluctuations, as well as the coordination between distributed power sources and energy storage, the voltage fluctuation at node m can be accurately calculated, and then the voltage fluctuation at node m can be constrained to ensure voltage stability and voltage quality of the distribution network.
[0136] In a possible implementation, the algorithm for solving the multi-objective function based on the constraint condition is an improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm;
[0137] The process of solving the multi-objective function is as follows:
[0138] Step 1, setting relevant parameters of the improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm, wherein the relevant parameters include particle swarm size, initial temperature, cooling rate, number of iterations and maximum number of iterations;
[0139] Step 2: randomly generate the initial positions of particles in the particle swarm, calculate the fitness value of each particle according to the initial position of each particle, and determine the optimal position of each particle in the particle swarm and the optimal position of the particle swarm according to the fitness value of each particle;
[0140] Step 3: According to the optimal position of each particle and the optimal position of the particle swarm, the position of each particle is updated once, and the fitness value of each particle after the update is calculated;
[0141] Step 4: Perform neighborhood perturbation on each particle after an update to obtain the new position of each particle and calculate the fitness value corresponding to the new position;
[0142] Step 5: According to the Metropolis criterion and the fitness value before and after the neighborhood disturbance, determine whether to update the particle position for a second time, and use the particle position after the second update as the optimal position of each particle. A poor solution can be accepted with a certain probability, so as to jump out of the local optimal solution and find the global optimal solution more quickly and accurately.
[0143] Step 6: According to the optimal position of each particle in the particle swarm, determine the optimal position of the particle swarm, and increase the current iteration number by 1;
[0144] Step 7: Determine whether the number of iterations has reached the maximum number of iterations. If the number of iterations has not reached the maximum number of iterations, it means that the current group optimal position may not be the global optimal position, that is, the global optimal solution may not be found, and it is necessary to continue to find the global optimal position. Then, cool down according to the cooling rate and jump to step 3.
[0145] Step 8: If the number of iterations reaches the maximum number of iterations, it means that the current optimal position of the swarm may be the global optimal position, that is, the global optimal solution is found, then the iteration is stopped, and the optimal position of the current particle swarm is determined to be the optimal solution of the multi-objective function.
[0146] Specifically, considering the injected power of distributed power sources and energy storage at each node as the basic particles, it is specifically expressed as:
[0147]
[0148] Among them, P is the particle group, x MN It is expressed as the injection power of the Mth particle of the distributed power source and energy storage at the Nth node, R M(N+1) is the fitness value of the Mth particle; calculating the fitness value is to calculate the injection power value of each particle at each node.
[0149] In a possible implementation, the relevant parameters also include the speed of the particle, and the calculation formula for updating the speed and position of each particle is:
[0150]
[0151] in, is the position of the i-th particle of the k-th generation particle swarm, V i k+1 is the velocity of the i-th particle of the k-th generation particle swarm, is the position of the i-th particle of the k-th generation particle swarm, V i k is the velocity of the i-th particle of the k-th generation particle swarm, w is the weighting coefficient, c 1 、c 2is the learning factor, and the value of the learning factor in this embodiment is 2; rand is a random number between (0, 1), pbest is the optimal position of each particle, that is, the optimal solution relative to the particle, and gbest is the optimal position of the particle group, that is, the global optimal solution.
[0152] In one possible implementation, based on the Metropolis criterion and the fitness value before and after the neighborhood disturbance, the calculation formula for determining particle update is:
[0153]
[0154] Among them, E n is the fitness value corresponding to the new position of each particle after the neighborhood disturbance, E c The fitness value corresponding to the position of each particle's neighborhood before disturbance, t is the current temperature.
[0155] By perturbing the neighborhood of each particle and determining the optimal position of each particle based on the Metropolis criterion and the fitness value before and after the neighborhood perturbation, it is possible to accept a worse solution with a certain probability, thereby jumping out of the local optimal solution and improving the convergence speed, thereby finding the optimal solution quickly and accurately.
[0156] In a possible implementation, the optimal solution is a plurality of optimal solutions. After obtaining the optimal solution, the method includes: normalizing the objective function values of the plurality of optimal solutions respectively; calculating the maximum difference between the objective function values in each optimal solution after normalization and the expected value of the corresponding objective function according to the preset expected value of each objective function; and determining the optimal solution with the smallest corresponding maximum difference as the expected optimal solution.
[0157] Specifically, the calculation formula for normalizing each objective function value is:
[0158]
[0159] in, is the normalized value of the ith objective function of a solution, f i max is the maximum value of the i-th objective function in the optimal solution set, f i min is the minimum value of the i-th objective function in the optimal solution set.
[0160] By normalizing the objective function value in the optimal solution, it is easier to compare and judge with the expected optimal solution in the future, so as to find the optimal solution that better meets the decision expectations.
[0161] The calculation formula to determine the expected optimal solution is:
[0162]
[0163] Among them, D(x) is the optimal solution, μ ri is the expected value of the preset i-th objective function, and Ω is the set of optimal solutions.
[0164] By comparing the maximum values of the objective function and the expected value in each optimal solution, the gap between the optimal solution and the expected value is determined, and the optimal solution with the smallest gap is selected, which is the optimal solution closest to the expected value or the decision maker's preference.
[0165] For example, Figure 3 Taking the IEEE33 node system shown as an example, the distributed power supply and energy storage grid-connected site selection and capacity determination method proposed in this application is verified. The rated voltage of the node system is 12.66kV, the power reference value is 100MW, the total active load is 3.715MW, and the total reactive load is 2.3MVar.
[0166] In this embodiment, the points with low voltage deviation index and large node load are selected as the principle. Nodes 22 and 31 can be considered as photovoltaic candidate nodes, nodes 9 and 26 can be considered as wind turbine candidate nodes, and nodes 5 and 17 can be considered as energy storage candidate nodes. In view of the volatility of wind turbine and photovoltaic output, considering the smoothing effect of energy storage access on distributed power sources, λ can be selected. PV = 0.2 and λ W =0.4; In addition, the voltage tolerance value can be selected as ε 1 and ε 2 Both are 0.7, the maximum voltage fluctuation d m.max % can be selected as 3%.
[0167] According to the maximum capacity of distributed power generation, the improved particle swarm optimization algorithm of hybrid simulated annealing algorithm is used to calculate the access capacity and location of distributed power generation and energy storage, as shown in Table 1:
[0168] Table 1 Optimal access capacity of each node
[0169]
[0170] It can be seen from Table 1 that, under the constraints of voltage deviation and voltage fluctuation, the maximum access capacity of distributed power sources and energy storage is 2.523MW, accounting for 67.9% of the total active load. The total investment in distributed power sources and energy storage under this plan is 165,389.6 yuan, and the total network loss is 0.023pu.
[0171] According to the multi-objective function and constraints, the improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm is used to solve the problem and obtain the set of Pareto optimal solutions. For details, see Figure 4As shown in Figure 1, it is the spatial distribution of the Pareto frontier. All solutions in this space are the optimal solutions to the multi-objective function problem.
[0172] Depend on Figure 4 It can be seen that the distribution of this solution set is good. When the access difference between distributed generation and energy storage increases, the total investment cost of the distribution network increases, and the network loss of the distribution network decreases; but when the access difference decreases, the network loss of the distribution network increases, but the cost will be reduced accordingly. The solutions in this solution set are all optimal solutions and can be selected according to the needs of decision makers.
[0173] Specifically, the expected value can be set in advance according to the needs of the decision maker. For example, 1) the expected value of the objective function of the distribution network loss is set to 0.9, and the expected values of the other two objective functions are set to 0.7; 2) the expected value of the objective function of the distribution network investment cost is set to 0.9, and the expected values of the other two objective functions are set to 0.7; 3) the expected value of the objective function of the difference between the energy storage access capacity and the distributed generation access capacity in the distribution network is set to 0.9, and the expected values of the other two objective functions are set to 0.7. The multi-objective planning results corresponding to each expected scheme are shown in Table 2:
[0174] Table 2 Multi-objective planning results
[0175]
[0176] It can be seen from Table 2 that the target with a higher expected value in each scheme has a slightly smaller objective function value than the other two objective function values. For example, if the expected distribution network network loss objective function in Scheme 1 is higher, the distribution network loss in this scheme is the least among the three schemes. By comparing the objective function values of each scheme, it can be seen that the impact of the access of distributed power sources and energy storage on network loss and the impact of total access capacity are basically similar, but they are mutually restricted with the objective function of investment cost. When the objective function only sets the maximum access capacity of distributed power sources in the distribution network, although the total access capacity in the planning result is much larger than the multi-objective planning result, its total network loss is higher. Therefore, this shows that the multi-objective planning method proposed in the present invention can not only ensure a small investment and good voltage quality, but also achieve the minimum difference between the energy storage access capacity and the distributed power access capacity in the distribution network, that is, the maximum capacity access of distributed power sources and the minimum capacity access of energy storage systems. At the same time, a satisfactory planning scheme can also be selected from all solutions according to actual needs.
[0177] The embodiment of the present invention takes into account the access capacity of distributed power sources and the access capacity of energy storage, makes full use of renewable energy, alleviates the severe situation of traditional fossil energy supply, and improves the voltage quality of the distribution network by using distributed power sources and energy storage. The multi-objective function is solved by minimizing the investment cost of the distribution network, minimizing the network loss of the distribution network, and minimizing the difference between the access capacity of energy storage and the access capacity of distributed power sources in the distribution network. The constraint conditions are established from six aspects, including system flow constraint, voltage deviation constraint, voltage fluctuation constraint, branch power constraint, distributed power source installation capacity constraint and energy storage constraint, so that the constraint conditions can be fully implemented to ensure that the final solution can adapt to different needs and conditions. When solving the multi-objective function, the improved particle swarm optimization algorithm of hybrid simulated annealing is adopted, which can suppress the defects of the simulated annealing algorithm being too long and the particle swarm optimization algorithm being prone to local oscillation, and can improve the convergence speed and convergence accuracy, so as to quickly and accurately find the optimal solution and determine the access position and access capacity of the distributed power source and energy storage. After solving multiple optimal solutions, each optimal solution is normalized, and the expected optimal solution is calculated, so that the optimal solution that meets the needs or the expectations of the decision maker can be quickly and accurately found.
[0178] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0179] The following is an embodiment of the device of the present invention. For details not described in detail, reference may be made to the corresponding method embodiments described above.
[0180] Figure 5 The structure diagram of the distributed power supply and energy storage grid-connected site selection and capacity determination device provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0181] like Figure 5 As shown, the distributed power supply and energy storage grid-connected site selection and capacity determination device 5 includes:
[0182] Establishing module 51, used to establish a first objective function with the goal of minimizing the investment cost of the distribution network, establish a second objective function with the goal of minimizing the network loss of the distribution network, establish a third objective function with the goal of minimizing the difference between the energy storage access capacity and the distributed power access capacity in the distribution network, to obtain a multi-objective function; and establish constraint conditions for the multi-objective function.
[0183] The calculation module 52 is used to solve the multi-objective function based on the constraint conditions to obtain the optimal solution; the optimal solution includes the access location and access capacity of the distributed power source and energy storage in the distribution network.
[0184] In a possible implementation, the calculation formula of the multi-objective function is:
[0185]
[0186] in, is the calculation formula of the first objective function, is the calculation formula of the second objective function, is the calculation formula of the third objective function, C is the investment cost of the distribution network, P is the network loss of the distribution network, Z is the difference between the energy storage access capacity and the distributed generation access capacity, N D is the set of nodes connected to the distributed power source, N S is the set of nodes connected to the energy storage, t is any time in a typical cycle of the distribution network, T is the time of a typical cycle of the distribution network, n is the set of nodes in the distribution network, L is the set of lines in the distribution network, is the investment cost of connecting k-node distributed power generation, is the investment cost of connecting k nodes to energy storage, is the fuel cost consumed during the operation of the distribution network, The pollution penalty for emissions, R l is the resistance of line l in the distribution network, I l (t) is the current flowing through line l at time t, P DG,k is the distributed generation capacity of access node k, P E,k is the energy storage capacity of access node k.
[0187] In a possible implementation, the constraints include system power flow constraints, voltage deviation constraints, voltage fluctuation constraints, branch power constraints, distributed power generation installation capacity constraints and energy storage constraints; wherein,
[0188] The system power flow constraint is:
[0189]
[0190] Where i and j represent any node in the distribution network, P i is the active power flowing into node i, Q i is the reactive power flowing into node i, P L.i is the active power of the load connected to node i, Q L.i is the reactive power flowing into node i, P DG.i is the active power injected by the distributed generation at node i, Q DG.i is the reactive power injected by the distributed generation at node i, U i is the voltage across the branch corresponding to node i, U j is the voltage across the branch corresponding to node j, G ijis the conductance value of the branch corresponding to nodes i and j, B ij is the susceptance value of the branch corresponding to nodes i and j, θ ij Is the phase angle.
[0191] The voltage deviation constraint is:
[0192] U N (1-ε 1 )≤U m ≤U N (1+ε 2 ),m∈n
[0193] Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ε 1 and ε 2 All are deviation values specified in the standards.
[0194] The voltage fluctuation constraint is:
[0195] d m %≤d m.max %,m∈n
[0196] Among them, d m % is the voltage fluctuation at node m, d m.max % is the maximum value of voltage fluctuation allowed by regulations.
[0197] The branch power constraint is:
[0198] S l ≤S l.max ,l∈L
[0199] Among them, S l is the power transmitted by branch l, S l.max is the maximum power allowed to be transmitted by branch l, and L is the set of all branches in the distribution network.
[0200] The installed capacity constraint of distributed generation is:
[0201] G DG.k ≤G DG.max ,k∈N D
[0202] Among them, G DG.k is the distributed generation capacity of access node k, G DG.max The maximum capacity of distributed power sources allowed to be connected to each node, N D It is the set of nodes connected to the distributed power source.
[0203] The energy storage constraint is:
[0204]
[0205]
[0206] in, k∈N S is the energy storage capacity constraint, E S.k The amount of electricity stored in the energy storage system of node k, is the upper limit of the energy storage system capacity, is the lower limit of the energy storage system capacity, N S A collection of nodes connected to energy storage; k∈N S is the energy storage power constraint, P SS.k (t) is the charging power of the energy storage system connected to node k at time t, P SR.k (t) The discharge power of the energy storage system connected to the node at time t, is the maximum value of the charging power of the energy storage system, is the minimum charging power of the energy storage system, is the maximum discharge power of the energy storage system, is the minimum discharge power of the energy storage system, u S (t) is the charging state of the energy storage system at time t, u R (t) is the discharge state of the energy storage system at time t.
[0207] In a possible implementation, the calculation formula for the voltage at the node m in the voltage deviation constraint is:
[0208] U m =U N ×(1+ΔU m )
[0209]
[0210] Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ΔU m is the voltage deviation at node m, R 0 +jX 0 is the equivalent impedance on the power system side, R 0 is the resistance on the power system side, X 0 is the reactance on the power system side, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i The reactance of the branch corresponding to node i, P L.j +jQ L.j is the power flowing into the branch corresponding to node j, P L.jis the active power flowing into the branch corresponding to node j, Q L.j is the reactive power flowing into the branch corresponding to node j, P DG.j +jQ DG.j is the power injected by the distributed generation at node j, P DG.j is the active power injected by the distributed generation at node j, Q DG.j is the reactive power injected by the distributed generation at node j, P E.j +jQ E.j is the power of energy storage at node j, P E.j is the active power of energy storage at node j, Q E.j is the reactive power stored at node j.
[0211] In a possible implementation, the calculation formula of the voltage fluctuation at the node m in the voltage fluctuation constraint is:
[0212]
[0213] Among them, d m % is the voltage fluctuation at node m, d PV.m % is the voltage fluctuation caused by the photovoltaic power source in the distributed power supply at node m, d W.m % is the voltage fluctuation caused by the wind turbine in the distributed power supply at node m, U N is the nominal voltage of the distribution network, P PV.j is the power injected by the photovoltaic power source at node j, P W.j +jQ W.j is the power injected by the wind turbine at node j, P W.j is the active power injected by the wind turbine at node j, Q W.j is the reactive power injected by the wind turbine at node j, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i is the reactance of the branch corresponding to node i.
[0214] In a possible implementation, the algorithm for solving the multi-objective function based on the constraint condition is an improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm;
[0215] The calculation module 52 is specifically used for:
[0216] Step 1, setting relevant parameters of the improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm, wherein the relevant parameters include particle swarm size, initial temperature, cooling rate, number of iterations and maximum number of iterations;
[0217] Step 2: randomly generate the initial positions of particles in the particle swarm, calculate the fitness value of each particle according to the initial position of each particle, and determine the optimal position of each particle in the particle swarm and the optimal position of the particle swarm according to the fitness value of each particle;
[0218] Step 3: According to the optimal position of each particle and the optimal position of the particle swarm, the position of each particle is updated once, and the fitness value of each particle after the update is calculated;
[0219] Step 4: Perform neighborhood perturbation on each particle after an update to obtain the new position of each particle and calculate the fitness value corresponding to the new position;
[0220] Step 5: Determine whether to update the particle position for a second time based on the Metropolis criterion and the fitness value before and after the neighborhood disturbance, and use the particle position after the second update as the optimal particle position of each particle;
[0221] Step 6: According to the optimal position of each particle in the particle swarm, determine the optimal position of the particle swarm, and increase the current iteration number by 1;
[0222] Step 7, judging whether the number of iterations reaches the maximum number of iterations, if the number of iterations does not reach the maximum number of iterations, cooling is performed according to the cooling rate, and jumping to step 3;
[0223] Step eight, if the number of iterations reaches the maximum number of iterations, the iteration is stopped, and the optimal position of the current particle swarm is determined to be the optimal solution of the multi-objective function.
[0224] In a possible implementation, the optimal solution is a plurality of optimal solutions. After obtaining the optimal solution, the calculation module 52 is further used to:
[0225] Each objective function value of the multiple optimal solutions is normalized respectively; based on the preset expected value of each objective function, the maximum difference between each objective function value in each optimal solution after normalization and the expected value of the corresponding objective function is calculated; and the optimal solution with the smallest corresponding maximum difference is determined as the expected optimal solution.
[0226] Figure 6 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 6 As shown, the electronic device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the above-mentioned distributed power source and energy storage grid-connected site selection and capacity determination method embodiments are implemented, for example Figure 1Alternatively, when the processor 60 executes the computer program 62, the functions of each module in the above-mentioned device embodiments are realized, for example Figure 5 The functions of modules 51 to 52 are shown.
[0227] Exemplarily, the computer program 62 may be divided into one or more modules / units, one or more modules / units are stored in the memory 61 and executed by the processor 60 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments that can implement specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the electronic device 6. For example, the computer program 62 may be divided into Figure 5 Modules 51 to 52 are shown.
[0228] The electronic device 6 may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the electronic device 6 and does not constitute a limitation of the electronic device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0229] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0230] The memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. The memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit of the electronic device 6 and an external storage device. The memory 61 is used to store computer programs and other programs and data required by the electronic device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0231] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0232] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0233] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0234] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, 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.
[0235] 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.
[0236] In addition, each functional unit in each embodiment of the present invention 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.
[0237] If the integrated module / 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0238] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for site selection and capacity determination of distributed power source and energy storage grid connection, It is characterized in that include: The first objective function is established with the goal of minimizing the investment cost of the distribution network, the second objective function is established with the goal of minimizing the network loss of the distribution network, and the third objective function is established with the goal of minimizing the difference between the energy storage access capacity and the distributed generation access capacity in the distribution network, thereby obtaining a multi-objective function; Establishing constraints of the multi-objective function; Solving the multi-objective function based on the constraint conditions to obtain an optimal solution; the optimal solution includes the access location and access capacity of the distributed power source and the energy storage in the distribution network; The calculation formula of the multi-objective function is: in, is the calculation formula of the first objective function, is the calculation formula of the second objective function, is the calculation formula of the third objective function, C is the investment cost of the distribution network, P is the network loss of the distribution network, Z is the difference between the energy storage access capacity and the distributed power access capacity, N D is the set of nodes connected to the distributed power source, N S is the set of nodes connected to the energy storage, t is any time in a typical cycle of the distribution network, T is the time of a typical cycle of the distribution network, m is any node in the distribution network, n is the set of nodes in the distribution network, L is the set of lines in the distribution network, is the investment cost of connecting k-node distributed power generation, is the investment cost of connecting k nodes to energy storage, is the fuel cost consumed during the operation of the distribution network, The pollution penalty for emissions, R l is the resistance of line l in the distribution network, I l (t) is the current flowing through line l at time t, P DG,k is the distributed generation capacity of access node k, P E,k is the energy storage capacity of access node k.
2. The method for selecting a site and determining the capacity of a distributed power source and energy storage grid-connected according to claim 1, It is characterized in that The constraints include system power flow constraints, voltage deviation constraints, voltage fluctuation constraints, branch power constraints, distributed power generation installation capacity constraints and energy storage constraints; wherein, The system power flow constraint is: Where i and j represent any node in the distribution network, P i is the active power flowing into node i, Q i is the reactive power flowing into node i, P L.i is the active power of the load connected to node i, Q L.i is the reactive power flowing into node i, P DG.i is the active power injected by the distributed generation at node i, Q DG.i is the reactive power injected by the distributed generation at node i, U i is the voltage across the branch corresponding to node i, U j is the voltage across the branch corresponding to node j, G ij is the conductance value of the branch corresponding to nodes i and j, B ij is the susceptance value of the branch corresponding to nodes i and j, θ ij is the phase angle; The voltage deviation constraint is: U N (1-e 1 )≤U m ≤U N (1+e 2 ),m∈n Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ε 1 and ε 2 All are deviation values specified in the standards; The voltage fluctuation constraint is: d m %≤d m.max %,m∈n Among them, d m % is the voltage fluctuation at node m, d m.max % is the maximum value of voltage fluctuation allowed by regulations; The branch power constraint is: S l ≤S l.max ,l∈L Among them, S l is the power transmitted by branch l, S l.max is the maximum power allowed to be transmitted by branch l, L is the set of all branches in the distribution network; The distributed generation installation capacity constraint is: G DG.k ≤G DG.max ,k∈N D Among them, G DG.k is the distributed generation capacity of access node k, G DG.max The maximum capacity of distributed power sources allowed to be connected to each node, N D A collection of nodes connected to distributed power sources; The energy storage constraint is: in, is the energy storage capacity constraint, E S.k The amount of electricity stored in the energy storage system of node k, is the upper limit of the energy storage system capacity, is the lower limit of the energy storage system capacity, N S A collection of nodes connected to energy storage; is the energy storage power constraint, P SS.k (t) is the charging power of the energy storage system connected to node k at time t, P SR.k (t) The discharge power of the energy storage system connected to the node at time t, is the maximum value of the charging power of the energy storage system, is the minimum charging power of the energy storage system, is the maximum discharge power of the energy storage system, is the minimum discharge power of the energy storage system, u S (t) is the charging state of the energy storage system at time t, u R (t) is the discharge state of the energy storage system at time t.
3. The method for selecting a site and determining the capacity of a distributed power source and energy storage grid-connected according to claim 2, It is characterized in that The calculation formula of the voltage at node m in the voltage deviation constraint is: U m =U N ×(1+ΔU m ) Among them, U m is the voltage at node m, U N is the nominal voltage of the distribution network, ΔU m is the voltage deviation at node m, R 0 +jX 0 is the equivalent impedance on the power system side, R 0 is the resistance on the power system side, X 0 is the reactance on the power system side, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i The reactance of the branch corresponding to node i, P L.j +jQ L.j is the power flowing into the branch corresponding to node j, P L.j is the active power flowing into the branch corresponding to node j, Q L.j is the reactive power flowing into the branch corresponding to node j, P DG.j +jQ DG.j is the power injected by the distributed generation at node j, P DG.j is the active power injected by the distributed generation at node j, Q DG.j is the reactive power injected by the distributed generation at node j, P E.j +jQ E.j is the power of energy storage at node j, P E.j is the active power of energy storage at node j, Q E.j is the reactive power stored at node j.
4. The method for selecting a site and determining the capacity of a distributed power source and energy storage grid connection according to claim 2, It is characterized in that The calculation formula of the voltage fluctuation at the node m in the voltage fluctuation constraint is: Among them, d m % is the voltage fluctuation at node m, d PV.m % is the voltage fluctuation caused by the photovoltaic power source in the distributed power supply at node m, d W.m % is the voltage fluctuation caused by the wind turbine in the distributed power supply at node m, U N is the nominal voltage of the distribution network, P PV.j is the power injected by the photovoltaic power source at node j, P W.j +jQ W.j is the power injected by the wind turbine at node j, P W.j is the active power injected by the wind turbine at node j, Q W.j is the reactive power injected by the wind turbine at node j, R i +jX i is the equivalent impedance of the branch corresponding to node i, R i is the resistance of the branch corresponding to node i, X i is the reactance of the branch corresponding to node i.
5. The method for selecting a site and determining the capacity of a distributed power source and energy storage grid-connected according to claim 1, It is characterized in that The algorithm for solving the multi-objective function based on the constraint conditions is an improved particle swarm optimization algorithm of a hybrid simulated annealing algorithm; The process of solving the multi-objective function is as follows: Step 1, setting relevant parameters of the improved particle swarm optimization algorithm of the hybrid simulated annealing algorithm, wherein the relevant parameters include particle swarm size, initial temperature, cooling rate, number of iterations and maximum number of iterations; Step 2: randomly generate the initial positions of particles in the particle swarm, calculate the fitness value of each particle according to the initial position of each particle, and determine the optimal position of each particle in the particle swarm and the optimal position of the particle swarm according to the fitness value of each particle; Step 3: According to the optimal position of each particle and the optimal position of the particle swarm, the position of each particle is updated once, and the fitness value of each particle after the update is calculated; Step 4: Perform neighborhood perturbation on each particle after an update to obtain the new position of each particle and calculate the fitness value corresponding to the new position; Step 5: Determine whether to update the particle position for a second time based on the Metropolis criterion and the fitness value before and after the neighborhood disturbance, and use the particle position after the second update as the optimal particle position of each particle; Step 6: According to the optimal position of each particle in the particle swarm, determine the optimal position of the particle swarm, and increase the current iteration number by 1; Step 7, judging whether the number of iterations reaches the maximum number of iterations, if the number of iterations does not reach the maximum number of iterations, cooling is performed according to the cooling rate, and jumping to step 3; Step eight, if the number of iterations reaches the maximum number of iterations, the iteration is stopped, and the optimal position of the current particle swarm is determined to be the optimal solution of the multi-objective function.
6. The method for selecting a site and determining the capacity of a distributed power source and energy storage grid-connected according to claim 1, It is characterized in that The optimal solution is a plurality of optimal solutions; After obtaining the optimal solution, the method further includes: Normalizing each objective function value of the multiple optimal solutions respectively; According to the expected value of each preset objective function, the maximum difference between each objective function value in each optimal solution after normalization and the expected value of the corresponding objective function is calculated; The optimal solution corresponding to the smallest maximum difference is determined as the desired optimal solution.
7. A distributed power source and energy storage grid-connected site selection and capacity determination device, It is characterized in that include: Establishing a module for establishing a first objective function with the goal of minimizing the investment cost of the distribution network, establishing a second objective function with the goal of minimizing the network loss of the distribution network, and establishing a third objective function with the goal of minimizing the difference between the energy storage access capacity and the distributed power access capacity in the distribution network, thereby obtaining a multi-objective function; and establishing constraints for the multi-objective function; A calculation module, used to solve the multi-objective function based on the constraint conditions to obtain an optimal solution; the optimal solution includes the access location and access capacity of the distributed power source and the energy storage in the distribution network; The calculation formula of the multi-objective function is: in, is the calculation formula of the first objective function, is the calculation formula of the second objective function, is the calculation formula of the third objective function, C is the investment cost of the distribution network, P is the network loss of the distribution network, Z is the difference between the energy storage access capacity and the distributed power access capacity, N D is the set of nodes connected to the distributed power source, N S is the set of nodes connected to the energy storage, t is any time in a typical cycle of the distribution network, T is the time of a typical cycle of the distribution network, m is any node in the distribution network, n is the set of nodes in the distribution network, L is the set of lines in the distribution network, is the investment cost of connecting k-node distributed power generation, is the investment cost of connecting k nodes to energy storage, is the fuel cost consumed during the operation of the distribution network, The pollution penalty for emissions, R l is the resistance of line l in the distribution network, I l (t) is the current flowing through line l at time t, P DG,k is the distributed generation capacity of access node k, P E,k is the energy storage capacity of access node k.
8. An electronic device comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
