Method and device for acquiring optimized parameters

The load parameters of UPQC are optimized through the insect colony optimization algorithm, which solves the problem of insufficient load response capability of the distribution network, improves energy utilization efficiency and reduces costs, and realizes intelligent regulation of the distribution network.

CN118735166APending Publication Date: 2024-10-01ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID JIBEI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410724717.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the existing distribution network accepts renewable energy, the load response capability is insufficient, resulting in low energy utilization efficiency, and the UPQC parameter setting relies on manual experience, which easily reduces the overall operating efficiency.

Method used

A method based on the insect colony optimization algorithm is used to determine the active power and reactive power of the adjustable load of UPQC in the distribution network, and the fitness function value is calculated through random directions and distances to optimize the overall energy target of the microgrid, including sub-voltage, Sub-network loss and sub-cost targets to improve the operating efficiency of the distribution network.

Benefits of technology

It improves the overall operating efficiency of the distribution network, reduces line losses and operating costs, and enables intelligent load regulation and response to grid peak and frequency regulation needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735166A_ABST
    Figure CN118735166A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for obtaining optimization parameters, and relates to the technical field of optimization. The method comprises the following steps: determining the position of an initialized insect population; according to the generated random direction and distance and the initialized insect population position, a fitness function value corresponding to each insect individual is obtained through calculation; the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the last generation, and if it is determined that the optimal fitness function value is superior to the optimal fitness function value of the last generation, the position of the target insect individual serves as the position of the optimal insect individual; and if it is determined that the number of iterations reaches a preset value, obtaining the optimal active power and reactive power of the adjustable load and a total optimization target result after the UPQC plays a role. The device executes the method. According to the method and the device provided by the embodiment of the invention, the overall operation efficiency of the power distribution network can be improved, and line loss and cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optimization technology, and in particular to a method and device for obtaining optimization parameters. Background Art

[0002] In recent years, a large number of renewable energy resources (RES) represented by photovoltaic and wind power have been connected to medium and low voltage distribution networks, which is expected to become an important way to alleviate the energy crisis and promote the use of renewable energy. However, problems that restrict the further use of renewable energy, such as large temporal and spatial differences between source and load and insufficient response capabilities on the load side, have gradually emerged. At present, various new types of intelligent loads are constantly emerging, and their ability to accept grid regulation is becoming more and more abundant. How to intelligently adjust the load, respond to the peak load regulation, frequency regulation and special operation requirements of the grid, and improve the energy utilization efficiency of the distribution network and the level of load intelligence have become issues that need to be solved urgently.

[0003] The loads in the distribution network can be divided into flexible loads and rigid loads according to their willingness to accept grid regulation. Rigid loads include loads that have high requirements for power quality and generally cannot be interrupted, such as military, medical, dedicated communication and other load equipment. Flexible loads do not have as strict requirements on power supply quality as rigid loads, such as thermal storage electric heating loads, cold storage refrigeration loads, unimportant lighting loads and other adjustable loads. The three types of flexible loads respond to grid dispatch in different ways and channels, and new load regulation equipment has also emerged in recent years.

[0004] After several years of development, the current research on Unified Power Quality Conditioner (UPQC) covers theory, topology and control strategy. Generally, UPQC consists of two parts: series and parallel converters. After being connected to the load in a certain form, it is connected to the medium and low voltage distribution network. In addition to being a means of power quality and voltage regulation, UPQC can also be used as a medium for load regulation.

[0005] Existing distribution network parameters, such as the active power and reactive power of the adjustable load corresponding to each node in the distribution network, are mostly set based on manual experience when considering UPQC. If the settings are unreasonable, the overall operating efficiency of the distribution network will be reduced. Summary of the invention

[0006] In view of the problems in the prior art, the embodiments of the present invention provide a method and device for obtaining optimization parameters, which can at least partially solve the problems in the prior art.

[0007] In one aspect, the present invention provides a method for obtaining optimization parameters, comprising:

[0008] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0009] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0010] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0011] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0012] The method for obtaining optimization parameters further includes:

