A hybrid power flow controller planning and configuration method considering wind power grid connection

Through the K-means clustering algorithm and multi-scenario optimization model, the configuration of the hybrid power flow controller is optimized to solve the impact of wind power grid integration on grid stability, achieving efficient resource utilization and improving system stability.

CN115000969BActive Publication Date: 2024-09-06INST OF ECONOMIC & TECH STATE GRID HEBEI ELECTRIC POWER +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210873554.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2024-09-06
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

Large-scale wind power grid connection has a great impact on the security and stability of the power grid, and the investment cost of hybrid power flow controller (HPFC) equipment is high. Improper planning and configuration may lead to a waste of funds and reduced system stability.

Method used

The K-means clustering algorithm is used to divide the wind output-load probability scenarios and establish a multi-scenario HPFC planning and configuration optimization model. By calculating the objective function and weighted optimization, the HPFC configuration is optimized to reduce investment costs and solve the problem of system power flow exceeding the limit.

Benefits of technology

Effectively utilize the capacity of HPFC equipment to improve the security and stability of the power grid, reduce investment costs, give full play to the power flow control function of HPFC, and improve the operating efficiency of the wind power grid-connected system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115000969B
    Figure CN115000969B
Patent Text Reader

Abstract

The present invention discloses a hybrid flow controller planning and configuration method considering wind power grid connection, which belongs to the field of power system stability and control. A hybrid flow controller planning and configuration method considering wind power grid connection, comprising the following steps: S1: obtaining wind power load data, and dividing wind output load probability scenarios using K-means clustering algorithm; S2: establishing a HPFC planning and configuration optimization model considering multiple scenarios; S3: calculating the objective function corresponding to different scenarios; S4: obtaining the total objective function by weighting according to the probability of occurrence of different scenarios, recording the individual optimal objective function and the group optimal objective function and the corresponding HPFC site selection and capacity; S5: if the number of iterations does not reach the set value, go to S6, otherwise go to S7; S6: update the parameters and speed of the control variables, and go to S3; S7: output the optimal objective function and HPFC planning and configuration results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system stability and control, and in particular to a hybrid power flow controller planning and configuration method considering wind power grid connection. Background Art

[0002] In order to achieve the goal of "carbon peak and carbon neutrality", it is necessary to build a new power system with new energy as the main body. At present, some new energy sources have been applied in my country, such as wind power generation and photovoltaics. However, since wind speed is easily affected by the environment, there is great uncertainty and timing in wind power output. Therefore, large-scale wind power grid connection will greatly affect the safety and stability of the power grid.

[0003] The hybrid power flow controller (HPFC) has the same power flow regulation function as UPFC, but with lower cost, less electromagnetic interference and switching loss, and has strong practical application value. Connecting HPFC to the wind power grid-connected system can improve the safety and stability of the power grid by optimizing the power flow distribution. Due to the high investment cost of HPFC equipment, improper planning and configuration will lead to a large amount of investment funds being wasted, and may even reduce system stability and transmission capacity. Therefore, studying the planning and configuration of HPFC is of great significance for effectively utilizing the capacity of HPFC equipment, exploring the application potential of HPFC equipment, and giving full play to the power flow control function of HPFC equipment. Summary of the invention

[0004] In view of the deficiencies of the prior art, the present invention proposes a hybrid power flow controller planning and configuration method considering wind power grid connection.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] A hybrid power flow controller planning and configuration method considering wind power grid connection includes the following steps:

[0007] Step S1: Obtain wind power-load data and divide wind power-load probability scenarios using K-means clustering algorithm;

[0008] Step S2: Establishing a HPFC planning and configuration optimization model considering multiple scenarios;

[0009] Step S3: Calculate the objective function corresponding to different scenarios;

[0010] Step S4: Obtain the total objective function according to the weighted probability of occurrence of different scenarios, and record the individual optimal objective function and the group optimal objective function and their corresponding HPFC site selection and capacity;

[0011] Step S5: If the number of iterations does not reach the set value, go to step S6, otherwise go to step S7;

