Wind farm primary frequency regulation data control system and method based on multi-dimensional redundancy
Through the combination of multi-dimensional redundant configuration and support vector machine model, the reliability problem of the existing primary frequency regulation system in the event of PT/CT line failure is solved, and the stability and fault prediction of the wind farm grid are achieved.
Patent Information
- Application Number
- CN202410865208.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-01
AI Technical Summary
The existing primary frequency modulation system cannot work properly when the PT/CT line fails, and the communication form is single, resulting in low reliability.
The primary frequency modulation data control system of the wind farm adopts multi-dimensional redundant configuration. By setting the redundant configuration of the main acquisition equipment and the backup acquisition equipment, and the redundant configuration of the network port channel and the serial port channel, a support vector machine model is constructed, and the post-communication The data is classified and predicted, abnormal data is determined, and the wind farm grid control parameters are tuned through the multiverse population.
It achieves the continuity and reliability of the data collection process, improves the efficiency and effect of the system, can predict and prevent wind farm power grid failures, and ensures the stability of the power grid.
Smart Images

Figure CN118399441B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data control systems, and in particular, relates to a wind farm primary frequency regulation data control system and method based on multi-dimensional redundancy. Background Art
[0002] The primary frequency regulation system generally includes hardware modules such as panel cabinets, servers, frequency acquisition devices, workstations, switches, etc. On this basis, the primary frequency regulation system needs to collect data such as voltage, frequency, power, etc. of the grid connection point, and needs to communicate with the wind turbine energy management platform to receive unit data, issue unit active power instructions, and realize functional coordination in the control process; among them, the system collects grid connection point data, which is generally achieved through frequency acquisition devices; different manufacturers have different specific implementation methods of frequency acquisition devices, some of which make the frequency acquisition module independently as a device, and some of which integrate the frequency acquisition module as a module into the industrial computer, but generally only one group of PT / CT lines will be connected to obtain the measurement point data of a group of grid connection points, and the main and standby redundant lines will not be considered.
[0003] Chinese patent CN114721335A discloses a self-service debugging system and method for plant automation for acceptance of control master stations. The system includes a service terminal and at least one mobile terminal deployed on the plant side; the service terminal is used to manage the debugging process and provide the mobile terminal with data sent by the plant automation system, and the mobile terminal is used to configure and execute the debugging project; the mobile terminal can realize remote control debugging function, alarm direct transmission debugging function, remote browsing debugging function, one-key sequential control debugging function, network security monitoring debugging function, remote maintenance debugging function, power debugging function, trust guarantee debugging function and primary frequency modulation debugging function; the present invention realizes self-service and convenient debugging of plant automation application functions for acceptance of control master stations, is suitable for laboratory testing and on-site debugging, has reliable test results, and solves the problem of low efficiency of collaborative application testing between master and substations.
[0004] The current conventional primary frequency modulation system does not consider redundant lines when acquiring grid connection point data. When a PT / CT line fails, the system will not be able to work properly. The conventional system has a single form of communication with the frequency acquisition module and has low reliability. Summary of the invention
[0005] In view of the problems in the related art, the present invention proposes a wind farm primary frequency regulation data control system and method based on multi-dimensional redundancy to overcome the above-mentioned technical problems existing in the existing related art.
[0006] To solve the above technical problems, the present invention is achieved through the following technical solutions:
[0007] The present invention is a method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy, comprising the following steps:
[0008] S1, setting a first data collection time point set and a collection data type set, and collecting data of the PT / CT line of the wind farm grid connection point by redundantly configuring the main collection device and the backup collection device to obtain a pre-communication data matrix; and then collecting the pre-communication data matrix by redundantly configuring the network port channel and the serial port channel to obtain a post-communication data matrix;
[0009] S2, setting the data collection classification range interval matrix and the data collection classification label matrix to classify each data in the communication data matrix, and obtaining the communication data classification label data matrix; then collecting the third classification label data matrix to construct a support vector machine model, and obtaining the final support vector machine model;
[0010] S3, using the final support vector machine model to perform classification operations on the post-communication data classification label data matrix to obtain a post-communication classification data matrix set and a post-communication classification data category label set;
[0011] S4, performing a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix; then performing a classification operation on the data in the post-communication prediction data matrix according to the collected data classification range interval matrix and the collected data classification label matrix to obtain a post-communication prediction data classification matrix; then using the final support vector machine model to perform a classification operation on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set and perform label determination to obtain a post-communication prediction data category label set;
[0012] S5. Set an abnormal classification data category label set according to the post-communication classification data category label set and determine whether there is an abnormality in the data of the PT / CT line of the wind farm grid connection point in the future. If there is an abnormality, construct a multiverse population to tune the control parameters in the wind farm power grid to obtain the optimal parameter set; otherwise, there is no need to tune the control parameters in the wind farm power grid.
[0013] Preferably, the S1 comprises the following steps:
[0014] S11. Setting the first data collection time point set , Indicates the setting The collection time points, Indicates the total number of set collection time points; then set the collection data type set , Indicates the setting Types of collected data, Indicates the total number of set acquisition data types;
[0015] S12, setting a main acquisition device and a backup acquisition device; respectively connecting the main acquisition device and the backup acquisition device to the PT / CT lines of the two wind farm grid connection points and configuring redundancy between the main acquisition device and the backup acquisition device;
[0016] S13: When the main acquisition device does not fail, and collection data type set and using a main acquisition device to acquire data of a PT / CT line of a corresponding wind farm grid connection point to obtain a first data matrix; and using the first data matrix as a pre-communication data matrix;
[0017] When the main acquisition device fails, the backup acquisition device is used to collect data of the PT / CT line of the corresponding wind farm grid connection point to obtain a second data matrix; and the second data matrix is used as the pre-communication data matrix;
[0018] S14, establishing a network port channel and a serial port channel to communicate with the main acquisition device and the backup acquisition device; the network port channel and the serial port channel are redundantly configured;
[0019] When there is no failure in the communication between the network port channel and the main acquisition device and the backup acquisition device, the network port channel is used to communicate with the main acquisition device and the backup acquisition device to acquire the pre-communication data matrix to obtain the post-communication data matrix;
[0020] When the communication between the network port channel and the main acquisition device and the backup acquisition device fails, the serial port channel is used to communicate with the main acquisition device and the backup acquisition device to collect the data matrix before communication and obtain the data matrix after communication. ;as follows,
[0021] ;
[0022] in, Indicates The data type is in The data collected at each time point;
[0023] Preferably, the collected data types include voltage, frequency, power and other data types.
[0024] Preferably, S2 comprises the following steps:
[0025] S21, according to the data type set Set the collection data classification range interval matrix And the corresponding collection data classification label matrix ; The collection data classification range interval matrix as follows,
[0026] ;
[0027] in, and Respectively represent Of the collected data types The minimum and maximum values of the range interval of each category, Indicates The total number of classification range intervals corresponding to each collected data type;
[0028] The collected data classification label matrix as follows,
[0029] ;
[0030] in, Indicates Of the collected data types Category labels;
[0031] S22, according to the collection data classification range interval matrix And collect data classification label matrix After communication, the data matrix Classify each data in the communication to obtain the data classification label data matrix after communication ;as follows,
[0032] ;
[0033] in, Indicates The data type is in Classification label data obtained by classifying the data collected at each time point;
[0034] S23, constructing an initial support vector machine model; setting the kernel function used by the initial support vector machine model to be a Gaussian kernel function; as follows,
[0035] ;
[0036] In the formula, represents the Gaussian kernel function; Represents data in the support vector machine classification space; represents the core of the Gaussian kernel function; express and The Euclidean distance between Indicates the scope of the Gaussian kernel function;
[0037] Then set the penalty degree of the initial support vector machine model for misclassified samples to ;
[0038] Set multiple time points again to obtain a second data collection time point set , ; indicates the reset A point in time, represents the total number of the time points set again; according to the second data collection time point set , Collection data type set , collect data classification label matrix And the collection data classification range interval matrix The main acquisition device is used to collect and classify the data of the PT / CT lines of the corresponding wind farm grid connection points to obtain a third classification label data matrix;
[0039] S24, set the training data ratio to ; According to the training data ratio Divide the data in the third classification label data matrix to obtain the training data matrix and the test data matrix; set the maximum number of iterations to And the training error threshold is ;
[0040] The training data matrix is input into the initial support vector machine model to train the initial support vector machine model. When the number of training iterations is greater than or equal to When or the training error is less than , stopping the training of the initial support vector machine model to obtain a trained support vector machine model;
[0041] S25. Set a test accuracy threshold, input the test data matrix into the trained support vector machine model for classification, and obtain a classification result; compare the classification result with the classification label corresponding to the pre-set test data matrix to obtain the classification accuracy; when the classification accuracy is greater than or equal to the test accuracy threshold, use the trained support vector machine model as the final support vector machine model; otherwise, repeat S24 and S25 until the classification accuracy is greater than or equal to the test accuracy threshold.
[0042] Preferably, S3 comprises the following steps:
[0043] S31, using the final support vector machine model to classify the label data matrix of the data after communication Perform classification operations to obtain the classified data matrix set after communication , Represents the classification label data matrix of the data after communication The first A categorical data matrix, Represents the matrix set of classified data after communication The total number of classified data matrices in ; as follows,
[0044] ;
[0045] in, express Middle The data type is The classification label data corresponding to the data collected at each time point, express The total number of time points to which the classified label data belongs;
[0046] S32, according to the communication classification data matrix set Get the classification data category label set after communication , Represents the classification label data matrix of the data after communication The first The data categories corresponding to the classification data matrix;
[0047] By determining the category label set of the classified data after communication, it is convenient to subsequently determine the category of the predicted data.
[0048] Preferably, S4 comprises the following steps:
[0049] S41. Setting the predicted future time point set , Indicates the setting A predicted future time point, Indicates the total number of predicted future time points set; according to the predicted future time point set The moving average method is used to calculate the data matrix after communication Perform prediction operations to obtain the predicted data matrix after communication ;as follows,
[0050] ;
[0051] in, Indicates the predicted The data type will be Data at a time point;
[0052] According to the collected data classification range interval matrix And collect data classification label matrix Prediction data matrix after communication The data in is classified to obtain the classification matrix of the predicted data after communication ;as follows,
[0053] ;
[0054] in, Indicates the predicted The data type will be Classified data obtained by classifying the data at each time point;
[0055] S42, using the final support vector machine model to classify the post-communication prediction data The data in the classifier is classified to obtain the predicted data category set after communication. , Indicates Data categories for predicting future time points, Indicates the total number of classifications obtained by classifying the predicted data after communication;
[0056] S43, according to the communication classification data matrix set And the classification data category label set after communication Predict the data category set after communication Perform label determination to obtain the predicted data category label set after communication , Expressing the The labels corresponding to the data categories predicted at the future time points;
[0057] By setting a set of predicted future time points, the predicted time span is determined; the final support vector machine model is used to classify the data in the post-communication predicted data classification matrix so that the data in the post-communication predicted data classification matrix can be classified; and the subsequent confirmation of these classified data categories is facilitated.
[0058] Preferably, the S43 comprises the following steps:
[0059] S431, respectively calculating the post-communication classification data matrix set And the predicted data category set after communication The central data of each classified data matrix in the communication is obtained. And the predicted category center data matrix after communication ; They are as follows,
[0060] ; ;
[0061] in, Represents the classified data matrix set after communication Middle The center data obtained by calculating the classification data matrix Classification label data corresponding to each data type; Represents the set of predicted data categories after communication Middle The center data obtained by calculating the classification data matrix The classification label data corresponding to the data type, Represents the predicted data category set after communication Middle The total number of columns of categorical data in a categorical data matrix; and The calculation formulas are as follows:
[0062] ; ;
[0063] In the formula, express Middle The data type is Classification label data corresponding to the data at each time point;
[0064] S432, calculating the predicted category center data matrix after communication Each row of data in the classification center data matrix after communication The Euclidean distance of each row of data in the Euclidean distance data matrix is obtained ;as follows,
[0065] ;
[0066] in, Represents the predicted category center data matrix after the communication Middle Row data and post-communication classification center data matrix Middle Euclidean distance between rows of data;
[0067] Will The corresponding predicted category center data matrix after communication The data in is classified into the corresponding post-communication classification center data matrix In the classified data, the classified data category label set after communication is also matched Get the predicted data category label set after the communication .
[0068] Preferably, S5 comprises the following steps:
[0069] S51, classifying the data category label set after the communication Set the abnormal classification data category label set , Indicates the setting abnormal classification data category labels, Indicates the total number of abnormal classification data category labels set;
[0070] S52: Classify the data according to the abnormality category label set And the predicted data category label set after communication Determine whether there is any anomaly in the data of the PT / CT line of the wind farm grid connection point in the future;
[0071] After the communication, the predicted data category label set There are data category labels in the abnormal classification data category label set When the wind farm power grid is in the middle, it is necessary to tune the control parameters in the wind farm power grid so that there are no abnormal classification data category labels in the predicted data category labels; otherwise, it is not necessary to tune the control parameters in the wind farm power grid;
[0072] By setting the abnormal classification data category label set, it is convenient to determine whether there is an abnormal data category label in the predicted data category label set after communication, so as to confirm whether parameter tuning is needed to regulate the data.
[0073] Preferably, the step of optimizing the control parameters in the wind farm power grid in S52 includes the following steps:
[0074] S521. Setting the initial control parameter set of the wind farm power grid , Indicates the setting The initial control parameters of the wind farm grid, Indicates the total number of the set initial control parameters of the wind farm power grid;
[0075] S522. Construct a multiverse population, and set the total number of universes in the multiverse population to , then the multiverse population is expressed as , Indicates universe individuals; the dimension of the multiverse population search space is set to ;
[0076] According to the wind farm power grid initial control parameter set Set the initial position of each universe in the multiverse population and obtain the initial position matrix of the universe ;as follows,
[0077] ;
[0078] Indicates the number of species in the multiverse In the initial position of the universe individual The position component of the dimension;
[0079] The minimum probability of the existence of a wormhole in each individual universe in the multiverse population is set to The maximum probability of the existence of a wormhole is ; Set the development accuracy to , the maximum number of iterations is And the current iteration number is ;
[0080] S523, setting the fitness function of each universe individual in the multiverse population ;as follows,
[0081] ;
[0082] In the formula, Represents the predicted data category label set after the communication The number of data category labels in ; A positive number indicates the offset;
[0083] S524, start iterative operation, in each round of iteration, according to the fitness function Calculating the expansion rate of each individual universe to obtain a universe expansion rate data set; sorting the data in the universe expansion rate data set to obtain a sorted universe expansion rate data set;
[0084] According to the sorted universe expansion rate data set and using the roulette principle, a universe individual is selected from the multiverse population to absorb matter from the universe where the white hole is generated through a black hole;
[0085] At the same time, the minimum probability value of the existence of the wormhole according to the universe individual 、The maximum probability value of the wormhole existence And development accuracy Transferring matter between wormholes and the optimal universe to change location;
[0086] S525, when When , stop the iteration operation and output the optimal parameter set , Indicates The optimal values of the grid control parameters of a wind farm.
[0087] A wind farm primary frequency regulation data control system based on multi-dimensional redundancy, comprising a wind farm grid connection point PT / CT line data acquisition module, a support vector machine model building module, a first data classification module, a data prediction module, a second data classification module and a control parameter tuning module;
[0088] The wind farm grid connection point PT / CT line data acquisition module is used to set a first data acquisition time point set and a collection data type set and to collect data of the wind farm grid connection point PT / CT line by redundantly configuring the main acquisition device and the backup acquisition device and redundantly configuring the network port channel and the serial port channel;
[0089] The support vector machine model building module is used to collect the third classification label data matrix again to build a support vector machine model to obtain a final support vector machine model;
[0090] The first data classification module is used to use the final support vector machine model to perform classification operations on the communication data classification label data matrix;
[0091] The data prediction module is used to perform a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix;
[0092] The second data classification module is used to use the final support vector machine model to perform classification operations on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set;
[0093] The control parameter tuning module is used to construct a multiverse population to tune the control parameters in the wind farm power grid.
[0094] The present invention has the following beneficial effects:
[0095] 1. The present invention sets a PT / CT line data acquisition module for a wind farm grid-connected point, a support vector machine model building module, a first data classification module, a data prediction module, a second data classification module and a control parameter tuning module; by redundantly configuring the main acquisition device and the backup acquisition device and redundantly configuring the network port channel and the serial port channel, when the main acquisition device fails, it automatically switches to the backup acquisition device to continue to collect data on the PT / CT line of the wind farm grid-connected point, making the entire data acquisition process more continuous and reliable; at the same time, when the network port channel fails, it automatically switches to the serial port channel to communicate with the main acquisition device and the backup acquisition device, making the communication process more reliable and ensuring the efficiency and effect of data acquisition; after obtaining historical data through the network port channel or the serial port channel, firstly use other training data to train and test the initial support vector machine model, so that the support vector machine model can be used to train and test the original data. The quantitative machine model can have a good classification effect on the data of the PT / CT line of the wind farm grid connection point. After labeling these categories, the standards for which categories of data belong to abnormal data are determined; then the historical data are classified through the final support vector machine model, and the classification center data of each classified data is calculated; then the data of the PT / CT line of the wind farm grid connection point at future moments are predicted based on the changing trend of these historical data, and the predicted results are classified and compared with the classification of historical data to determine which category the predicted result data belongs to; when the category to which the predicted result data belongs is an abnormal category, the system will optimize the parameters of the wind farm power grid so that the categories to which the predicted result data belongs are all normal categories, thereby predicting and preventing future faults in the wind farm power grid in advance, ensuring the working stability of the wind farm power grid.
[0096] 2. In the present invention, by setting the first data collection time point set and the collection data type set, the collection process is made more purposeful; then, by classifying each data in the post-communication data matrix, the data in the post-communication data matrix can be more distinguished, which is convenient for the subsequent use of the support vector machine model to classify the data in the post-communication data matrix, and the classification effect is better; by setting the training data matrix and the test data matrix to train and test the initial support vector machine model, the support vector machine model has a better classification effect on the data of the PT / CT line of the wind farm grid connection point.
[0097] 3. In the present invention, the central data of each classified data matrix in the classified data matrix set after communication and the predicted data category set after communication are calculated to facilitate comparison. Then, each classified data matrix in the predicted data category set after communication is labeled and confirmed according to the comparison result. By setting the abnormal classified data category label set, it is convenient to determine whether there is any data category label in the predicted data category label set after communication as abnormal, so as to confirm whether parameter tuning is needed to regulate the data. Among them, the initial control parameters of the wind farm power grid are optimized by adopting the multiverse algorithm, which has a good optimization effect and high optimization efficiency, so that the control parameters of the wind farm power grid can be adjusted in time, and the problems that will occur in the wind farm power grid in the future can be regulated in time, thereby ensuring the stability of the operation of the wind farm power grid.
[0098] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] In order to more clearly illustrate the technical solutions of the embodiments of the invention, the drawings required for describing the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For ordinary technicians in this field, they can also obtain drawings based on these drawings without paying creative work.
[0100] Figure 1 The present invention is a schematic diagram of a process of regulating wind farm primary frequency regulation data by a wind farm primary frequency regulation data regulation system based on multi-dimensional redundancy. DETAILED DESCRIPTION
[0101] The following will be combined with the drawings in the embodiments of the invention to clearly and completely describe the technical solutions in the embodiments of the invention. Obviously, the described embodiments are only part of the embodiments of the invention, not all of the embodiments. Based on the embodiments in the invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the invention.
[0102] In the description of the present invention, it is necessary to understand that the terms "opening", "upper", "lower", "top", "middle", "inside" and the like indicating orientation or positional relationship are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the components or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the invention.
[0103] The present invention is a method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy, comprising the following steps:
[0104] S1, setting a first data collection time point set and a collection data type set, and collecting data of the PT / CT line of the wind farm grid connection point by redundantly configuring the main collection device and the backup collection device to obtain a pre-communication data matrix; and then collecting the pre-communication data matrix by redundantly configuring the network port channel and the serial port channel to obtain a post-communication data matrix;
[0105] The S1 comprises the following steps:
[0106] S11. Setting the first data collection time point set , Indicates the setting The collection time points, Indicates the total number of set collection time points; then set the collection data type set , Indicates the setting Types of collected data, Indicates the total number of set acquisition data types;
[0107] S12, setting a main acquisition device and a backup acquisition device; respectively connecting the main acquisition device and the backup acquisition device to the PT / CT lines of the two wind farm grid connection points and configuring redundancy between the main acquisition device and the backup acquisition device;
[0108] S13: When the main acquisition device does not fail, and collection data type set and using a main acquisition device to acquire data of a PT / CT line of a corresponding wind farm grid connection point to obtain a first data matrix; and using the first data matrix as a pre-communication data matrix;
[0109] When the main acquisition device fails, the backup acquisition device is used to collect data of the PT / CT line of the corresponding wind farm grid connection point to obtain a second data matrix; and the second data matrix is used as the pre-communication data matrix;
[0110] S14, establishing a network port channel and a serial port channel to communicate with the main acquisition device and the backup acquisition device; the network port channel and the serial port channel are redundantly configured;
[0111] When there is no failure in the communication between the network port channel and the main acquisition device and the backup acquisition device, the network port channel is used to communicate with the main acquisition device and the backup acquisition device to acquire the pre-communication data matrix to obtain the post-communication data matrix;
[0112] When the communication between the network port channel and the main acquisition device and the backup acquisition device fails, the serial port channel is used to communicate with the main acquisition device and the backup acquisition device to collect the data matrix before communication and obtain the data matrix after communication. ;as follows,
[0113] ;
[0114] in, Indicates The data type is in The data collected at each time point;
[0115] S2, setting the data collection classification range interval matrix and the data collection classification label matrix to classify each data in the communication data matrix, and obtaining the communication data classification label data matrix; then collecting the third classification label data matrix to construct a support vector machine model, and obtaining the final support vector machine model;
[0116] The S2 comprises the following steps:
[0117] S21, according to the data type set Set the collection data classification range interval matrix And the corresponding collection data classification label matrix ; The classification range interval matrix of the collected data as follows,
[0118] ;
[0119] in, and Respectively represent Of the collected data types The minimum and maximum values of the range interval of each category, Indicates The total number of classification range intervals corresponding to each collected data type;
[0120] The collected data classification label matrix as follows,
[0121] ;
[0122] in, Indicates Of the collected data types Category labels;
[0123] S22, according to the collection data classification range interval matrix And collect data classification label matrix After communication, the data matrix Classify each data in the communication to obtain the data classification label data matrix after communication ;as follows,
[0124] ;
[0125] in, Expressing the The data type is in Classification label data obtained by classifying the data collected at each time point;
[0126] S23, constructing an initial support vector machine model; setting the kernel function used by the initial support vector machine model to be a Gaussian kernel function; as follows,
[0127] ;
[0128] In the formula, represents the Gaussian kernel function; Represents data in the support vector machine classification space; represents the core of the Gaussian kernel function; express and The Euclidean distance between Indicates the scope of the Gaussian kernel function;
[0129] Then set the penalty degree of the initial support vector machine model for misclassified samples to ;
[0130] Set multiple time points again to obtain a second data collection time point set ; According to the second data collection time point set , Collection data type set , collect data classification label matrix And the collection data classification range interval matrix The main acquisition device is used to collect and classify the data of the PT / CT lines of the corresponding wind farm grid connection points to obtain a third classification label data matrix;
[0131] S24, set the training data ratio to ; According to the training data ratio Divide the data in the third classification label data matrix to obtain the training data matrix and the test data matrix; set the maximum number of iterations to And the training error threshold is ;
[0132] The training data matrix is input into the initial support vector machine model to train the initial support vector machine model. When the number of training iterations is greater than or equal to When or the training error is less than , stopping the training of the initial support vector machine model to obtain a trained support vector machine model;
[0133] S25, set a test accuracy threshold, input the test data matrix into the trained support vector machine model for classification, and obtain a classification result; compare the classification result with the classification label corresponding to the pre-set test data matrix to obtain the classification accuracy; when the classification accuracy is greater than or equal to the test accuracy threshold, use the trained support vector machine model as the final support vector machine model; otherwise, repeat S24 and S25 until the classification accuracy is greater than or equal to the test accuracy threshold;
[0134] S3, using the final support vector machine model to perform classification operations on the post-communication data classification label data matrix to obtain a post-communication classification data matrix set and a post-communication classification data category label set;
[0135] The S3 comprises the following steps:
[0136] S31, using the final support vector machine model to classify the label data matrix of the data after communication Perform classification operations to obtain the classified data matrix set after communication , Represents the classification label data matrix of the data after communication The first A categorical data matrix, Represents the classified data matrix set after communication The total number of classified data matrices in ; as follows,
[0137] ;
[0138] in, express Middle The data type is The classification label data corresponding to the data collected at each time point, express The total number of time points to which the classified label data belongs;
[0139] S32, according to the communication classification data matrix set Get the classification data category label set after communication , Represents the classification label data matrix of the data after communication The first The data categories corresponding to the classification data matrix;
[0140] S4, performing a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix; then performing a classification operation on the data in the post-communication prediction data matrix according to the collected data classification range interval matrix and the collected data classification label matrix to obtain a post-communication prediction data classification matrix; then using the final support vector machine model to perform a classification operation on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set and perform label determination to obtain a post-communication prediction data category label set;
[0141] The S4 comprises the following steps:
[0142] S41. Setting the predicted future time point set , Indicates the setting A predicted future time point, Indicates the total number of predicted future time points set; according to the predicted future time point set The moving average method is used to calculate the data matrix after communication Perform prediction operations to obtain the predicted data matrix after communication ;as follows,
[0143] ;
[0144] in, Indicates the predicted The data type will be Data at a time point;
[0145] According to the collected data classification range interval matrix And collect data classification label matrix Prediction data matrix after communication The data in is classified to obtain the classification matrix of the predicted data after communication ;as follows,
[0146] ;
[0147] in, Indicates the predicted The data type will be Classified data obtained by classifying the data at each time point;
[0148] S42, using the final support vector machine model to classify the post-communication prediction data The data in the classifier is classified to obtain the predicted data category set after communication. , Indicates Data categories for predicting future time points, Indicates the total number of classifications obtained by classifying the predicted data after communication;
[0149] S43, according to the communication classification data matrix set And the classification data category label set after communication Predict the data category set after communication Perform label determination to obtain the predicted data category label set after communication , Expressing the The labels corresponding to the data categories predicted at the future time points;
[0150] The S43 comprises the following steps:
[0151] S431, respectively calculating the post-communication classification data matrix set And the predicted data category set after communication The central data of each classified data matrix in the communication is obtained. And the predicted category center data matrix after communication ; They are as follows,
[0152] ; ;
[0153] in, Represents the classified data matrix set after communication Middle The center data obtained by calculating the classification data matrix Classification label data corresponding to each data type; Represents the set of predicted data categories after communication Middle The center data obtained by calculating the classification data matrix The classification label data corresponding to the data type, Represents the predicted data category set after communication Middle The total number of columns of categorical data in a categorical data matrix; and The calculation formulas are as follows:
[0154] ; ;
[0155] In the formula, express Middle The data type is Classification label data corresponding to the data at each time point;
[0156] S432, calculating the predicted category center data matrix after communication Each row of data in the classification center data matrix after communication The Euclidean distance of each row of data in the Euclidean distance data matrix is obtained ;as follows,
[0157] ;
[0158] in, Represents the predicted category center data matrix after the communication Middle Row data and post-communication classification center data matrix Middle Euclidean distance between rows of data;
[0159] Will The corresponding predicted category center data matrix after communication The data in is classified into the corresponding post-communication classification center data matrix In the classified data, the classified data category label set after communication is also matched Get the predicted data category label set after the communication ;
[0160] S5. According to the post-communication classified data category label set, set the abnormal classified data category label set and determine whether there is an abnormality in the data of the PT / CT line of the wind farm grid connection point in the future. If there is an abnormality, construct a multiverse population to tune the control parameters in the wind farm grid to obtain the optimal parameter set; otherwise, there is no need to tune the control parameters in the wind farm grid;
[0161] The S5 comprises the following steps:
[0162] S51, classifying the data category label set after the communication Setting the abnormal classification data category label set , Indicates the setting abnormal classification data category labels, Indicates the total number of abnormal classification data category labels set;
[0163] S52: Classify the data according to the abnormality category label set And the predicted data category label set after communication Determine whether there is any anomaly in the data of the PT / CT line of the wind farm grid connection point in the future;
[0164] After the communication, the predicted data category label set There are data category labels in the abnormal classification data category label set When the wind farm power grid is in the middle, it is necessary to tune the control parameters in the wind farm power grid so that there are no abnormal classification data category labels in the predicted data category labels; otherwise, it is not necessary to tune the control parameters in the wind farm power grid;
[0165] The optimization of the control parameters in the wind farm power grid described in S52 includes the following steps:
[0166] S521. Setting the initial control parameter set of the wind farm power grid , Indicates the setting The initial control parameters of the wind farm grid, Indicates the total number of the set initial control parameters of the wind farm power grid;
[0167] S522. Construct a multiverse population, and set the total number of universes in the multiverse population to , then the multiverse population is expressed as , Indicates universe individuals; the dimension of the multiverse population search space is set to ;
[0168] According to the wind farm power grid initial control parameter set Set the initial position of each universe in the multiverse population and obtain the initial position matrix of the universe ;as follows,
[0169] ;
[0170] Indicates the number of species in the multiverse In the initial position of the universe individual The position component of the dimension;
[0171] The minimum probability of the existence of a wormhole in each individual universe in the multiverse population is set to The maximum probability of the existence of a wormhole is ; Set the development accuracy to , the maximum number of iterations is And the current iteration number is ;
[0172] S523, setting the fitness function of each universe individual in the multiverse population ;as follows,
[0173] ;
[0174] In the formula, Represents the predicted data category label set after the communication The number of data category labels in ; A positive number indicates the offset;
[0175] S524, start iterative operation, in each round of iteration, according to the fitness function Calculating the expansion rate of each individual universe to obtain a universe expansion rate data set; sorting the data in the universe expansion rate data set to obtain a sorted universe expansion rate data set;
[0176] According to the sorted universe expansion rate data set and using the roulette principle, a universe individual is selected from the multiverse population to absorb matter from the universe where the white hole is generated through a black hole;
[0177] At the same time, the minimum probability value of the existence of the wormhole according to the universe individual 、The maximum probability value of the wormhole existence And development accuracy Transferring matter between wormholes and the optimal universe to change location;
[0178] S525, when When , stop the iteration operation and output the optimal parameter set , Indicates The optimal values of the grid control parameters of a wind farm.
[0179] A wind farm primary frequency regulation data control system based on multi-dimensional redundancy, comprising a wind farm grid connection point PT / CT line data acquisition module, an SVM model building module, a first data classification module, a data prediction module, a second data classification module and a control parameter tuning module;
[0180] The wind farm grid connection point PT / CT line data acquisition module is used to set a first data acquisition time point set and a collection data type set and to collect data of the wind farm grid connection point PT / CT line by redundantly configuring the main acquisition device and the backup acquisition device and redundantly configuring the network port channel and the serial port channel;
[0181] The support vector machine model building module is used to collect the third classification label data matrix again to build a support vector machine model to obtain a final support vector machine model;
[0182] The first data classification module is used to use the final support vector machine model to perform classification operations on the communication data classification label data matrix;
[0183] The data prediction module is used to perform a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix;
[0184] The second data classification module is used to use the final support vector machine model to perform classification operations on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set;
[0185] The control parameter tuning module is used to construct a multiverse population to tune the control parameters in the wind farm power grid.
[0186] 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 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.
[0187] The preferred embodiments of the invention disclosed above are only used to help explain the invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the invention, so that those skilled in the art can understand and use the invention well.
Claims
1. A wind farm primary frequency modulation data control method based on multi-dimensional redundancy, characterized in that: The following steps are involved: S1. Redundantly configure the main acquisition device and the backup acquisition device to collect data of the PT / CT line of the wind farm grid connection point to obtain a data matrix before communication; Then, the data in the data matrix before communication is collected by redundantly configuring the network port channel and the serial port channel to obtain the data matrix after communication; S2, classify each data in the data matrix after communication to obtain the data classification label data matrix after communication; S3, performing a classification operation on the post-communication data classification label data matrix to obtain a post-communication classification data matrix set and a post-communication classification data category label set; S4, performing a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix; and performing a classification operation on the data in the post-communication prediction data matrix to obtain a post-communication prediction data category set; and then performing a label determination on the post-communication prediction data category set to obtain a post-communication prediction data category label set; S5. Set an abnormal classification data category label set according to the post-communication classification data category label set and determine whether there is an abnormality in the data of the PT / CT line of the wind farm grid connection point in the future. If there is an abnormality, construct a multiverse population to tune the control parameters in the wind farm power grid to obtain the optimal parameter set; otherwise, there is no need to tune the control parameters in the wind farm power grid.
2. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 1 is characterized in that: The S1 comprises the following steps: S11, setting a first data collection time point set and a collection data type set; S12, setting a main acquisition device and a backup acquisition device; respectively connecting the main acquisition device and the backup acquisition device to the PT / CT lines of the two wind farm grid connection points and configuring redundancy between the main acquisition device and the backup acquisition device; S13, when the main acquisition device is not faulty, data of the PT / CT line of the corresponding wind farm grid connection point is acquired by using the main acquisition device according to the first data acquisition time point set and the acquisition data type set, to obtain a first data matrix; and the first data matrix is used as the pre-communication data matrix; When the main acquisition device fails, the backup acquisition device is used to collect data of the PT / CT line of the corresponding wind farm grid connection point to obtain a second data matrix; and the second data matrix is used as the pre-communication data matrix; S14, constructing a network port channel and a serial port channel for communication between the main acquisition device and the backup acquisition device; the network port channel and the serial port channel are redundantly configured; When there is no failure in the communication between the network port channel and the main acquisition device and the backup acquisition device, the main acquisition device and the backup acquisition device communicate with each other using the network port channel to acquire data in the data matrix before communication to obtain the data matrix after communication; When a communication failure occurs between the network port channel and the main acquisition device and the backup acquisition device, the main acquisition device and the backup acquisition device communicate using the serial port channel to acquire data in the data matrix before communication to obtain the data matrix after communication.
3. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 2 is characterized in that: The S2 comprises the following steps: S21, setting a collection data classification range interval matrix and a corresponding collection data classification label matrix according to the collection data type set; S22, according to the collection data classification range interval matrix and the collection data classification label matrix Classify each data in the data matrix after communication to obtain the data classification label data matrix after communication; S23, constructing an initial support vector machine model; setting multiple time points again to obtain a second data collection time point set; collecting and classifying data of the corresponding wind farm grid connection point PT / CT line using the main collection device according to the second data collection time point set, the collection data type set, the collection data classification label matrix and the collection data classification range interval matrix, to obtain a third classification label data matrix; S24, set the training data ratio to ; According to the training data ratio Divide the data in the third classification label data matrix to obtain the training data matrix and the test data matrix; set the maximum number of iterations to And the training error threshold is ; The training data matrix is input into the initial support vector machine model to train the initial support vector machine model. When the number of training iterations is greater than or equal to When or the training error is less than , stopping the training of the initial support vector machine model to obtain a trained support vector machine model; S25. Set a test accuracy threshold, input the test data matrix into the trained support vector machine model for classification, and obtain a classification result; compare the classification result with the classification label corresponding to the pre-set test data matrix to obtain the classification accuracy; when the classification accuracy is greater than or equal to the test accuracy threshold, use the trained support vector machine model as the final support vector machine model; otherwise, repeat S24 and S25 until the classification accuracy is greater than or equal to the test accuracy threshold.
4. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 3 is characterized in that: The S3 comprises the following steps: S31, using the final support vector machine model to perform a classification operation on the post-communication data classification label data matrix to obtain a post-communication classification data matrix set; S32. Obtain a post-communication classified data category label set according to the post-communication classified data matrix set.
5. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 4 is characterized in that: The S4 comprises the following steps: S41, setting a predicted future time point set; performing a prediction operation on the post-communication data matrix using a moving average method according to the predicted future time point set to obtain a post-communication predicted data matrix; Classify the data in the post-communication prediction data matrix according to the collected data classification range interval matrix and the collected data classification label matrix to obtain a post-communication prediction data classification matrix; S42, using the final support vector machine model to perform classification operations on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set; S43, performing label determination on the post-communication predicted data category set according to the post-communication classified data matrix set and the post-communication classified data category label set to obtain the post-communication predicted data category label set.
6. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 5 is characterized in that: The S43 comprises the following steps: S431, respectively calculating the central data of each classification data matrix in the post-communication classification data matrix set and the post-communication prediction data category set to obtain a post-communication classification central data matrix and a post-communication prediction category central data matrix; S432. Calculate the Euclidean distance from each row of data in the post-communication prediction category center data matrix to each row of data in the post-communication classification center data matrix to obtain a Euclidean distance data matrix; classify the data in the post-communication prediction category center data matrix corresponding to the smallest Euclidean distance data in each row in the Euclidean distance data matrix into the classification data of the corresponding post-communication classification center data matrix, and simultaneously obtain the post-communication prediction data category label set in conjunction with the post-communication classification data category label set.
7. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 6, characterized in that: The S5 comprises the following steps: S51, setting an abnormal classification data category label set according to the classification data category label set after communication; S52. Determine whether there is an abnormality in the data of the PT / CT line of the wind farm grid connection point in the future time according to the abnormal classification data category label set and the post-communication predicted data category label set; when there is a data category label in the post-communication predicted data category label set that belongs to the abnormal classification data category label set, it is necessary to adjust the control parameters in the wind farm power grid so that there is no abnormal classification data category label in the predicted data category labels; otherwise, there is no need to adjust the control parameters in the wind farm power grid.
8. The method for controlling primary frequency modulation data of a wind farm based on multi-dimensional redundancy according to claim 7, characterized in that: The optimization of the control parameters in the wind farm power grid described in S52 includes the following steps: S521, setting an initial control parameter set of the wind farm power grid; S522, construct a multiverse population; set the initial position of each universe in the multiverse population according to the initial control parameter set of the wind farm power grid to obtain the universe initial position matrix; set the minimum probability value of the existence of wormholes in each individual universe in the multiverse population and the maximum probability value of the existence of wormholes; set the development accuracy, and the maximum number of iterations is And the current number of iterations is ; S523, setting the fitness function of each universe individual in the multiverse population; S524, start iterative operation, in each round of iteration, calculate the expansion rate of each individual universe according to the fitness function to obtain a universe expansion rate data set; sort the data in the universe expansion rate data set to obtain a sorted universe expansion rate data set; select a universe individual from the multiverse population according to the sorted universe expansion rate data set and adopt the roulette principle to absorb matter from the universe where the white hole is generated through a black hole; at the same time, the universe individual transfers matter between the wormhole and the optimal universe according to the minimum probability value of the wormhole existence, the maximum probability value of the wormhole existence and the development accuracy to change the position; S525, when When , the iteration operation is stopped and the optimal parameter set is output.
9. A system for implementing the wind farm primary frequency modulation data control method based on multi-dimensional redundancy as claimed in any one of claims 1 to 8, characterized in that: It includes a wind farm grid-connected point PT / CT line data acquisition module, a support vector machine model building module, a first data classification module, a data prediction module, a second data classification module and a control parameter tuning module; The wind farm grid connection point PT / CT line data acquisition module is used to set a first data acquisition time point set and a collection data type set and to collect data of the wind farm grid connection point PT / CT line by redundantly configuring the main acquisition device and the backup acquisition device and redundantly configuring the network port channel and the serial port channel; The support vector machine model building module is used to collect the third classification label data matrix again to build a support vector machine model to obtain a final support vector machine model; The first data classification module is used to use the final support vector machine model to perform classification operations on the communication data classification label data matrix; The data prediction module is used to perform a prediction operation on the post-communication data matrix to obtain a post-communication prediction data matrix; The second data classification module is used to use the final support vector machine model to perform classification operations on the data in the post-communication prediction data classification matrix to obtain a post-communication prediction data category set; The control parameter tuning module is used to construct a multiverse population to tune the control parameters in the wind farm power grid.