[0013] If it is determined that the number of iterations has not reached the preset value, the fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance and the initialized insect group position until the number of iterations reaches the preset value.

[0014] The method for obtaining optimization parameters further includes:

[0015] If it is determined that the optimal fitness function value is not better than the optimal fitness function value of the previous generation, the step of determining whether the number of iterations reaches a preset value is directly executed.

[0016] The total energy optimization target of the microgrid includes a sub-voltage optimization target, a sub-grid loss optimization target and a sub-cost optimization target;

[0017] The sub-voltage optimization target is a first ratio of the average value of the distribution network node voltage deviation to the average rated voltage of the node;

[0018] The subnetwork loss optimization target is a second ratio of the active line loss of the distribution network to the optimal value when the minimum active network loss is the only optimization target when the UPQC does not play a role;

[0019] The sub-cost optimization target is a third ratio of the operating cost of a preset time period to the optimal value when the minimum distribution network minimum operating cost is the only optimization target when the UPQC does not function.

[0020] The step of calculating the average voltage deviation of the distribution network nodes includes:

[0021] The average voltage deviation of the nodes in the distribution network is calculated according to the average rated voltage of the nodes, the nominal voltage corresponding to each node and the total number of nodes in the distribution network.

[0022] The calculation of the active line loss of the distribution network includes:

[0023] The active line loss of the distribution network is calculated based on the resistance value of each line, the effective value of the current flowing through each line and the number of lines in the distribution network.

[0024] The step of calculating the operating cost of the preset time period includes:

[0025] The sum of the cost of the distribution network purchasing electricity from the upper-level power grid per unit time, the operating cost of the distributed power source, the subsidy for the owner to adjust the load using UPQC, and the cost of wind and solar power abandonment for the distributed power source is taken as the operating cost of the preset time period.

[0026] In one aspect, the present invention provides a device for obtaining optimization parameters, comprising:

[0027] A determination unit, configured to determine an initialization insect swarm position, wherein the initialization insect swarm position is the active power and reactive power of an adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0028] A calculation unit, used for calculating the fitness function value corresponding to each individual insect according to the generated random direction and distance and the initialization position of the insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0029] A comparison unit, used to compare the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0030] The acquisition unit is used to, if it is determined that the number of iterations reaches a preset value, use the optimal individual insect position output at this time as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and use the fitness function value output at this time as the total optimization target result of the microgrid energy.

[0031] In another aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus, wherein:

[0032] The processor and the memory communicate with each other via the bus;

[0033] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the following method:

[0034] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0035] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0036] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0037] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0038] An embodiment of the present invention provides a non-transitory computer-readable storage medium, including:

[0039] The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the following method:

[0040] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0041] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0042] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0043] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0044] The method and device for obtaining optimization parameters provided by the embodiment of the present invention determine the initialization position of the insect colony, wherein the initialization position of the insect colony is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not work; the fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the initialization position of the insect colony; the fitness function value is the total energy optimization target of the microgrid based on UPQC; the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the target insect individual position is used as the optimal insect individual position; if it is determined that the number of iterations reaches a preset value, the optimal insect individual position output at this time is used as the optimal active power and reactive power of the adjustable load after the UPQC takes effect, and the fitness function value output at this time is used as the total energy optimization target result of the microgrid, which can improve the overall operation efficiency of the distribution network and reduce line loss and cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. 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 creative work. In the drawings:

[0046] Figure 1 It is a flowchart of a method for obtaining optimization parameters provided by an embodiment of the present invention.

[0047] Figure 2 It is a schematic diagram illustrating a low-voltage area of ​​a distribution network including UPQC provided in an embodiment of the present invention.

[0048] Figure 3 It is a schematic diagram illustrating an adjustable load operation area including UPQC provided in an embodiment of the present invention.

[0049] Figure 4 It is a flowchart of a method for obtaining optimization parameters provided by another embodiment of the present invention.

[0050] Figure 5 It is a schematic diagram illustrating an improved IEEE 33-node network provided by an embodiment of the present invention.

[0051] FIG6( a ) is a schematic diagram illustrating the change process of the overall optimization target provided by an embodiment of the present invention.