[0012] Step S6: Update the parameters and speed of the control variables of each objective function, and go to step S3;

[0013] Step S7: Output the optimal objective function and HPFC planning configuration result.

[0014] Optionally, the use of K-means clustering algorithm to divide the wind output-load probability scenarios includes the following steps:

[0015] 1) Obtain wind power-load sample data and establish the sample data matrix X.

[0016]

[0017] Where X = {x1, x2, …, x n}; x j ={x j1 ,x j2 ,…,x jm}; m is the number of wind power-load nodes; n is the number of samples.

[0018] 2) Randomly select K samples as the initial cluster center u i .u i = {u i1 ,u i2 ,…,u im},i=1,2,…,K.

[0019] 3) The quality of clustering mainly depends on the similarity of data sequences in the same subset of X and the difference between data in different subsets. In order to characterize the similarity and difference between data sequences, the Euclidean distance is used to characterize the distance between the sample and the cluster center. The calculation formula is:

[0020]

[0021] The Euclidean distance between each sample and each cluster center is compared, and the sample is grouped into a subset with the nearest cluster center.

[0022] 4) Recalculate the cluster center according to the following formula:

[0023]

[0024] Among them, x j For the subset S i A set of m-dimensional sample sequences, N i To partition into subset S i The number of samples in the m-dimensional space.

[0025] The cluster center of a subset is a newly generated data sequence after taking the mean of the data in the subset, but it is not necessarily the data sequence actually contained in the data object X.

[0026] 5) Use the standard measure function value E as the iterative convergence criterion, and its calculation formula is as follows:

[0027]

[0028] 6) Select D CH(+) As the effectiveness indicator of clustering, D CH(+) The indicator is defined as:

[0029]

[0030] Among them, T K is the sum of squares of inter-class deviations, which mainly reflects the separation between classes; P K is the sum of squares of intra-class deviations, which mainly reflects the compactness within the class; K is the number of clusters.

[0031] By calculating D for each K value CH(+) Indicators are compared to find the best number of clusters.

[0032] 7) The probability of each scenario occurring λ p Use the following formula for calculation.

[0033]

[0034] Among them, N p The number of samples to include in each scene.

[0035] Optionally, the HPFC planning configuration optimization model includes:

[0036] Objective function and constraints

[0037] HPFC planning and configuration optimization calculation is carried out from two aspects: reducing investment cost and solving the problem of system power flow exceeding the limit. The objective function of the optimization model includes HPFC configuration cost, system network loss, system static safety margin and N-1 thermal stability margin.

[0038] The objective function includes:

[0039] HPFC configuration costs;

[0040] System network loss;

[0041] System static safety margin;

[0042] System N-1 thermal stability margin;

[0043] The constraints include: power system operation constraints and HPFC own constraints.

[0044] Optionally, the HPFC configuration fee:

[0045] cost H =C UPFC ×S UPFC +C ST ×S ST (7)

[0046]

[0047] Among them, C UPFC and C ST is the capacity price coefficient of UPFC and ST; a1~a6 are constants in the price coefficient function; S UPFC and S ST is the capacity of UPFC and ST;

[0048] Take the maximum capacity used in all running scenarios as the final capacity:

[0049]

[0050] in, is the injected voltage phasor and the current phasor of the UPFC series-side converter under scenario k; is the injected voltage phasor and the current phasor of the UPFC parallel side converter under scenario k; is the injected voltage phasor and the current phasor of the ST series side converter under scenario k;

[0051] Optionally, the network loss of the system is mainly the active power loss caused by the power flow passing through the line, that is:

[0052]

[0053] Among them, Nl is the total number of branches in the system, P mij and P mji They are the active power flows of the mth branch flowing from the beginning of the line to the end of the line and from the end of the line to the beginning of the line, respectively.

[0054] By simplifying we can get:

[0055]

[0056] Among them, G m represents the conductance on the mth branch, V mi ,θ mi 、V mj ,θ mjare the voltage amplitude and phase angle of the head and end nodes of the mth branch respectively.

