Reactive power distribution method and device, electronic equipment and storage medium
By establishing an objective function within the new energy station and using particle swarm optimization and power flow calculation to rationally distribute reactive power, the problem of unreasonable reactive power distribution was solved, voltage stability and economic operation were achieved, losses were reduced, and the security of the power grid was ensured.
Patent Information
- Application Number
- CN202510687786.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-09-09
AI Technical Summary
The existing technology uses irrational reactive power distribution at new energy stations, resulting in large operating losses and high costs, and may cause voltage drops and equipment disconnection, affecting the safe and stable operation of the power grid.
By obtaining the total reactive power command value and equipment status characteristics of the reactive compensation equipment in the new energy station, an objective function with the goal of minimizing the operating loss of the entire station is established. The particle swarm algorithm and power flow calculation are used to perform multiple rounds of iterative solutions to reasonably allocate the reactive power of each reactive compensation device.
It achieves the rational distribution of reactive power, ensures voltage stability, avoids internal voltage drops, reduces operating losses, and improves the economy of new energy stations and the safety and stability of the power grid.
Smart Images

Figure CN120613746A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a reactive power distribution method, device, electronic equipment and storage medium. Background Art
[0002] Currently, the installed capacity of renewable energy in the power grid is increasing year by year. However, due to the strong randomness and intermittent nature of renewable energy, this can lead to insufficient reactive power support in the system. Existing technologies use multiple reactive power compensation devices to compensate for reactive power. However, when each reactive power compensation device distributes reactive power in existing technologies, there is an issue of irrational reactive power distribution. This irrational reactive power distribution can lead to significant operating losses and high operating costs at renewable energy stations. It can also cause voltage drops within the station, leading to disconnection of renewable energy equipment from the grid, and impacting the safe and stable operation of the power grid system. Summary of the Invention
[0003] Embodiments of the present invention provide a reactive power distribution method, device, electronic device, and storage medium, which can reasonably distribute the reactive power of each reactive compensation device in a new energy station.
[0004] In a first aspect, an embodiment of the present invention provides a reactive power distribution method, comprising:
[0005] Obtaining a total reactive power command value and device status characteristics of reactive power compensation equipment in a new energy station, where the number of reactive power compensation equipment is multiple;
[0006] Establishing an objective function based on the total reactive power command value and the device status characteristics with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as an optimization variable; and
[0007] The objective function is solved by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, so as to obtain the optimal reactive power distribution value of each reactive compensation device.
[0008] In a second aspect, an embodiment of the present invention provides a reactive power distribution device, comprising:
[0009] A command value and status characteristic acquisition module is used to obtain the total reactive power command value and device status characteristics of reactive compensation equipment in a new energy station, where there are multiple reactive compensation devices;
[0010] An objective function establishment module is configured to establish, based on the total reactive power command value and the device state characteristics, an objective function with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as an optimization variable; and
[0011] The objective function solving module is used to solve the objective function by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, so as to obtain the optimal reactive power distribution value of each reactive compensation device.
[0012] In a third aspect, an embodiment of the present invention further 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 program, the reactive power distribution method as described in any one of the embodiments of the present invention is implemented.
[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the reactive power distribution method as described in any one of the embodiments of the present invention.
[0014] The embodiments of the present invention provide a reactive power distribution method, device, electronic device and storage medium. By acquiring the equipment status characteristics and total reactive power instruction values of each reactive compensation device based on a new energy station, an objective function is established with the goal of minimizing the operating loss of the entire station and the reactive power distribution value of each reactive compensation device as the optimization variable. The objective function is further solved based on power flow calculation and particle swarm algorithm. Based on the total reactive power instruction value, reactive power can be reasonably distributed to each reactive compensation device under the premise of comprehensively considering the equipment status characteristics of each reactive compensation device, thereby ensuring the voltage stability within the station, avoiding internal voltage drops that cause equipment to be disconnected from the grid, and achieving the optimal economic operation of the new energy station. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 This is a flow chart of a reactive power distribution method provided by an embodiment of the present invention;
[0017] Figure 2 is another flow chart of the reactive power distribution method provided by an embodiment of the present invention;
[0018] Figure 3 is another flow chart of the reactive power distribution method provided by an embodiment of the present invention;
[0019] Figure 4 is another flow chart of the reactive power distribution method provided by an embodiment of the present invention;
[0020] Figure 5 is another flow chart of the reactive power distribution method provided by an embodiment of the present invention;
[0021] Figure 6 This is a structural diagram of a reactive power distribution device provided by an embodiment of the present invention;
[0022] Figure 7 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Figure 1 This is a flow chart of a reactive power distribution method provided by an embodiment of the present invention. This embodiment is applicable to the scenario of reactive power distribution of a new energy station equipped with multiple reactive compensation devices. The method can be executed by a reactive power distribution device provided by an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated into an electronic device, such as a computer, a server, etc. The following embodiments will be described using the example of the device being integrated into an electronic device. Figure 1 , the method may specifically include the following steps:
[0026] Step 101: Obtain the total reactive power command value and device status characteristics of reactive power compensation equipment in the new energy station. There are multiple reactive power compensation equipment. This step can facilitate the establishment of an objective function based on the total reactive power command value and device status characteristics.
[0027] Optionally, the device status characteristics include the operating status of each reactive compensation device and the grid interaction type.
[0028] Specifically, the above-mentioned operating status may include: a fault state of the reactive compensation device, a reactive power limit, a voltage at a node where the device is connected, and / or active power.
[0029] Specifically, the above-mentioned grid interaction types may include: grid following type and grid building type.
[0030] Optionally, the above process of obtaining the total reactive power instruction value of each reactive compensation device in the new energy station includes the AVC (Automatic Voltage Control) system of the new energy station receiving the voltage regulation instruction issued by the power grid dispatcher, and calculating the total reactive power required to be output by the new energy station based on the voltage regulation instruction to obtain the total reactive power instruction value of each reactive compensation device mentioned above.
[0031] Specifically, the above-mentioned reactive compensation equipment includes: multiplexed reactive compensation equipment and / or dedicated reactive compensation equipment. The multiplexed reactive compensation equipment is a reactive compensation equipment whose output power includes active power and reactive power, and the dedicated reactive compensation equipment is a reactive compensation equipment whose output power only includes reactive power.
[0032] Specifically, the multiplexed reactive power compensation device may include: a wind turbine generator, a photovoltaic generator and / or an energy storage unit.
[0033] Specifically, the dedicated reactive power compensation equipment may include a SVG (Static Var Generator) and / or a phase regulator.
[0034] Optionally, the above process of obtaining the operating status of each reactive compensation device in the new energy station includes: obtaining the fault status, reactive power limit, active power output value and equipment access node voltage of the wind turbine; obtaining the fault status, reactive power limit, active power output value and equipment access node voltage of the photovoltaic generator; obtaining the fault status, reactive power limit, active power output value and equipment access node voltage of the energy storage unit; obtaining the fault status, reactive power limit and equipment access node voltage of the SVG; and / or obtaining the fault status, reactive power limit and equipment access node voltage of the phase regulator.
[0035] Specifically, the voltage at the high-voltage side of the converter of the wind turbine may be obtained to obtain the voltage at the device access node of the wind turbine.
[0036] Specifically, the voltage at the high-voltage side of the inverter of the photovoltaic generator may be obtained to obtain the voltage at the device access node of the photovoltaic generator.
[0037] Specifically, the voltage at the high-voltage side of the energy storage converter of the energy storage unit may be obtained to obtain the voltage at the device access node of the energy storage unit.
[0038] Specifically, the voltage at the device access node of the SVG may be obtained by acquiring the voltage at the high-voltage side of the converter of the SVG.
[0039] Specifically, the operating voltage of the phase modulator can be obtained to obtain the device access point voltage of the phase modulator.
[0040] Step 102: Based on the total reactive power command value and the device status characteristics, an objective function is established, with the goal of minimizing overall station operating losses and the reactive power allocation value of each reactive compensation device as the optimization variable. This step establishes an objective function based on the total reactive power command value and the device status characteristics of each reactive compensation device. This facilitates the rational allocation of reactive power to each reactive compensation device based on the total reactive power command value, taking into account the device status characteristics of each reactive compensation device.
[0041] Optionally, the device status characteristic includes a fault state of the reactive compensation device.
[0042] Optionally, the process of establishing an objective function based on the total reactive power command value and the device status characteristics with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as an optimization variable includes:
[0043] A target reactive compensation device participating in reactive power distribution is determined from a plurality of reactive compensation devices based on corresponding fault states, and a compensation device access node is determined based on the target reactive compensation device; a line loss item is established based on the compensation device access node and other electrical nodes of the new energy station; a total reactive power over-limit penalty item is established based on the total reactive power of the target reactive compensation device and the total reactive power instruction value; and an objective function is established based on the line loss item and the total reactive power over-limit penalty item.
[0044] Optionally, the process of determining a target reactive compensation device participating in reactive power distribution from a plurality of reactive compensation devices based on corresponding fault states includes: determining a reactive compensation device whose corresponding fault state is that no fault has occurred as the target reactive compensation device.
[0045] Specifically, there may be multiple target reactive power compensation devices.
[0046] Specifically, the above line loss term can be expressed as:
[0047]
[0048] Where n represents the number of electrical nodes in the new energy station, including the compensation equipment access nodes and other electrical nodes of the new energy station; i and j represent two adjacent electrical nodes; G ij represents the conductance between nodes i and j; B ij represents the susceptance between nodes i and j; δ ij It represents the phase difference between the voltages at nodes i and j.
[0049] Specifically, the above-mentioned reactive power total amount exceeding the limit penalty term can be expressed as:
[0050]
[0051] Among them, ε represents the penalty factor for the total reactive power exceeding the limit, l represents each target reactive power compensation device, s represents the total amount of target reactive power compensation devices, and Q l Indicates the reactive power distribution value of each target reactive power compensation device, Q 总 Indicates the total reactive power command value.
[0052] Specifically, the objective function may be determined by summing the line loss term and the reactive power total amount exceeding limit penalty term.
[0053] It can be understood that determining the above objective function based on the line loss term and the total reactive power over-limit penalty term can help the new energy station operate at a reasonable reactive power level, thereby reducing the overall operating loss of the entire station.
[0054] Specifically, each reactive compensation device can also be directly determined as the target reactive compensation device participating in reactive power distribution, and then the reactive power distribution value of each reactive compensation device can be determined based on the corresponding fault status. For example, the reactive power distribution value of the reactive compensation device with a fault status of 0 can be determined.
[0055] Step 103: The optimal reactive power distribution value for each reactive compensation device is obtained by performing multiple iterations of the objective function based on power flow calculation and particle swarm optimization. This step, building on steps 101 and 102, rationally distributes reactive power to each reactive compensation device based on the total reactive power command value and taking into account the device status characteristics of each reactive compensation device. This ensures voltage stability within the station, prevents internal voltage drops that could cause equipment to disconnect from the grid, and achieves optimal economic operation of the new energy station.
[0056] Optionally, the above-mentioned process of solving the objective function by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on flow calculation and particle swarm algorithm includes: performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on the constraints of each electrical node of the new energy station and each reactive compensation device.
[0057] Specifically, the constraints of the above electrical nodes can be expressed as:
[0058]
[0059] Among them, U i Indicates the voltage amplitude of each electrical node, U imin and U imax Corresponding to the maximum and minimum values of the voltage at each electrical node; Q l Indicates the reactive power value of each reactive power compensation device (the reactive power distribution value of the node device not participating in the reactive power distribution calculation is 0), Q nlim and Q lmax Corresponding to the maximum and minimum reactive power values of each reactive compensation device; P imin Indicates the output active power value of each electrical node equipment, P imin and P imax They respectively represent the minimum and maximum active power that each electrical node device can output.
[0060] Optionally, the process of performing multiple rounds of iterations on the reactive power distribution values of each reactive compensation device based on power flow calculation and particle swarm optimization to solve the objective function includes:
[0061] During each round of iteration, the voltage values of the key nodes of the new energy station during this round of iterative optimization are set based on the particle swarm algorithm to obtain the voltage values of the key nodes in this round; based on the voltage values of the key nodes in this round, the reactive power of each reactive compensation device in this round of iteration is determined through flow calculation.
[0062] Specifically, the key nodes of the above-mentioned new energy stations may include bus nodes of the new energy stations.
[0063] Specifically, the key nodes of the above-mentioned new energy stations may also include: grid connection points, power access nodes, load nodes and / or transformer connection nodes.
[0064] Specifically, the above power flow calculation can use the Newton-Raphson power flow equation:
[0065]
[0066] Where J represents the Jacobian matrix, ΔP represents the change in active power of each node, ΔQ represents the change in reactive power of each node, Δθ represents the change in voltage phase angle of each node, and ΔU represents the change in voltage amplitude of each node.
[0067] The reactive power distribution method provided by the embodiment of the present invention is further described below.
[0068] Optionally, the device status characteristics include a reactive power limit of the reactive compensation device and a voltage at a node to which the device is connected.
[0069] Optional, such as Figure 2 As shown, Figure 1 Step 102 in the embodiment may include the following steps:
[0070] Step 102A1 : determining a target reactive power compensation device participating in reactive power distribution from a plurality of reactive power compensation devices based on corresponding fault states, and determining a compensation device access node based on the target reactive power compensation device.
[0071] Step 102A2: Establish line loss items based on the compensation device access node and other electrical nodes of the new energy station.
[0072] Step 102A3: Establish a reactive power limit-exceeding penalty item based on the reactive power of the target reactive power compensation device and the reactive power limit.
[0073] Specifically, the reactive power over-limit penalty term can be expressed as:
[0074]
[0075] Where τ represents the reactive power limit penalty factor, f(Q l ) represents the value of the reactive power over-limit penalty term, Q l Represents the reactive power of the target reactive compensation device l, Q lmin and Q lmax Correspondingly represents the maximum and minimum values of the reactive power of l.
[0076] Step 102A4: Establish a node voltage over-limit penalty item based on the device access node voltage of the target reactive power compensation device, the node voltages of other electrical nodes, and the voltage limits.
[0077] Specifically, the above-mentioned node voltage over-limit penalty term can be expressed as:
[0078]
[0079] Where λ represents the node voltage over-limit penalty factor, f(U i ) represents the value of the node voltage over-limit penalty term, U i Indicates the voltage value of each electrical node, Uimin and U imax Correspondingly represents the maximum and minimum values of the voltage at each electrical node.
[0080] Step 102A5: Establish an objective function based on the line loss term, the total reactive power over-limit penalty term, the reactive power over-limit penalty term, and the node voltage over-limit penalty term.
[0081] Specifically, the objective function may be determined by summing the line loss term, the total reactive power over-limit penalty term, the reactive power over-limit penalty term, and the voltage over-limit penalty term.
[0082] The embodiment of the present invention determines the objective function based on the node voltage over-limit penalty item and the reactive power over-limit penalty item, which can help ensure the safe and stable operation of electrical equipment, improve the power quality and ensure the safe and reliable operation of the power grid. At the same time, it is beneficial to improve the power factor, enhance the power grid transmission capacity, and reduce power grid losses.
[0083] The reactive power distribution method provided by the embodiment of the present invention is further described below.
[0084] Optionally, the device status characteristics also include the active power of the multiplexed reactive power compensation device.
[0085] Optional, such as Figure 3 As shown, Figure 1 Step 102 in the embodiment may include the following steps:
[0086] Step 102B1: determine a target reactive power compensation device participating in reactive power distribution from a plurality of reactive power compensation devices based on corresponding fault states, and determine a compensation device access node based on the target reactive power compensation device.
[0087] Step 102B2: Establish line loss items based on the compensation device access node and other electrical nodes of the new energy station.
[0088] Step 102B3: establishing a reactive power total amount exceeding limit penalty item based on the reactive power total amount of the target reactive power compensation device and the reactive power total amount instruction value.
[0089] Step 102B4: Establish an apparent power loss term based on the active power and reactive power of the multiplexed reactive power compensation device.
[0090] Optionally, when the multiplexed reactive power compensation device includes a wind turbine, a photovoltaic generator, and an energy storage unit, the apparent power loss term can be expressed as:
[0091]
[0092] Among them, m, s and t represent the number of wind turbines, photovoltaics and energy storage respectively; α, β and Corresponding to the apparent power loss coefficient of wind turbine, photovoltaic and energy storage; S l风机 、S l光伏 and S l光伏 The corresponding power of wind turbine, photovoltaic and energy storage is P l风机 、P l光伏 and P l光伏 Corresponding to the active power of wind turbines, photovoltaics and energy storage; Q l风机 , Q l光伏 and Q l光伏 It corresponds to the reactive power of wind turbines, photovoltaics and energy storage.
[0093] Step 102B5: Establish a reactive power loss term based on the reactive power of the dedicated reactive power compensation device.
[0094] Optionally, when the dedicated reactive power compensation equipment may include an SVG and a phase regulator, the reactive power loss term may be expressed as:
[0095]
[0096] Among them, p and q represent the number of SVG and phase regulator, ξ and γ represent the reactive power loss coefficient of SVG and phase regulator, Q / SVG and Q l调相机 Correspondingly represents the reactive power of SVG and phase regulator.
[0097] Step 102B6: Establish an objective function based on the line loss term, the reactive power over-limit penalty term, the apparent power loss term, and the reactive power loss term.
[0098] Specifically, the objective function may be determined by summing the line loss term, the reactive power total limit exceeding penalty term, the apparent power loss term, and the reactive power loss term.
[0099] Optionally, the process of establishing the objective function based on the line loss term, the total reactive power over-limit penalty term, the apparent power loss term, and the reactive power loss term includes:
[0100] The objective function is established by summing the line loss term, the total reactive power over-limit penalty term, the reactive power over-limit penalty term, the node voltage over-limit penalty term, the apparent power loss term and the reactive power loss term.
[0101] Specifically, the above objective function can be expressed as:
[0102]
[0103] The embodiments of the present invention can help reduce the overall operating losses of new energy stations by reducing the power consumption of reactive compensation equipment.
[0104] The reactive power distribution method provided by the embodiment of the present invention is further described below. Figure 4 As shown, Figure 1 Step 102 in the embodiment may include the following steps:
[0105] In step 102C1, the grid-following type reactive compensation device among the reactive compensation devices is used as the main reactive compensation device, and the grid-forming type reactive compensation device among the reactive compensation devices is used as the backup reactive compensation device.
[0106] Specifically, the above-mentioned grid-connected reactive power production equipment may include grid-connected wind turbines, grid-connected photovoltaics, grid-connected energy storage and / or grid-connected SVG.
[0107] Specifically, the above-mentioned grid-type reactive power factory equipment may include grid-type wind turbines, grid-type photovoltaics, grid-type energy storage, grid-type SVG and / or phase regulators.
[0108] Step 102C2: establishing an initial objective function based on the total reactive power command value and the operating status of the main reactive power compensation device.
[0109] Optional, such as Figure 5 As shown, Figure 1 Step 103 in the embodiment may include the following steps:
[0110] Step 1031 , performing multiple rounds of iterations on the reactive power distribution value of each main reactive compensation device based on power flow calculation and particle swarm optimization to solve the initial objective function, thereby obtaining the initial optimized reactive power value of each main reactive compensation device.
[0111] Step 1032A, when the initial optimized reactive power value of each reactive compensation device is not less than the total reactive power instruction value, the corresponding initial optimized reactive power value is determined as the optimal reactive power distribution value of each main reactive compensation device, and the optimal reactive power distribution value of each standby reactive compensation device is determined to be 0.
[0112] Optional, Figure 1 Step 102 in the embodiment may further include the following steps:
[0113] Step 102C3: When the initial optimized reactive power value of each reactive compensation device is less than the total reactive power command value, a final objective function is established based on the total reactive power command value and the operating status of each active reactive compensation device and each standby reactive compensation device.
[0114] Optional, Figure 1 Step 103 in the embodiment may further include the following steps:
[0115] Step 1032B, when the initial optimized value of the reactive power of each reactive compensation device is less than the total reactive power command value, the reactive power distribution value of each main reactive compensation device and each backup reactive compensation device is iterated multiple times based on the power flow calculation and the particle swarm algorithm to solve the final objective function, and the optimal reactive power distribution value of each main reactive compensation device and each backup reactive compensation device is obtained.
[0116] It is understandable that the grid-forming equipment will make corresponding reactive power responses when the grid is transiently disturbed (such as voltage fluctuations, short-circuit faults, etc.), which are at the millisecond level. The normal reactive power adjustment instructions when the grid is operating in a steady state belong to the second-level adjustment. The embodiment of the present invention takes into account the reactive power output characteristics of the grid-following reactive compensation equipment and the grid-forming reactive compensation equipment at different time scales. By using the grid-following reactive compensation equipment as the main reactive compensation equipment and the grid-forming reactive compensation equipment as the backup reactive compensation equipment, reactive power transient support and steady-state regulation of different time scales and different working conditions can be achieved.
[0117] Figure 6 FIG is a structural diagram of a reactive power distribution device provided by an embodiment of the present invention, which is suitable for executing the reactive power distribution method provided by an embodiment of the present invention. Figure 6 As shown, the device may specifically include:
[0118] The command value and state characteristic acquisition module 601 is used to obtain the total reactive power command value and device state characteristics of the reactive power compensation equipment in the new energy station, where there are multiple reactive power compensation equipment. This facilitates establishing an objective function based on the total reactive power command value and device state characteristics.
[0119] Optionally, the device status characteristic includes a fault state of the reactive compensation device.
[0120] Optionally, the device status characteristics include a reactive power limit of the reactive compensation device and a voltage at a node to which the device is connected.
[0121] Optionally, the device status characteristics include the operating status of each reactive compensation device and the grid interaction type, and the grid interaction type includes: grid following type and grid building type.
[0122] Objective function establishment module 602 is configured to establish an objective function based on the total reactive power command value and the device status characteristics, with the goal of minimizing overall station operating losses and the reactive power allocation value of each reactive compensation device as the optimization variable. Establishing an objective function based on the total reactive power command value and the device status characteristics of each reactive compensation device facilitates the rational allocation of reactive power to each reactive compensation device based on the total reactive power command value, taking into account the device status characteristics of each reactive compensation device.
[0123] Optionally, the above-mentioned objective function establishment module 602 can be specifically used to determine the target reactive compensation device participating in reactive power distribution from multiple reactive compensation devices based on the corresponding fault status, and determine the compensation device access node based on the target reactive compensation device; establish a line loss item based on the compensation device access node and other electrical nodes of the new energy station; establish a total reactive power over-limit penalty item based on the total reactive power of the target reactive compensation device and the total reactive power instruction value; and establish an objective function based on the line loss item and the total reactive power over-limit penalty item.
[0124] Optionally, the above-mentioned objective function establishment module 602 can be specifically used to establish a reactive power over-limit penalty item based on the reactive power and reactive power limit of the target reactive compensation equipment; establish a node voltage over-limit penalty item based on the equipment access node voltage of the target reactive compensation equipment, the node voltage and voltage limit of other electrical nodes; and establish an objective function based on the line loss item, the total reactive power over-limit penalty item, the reactive power over-limit penalty item and the node voltage over-limit penalty item.
[0125] Optionally, the above-mentioned target reactive compensation equipment includes: multiplexed reactive compensation equipment and dedicated reactive compensation equipment. The multiplexed reactive compensation equipment is a reactive compensation equipment whose output power includes active power and reactive power, and the dedicated reactive compensation equipment is a reactive compensation equipment whose output power only includes reactive power.
[0126] Optionally, the device status characteristics also include the active power of the multiplexed reactive power compensation device.
[0127] Optionally, the above-mentioned objective function establishment module 602 can be specifically used to establish an apparent power loss item based on the active power and reactive power of the multiplexed reactive compensation equipment; establish a reactive power loss item based on the reactive power of the dedicated reactive compensation equipment; and establish an objective function based on the line loss item, the total reactive power over-limit penalty item, the apparent power loss item and the reactive power loss item.
[0128] Optionally, the above-mentioned objective function establishment module 602 can be specifically used to use the grid-following type reactive compensation device in each reactive compensation device as the main reactive compensation device, and the grid-building type reactive compensation device in each reactive compensation device as the backup reactive compensation device; and to establish an initial objective function based on the total reactive power instruction value and the operating status of the main reactive compensation device.
[0129] Optionally, the above-mentioned objective function establishment module 602 can be specifically used to establish the final objective function based on the total reactive power instruction value and the operating status of each main reactive compensation device and each standby reactive compensation device when the initial reactive power optimization value of each reactive compensation device is less than the total reactive power instruction value.
[0130] Objective function solving module 603 is used to solve the objective function by performing multiple rounds of iterations based on power flow calculations and a particle swarm algorithm to determine the optimal reactive power distribution value for each reactive compensation device. This module, combined with modules 601 and 602, can rationally allocate reactive power to each reactive compensation device based on the total reactive power command value and taking into account the device status characteristics of each reactive compensation device. This ensures voltage stability within the station, prevents internal voltage drops that could cause equipment to disconnect from the grid, and achieves optimal economic operation of the new energy station.
[0131] Optionally, the objective function solving module 603 can be specifically used to, during each round of iteration, set the voltage value of the key node of the new energy station during this round of iterative optimization based on the particle swarm algorithm to obtain the voltage value of the key node of this round; and determine the reactive power of each reactive compensation device in this round of iteration value through flow calculation based on the voltage value of the key node of this round.
[0132] Optionally, the above-mentioned objective function solving module 603 can be specifically used to solve the initial objective function by performing multiple rounds of iterations on the reactive power distribution value of each main reactive compensation device based on flow calculation and particle swarm algorithm to obtain the initial optimized reactive power value of each main reactive compensation device; when the initial optimized reactive power value of each reactive compensation device is not less than the total reactive power instruction value, the corresponding initial optimized reactive power value is determined as the optimal reactive power distribution value of each main reactive compensation device, and the optimal reactive power distribution value of each standby reactive compensation device is determined to be 0.
[0133] Optionally, the above-mentioned objective function solving module 603 can be specifically used to solve the final objective function by performing multiple rounds of iterations on the reactive power distribution values of each main reactive compensation device and each backup reactive compensation device based on flow calculation and particle swarm algorithm when the initial optimization value of the reactive power of each reactive compensation device is less than the total reactive power instruction value, so as to obtain the optimal reactive power distribution value of each main reactive compensation device and each backup reactive compensation device.
[0134] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0135] An embodiment of the present invention further 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 program, the reactive power distribution method provided in any of the above embodiments is implemented.
[0136] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the reactive power distribution method provided by any of the above embodiments is implemented.
[0137] An embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the reactive power distribution method as described in any one of the embodiments of the present invention.
[0138] Reference below Figure 7 , which shows a schematic structural diagram of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0139] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the system 700 are also stored in the RAM 703. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0140] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including a hard disk; and a communication section 709 including a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed into the storage section 708 as needed.
[0141] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0142] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0143] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules and / or units described in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor. For example, a processor may be described as comprising an instruction value and state feature acquisition module, an objective function establishment module, and an objective function solution module. The names of these modules do not, in some cases, limit the modules themselves.
[0145] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a device, the device includes: obtaining a total reactive power command value and device status characteristics of reactive compensation equipment in a new energy station, where the number of reactive compensation equipment is multiple; establishing an objective function based on the total reactive power command value and device status characteristics, with the goal of minimizing the operating loss of the entire station and the reactive power distribution value of each reactive compensation device as an optimization variable; and solving the objective function by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, thereby obtaining the optimal reactive power distribution value of each reactive compensation device.
[0146] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A reactive power distribution method, characterized in that: include: Obtaining a total reactive power command value and device status characteristics of reactive power compensation equipment in a new energy station, where the number of reactive power compensation equipment is multiple; Based on the total reactive power command value and the device status characteristics, an objective function is established with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as the optimization variable; as well as The objective function is solved by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, so as to obtain the optimal reactive power distribution value of each reactive compensation device.
2. The reactive power distribution method according to claim 1, characterized in that: The device status characteristics include a fault state of a reactive compensation device; The objective function is established based on the total reactive power command value and the reactive compensation device status, with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as the optimization variable, including: Determining a target reactive power compensation device participating in reactive power distribution from a plurality of reactive power compensation devices based on corresponding fault states, and determining a compensation device access node based on the target reactive power compensation device; Establishing a line loss term based on the compensation device access node and other electrical nodes of the new energy station; establishing a reactive power total amount exceeding limit penalty term based on the reactive power total amount of the target reactive power compensation device and the reactive power total amount instruction value; and The objective function is established based on the line loss term and the reactive power total amount exceeding the limit penalty term.
3. The reactive power distribution method according to claim 2, characterized in that: The device status characteristics include the reactive power limit of the reactive compensation device and the voltage of the device access node; Before establishing the objective function based on the line loss term and the total reactive power over-limit penalty term, the method further includes: Establishing a reactive power over-limit penalty term based on the reactive power and reactive power limit of the target reactive power compensation device; Establishing a node voltage over-limit penalty item based on the device access node voltage of the target reactive power compensation device, the node voltage of the other electrical nodes, and the voltage limit; The establishing of the objective function based on the line loss term and the reactive power total amount exceeding the limit penalty term includes: The objective function is established based on the line loss term, the total reactive power over-limit penalty term, the reactive power over-limit penalty term, and the node voltage over-limit penalty term.
4. The reactive power distribution method according to claim 2, characterized in that: The target reactive power compensation equipment includes: a multiplexed reactive power compensation equipment and a dedicated reactive power compensation equipment. The multiplexed reactive power compensation equipment is a reactive power compensation equipment whose output power includes active power and reactive power, and the dedicated reactive power compensation equipment is a reactive power compensation equipment whose output power includes only reactive power. The equipment status characteristics also include the active power of the multiplexed reactive power compensation equipment. Before establishing the objective function based on the line loss term and the total reactive power over-limit penalty term, the method further includes: Establishing an apparent power loss term based on the active power and reactive power of the multiplexed reactive power compensation device; Establishing a reactive power loss term based on the reactive power of the dedicated reactive power compensation device; The establishing of the objective function based on the line loss term and the reactive power total amount exceeding the limit penalty term includes: The objective function is established based on the line loss term, the total reactive power over-limit penalty term, the apparent power loss term, and the reactive power loss term.
5. The reactive power distribution method according to claim 1, characterized in that: The objective function is solved by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, including: During each round of iteration, the voltage values of the key nodes of the new energy station during the current round of iterative optimization are set based on the particle swarm algorithm to obtain the voltage values of the key nodes in this round; and Based on the voltage values of the key nodes in this round, the reactive power iteration values of each reactive compensation device in this round are determined through power flow calculation.
6. The reactive power distribution method according to claim 1, characterized in that: The device status characteristics include the operating status of each reactive compensation device and the grid interaction type, and the grid interaction type includes: grid following type and grid building type; The objective function is established based on the total reactive power command value and the reactive compensation device status, with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as the optimization variable, including: Using the grid-following type reactive compensation equipment among the reactive compensation equipment as the main reactive compensation equipment, and using the grid-building type reactive compensation equipment among the reactive compensation equipment as the backup reactive compensation equipment; and Establishing an initial objective function based on the total reactive power command value and the operating state of the main reactive power compensation device; The objective function is solved by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm to obtain the optimal reactive power distribution value of each reactive compensation device, including: The reactive power distribution value of each main reactive compensation device is solved by performing multiple rounds of iterations on the reactive power distribution value of each main reactive compensation device based on power flow calculation and particle swarm algorithm to obtain the initial optimized value of the reactive power of each main reactive compensation device; When the initial optimized reactive power value of each reactive compensation device is not less than the total reactive power instruction value, the corresponding initial optimized reactive power value is determined as the optimal reactive power distribution value of each main reactive compensation device, and the optimal reactive power distribution value of each standby reactive compensation device is determined to be 0.
7. The reactive power distribution method according to claim 6, characterized in that: When the initial optimized value of reactive power of each reactive compensation device is less than the total reactive power instruction value, The objective function is established based on the total reactive power command value and the reactive compensation device status, with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as the optimization variable, including: Establishing a final objective function based on the total reactive power command value and the operating status of each main reactive compensation device and each backup reactive compensation device; The objective function is solved by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm to obtain the optimal reactive power distribution value of each reactive compensation device, including: The final objective function is solved by performing multiple rounds of iterations on the reactive power distribution values of each main reactive compensation device and each backup reactive compensation device based on power flow calculation and particle swarm algorithm, thereby obtaining the optimal reactive power distribution values of each main reactive compensation device and each backup reactive compensation device.
8. A reactive power distribution device, characterized in that: include: A command value and status characteristic acquisition module is used to obtain the total reactive power command value and device status characteristics of reactive compensation equipment in a new energy station, where there are multiple reactive compensation devices; An objective function establishment module is used to establish an objective function based on the total reactive power command value and the device state characteristics, with the goal of minimizing the overall station operation loss and the reactive power distribution value of each reactive compensation device as an optimization variable; as well as The objective function solving module is used to solve the objective function by performing multiple rounds of iterations on the reactive power distribution value of each reactive compensation device based on power flow calculation and particle swarm algorithm, so as to obtain the optimal reactive power distribution value of each reactive compensation device.
9. 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 program, the reactive power distribution method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the reactive power distribution method according to any one of claims 1 to 7 is implemented.