[0052] FIG. 6( b ) is a schematic diagram illustrating a process of decreasing an average deviation of node voltages provided by an embodiment of the present invention.

[0053] FIG6( c ) is a schematic diagram illustrating the process of reducing active network loss provided by an embodiment of the present invention.

[0054] FIG6( d ) is a schematic diagram illustrating a process of reducing operating costs at a certain time section or per unit time provided by an embodiment of the present invention.

[0055] FIG. 7( a ) is a schematic diagram illustrating the output change results of new energy provided by an embodiment of the present invention.

[0056] FIG. 7( b ) is a schematic diagram illustrating the results of changes in load active power and load reactive power provided by an embodiment of the present invention.

[0057] FIG. 7( c ) is a schematic diagram illustrating the node voltage change results provided by an embodiment of the present invention.

[0058] Figure 8 It is a schematic diagram illustrating the optimized trajectory of the adjustable load L1 provided in an embodiment of the present invention.

[0059] Fig. 9 It is a structural diagram of a device for obtaining optimization parameters provided by an embodiment of the present invention.

[0060] Fig.10 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0062] Figure 1 is a flow chart of a method for obtaining optimization parameters provided by an embodiment of the present invention, such as Figure 1 As shown, the method for obtaining optimization parameters provided by the embodiment of the present invention includes:

[0063] Step S1: Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function.

[0064] Step S2: Calculate the fitness function value corresponding to each individual insect according to the generated random direction and distance, and the initialized insect colony position; the fitness function value is the total energy optimization target of the microgrid based on UPQC.

[0065] Step S3: Compare the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the optimal fitness function value of the previous generation. If it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the target insect individual position is used as the optimal insect individual position.

[0066] Step S4: If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0067] In the above step S1, the device determines the initialization insect swarm position, and the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not work. The device can be a computer device that executes the method, and the computer device can be a depth camera, a robot carrying a depth camera, or a client that can control the robot.

[0068] In the above step S2, the device calculates the fitness function value corresponding to each individual insect according to the generated random direction and distance, and the initialized insect group position; the fitness function value is the overall energy optimization target of the microgrid based on UPQC.

[0069] In the above step S3, the device compares the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the optimal fitness function value of the previous generation. If it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the target insect individual position is used as the optimal insect individual position.

[0070] In the above step S4, if the device determines that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0071] The method for obtaining optimization parameters provided by the embodiment of the present invention determines the initialization position of the insect colony, wherein the initialization position of the insect colony is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not work; the fitness function value corresponding to each insect individual is calculated according to the generated random direction and distance, and the initialization position of the insect colony; the fitness function value is the total energy optimization target of the microgrid based on UPQC; the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the target insect individual position is used as the optimal insect individual position; if it is determined that the number of iterations reaches a preset value, the optimal insect individual position output at this time is used as the optimal active power and reactive power of the adjustable load after the UPQC takes effect, and the fitness function value output at this time is used as the total energy optimization target result of the microgrid, which can improve the overall operation efficiency of the distribution network and reduce line loss and cost.

[0072] The present invention derives the operating range of the UPQC-based adjustable load cluster and constructs a multi-objective optimal power flow model of the distribution network containing UPQC. Considering UPQC as a load regulation means, it responds to the distribution network regulation instructions, thereby achieving the purpose of reducing the average voltage deviation, line loss and unit time operation cost of the distribution network node, and improving the operation efficiency of the distribution network. The proposed multi-objective optimal power flow model of the distribution network containing UPQC is simulated and analyzed based on an improved IEEE33 node example, and the calculation results verify its correctness and effectiveness.

[0073] like Figure 2 As shown in the figure, taking the transformerless UPQC as an example, the steady-state characteristics of the combination of UPQC and adjustable load are analyzed. In the low-voltage area, the transformerless UPQC is connected with the adjustable load to form a combination. In the same low-voltage area, the combination cluster of UPQC and adjustable load jointly responds to the operation requirements of the distribution network. UPQC responds to the operation instructions of the current distribution network by adjusting the active power consumption of the load; it can be understood that the larger the capacity of the adjustable load, the larger the space for UPQC to adjust the load change, and the easier it is to improve the optimized operation indicators of the distribution network. Adjustable loads can be divided into pure resistive, resistive-inductive, and resistive-capacitive. Taking the resistive-inductive adjustable load as an example, the regulation effect of UPQC is analyzed.