[0057] Optionally, the ratio of the line flow to the line flow limit is defined as the line load rate M m , in order to reflect the operating status of the line.

[0058]

[0059] Among them, S m is the apparent power flowing through branch m, S m0 is the apparent power limit of branch m.

[0060] The static safety margin of the system under normal conditions can be obtained through the line load rate:

[0061]

[0062] Optionally, the system N-1 thermal stability index when an N-1 fault occurs is:

[0063]

[0064] Among them, N c is the expected fault set; n c is the total number of expected faulty lines; Indicates the load rate of branch m after the fault.

[0065] When the line is overloaded during the calculation process, a penalty value needs to be added to the line safety index.

[0066] Optionally, for the power system, under normal operation, node power balance needs to be met, that is:

[0067]

[0068] Where Nb is the total number of system nodes; P gi , Q gi are the active and reactive power of the generator respectively; P di , Q di is the active and reactive loads of the load node; G ij , B ij is the element in the node admittance matrix;

[0069] In addition, each variable needs to satisfy the corresponding inequality constraints. For the control variable u, we have:

[0070]

[0071] Among them, P g is the active power output of the generator, P gmax and Pgmin V is the active power limit value for each generator to maintain stable operation, and its specific value is the relevant parameters of the generator; g is the PV node voltage amplitude.

[0072] For the state variable x, we have:

[0073]

[0074] Among them, S l is the apparent power of line l, S lmax The power limit for the line to maintain stable operation; Q g is the reactive power output of the generator, Q gmax and Q gmin V is the upper and lower limits of reactive power output of each generator, and its specific value is the relevant parameters of the generator; b is the voltage amplitude of the nodes except the PV node.

[0075] Optionally, for the capacity of the HPFC and the output voltage amplitude on the series side:

[0076]

[0077] Among them, S UPFCmax and S STmax is the maximum capacity of the UPFC and ST set; V semax and V crmax is the voltage amplitude of UPFC and ST series side corresponding to the maximum capacity.

[0078] The power flow control target of HPFC needs to meet the following conditions:

[0079]

[0080] Where n represents the line where HPFC is installed, P nmax , P nmin , Q nmax , Q nmin They are the upper and lower limits of the active power flow and reactive power flow of line n respectively.

[0081] A computer-readable storage medium stores instructions, which, when executed, can implement the above-mentioned hybrid power flow controller planning and configuration method. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The present invention will be further described below in conjunction with the accompanying drawings.

[0083] Figure 1 A specific flow chart of the method in a specific embodiment of the present invention;

[0084] Figure 2It is an equivalent circuit diagram of HPFC in a specific embodiment of the present invention; DETAILED DESCRIPTION

[0085] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.

[0086] like Figure 1 As shown, in a specific embodiment of the present invention, a hybrid power flow controller planning and configuration method considering wind power grid connection is disclosed, comprising the following steps:

[0087] S1: Obtain wind power-load data and use K-means clustering algorithm to divide wind power-load probability scenarios;

[0088] S2: Establish an HPFC planning and configuration optimization model considering multiple scenarios;

[0089] S3: Calculate the objective function corresponding to different scenarios;

[0090] S4: Obtain the total objective function according to the weighted probability of occurrence of different scenarios, and record the individual optimal objective function and the group optimal objective function as well as their corresponding HPFC site selection and capacity;

[0091] S5: If the number of iterations does not reach the set value, go to S6, otherwise go to S7;

[0092] S6: Update the parameters and speed of the control variables and go to S3;

[0093] S7: Output the optimal objective function and HPFC planning configuration results.

[0094] The K-means algorithm in step S1 is a spatial clustering algorithm based on the idea of ​​partitioning. It has the widest application range among all clustering algorithms and has the following advantages: clear algorithm ideas, simple structure and easy implementation, fast iteration convergence, and can be effectively applied to big data analysis and processing.

