Offshore wind plant distributed optimization method and device considering reactive power margin priority
By calculating the reactive margin priority coefficient and building a distributed optimization model, adjusting the reactive power output in offshore wind farms, the problems of reactive margin priority selection and network connection point voltage satisfaction in the existing technology are solved, and the problem of reactive margin priority selection and network connection point voltage satisfaction is improved. System stability.
Patent Information
- Application Number
- CN202410989670.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-01
AI Technical Summary
The existing reactive compensation and distribution strategies of offshore wind farms are difficult to select equipment output based on reactive margin priority, and at the same time meet the voltage requirements of the connection point, resulting in limited system stability.
By obtaining the electrical parameters and voltage status of each stationary reactive power generator and fan converter, calculating the reactive margin priority coefficient, building a distributed optimization model, iteratively calculates and optimizes the reactive power output to meet the voltage requirements of the connection point.
It realizes the adjustment of reactive output according to actual operating conditions, meets the voltage requirements of the connection point, and improves the system stability and engineering application value of offshore wind farms.
Smart Images

Figure CN118889451A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid optimization, and in particular to a distributed optimization method and device for offshore wind farms taking reactive margin priority into account. Background Art
[0002] With the advancement of the "dual carbon" goals, renewable energy sources, particularly wind energy, are gaining increasing importance and development. The rapid development of wind power is leading to a continuous increase in wind farm capacity. Offshore wind farms are primarily based on direct-drive turbines, with submarine cables serving as the primary wiring. These reactive power sources are characterized by their large total volume and widespread distribution. This disturbance to the grid connection point becomes increasingly pronounced as wind farm capacity increases. This necessitates reactive power compensation and distribution to ensure stable system and wind turbine operation.
[0003] However, existing reactive power compensation and reactive power distribution strategies still have various problems. Existing automatic voltage control technologies for offshore wind farms are mostly set to operate with the goal of minimizing network losses. However, how to selectively output reactive power equipment based on reactive power margin priority while meeting the voltage requirements of the grid connection point is an urgent problem that needs to be solved. Summary of the Invention
[0004] The present invention provides a method and device for distributed optimization of offshore wind farms taking into account reactive margin priority. The method can adjust the reactive output of static VAR generators and wind turbine converters according to actual operating conditions and meet the voltage requirements of the grid connection point, thereby achieving the purpose of distributed optimization of offshore wind farms.
[0005] An embodiment of the present invention provides a distributed optimization method for an offshore wind farm taking reactive margin priority into account, comprising:
[0006] Obtaining a target voltage amplitude of the offshore wind farm switch station, a preset offshore wind farm voltage per unit value range, a first node at which each static VAR generator in the wind farm is connected to the switch station bus, a second node at which each wind turbine converter in the wind farm is connected to the switch station bus, electrical parameters of each electrical device in the wind farm, a first capacity of each static VAR generator in the wind farm, a second capacity of each wind turbine converter in the wind farm, a first initial reactive power output of each static VAR generator in the wind farm, a second initial reactive power output of each wind turbine converter in the wind farm, and a first initial active power output of each wind turbine converter in the wind farm;
[0007] Determining a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node;
[0008] determining a voltage phasor matrix based on the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0009] Constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix;
[0010] When a model solving instruction is received, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained;
[0011] Each static VAR generator and each wind turbine converter in the wind farm are controlled respectively according to the first optimized reactive power output and the second optimized reactive power output.
[0012] Furthermore, determining a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node includes:
[0013] Calculating the distance between the first node of each static VAR generator and the submarine cable passing through the busbar of the wind farm switch station to obtain a first distance;
[0014] Calculate the distance between the second node of each wind turbine converter and the submarine cable passing through the wind farm switch station busbar to obtain a second distance;
[0015] Calculating a reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator;
[0016] The reactive margin priority coefficient of each wind turbine converter is calculated according to the second capacity and the corresponding second distance of each wind turbine converter.
[0017] Further, determining a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output includes:
[0018] Inputting the first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter as parameters into a preset power system power flow simulation software, so that the power system power flow simulation software outputs a voltage phasor corresponding to a balancing bus in the wind farm, a voltage phasor corresponding to a bus at a wind farm switchyard, and a voltage phasor corresponding to each second node;
[0019] The voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each second node are arranged in sequence to form a voltage phasor matrix.
[0020] Furthermore, constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes:
[0021] constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0022] Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1;
[0023] According to the equality constraint dual vector, an inequality constraint dual matrix is calculated;
[0024] Constructing a slack variable set, and setting elements in each slack variable matrix in the slack variable set to 0;
[0025] constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node;
[0026] Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0027] Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the per-unit voltage range of the offshore wind farm;
[0028] A penalty coefficient is set, and the distributed optimization model is constructed based on the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailed admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient.
[0029] Furthermore, upon receiving a model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained, including:
[0030] Obtain the function value output after each iteration of the distributed optimization model,
[0031] When determining whether the function value is less than a preset value, if so, the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter are used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, the next iterative calculation operation is performed based on the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter.
[0032] An embodiment of the present invention further provides a distributed optimization device for an offshore wind farm taking reactive margin priority into account, comprising: a data acquisition module, a reactive margin priority determination module, a voltage phasor matrix determination module, a distributed optimization model construction module, a model solving module, and a control module;
[0033] The data acquisition module is used to obtain a target voltage amplitude of the offshore wind farm switch station, a preset offshore wind farm voltage per unit value range, a first node at which each static VAR generator in the wind farm is connected to the switch station bus, a second node at which each wind turbine converter in the wind farm is connected to the switch station bus, electrical parameters of each electrical device in the wind farm, a first capacity of each static VAR generator in the wind farm, a second capacity of each wind turbine converter in the wind farm, a first initial reactive power output of each static VAR generator in the wind farm, a second initial reactive power output of each wind turbine converter in the wind farm, and a first initial active power output of each wind turbine converter in the wind farm;
[0034] The reactive margin priority determination module is configured to determine a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node;
[0035] The voltage phasor matrix determination module is configured to determine a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0036] The distributed optimization model construction module is configured to construct a distributed optimization model based on the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix;
[0037] The model solving module is configured to, upon receiving a model solving instruction, repeatedly perform an iterative calculation operation according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained;
[0038] The control module is used to control each static VAR generator and each wind turbine converter in the wind farm according to the first optimized reactive power output and the second optimized reactive power output.
[0039] Furthermore, determining a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node includes:
[0040] Calculating the distance between the first node of each static VAR generator and the submarine cable passing through the busbar of the wind farm switch station to obtain a first distance;
[0041] Calculate the distance between the second node of each wind turbine converter and the submarine cable passing through the wind farm switch station busbar to obtain a second distance;
[0042] Calculating a reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator;
[0043] The reactive margin priority coefficient of each wind turbine converter is calculated according to the second capacity and the corresponding second distance of each wind turbine converter.
[0044] Further, determining a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output includes:
[0045] Inputting the first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter as parameters into a preset power system power flow simulation software, so that the power system power flow simulation software outputs a voltage phasor corresponding to a balancing bus in the wind farm, a voltage phasor corresponding to a bus at a wind farm switchyard, and a voltage phasor corresponding to each second node;
[0046] The voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each second node are arranged in sequence to form a voltage phasor matrix.
[0047] Furthermore, constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes:
[0048] constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0049] Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1;
[0050] According to the equality constraint dual vector, an inequality constraint dual matrix is calculated;
[0051] Constructing a slack variable set, and setting elements in each slack variable matrix in the slack variable set to 0;
[0052] constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node;
[0053] Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0054] Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the per-unit voltage range of the offshore wind farm;
[0055] A penalty coefficient is set, and the distributed optimization model is constructed based on the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailed admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient.
[0056] Furthermore, upon receiving a model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained, including:
[0057] Obtain the function value output after each iteration of the distributed optimization model,
[0058] When determining whether the function value is less than a preset value, if so, the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter are used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, the next iterative calculation operation is performed based on the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter.
[0059] The following beneficial effects are achieved by implementing the present invention:
[0060] The present invention provides a distributed optimization method and device for offshore wind farms that takes reactive margin priority into account. The method comprehensively considers the electrical distances between static VAR generators (SVRs) and wind turbine converter controllers and the grid connection point, calculates the reactive margin priority coefficients for each device, then solves for the current offshore wind farm bus voltage state and transmits this as the initial hot start solution to a constructed distributed optimization model. The distributed optimization model then iterates until the optimization is complete after convergence. The distributed optimization model then controls each SVR and each wind turbine converter in the wind farm based on the first and second optimized reactive power outputs output after convergence. Based on the reactive margin priority coefficients, the offshore wind farm bus voltage state, and the current operating states of each device in the wind farm, the present invention iteratively solves the distributed optimization model, enabling each optimized SVR and converter controller to call upon the reactive power of the SVR and wind turbine according to actual operating conditions and meet grid connection point voltage requirements. The method has high engineering application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0062] Figure 1 This is a flow chart of a distributed optimization method for offshore wind farms taking reactive margin priority into account, provided in one embodiment of the present application;
[0063] Figure 2 This is a structural diagram of a distributed optimization device for an offshore wind farm taking reactive margin priority into account, provided in a certain embodiment of the present application. DETAILED DESCRIPTION
[0064] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0066] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0067] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0068] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0069] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0070] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0071] See also Figure 1 , is a flow chart of a distributed optimization method for offshore wind farms taking reactive margin priority into account, provided by one embodiment of the present invention, comprising:
[0072] S1. Obtaining a target voltage amplitude of an offshore wind farm switch station, a preset offshore wind farm voltage per unit range, a first node at which each static VAR generator in the wind farm is connected to the switch station bus, a second node at which each wind turbine converter in the wind farm is connected to the switch station bus, electrical parameters of each electrical device in the wind farm, a first capacity of each static VAR generator in the wind farm, a second capacity of each wind turbine converter in the wind farm, a first initial reactive power output of each static VAR generator in the wind farm, a second initial reactive power output of each wind turbine converter in the wind farm, and a first initial active power output of each wind turbine converter in the wind farm;
[0073] Specifically, obtain the preset offshore wind farm voltage per unit value range, denoted as U ub 、U lb , where U ub is the upper limit of per-unit voltage allowed for offshore wind farms, U lb The lower limit of the per-unit voltage allowed for offshore wind farms;
[0074] Next, the first node where each static VAR generator in the wind farm is connected to the switch station bus, i.e., the outlet position of each static VAR generator, is obtained, and the second node where each wind turbine converter in the wind farm is connected to the switch station bus, i.e., the outlet position of each wind turbine converter, is obtained;
[0075] Then, the electrical parameters of each electrical device in the wind farm are obtained, including the admittance information of the balancing bus in the wind farm, the admittance information of the switch station bus in the wind farm, and the admittance information of each wind turbine converter in the wind farm;
[0076] In addition, the capacities of the I static VAR generators installed in the offshore wind farm switch station are obtained, which are denoted as S SVG,i , 1≤i≤I, obtain the capacity of the X wind turbine converters installed in the offshore wind farm, denoted as S WT,x , 1≤x≤X;
[0077] Similarly, the voltage amplitude target V of the wind farm switch station is obtained ref , obtain the current first initial reactive power output Q of each SVG SVG,i , obtain the current first initial active power output P of each wind turbine converter WT,x And the second initial reactive power output Q WT,x , go to step S2;
[0078] S2. Determine a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node;
[0079] In a preferred embodiment, determining the first reactive margin priority coefficient of each static VAR generator and the second reactive margin priority coefficient of each wind turbine converter based on the first capacity, the second capacity, the first node, and the second node includes:
[0080] Calculating the distance between the first node of each static VAR generator and the submarine cable passing through the busbar of the wind farm switch station to obtain a first distance;
[0081] Calculate the distance between the second node of each wind turbine converter and the submarine cable passing through the wind farm switch station busbar to obtain a second distance;
[0082] Calculating a reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator;
[0083] Calculating a reactive margin priority coefficient of each wind turbine converter according to the second capacity and the corresponding second distance of each wind turbine converter;
[0084] Specifically, the distance from the first node of each static VAR generator to the wind farm switch station busbar through the submarine cable is calculated to obtain the first distance D SVG,i ;
[0085] Similarly, calculate the distance from the second node of each wind turbine converter to the wind farm switch station busbar through the submarine cable, and get the second distance D WT,x ;
[0086] Then, according to the first capacity S of each static VAR generator SVG,i And the corresponding first distance D SVG,i , calculate the reactive margin priority coefficient K of each static VAR generator SVG,i ; and, according to the second capacity S of each wind turbine converter WT,x And the corresponding second distance D WT,x , calculate the reactive margin priority coefficient K of each wind turbine converter WT,x , the formula is as follows:
[0087]
[0088] S3. Determine a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0089] In a preferred embodiment, determining a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output includes:
[0090] Inputting the first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter as parameters into a preset power system power flow simulation software, so that the power system power flow simulation software outputs a voltage phasor corresponding to a balancing bus in the wind farm, a voltage phasor corresponding to a bus at a wind farm switchyard, and a voltage phasor corresponding to each second node;
[0091] Arrange the voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each second node in sequence to form a voltage phasor matrix;
[0092] Specifically, the Q obtained in step S1 is SVG,i , Q SVG,i With Q SVG,iInput as parameters into the power system flow simulation software, so that the power system flow simulation software models the offshore wind farm and performs steady-state flow calculations, wherein, in the sub-model, bus 1 is designated as the balancing bus, bus 2 is designated as the offshore wind farm switch station bus, and busses 3 to 2+X are designated as wind turbine converter buses, corresponding to wind turbine converters No. 1 to No. X, respectively;
[0093] The voltage phasor V of the 2+X busbars of the offshore wind farm is obtained from the output results of the power system flow simulation software. n ,1≤n≤2+X, and form the voltage phasor matrix V0=[V1 V2...V 2+X ] T ∈C 2+X .
[0094] S4. Constructing a distributed optimization model based on the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix;
[0095] In a preferred embodiment, constructing a distributed optimization model based on the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes:
[0096] constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0097] Specifically, a first initial matrix variable is constructed, wherein the first initial matrix variable includes a voltage inner product variable W k , used to store the inner product of the bus voltage vector of the offshore wind farm; bus injection complex power variable rate b k , used to store the complex power injected by the wind turbines or SVG and other power equipment connected to each busbar of the offshore wind farm; voltage fitting complex variable H k 、F k , are used to simulate the bus voltage of the offshore wind farm; wherein, k is set to 0, and the formula is as follows:
[0098]
[0099] Where, j represents the imaginary unit;
[0100] Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1;
[0101] According to the equality constraint dual vector, an inequality constraint dual matrix is calculated;
[0102] Specifically, construct the equality constraint dual vector μ k and the equality constraint dual matrix λ k , and set the equality constraint dual vector and the elements in the equality constraint dual matrix to 1; and according to the equality constraint dual vector μ k Calculate the inequality constraint dual matrix Λ k , set k to 0, the formula is as follows:
[0103]
[0104] Constructing a slack variable set, and setting elements in each slack variable matrix in the slack variable set to 0;
[0105] Specifically, initialize the slack variable set η k , set k to 0, the formula is as follows:
[0106]
[0107] Where,
[0108] constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node;
[0109] Specifically, set the trimmed admittance matrix Y:
[0110]
[0111] Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0112] Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the per-unit voltage range of the offshore wind farm;
[0113] Specifically, according to the first initial reactive power output Q SVG,i , the second initial reactive power output Q WT,x And the first initial active power output P WT,x, construct the busbar injection power upper limit matrix S ub , busbar injection power lower limit matrix S lb , and, according to the target voltage amplitude V ref , the upper limit U of the per-unit voltage range of the offshore wind farm ub And the lower limit U lb , construct the voltage upper limit matrix u ub And the voltage lower limit matrix u lb , the formula is as follows:
[0114]
[0115] Among them, U ub with U lb are the upper and lower limits of the per-unit voltage range of the offshore wind farm, respectively, and are usually 1.07 and 0.97 respectively in a 35 kV power grid;
[0116] Setting a penalty coefficient, and constructing the distributed optimization model based on the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailed admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient;
[0117] Specifically, the penalty coefficient of the optimization model is set as follows:
[0118] ρ={ρ1,ρ3,ρ4,ρ pub ,ρ qub ,ρ plb ,ρ qlb ,ρ vub ,ρ vlb}:
[0119]
[0120] Then a distributed optimization model is constructed, wherein the function value of the distributed optimization model is Determined by the following formula:
[0121]
[0122] Where, 0 and E are all-zero matrices and the identity matrix, respectively. Diag(·) represents the function of forming a diagonal matrix from vectors (·). diag(·) represents the function of extracting the main diagonal elements of the matrix (·). and denote the functions for extracting the real and imaginary parts of the matrix (·), respectively. ||·|| is the norm function. When the subscript is 2 or F, it means calculating the 2-norm or F-norm of the matrix or vector. (·).2 means taking the square of all elements in the vector (·). Θ(W) is determined by the following formula:
[0123]
[0124] Where tr(·) is the trace of the matrix, Y n Indicates that the admittance matrix Y is reduced to retain only the elements in the nth row, and the rest of the elements are 0.
[0125] S5. When a model solving instruction is received, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained;
[0126] In a preferred embodiment, upon receiving a model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained include:
[0127] Obtain the function value output after each iteration of the distributed optimization model,
[0128] When determining whether the function value is less than a preset value, if so, using the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, performing the next iterative calculation operation based on the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter;
[0129] Specifically, for each SVG, a calculation operation is performed.
[0130] Step S5011, set k=0, and go to step S5012;
[0131] Step S5012: Use the convex optimization algorithm solver to solve the distributed optimization model and obtain F k+1 , go to step S5013:
[0132]
[0133] Step S5013: Use the convex optimization algorithm to solve the following optimization model and obtain W k+1 With H k+1, go to step S5014:
[0134]
[0135] Step S5014: Use the convex optimization algorithm to solve the following optimization model and obtain b k+1 , go to step S5015:
[0136]
[0137] Among them, only Q in vector b SVG,i Optimize the decision variables, and the rest of the elements in b are fixed parameters;
[0138] Step S5015: Use the convex optimization algorithm to solve the following optimization model to obtain η k+1 , go to step S5016:
[0139]
[0140] Step S5016: Update the dual variables and go to step S5017:
[0141]
[0142] Step S5017: Update the Q SVG,i Set to the preselected optimized reactive power output value of the i-th SVG and update the initialization variable using the following formula:
[0143]
[0144] The variable data W that will be updated when calculating the preselected optimized reactive power of the i-th SVG 0 、b 0 、H 0 、F 0 、μ 0 , Λ 0 ,λ 0 ,η 0 ,ρ,Y,S ub 、S lb 、u ub 、u lb Pass it to the i+1th SVG controller;
[0145] For the (i+1)th SVG, the calculation operations of steps S5011 to S5017 are executed again;
[0146] After the optimization of the first SVG is completed, the variable data W updated when calculating the preselected optimized reactive power of the first SVG is 0 、b 0 、H 0 、F0 、μ 0 , Λ 0 ,λ 0 ,η 0 ,ρ,Y,S ub 、S lb 、u ub 、u lb The optimization result data is transmitted to the first wind turbine converter controller;
[0147] Similarly, the calculation operation is performed for each wind turbine converter.
[0148] Step S5021, set k=0, and go to step S5022;
[0149] Step S5022: Use a convex optimization algorithm solver to solve the distributed optimization model and obtain F k+1 , go to step S5023:
[0150]
[0151] Step S5023: Use the convex optimization algorithm to solve the following optimization model and obtain W k+1 With H k+1 , go to step S5024:
[0152]
[0153] Step S5024: Use the convex optimization algorithm to solve the following optimization model and obtain b k+1 , go to step S5025:
[0154]
[0155] Among them, only Q in vector b WT,x Optimize the decision variables, and the rest of the elements in b are fixed parameters;
[0156] Step S5025: Use the convex optimization algorithm to solve the following optimization model to obtain η k+1 , go to step S5026:
[0157]
[0158] Step S5026: Update the dual variables and go to step S5027:
[0159]
[0160] Step S5027: Update the Q WT,x Set to the preselected reactive power output value of the x-th wind turbine converter and update the initialization variable using the following formula:
[0161]
[0162] The variable data W that will be updated when calculating the preselected optimized reactive power of the x-th wind turbine converter 0 、b 0 、H 0 、F 0 、μ 0 , Λ 0 ,λ 0 ,η 0 ,ρ,Y,S ub 、S lb 、u ub 、u lb Transmitted to the inverter of the x+1th wind turbine;
[0163] For the x+1th wind turbine converter, the calculation operations of step S5021 to step S5027 are re-executed;
[0164] After completing the optimization of the SVG of the X-th wind turbine converter, according to the currently updated variable data W 0 、b 0 、H 0 、F 0 、μ 0 , Λ 0 ,λ 0 ,η 0 ,ρ,Y,S ub 、S lb 、u ub 、u lb Calculate the current function value of the distributed optimization model And proceed to step S5031;
[0165] Step S5031: Determine whether it is the first time to enter step S5031. If so, set Otherwise, get the value obtained from the previous assignment
[0166] Step S5032: Determine whether If so, assign And the updated reactive power output of each static VAR generator, that is, the preselected optimized reactive power output of each static VAR generator, and the updated preselected optimized reactive power output of each wind turbine converter, that is, the preselected optimized reactive power output of each wind turbine converter, are respectively used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, and then the iterative calculation operation is exited, otherwise the assignment Then go to step S5011.
[0167] S6. Control each static VAR generator and each wind turbine converter in the wind farm according to the first optimized reactive power output and the second optimized reactive power output;
[0168] Specifically, in In this case, each static VAR generator and each wind turbine converter in the wind farm are controlled according to the first optimized reactive power output and the second optimized reactive power.
[0169] See Figure 2 , is a digital credential-based report automatic generation device provided by a certain embodiment of the present application, comprising: a data acquisition module, a reactive power margin priority determination module, a voltage phasor matrix determination module, a distributed optimization model construction module, a model solving module, and a control module;
[0170] The data acquisition module is used to obtain a target voltage amplitude of the offshore wind farm switch station, a preset offshore wind farm voltage per unit value range, a first node at which each static VAR generator in the wind farm is connected to the switch station bus, a second node at which each wind turbine converter in the wind farm is connected to the switch station bus, electrical parameters of each electrical device in the wind farm, a first capacity of each static VAR generator in the wind farm, a second capacity of each wind turbine converter in the wind farm, a first initial reactive power output of each static VAR generator in the wind farm, a second initial reactive power output of each wind turbine converter in the wind farm, and a first initial active power output of each wind turbine converter in the wind farm;
[0171] The reactive margin priority determination module is configured to determine a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node;
[0172] The voltage phasor matrix determination module is configured to determine a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0173] The distributed optimization model construction module is configured to construct a distributed optimization model based on the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix;
[0174] The model solving module is configured to, upon receiving a model solving instruction, repeatedly perform an iterative calculation operation according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained;
[0175] The control module is used to control each static VAR generator and each wind turbine converter in the wind farm according to the first optimized reactive power output and the second optimized reactive power output.
[0176] In a preferred embodiment, determining the first reactive margin priority coefficient of each static VAR generator and the second reactive margin priority coefficient of each wind turbine converter based on the first capacity, the second capacity, the first node, and the second node includes:
[0177] Calculating the distance between the first node of each static VAR generator and the submarine cable passing through the busbar of the wind farm switch station to obtain a first distance;
[0178] Calculate the distance between the second node of each wind turbine converter and the submarine cable passing through the wind farm switch station busbar to obtain a second distance;
[0179] Calculating a reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator;
[0180] The reactive margin priority coefficient of each wind turbine converter is calculated according to the second capacity and the corresponding second distance of each wind turbine converter.
[0181] In a preferred embodiment, determining a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output includes:
[0182] Inputting the first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter as parameters into a preset power system power flow simulation software, so that the power system power flow simulation software outputs a voltage phasor corresponding to a balancing bus in the wind farm, a voltage phasor corresponding to a bus at a wind farm switchyard, and a voltage phasor corresponding to each second node;
[0183] The voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each second node are arranged in sequence to form a voltage phasor matrix.
[0184] In a preferred embodiment, constructing a distributed optimization model based on the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes:
[0185] constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0186] Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1;
[0187] According to the equality constraint dual vector, an inequality constraint dual matrix is calculated;
[0188] Constructing a slack variable set, and setting elements in each slack variable matrix in the slack variable set to 0;
[0189] constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node;
[0190] Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output, and the first initial active power output;
[0191] Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the per-unit voltage range of the offshore wind farm;
[0192] A penalty coefficient is set, and the distributed optimization model is constructed based on the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailed admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient.
[0193] In a preferred embodiment, upon receiving a model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained include:
[0194] Obtain the function value output after each iteration of the distributed optimization model,
[0195] When determining whether the function value is less than a preset value, if so, the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter are used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, the next iterative calculation operation is performed based on the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter.
[0196] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A distributed optimization method for offshore wind farms taking into account reactive margin priority, characterized in that: include: Obtaining a target voltage amplitude of an offshore wind farm switch station, a preset offshore wind farm voltage per unit value range, a first node at which each static VAR generator in the wind farm is connected to the switch station bus, a second node at which each wind turbine converter in the wind farm is connected to the switch station bus, electrical parameters of each electrical device in the wind farm, a first capacity of each static VAR generator in the wind farm, a second capacity of each wind turbine converter in the wind farm, a first initial reactive power output of each static VAR generator in the wind farm, a second initial reactive power output of each wind turbine converter in the wind farm, and a first initial active power output of each wind turbine converter in the wind farm; Determine a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node, and the second node; determining a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output; Constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient and the voltage phasor matrix; When a model solving instruction is received, iterative calculation operations are repeatedly performed according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained; Each static VAR generator and each wind turbine converter in the wind farm are controlled respectively according to the first optimized reactive power output and the second optimized reactive power output.
2. The distributed optimization method for offshore wind farms taking into account reactive margin priority according to claim 1, characterized in that: The determining, according to the first capacity, the second capacity, the first node, and the second node, a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter comprises: Calculate the distance from the first node of each static VAR generator to the submarine cable through which the busbar of the wind farm switch station passes, and obtain a first distance; Calculate the distance from the second node of each wind turbine converter to the submarine cable through which the busbar of the wind farm switch station passes, and obtain a second distance; Calculate the reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator; According to the second capacity of each wind turbine converter and the corresponding second distance, the reactive margin priority coefficient of each wind turbine converter is calculated.
3. The distributed optimization method for offshore wind farms taking into account reactive margin priority according to claim 1, characterized in that: The determining of a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output comprises: The first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter are input as parameters into a preset power system flow simulation software, so that the power system flow simulation software outputs the voltage phasor corresponding to the balancing bus in the wind farm, the voltage phasor corresponding to the bus of the wind farm switch station, and the voltage phasor of the bus corresponding to each second node; The voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each of the second nodes are arranged in sequence to form a voltage phasor matrix.
4. The distributed optimization method for offshore wind farms taking into account reactive power margin priority according to claim 1, characterized in that: The step of constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes: constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output; Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1; According to the equality constraint dual vector, an inequality constraint dual matrix is calculated; Constructing a slack variable collection, and setting elements in each slack variable matrix in the slack variable collection to 0; constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node; Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output and the first initial active power output; Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the voltage per unit value range of the offshore wind farm; A penalty coefficient is set, and the distributed optimization model is constructed according to the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailment admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient.
5. The distributed optimization method for offshore wind farms taking into account reactive margin priority according to claim 1, characterized in that: In the case of receiving the model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained, including: Obtain the function value output after each iteration of the distributed optimization model, When judging whether the function value is less than the preset value, if so, the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter are used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, the next iterative calculation operation is performed according to the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter.
6. A distributed optimization device for offshore wind farms taking into account reactive power margin priority, characterized in that: include: Data acquisition module, reactive power margin priority determination module, voltage phasor matrix determination module, distributed optimization model construction module, model solving module and control module; The data acquisition module is used to obtain the target voltage amplitude of the offshore wind farm switch station, the preset offshore wind farm voltage per unit value range, the first node of each static VAR generator in the wind farm connected to the switch station bus, the second node of each wind turbine converter in the wind farm connected to the switch station bus, the electrical parameters of each electrical device in the wind farm, the first capacity of each static VAR generator in the wind farm, the second capacity of each wind turbine converter in the wind farm, the first initial reactive power output of each static VAR generator in the wind farm, the second initial reactive power output of each wind turbine converter in the wind farm, and the first initial active power output of each wind turbine converter in the wind farm; The reactive margin priority determination module is used to determine a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter according to the first capacity, the second capacity, the first node and the second node; The voltage phasor matrix determination module is used to determine a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output and the first initial active power output; The distributed optimization model construction module is used to construct a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient and the voltage phasor matrix; The model solving module is used to repeatedly perform iterative calculation operations according to the model solving instruction when receiving the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained; The control module is used to control each static VAR generator and each wind turbine converter in the wind farm according to the first optimized reactive power output and the second optimized reactive power output.
7. The distributed optimization device for offshore wind farms taking reactive margin priority into account according to claim 6, characterized in that: The determining, according to the first capacity, the second capacity, the first node, and the second node, a first reactive margin priority coefficient of each static VAR generator and a second reactive margin priority coefficient of each wind turbine converter comprises: Calculate the distance from the first node of each static VAR generator to the submarine cable through which the busbar of the wind farm switch station passes, and obtain a first distance; Calculate the distance from the second node of each wind turbine converter to the submarine cable through which the busbar of the wind farm switch station passes, and obtain a second distance; Calculate the reactive margin priority coefficient of each static VAR generator according to the first capacity and the corresponding first distance of each static VAR generator; According to the second capacity of each wind turbine converter and the corresponding second distance, the reactive margin priority coefficient of each wind turbine converter is calculated.
8. The distributed optimization device for offshore wind farms taking reactive margin priority into account according to claim 6, characterized in that: The determining of a voltage phasor matrix according to the second node, the first initial reactive power output, the second initial reactive power output, and the first initial active power output comprises: The first initial reactive power output of each static VAR generator, the second initial reactive power output of each wind turbine converter, and the first initial active power output of each wind turbine converter are input as parameters into a preset power system flow simulation software, so that the power system flow simulation software outputs the voltage phasor corresponding to the balancing bus in the wind farm, the voltage phasor corresponding to the bus of the wind farm switch station, and the voltage phasor of the bus corresponding to each second node; The voltage phasors corresponding to the balancing bus in the wind farm, the voltage phasors corresponding to the bus of the wind farm switch station, and the voltage phasors of the bus corresponding to each of the second nodes are arranged in sequence to form a voltage phasor matrix.
9. The distributed optimization device for offshore wind farms taking reactive margin priority into account according to claim 6, characterized in that: The step of constructing a distributed optimization model according to the target voltage amplitude, the preset offshore wind farm voltage per unit value range, the first initial reactive power output, the second initial reactive power output, the first initial active power output, the electrical parameters of each electrical device in the wind farm, the second node, the first reactive margin priority coefficient, the second reactive margin priority coefficient, and the voltage phasor matrix includes: constructing a first initial matrix variable according to the voltage phasor matrix, the first initial reactive power output, the second initial reactive power output, and the first initial active power output; Constructing an equality constraint dual vector and an equality constraint dual matrix, and setting the elements in the equality constraint dual vector and the equality constraint dual matrix to 1; According to the equality constraint dual vector, an inequality constraint dual matrix is calculated; Constructing a slack variable collection, and setting elements in each slack variable matrix in the slack variable collection to 0; constructing a curtailed admittance matrix according to electrical parameters of each electrical device in the wind farm and the second node; Constructing a bus injection power upper limit matrix and a bus injection power lower limit matrix according to the first initial reactive power output, the second initial reactive power output and the first initial active power output; Constructing a voltage upper limit matrix and a voltage lower limit matrix according to the target voltage amplitude and the upper and lower limits of the voltage per unit value range of the offshore wind farm; A penalty coefficient is set, and the distributed optimization model is constructed according to the penalty coefficient, the first initial matrix variable, the equality constraint dual vector, the equality constraint dual matrix, the inequality constraint dual matrix, the slack variable collection, the curtailment admittance matrix, the bus injection power upper limit matrix, the bus injection power lower limit matrix, the voltage upper limit matrix, the voltage lower limit matrix, the first reactive margin priority coefficient, and the second reactive margin priority coefficient.
10. The distributed optimization device for offshore wind farms taking reactive margin priority into account according to claim 6, characterized in that: In the case of receiving the model solving instruction, repeatedly performing iterative calculation operations according to the model solving instruction until a first optimized reactive power output of each static VAR generator in the wind farm and a second optimized reactive power output of each wind turbine converter are obtained, including: Obtain the function value output after each iteration of the distributed optimization model, When judging whether the function value is less than the preset value, if so, the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter are used as the first optimized reactive power output of each static VAR generator in the wind farm and the second optimized reactive power output of each wind turbine converter in the wind farm, respectively; if not, the next iterative calculation operation is performed according to the updated reactive power output of each static VAR generator and the updated reactive power output of each wind turbine converter.