[0074] Assuming that the voltage at the connection point between the UPQC and the load combination and the AC busbar of the distribution network is U∠0°, the relationship between the voltage, current and power of the UPQC, adjustable load and combination is as shown in the following equations (1)-(5):

[0075] U∠0°=U L ∠θ V +UT ∠θ T (1)

[0076]

[0077] P=UI T cos(θ V -θ Z ) (3)

[0078] Q=-UI T sin(θ V -θ Z ) (4)

[0079] P T =U T I T cos[θ T -(θ V -θ Z )] (5)

[0080] Among them U L and θ V are the voltage phasor amplitude and phase angle of the adjustable load respectively. T ,I T ,θ T and θ I are the voltage and current phase amplitude and phase angle of UPQC respectively. P and Q are the active and reactive power consumed by the combination respectively. T is the active power delivered by the series and parallel parts of the UPQC. Z is the impedance of the adjustable load. By transforming and further deriving formula (1-5), we can obtain formula (6-8):

[0081] 2kP=(UI T ) 2 (6)

[0082]

[0083] Where P0 and Q0 are the rated power values ​​of the load when not regulated by UPQC. From formula (6), we can see that the UPQC current I T The constraints corresponding to the upper and lower limits are two straight lines, corresponding to I Tmax and I Tmin Further deducing formula (7), we can get formula (10-12):

[0084]

[0085] Among them, k, η and are intermediate variables. Formula (12) shows that the UPQC voltage U TThe constraints corresponding to the upper and lower limits are the internal areas of the ellipse. Further derivation of formula (8) can yield formula (13), which shows that the transformerless UPQC power P T The feasible domain corresponding to the upper and lower limits is the large circle and the reduced circle.

[0086] Therefore, the transformerless UPQC can be connected in series with the adjustable load (cosθ Z =0.8) as an example, the operating range of the assembly can be obtained as follows Figure 3 As shown in the shaded area in , that is, the intersection of the constraint ranges of formulas (6, 12, 13) is taken as the feasible domain of the combination value and participates in the optimization operation of the distribution network.

[0087] The optimal power flow model of the distribution network containing UPQC is explained as follows:

[0088] The distribution network optimal power flow model with UPQC can be used by distribution network operators to improve the distribution network operation efficiency, reduce line losses and costs. Generally speaking, the operation objectives include the minimum voltage deviation at each node of the distribution network, the minimum active power loss of the line and the lowest operation cost. The operation cost can be customized according to the objective needs of the current distribution network operator.

[0089] The optimization objectives of the optimal power flow model of the distribution network are explained as follows:

[0090] Setting the overall optimization goal includes three sub-optimization goals: minimizing the operator's operating cost per unit time, minimizing active line loss, and minimizing the average voltage deviation of each node in the distribution network. That is, the overall optimization goal is to optimize the operating status of a certain time section or a certain time period of the distribution network. In multi-objective optimization problems, a weight coefficient is set for each sub-optimization goal, and the coefficient depends on which sub-optimization goal the operator pays more attention to. Generally, the sub-optimization goals will achieve indicator improvements as the overall optimization goal is optimized; however, it does not rule out sacrificing a certain sub-optimization goal in exchange for the improvement of the overall optimization goal and other sub-optimization goal indicators. The overall optimization goal is as follows:

[0091]

[0092] Where: σ1, σ2 and σ3 are the weight coefficients of the sub-voltage optimization target, sub-grid loss optimization target and sub-cost optimization target, and σ1+σ2+σ3=1. e is the average rated voltage of the node, and the per-unit value is 1. p0 and M0 are the optimal values ​​when UPQC is not put into use and the minimum active network loss and the minimum operating cost of the distribution network are the only optimization objectives. The average value of the voltage deviation of the distribution network node is defined as follows:

[0093]

[0094] Where: N is the total number of nodes in the distribution network, V i is the nominal voltage of node i in the distribution network. The active line loss of the distribution network is defined as follows:

[0095]

[0096] Where: L is the number of lines in the distribution network, R k and I k are the resistance of the kth line and the effective value of the current flowing through it. The operating cost of a certain time section or unit time period of the distribution network is as follows:

[0097] M=E Grid +E DG +E U +E WP (17)

[0098] Where: E Grid 、E DG 、E U and E WP They are the cost of the distribution network purchasing electricity from the upper power grid per unit time, the operating cost of distributed power sources, the subsidy for owners to adjust the load using UPQC, and the cost of abandoning wind and solar power for distributed power sources such as wind and solar power, which are as follows:

[0099] E Grid =λ G P G Δt (18)

[0100]

[0101]

[0102] Where: G and P G are the unit price and power of electricity purchased from the next-level power grid, such as 110kV or 35kV, Δt is the unit time, and λ is the unit duration. DG,i and P DG,i are the unit time operation cost and active output of the RES connected to the i-th node, Θ DG is the set of nodes in the distribution network connected to RES, λ L,i and ΔP L,i is the controlled subsidy unit price and controlled active power change value of the adjustable load connected to the i-th node, Θ L It is the set of distribution network nodes connected to adjustable loads. WP,i , P max,i and P WP,i are the penalty coefficient for wind and solar power abandonment at the i-th node, the theoretical maximum output and actual output of RES.

[0103] The solution algorithm is described as follows:

[0104] There are two major difficulties in solving the proposed distribution network optimization model: First, formula (27, 28) is a non-convex and nonlinear power flow constraint condition, and the conventional second order cone programming (SOCP) problem solution method cannot be used. The relaxation method is used to convert equations (27, 28) into inequality constraints in the form of second order cones, which is why the present invention adopts the branch power flow optimal model. Second, the operating range of the combination of UPQC and adjustable loads, such as Figure 3 As shown. This two-dimensional plane region is non-convex, but it is difficult to transform it into a SOCP problem. In recent years, artificial intelligence optimization algorithms have been widely used to solve various engineering optimization problems. Among them, the Insectfeeding Optimization Algorithm (IFOA) is a swarm intelligence optimization algorithm based on the foraging habits of flying insects such as fruit flies and bees. It has the advantages of global optimization, not easy to fall into local optimal solutions, and simple algorithm design. It is suitable for Figure 3 The optimal operating point of the non-convex region shown in the figure is obtained. When flying insects forage in groups, once an insect finds food, it becomes the center of the entire group. The insect foraging optimization algorithm is designed according to this characteristic. Figure 4 The solution steps shown are as follows:

[0105] The first step is to start the search for optimization.

[0106] The second step is to initialize the insect colony position, that is, the active and reactive power (P0, Q0) of the adjustable load when UPQC does not work.

[0107] The third step is to calculate the random directions and distances of all individual insects;

[0108] The fourth step is to calculate the fitness function of all insect individuals, that is, the total optimization target TAR corresponding to each group (P0, Q0). The fitness function of insect individuals can be calculated by referring to the description of the existing fruit fly optimization algorithm, which will not be repeated here.

[0109] The fourth step is to check whether the fitness function calculation of all insect individuals is completed. If yes, proceed to the fifth step; if no, return to the third step.

[0110] The fifth step is to find the best individual among all insects, that is, the one with the best fitness function value.

[0111] Step 6: Is the fitness function value better than the previous generation? If yes, go to step 7; if no, go to step 8.

[0112] Step 7: Update the insect center position to the optimal individual insect position.

[0113] Step 8: Check whether the number of iterations reaches the set value. If yes, proceed to step 9; if no, return to step 3.

[0114] The ninth step is to output the position and fitness function value of the optimal insect individual at this time, that is, the optimal active and reactive power (P, Q) of the adjustable load and the total optimization target TAR after UPQC takes effect.

[0115] Step 10: The optimization process is finished.