[0095] The main principle of K-means clustering algorithm is: divide a large amount of sample data into a small number of sets, which are also called clusters. The characteristics of each cluster are represented by the cluster center. On this basis, the distance between the sample and the cluster center is used to classify the samples, and the cluster center is updated according to the samples in the cluster. Through repeated iterations, the similarity of samples in the same cluster is enhanced to achieve sample data reduction. The calculation process is as follows:

[0096] 1) Obtain wind power-load sample data and establish the sample data matrix X.

[0097]

[0098] Where X = {x1, x2, …, x n}; x j ={x j1 ,x j2 ,…,x jm}; m is the number of wind power-load nodes; n is the number of samples.

[0099] 2) Randomly select K samples as the initial cluster center u i ,u i = {u i1 ,u i2 ,…,u im},i=1,2,…,K.

[0100] 3) The quality of clustering mainly depends on the similarity of data sequences in the same subset of X and the difference between data in different subsets. In order to characterize the similarity and difference between data sequences, the Euclidean distance is used to characterize the distance between the sample and the cluster center. The calculation formula is:

[0101]

[0102] The Euclidean distance between each sample and each cluster center is compared, and the sample is grouped into a subset with the nearest cluster center.

[0103] 4) Recalculate the cluster center according to the following formula:

[0104]

[0105] Among them, x j For the subset S i A set of m-dimensional sample sequences, N i To partition into subset S i The number of samples in the m-dimensional space.

[0106] The cluster center of a subset is a newly generated data sequence after taking the mean of the data in the subset, but it is not necessarily the data sequence actually contained in the data object X.

[0107] 5) Use the standard measure function value E as the iterative convergence criterion, and its calculation formula is as follows:

[0108]

[0109] 6) In order to filter out the best clustering results, select D CH(+) The index is used as the effectiveness indicator of clustering. CH(+)The indicator is defined as:

[0110]

[0111] Among them, T K is the sum of squares of inter-class deviations, which mainly reflects the separation between classes; P K is the sum of squares of intra-class deviations, which mainly reflects the compactness within the class; K is the number of clusters.

[0112] As the K value increases, P K tends to decrease, T K Gradually increase. CH(+) The larger the index value, the better the clustering effect of the K value. CH(+) Indicators are compared to find the best number of clusters.

[0113] 7) The probability of each scenario occurring λ p Use the following formula for calculation.

[0114]

[0115] Among them, N p The number of samples to include in each scene.

[0116] The planning configuration optimization model of HPFC in step S2 is as follows:

[0117] 1) Control variables

[0118] Generally speaking, the control variables of the power system are mainly: the active power P of the generator g , generator node voltage V g (i.e. PV node voltage). For HPFC, the control variables are the site location L; the constant voltage value V on the parallel side shu ; Active and reactive power flow target values ​​P of controlled lines ref , Q ref .

[0119] Transformer ratio T k The segmentation step size is set to 0.02; the HPFC site selection location L is set with a pre-installation location set; the remaining control variables do not set segmentation step sizes and randomly take values ​​within their range.

[0120] 2) Objective Function

[0121] HPFC planning and configuration optimization calculation is carried out from two aspects: reducing investment cost and solving the problem of system power flow exceeding the limit. The objective functions of the optimization model include HPFC configuration cost, system network loss, system static safety margin and N-1 thermal stability margin. The specific calculation method of each objective function is as follows:

[0122] a.HPFC configuration fee.

[0123] HPFC configuration costs are modeled using a polynomial as follows:

[0124] cost H =C UPFC ×S UPFC +C ST ×S ST (7)

[0125]

[0126] Among them, C UPFC and C ST is the capacity price coefficient of UPFC and ST; a1~a6 are constants in the price coefficient function; S UPFC and S ST is the capacity of UPFC and ST;

[0127] Take the maximum capacity used in all running scenarios as the final capacity:

[0128]

[0129] in, is the injected voltage phasor and the current phasor of the UPFC series-side converter under scenario k; is the injected voltage phasor and the current phasor of the UPFC parallel side converter under scenario k; are the injected voltage phasor and the current phasor of the ST series side converter under scenario k; b. system network loss.