[0116] It is worth mentioning that the fourth step is to calculate the optimal value of the fitness function, that is, to calculate the optimal power flow result of the current distribution network, which can be summarized as a SOCP problem and solved with the help of a commercial solver.

[0117] The example data in the simulation example and result analysis are explained as follows:

[0118] The optimal power flow model for the optimal operation of the distribution network with UPQC is implemented based on the MATLAB software platform. The simulation program of this example is configured in a portable computer. An improved IEEE 33-node distribution network model is shown in Figure 5 As shown in Table 1, the maximum load is 5.084+j2.547MV·A and the voltage level is 12.66kV. The data is shown in Table 1:

[0119] Table 1

[0120]

[0121] The allowable deviation range of the node voltage is ±5%. In formula (14), σ1, σ2 and σ3 are 0.41, 0.295 and 0.295 respectively; the selection of weight coefficient depends on the operation requirements of the distribution network and the operating strategy of the operator. The optimization parameter configuration of the flying insect foraging algorithm is shown in Table 2:

[0122] Table 2

[0123]

[0124] In formula (18), G Taking 0.483 yuan / kWh, the price of photovoltaic and wind power in formula (19) is DG,i The subsidy coefficient λ in formula (20) is adjusted to 1.1 yuan / kWh and 0.82 yuan / kWh respectively. L,i Assuming 0.15 yuan / kWh, the λ of abandoned solar power and abandoned wind power in formula (21) is WP,i They are 0.43 yuan / kWh and 0.36 yuan / kWh respectively.

[0125] The results analysis is explained as follows:

[0126] After 50 consecutive iterations, the indicators including the total optimization target TAR and the three sub-optimization targets were further optimized. The specific iteration process is shown in Figure 6(a)-Figure 6(d) shown.

[0127] Depend on Figure 6(a)-Figure 6(d) From the iterative process shown, it can be seen that the proposed optimization model can achieve the improvement of both the total optimization index and the sub-optimization index. The simulation results of the model with 0 iterations and 50 iterations are shown in Table 3:

[0128] Table 3

[0129]

[0130] The flying insect foraging algorithm can be used to optimize the output of adjustable loads and distributed power sources. The results before and after optimization are as follows: Figure 7(a)-Figure 7(c) The optimization trajectory of the adjustable load L1 is shown as Figure 8 shown.

[0131] UPQC adjusts the voltage phasor of the resistive and inductive loads, reducing the active power consumed and increasing the reactive power generated, which helps to raise the voltage of some nodes; the distributed power sources of nodes 15 and 20 connected are optimized to reduce the active output. Although the cost of wind and solar power abandonment has increased slightly, from a global perspective, the distribution network flow will be further optimized. The optimization of the above adjustable factors comprehensively improves the global operating indicators of the distribution network. In particular, UPQC, as a new type of load regulation device, can improve the operating efficiency of the distribution network for load users willing to accept regulation while considering some operating costs of the distribution network.

[0132] Furthermore, the method for obtaining optimization parameters also includes:

[0133] If it is determined that the number of iterations has not reached the preset value, the fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance and the initial position of the insect group until the number of iterations reaches the preset value.

[0134] Furthermore, the method for obtaining optimization parameters also includes:

[0135] If it is determined that the optimal fitness function value is not better than the previous generation optimal fitness function value, the step of determining whether the number of iterations reaches a preset value is directly performed. The above embodiment can be referred to for description and will not be repeated.

[0136] Furthermore, the overall microgrid energy optimization target includes a sub-voltage optimization target, a sub-grid loss optimization target and a sub-cost optimization target; the above embodiments may be referred to for explanation and will not be described in detail.

[0137] The sub-voltage optimization target is a first ratio of an average value of voltage deviation of distribution network nodes to an average rated voltage of the nodes; the description may refer to the above embodiment and will not be repeated here.

[0138] The subnetwork loss optimization target is a second ratio of the active line loss of the distribution network to the optimal value when the minimum active network loss is the only optimization target when UPQC does not work; the above-mentioned embodiment can be referred to for description and will not be repeated here.

[0139] The sub-cost optimization target is a third ratio of the operating cost of the preset time period to the optimal value when the minimum distribution network minimum operating cost is the only optimization target when the UPQC does not work.

[0140] Further, calculating the average value of the voltage deviation of the distribution network node includes:

[0141] The average value of the node voltage deviation of the distribution network is calculated based on the average rated voltage of the node, the nominal voltage corresponding to each node and the total number of nodes in the distribution network.

[0142] Further, calculating the active line loss of the distribution network includes:

[0143] According to the resistance value of each line, the effective value of the current flowing through each line and the number of lines in the distribution network, the active line loss of the distribution network is calculated.

[0144] Further, calculating the operating cost of the preset time period includes:

[0145] The sum of the cost of the distribution network purchasing electricity from the upper power grid per unit time, the operating cost of the distributed power source, the subsidy fee for the owner to adjust the load using UPQC, and the cost of wind and solar power abandonment for the distributed power source is taken as the operating cost of the preset time period. Please refer to the above embodiment for explanation and will not repeat it here.

[0146] Fig. 9 FIG. 1 is a schematic diagram of a structure of a device for obtaining optimization parameters provided by an embodiment of the present invention. Fig. 9 As shown, the device for obtaining optimization parameters provided by the embodiment of the present invention includes a determination unit 901, a calculation unit 902, a comparison unit 903 and an acquisition unit 904, wherein:

[0147] The determination unit 901 is used to determine the initialization insect group position, and the initialization insect group position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when UPQC does not work; the calculation unit 902 is used to calculate the fitness function value corresponding to each insect individual according to the generated random direction and distance, and the initialization insect group position; the fitness function value is the total energy optimization target of the microgrid based on UPQC; the comparison unit 903 is used to compare the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the previous generation of optimal fitness function value, if it is determined that the optimal fitness function value is better than the previous generation of optimal fitness function value, then the target insect individual position is used as the optimal insect individual position; the acquisition unit 904 is used to use the optimal insect individual position output at this time as the active power and reactive power of the optimal adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total energy optimization target result of the microgrid.

[0148] Specifically, the determination unit 901 in the device is used to determine the initialization insect group position, and the initialization insect group position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when UPQC does not work; the calculation unit 902 is used to calculate the fitness function value corresponding to each insect individual according to the generated random direction and distance, and the initialization insect group position; the fitness function value is the total energy optimization target of the microgrid based on UPQC; the comparison unit 903 is used to compare the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the previous generation of optimal fitness function value. If it is determined that the optimal fitness function value is better than the previous generation of optimal fitness function value, the target insect individual position is used as the optimal insect individual position; the acquisition unit 904 is used to use the optimal insect individual position output at this time as the active power and reactive power of the optimal adjustable load after UPQC takes effect if it is determined that the number of iterations reaches a preset value, and the fitness function value output at this time is used as the total energy optimization target result of the microgrid.

[0149] The device for obtaining optimization parameters provided by the embodiment of the present invention determines the initialization position of the insect colony, wherein the initialization position of the insect colony is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not work; the fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the initialization position of the insect colony; the fitness function value is the total energy optimization target of the microgrid based on UPQC; the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the previous generation optimal fitness function value, if it is determined that the optimal fitness function value is better than the previous generation optimal fitness function value, the target insect individual position is used as the optimal insect individual position; if it is determined that the number of iterations reaches a preset value, the optimal insect individual position output at this time is used as the optimal active power and reactive power of the adjustable load after the UPQC takes effect, and the fitness function value output at this time is used as the total energy optimization target result of the microgrid, which can improve the overall operation efficiency of the distribution network and reduce line loss and cost.

[0150] The embodiment of the device for obtaining optimization parameters provided in the embodiment of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments. Its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0151] Fig.10 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Fig.10 As shown, the electronic device includes: a processor (processor) 1001, a memory (memory) 1002 and a bus 1003;

[0152] The processor 1001 and the memory 1002 communicate with each other via a bus 1003;

[0153] The processor 1001 is used to call the program instructions in the memory 1002 to execute the methods provided by the above method embodiments, for example, including:

[0154] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0155] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0156] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0157] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0158] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the methods provided by the above method embodiments, for example, including:

[0159] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0160] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0161] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0162] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0163] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables the computer to execute the methods provided by the above method embodiments, for example, including:

[0164] Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function;

[0165] The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC;

[0166] The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position;

[0167] If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

[0168] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0169] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0170] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0171] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0172] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0173] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for obtaining optimization parameters, characterized in that: include: Determine an initialization insect swarm position, where the initialization insect swarm position is the active power and reactive power of the adjustable load corresponding to each node in the distribution network when the UPQC does not function; The fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance, and the position of the initialized insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC; The optimal fitness function value of the target insect individual corresponding to the optimal fitness function value is compared with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position; If it is determined that the number of iterations reaches the preset value, the optimal individual insect position output at this time is used as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and the fitness function value output at this time is used as the total optimization target result of the microgrid energy.

2. The method for obtaining optimization parameters according to claim 1, characterized in that: The method for obtaining optimization parameters also includes: If it is determined that the number of iterations has not reached the preset value, the fitness function value corresponding to each individual insect is calculated according to the generated random direction and distance and the initialized insect group position until the number of iterations reaches the preset value.

3. The method for obtaining optimization parameters according to claim 2, characterized in that: The method for obtaining optimization parameters also includes: If it is determined that the optimal fitness function value is not better than the optimal fitness function value of the previous generation, the step of determining whether the number of iterations reaches a preset value is directly executed.

4. The method for obtaining optimization parameters according to any one of claims 1 to 3, characterized in that: The microgrid energy total optimization target includes a sub-voltage optimization target, a sub-grid loss optimization target and a sub-cost optimization target; The sub-voltage optimization target is a first ratio of the average value of the distribution network node voltage deviation to the average rated voltage of the node; The subnetwork loss optimization target is a second ratio of the active line loss of the distribution network to the optimal value when the minimum active network loss is the only optimization target when the UPQC does not play a role; The sub-cost optimization target is a third ratio of the operating cost of a preset time period to the optimal value when the minimum distribution network minimum operating cost is the only optimization target when the UPQC does not function.

5. The method for obtaining optimization parameters according to claim 4, characterized in that: Calculating the average voltage deviation of the distribution network nodes, comprising: The average voltage deviation of the nodes in the distribution network is calculated according to the average rated voltage of the nodes, the nominal voltage corresponding to each node and the total number of nodes in the distribution network.

6. The method for obtaining optimization parameters according to claim 4, characterized in that: Calculating the active line loss of the distribution network includes: The active line loss of the distribution network is calculated based on the resistance value of each line, the effective value of the current flowing through each line and the number of lines in the distribution network.

7. The method for obtaining optimization parameters according to claim 4, characterized in that: Calculating the operating cost of the preset time period includes: The sum of the cost of the distribution network purchasing electricity from the upper-level power grid per unit time, the operating cost of the distributed power source, the subsidy for the owner to adjust the load using UPQC, and the cost of wind and solar power abandonment for the distributed power source is taken as the operating cost of the preset time period.

8. A device for obtaining optimization parameters, characterized in that: include: A determination unit, configured to determine an initialization insect swarm position, wherein the initialization insect swarm position is the active power and reactive power of an adjustable load corresponding to each node in the distribution network when the UPQC does not function; A calculation unit, used for calculating the fitness function value corresponding to each individual insect according to the generated random direction and distance and the initialization position of the insect group; the fitness function value is the total energy optimization target of the microgrid based on UPQC; A comparison unit, used to compare the optimal fitness function value of the target insect individual corresponding to the optimal fitness function value with the optimal fitness function value of the previous generation, and if it is determined that the optimal fitness function value is better than the optimal fitness function value of the previous generation, the position of the target insect individual is used as the optimal insect individual position; The acquisition unit is used to, if it is determined that the number of iterations reaches a preset value, use the optimal individual insect position output at this time as the optimal active power and reactive power of the adjustable load after UPQC takes effect, and use the fitness function value output at this time as the total optimization target result of the microgrid energy.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, 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 7 are implemented.