[0130] The network loss of the system is mainly the active power loss caused by the power flow through the line, that is:

[0131]

[0132] Among them, Nl is the total number of branches in the system, P mij and P mji They are the active power flows of the mth branch flowing from the line head to the line end and from the line end to the line head, respectively.

[0133] By simplifying we can get:

[0134]

[0135] Among them, G m represents the conductance on the mth branch, V mi ,θ mi 、V mj ,θ mj are the voltage amplitude and phase angle of the head and end nodes of the mth branch respectively.

[0136] c. System static safety margin.

[0137] The ratio of the line flow to the line flow limit is defined as the line load rate M. m , in order to reflect the operating status of the line.

[0138]

[0139] Among them, S m is the apparent power flowing through branch m, S m0 is the apparent power limit of branch m.

[0140] The static safety margin of the system under normal conditions can be obtained through the line load rate:

[0141]

[0142] d. System N-1 thermal stability margin.

[0143] When evaluating system safety, it is necessary to perform N-1 fault analysis on the system. When a line fails, the power flow distribution of the system will change significantly, which will in turn affect the power flow of each line, and may cause overload on some lines, endangering the safe operation of the power system. The system N-1 thermal stability index when an N-1 fault occurs is:

[0144]

[0145] Among them, N c is the expected fault set; n c is the total number of expected faulty lines; Indicates the load rate of branch m after the fault.

[0146] When the line is overloaded during the calculation process, a penalty value needs to be added to the line safety index.

[0147] 3) Constraints

[0148] During the optimization process, the constraints of the power system operation and the HPFC itself must be met to ensure the normal operation of the power grid and HPFC.

[0149] a. Power system operation constraints.

[0150] For the power system, under normal operation, the node power balance needs to be met, that is:

[0151]

[0152] Where Nb is the total number of system nodes; P gi , Q giare the active and reactive power of the generator respectively; P di , Q di is the active and reactive loads of the load node; G ij , B ij is the element in the node admittance matrix;

[0153] In addition, each variable needs to satisfy the corresponding inequality constraints. For the control variable u, we have:

[0154]

[0155] Among them, P g is the active power output of the generator, P gmax and P gmin V is the active power limit value for each generator to maintain stable operation, and its specific value is the relevant parameters of the generator; g is the PV node voltage amplitude.

[0156] For the state variable x, we have:

[0157]

[0158] Among them, S l is the apparent power of line l, S lmax The power limit for the line to maintain stable operation; Q g is the reactive power output of the generator, Q gmax and Q gmin V is the upper and lower limits of reactive power output of each generator, and its specific value is the relevant parameters of the generator; b is the voltage amplitude of the nodes except the PV node.

[0159] b. HPFC self-constraints

[0160] For the capacity of HPFC and the output voltage amplitude on the series side:

[0161]

[0162] Among them, S UPFCmax and S STmax is the maximum capacity of the UPFC and ST; V semax and V crmax is the voltage amplitude of UPFC and ST series side corresponding to the maximum capacity.

[0163] The power flow control target of HPFC needs to meet the following conditions:

[0164]

[0165] Where n represents the line where HPFC is installed, P nmax , Pnmin , Q nmax , Q nmin They are the upper and lower limits of the active power flow and reactive power flow of line n respectively.

[0166] In addition, the power balance of nodes on the HPFC access line also needs to consider the impact of additional injected power.

[0167] Figure 2 The figure shows the equivalent circuit diagram of HPFC. The main control circuit of HPFC is circuit ij, m and n are additional virtual nodes; V se ,θ se is the amplitude and phase angle of the output voltage on the UPFC series side; V sh ,θ sh is the amplitude and phase angle of the output voltage on the parallel side of UPFC; V cr ,θ cr is the amplitude and phase angle of the output voltage on the ST series side; V vr ,θ vr is the amplitude and phase angle of the output voltage on the ST parallel side; X se , X sh is the equivalent impedance of the UPFC series and parallel coupling transformer; X cr , X vr is the equivalent impedance of ST series and parallel coupling transformer; is the current phasor flowing through the string and parallel sides of UPFC; is the current phasor flowing through the ST series and parallel sides; V k ,θ k (k=i,j,m,n) is the voltage amplitude and phase angle of the corresponding node; g L , b L , B c are the equivalent conductance, susceptance and line shunt susceptance of the series side of the line respectively; P nj , Q nj It is the active and reactive power flow of the controlled line.

[0168] Depend on Figure 2 It can be seen that according to the power injection model, the voltage source in the line can be equivalent to the injected power to nodes i, m, and n:

[0169]

[0170] Among them, P ks , Q ks (k=i,m,n) are the active and reactive power injected by HPFC to each node respectively.

[0171] Ignoring its own losses, HPFC satisfies UPFC active power conservation and ST power conservation:

[0172]

[0173] The convergence criteria for the end of iteration of power flow calculation of HPFC system are as follows:

[0174]

[0175] Among them, P ref and Q ref is the set power flow control target value; P nj and Q nj is the power flow of the controlled line; ΔP and ΔQ are the iterative difference matrices of the node injected power P and Q during the power flow calculation process; ε1 and ε2 are the calculation accuracy.

[0176] In some examples of the present invention, there is also a computer-readable storage medium storing instructions. When the instructions are executed, the above-mentioned hybrid power flow controller planning and configuration method can be implemented. More specifically, the instructions can be a computer-readable language. The above-mentioned computer can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer can be a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or a data center that includes one or more available media. For example, the storage medium is, for example, but not limited to, a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital versatile disc (Digital Versatile Disc, DVD)), or a semiconductor medium (for example, a solid-state drive (Solid State Disk, SSD)), etc.

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

[0178] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A hybrid power flow controller planning and configuration method considering wind power grid connection, characterized in that: The following steps are involved: Step S1: Obtain wind power-load data and divide wind power-load probability scenarios using K-means clustering algorithm; Step S2: Establishing a HPFC planning and configuration optimization model considering multiple scenarios; Step S3: Calculate the objective function corresponding to different scenarios; Step S4: Obtain the total objective function according to the weighted probability of occurrence of different scenarios, and record the individual optimal objective function and the group optimal objective function and their corresponding HPFC site selection and capacity; Step S5: If the number of iterations does not reach the set value, go to step S6, otherwise go to step S7; Step S6: Update each control variable and go to step S3; Step S7: outputting the optimal objective function and HPFC planning configuration result; The method of dividing the wind output-load probability scenarios using the K-means clustering algorithm includes the following steps: 1) Obtain wind power-load sample data and establish a sample data matrix X; Where, "={x1,x2,…,x n }; x j ={x j1 ,x j2 ,…,x jm }; m is the number of wind power-load nodes; n is the number of samples; 2) Randomly select K samples as the initial cluster center u i ,u i = {u i1 ,u i2 ,…,u im },i=1,2,…,K; 3) The Euclidean distance is used to represent the distance between the sample and the cluster center. The calculation formula is: Compare the Euclidean distance between each sample and each cluster center, and group them into a subset with the nearest cluster center; 4) Recalculate the cluster center: Among them, x j For the subset S i A set of m-dimensional sample sequences, N i To partition into subset S i The number of samples in m dimension; 5) Use the standard measure function value E as the iterative convergence criterion, and its calculation formula is as follows: 6) Select D CH(+) As the effectiveness indicator of clustering, D CH(+) The indicator is defined as: Among them, T K is the sum of squares of inter-class deviations, which mainly reflects the separation between classes; P K is the sum of squares of intra-class deviations, which mainly reflects the compactness within the class; K is the number of clusters; By calculating D for each K value CH(+) Indicators, and compare them to find the best number of clusters; 7) The probability of each scenario occurring λ p Use the following formula to calculate; Among them, N p is the number of samples included in each scene; The HPFC planning configuration optimization model includes: objective function and constraint conditions, and the HPFC planning configuration optimization calculation is carried out from two aspects of reducing investment cost and solving the problem of system power flow exceeding the limit. The objective function of the optimization model includes HPFC configuration cost, system network loss, system static safety margin and N-1 thermal stability margin. The objective function includes: HPFC configuration cost; system network loss; system static safety margin; and system N-1 thermal stability margin; The constraints include: power system operation constraints and HPFC own constraints.

2. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The HPFC configuration costs are: cost H =C UPFC ×S UPFC +C ST ×S ST (7) Among them, C UPFC and C ST is the capacity price coefficient of UPFC and ST; a1~a6 are constants in the price coefficient function; S UPFC and S ST is the capacity of UPFC and ST; Take the maximum capacity used in all running scenarios as the final capacity: in, is the injected voltage phasor and the current phasor of the UPFC series-side converter under scenario k; is the injected voltage phasor and the current phasor of the UPFC parallel side converter under scenario k; are the injected voltage phasor and the current phasor of the ST series side converter under scenario k.

3. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The objective function calculation method of the system network loss comprises the following steps: The network loss of the system includes the active power loss caused by the power flow through the line, that is: Where Nl is the total number of branches in the system; P mij and P mji are the active power flows of the mth branch from the line head end to the line end and from the line end to the line head end respectively; By simplifying we can get: Among them, G m represents the conductance on the mth branch; V mi ,θ mi 、V mj ,θ mj are the voltage amplitude and phase angle of the head and end nodes of the mth branch respectively.

4. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The objective function calculation method of the system static safety margin comprises the following steps: The ratio of the line flow to the line flow limit is defined as the line load rate M. m , in order to reflect the running status of the line; Where Sm is the apparent power flowing through branch m; Sm0 is the apparent power limit value of branch m; The static safety margin of the system under normal conditions can be obtained through the line load rate:

5. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The method for calculating the objective function of the system N-1 thermal stability margin comprises the following steps: The system N-1 thermal stability index when an N-1 fault occurs is: Among them, N c is the expected fault set; n c is the total number of expected faulty lines; represents the load rate of branch m after the fault; When the line is overloaded during the calculation process, a penalty value needs to be added to the line safety index.

6. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The method for calculating the power system operation constraints comprises the following steps: The power system needs to satisfy the node power balance, that is: Where Nb is the total number of system nodes; P gi , Q gi are the active and reactive power of the generator respectively; P di , Q di is the active and reactive loads of the load node; G ij , B ij is the element in the node admittance matrix; Each variable needs to satisfy the corresponding inequality constraints; for the control variable u, there is: Among them, P g is the active power output of the generator, P gmax and P gmin V is the active power limit value for each generator to maintain stable operation, and its specific value is the relevant parameters of the generator; g is the PV node voltage amplitude; For the state variable x, we have: Among them, S l is the apparent power of line l, S lmax The power limit for the line to maintain stable operation; Q g is the reactive power output of the generator, Q gmax and Q gmin V is the upper and lower limits of reactive power output of each generator, and its specific value is the relevant parameters of the generator; b is the voltage amplitude of the nodes except the PV node.

7. The hybrid power flow controller planning and configuration method considering wind power grid connection according to claim 1 is characterized in that: The method for calculating the HPFC self-constraint comprises the following steps: For the capacity of HPFC and the output voltage amplitude on the series side: Among them, S UPFCmax and S STmax is the maximum capacity of the UPFC and ST set; V semax and V crmax is the voltage amplitude of UPFC and ST series side corresponding to the maximum capacity; The power flow control target of HPFC needs to meet the following conditions: Where n represents the line where HPFC is installed, P nmax , P nmin , Q nmax , Q nmin They are the upper and lower limits of the active power flow and reactive power flow of line n respectively.

8. A computer-readable storage medium storing instructions, which, when executed, can implement the hybrid power flow controller planning and configuration method described in any one of claims 1 to 7.