Method, device, equipment and medium for predicting primary frequency regulation capacity of thermal power units
Through the combination of fuzzy clustering algorithm and cosine distance matrix, the problem of large calculation amount and low accuracy in primary frequency regulation capacity prediction of thermal power units is solved, and more efficient and accurate prediction results are achieved.
Patent Information
- Application Number
- CN202210715709.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-23
AI Technical Summary
Existing methods for predicting the primary frequency regulation compensation capacity of thermal power units are computationally intensive and have low prediction accuracy, making it difficult to accurately support power grid dispatching.
The fuzzy clustering algorithm is used to divide the historical operating data of the primary frequency regulation action of the thermal power unit into k categories of operating conditions, build a prediction cluster center model, and generate a weight matrix through characteristic variables and cosine distance to predict the primary frequency regulation capacity.
It reduces the amount of calculation and improves the prediction accuracy. By selecting multi-dimensional feature parameters and fuzzy clustering algorithm, it reduces the problem of real-time collection and enhances the accuracy of the prediction results.
Smart Images

Figure CN115099486B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power grid source coordination, and in particular to a method, device, equipment and medium for predicting the primary frequency regulation capacity of a thermal power unit. Background Art
[0002] The construction of a new power system based on new energy sources has reduced the power system's rotational inertia level and anti-disturbance capability, weakened the frequency stability of the power grid, and increased the difficulty of system frequency regulation. Accurately predicting the primary frequency regulation compensation capability of thermal power units can effectively provide support information for power grid dispatching and alleviate the current dispatching pressure.
[0003] At present, the methods for predicting the primary frequency regulation compensation capability of thermal power units mainly include the following: The first is the prediction of the primary frequency regulation capability based on the wide-area phasor measurement system. From the time dimension and the frequency difference dimension, the parameters of each historical frequency disturbance action adjustment process are weighted to predict the primary frequency regulation capability of the unit. However, this method not only has a huge amount of calculation, but also has low prediction accuracy. The second is the prediction method of the primary frequency regulation capability based on the deep belief network. The 8-dimensional feature parameters are selected as the model input. Therefore, the parameter selection is more complicated. The poor real-time acquisition of some parameters will also affect the prediction accuracy of the model. The third is the prediction based on the historical information of the primary frequency regulation remote test. By collecting historical data, the value of 0s is used to reflect the operating status of the unit, and the value of 1 to 60s is used to reflect the response capability of the unit. At the same time, the data of three parameters, active power, main control instruction and main steam pressure, are selected to characterize the primary frequency regulation operating conditions of the unit. However, due to the simple classification and fast response speed of DEH, the scheme leads to large prediction deviation in the early stage, and the prediction accuracy cannot be guaranteed. Summary of the invention
[0004] The purpose of the present application is to provide a method, device, equipment and medium for predicting the primary frequency regulation capacity of a thermal power unit, so as to solve the problem that the existing primary frequency regulation capacity has large calculation amount and low prediction accuracy.
[0005] To achieve the above objectives, the present application provides a method for predicting the primary frequency regulation capacity of a thermal power unit, comprising:
[0006] Obtain historical operating data of the first characteristic variable and the second characteristic variable in a frequency regulation action of a thermal power unit as training samples;
[0007] The training samples are divided into k types of operating conditions using fuzzy clustering algorithm, and a prediction cluster center model of the primary frequency regulation capacity of thermal power units is constructed based on the k types of operating conditions.
[0008] Based on the first characteristic variable and the second characteristic variable in the prediction cluster center model, a first matrix and a second matrix are constructed respectively; the cosine distance between two elements in the first matrix is calculated to generate a distance matrix;
[0009] Obtain the sample to be predicted, calculate the cosine distance between the sample to be predicted and the first matrix, and generate a weight matrix based on the calculation result and the distance matrix;
[0010] According to the weight matrix and the second matrix, a prediction result of the primary frequency modulation capacity of the sample to be predicted is obtained.
[0011] Furthermore, the first characteristic variable includes occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variable includes actual regulation capacity and actual power contribution rate.
[0012] Furthermore, the method of using a fuzzy clustering algorithm to divide the training samples into k types of working conditions includes:
[0013] The k-means algorithm is used to divide the training samples into k categories of first working conditions, and the mean, variance and weight of each category of first working condition are calculated;
[0014] Based on the mean, variance and weight of each type of first working condition, the EM algorithm is used for iterative calculation to generate the mean, variance and weight under the corresponding optimal estimation parameters, and obtain k types of second working conditions;
[0015] According to the k-type second operating conditions, a prediction cluster center model for the primary frequency regulation capacity of thermal power units is constructed.
[0016] Further, the calculating the cosine distances between two elements in the first matrix to generate a distance matrix includes:
[0017] The cosine distance between the vector corresponding to the i-th historical primary frequency modulation capacity cluster center and the vector corresponding to the j-th historical primary frequency modulation capacity cluster center in the first matrix is calculated.
[0018] Furthermore, the obtaining of the sample to be predicted, calculating the cosine distance between the sample to be predicted and the first matrix, and generating a weight matrix according to the calculation result and the distance matrix, includes:
[0019] Acquire current running data of the first characteristic variable to form a first vector;
[0020] Calculate the cosine distance between each element in the first vector and the element corresponding to each cluster center condition in the first matrix to generate a second vector;
[0021] The weight matrix is generated by inverting the distance matrix and multiplying it by the second vector on the right.
[0022] Furthermore, after generating the weight matrix, the method further includes:
[0023] The weight matrix is corrected by using a correction matrix; the correction matrix is obtained according to an expert prediction method or a hierarchical analysis method;
[0024] The modified weight matrix is normalized, including dividing each element in the modified weight matrix by the sum of all elements to obtain a normalized weight matrix.
[0025] The present application also provides a device for predicting the primary frequency regulation capacity of a thermal power unit, comprising:
[0026] A sample acquisition unit, used to acquire historical operation data of the first characteristic variable and the second characteristic variable in a frequency modulation action of the thermal power unit as a training sample;
[0027] The operating condition division unit is used to divide the training samples into k types of operating conditions by using a fuzzy clustering algorithm, and to construct a prediction cluster center model of the primary frequency regulation capacity of the thermal power unit according to the k types of operating conditions;
[0028] A distance matrix construction unit is used to construct a first matrix and a second matrix respectively based on the first characteristic variable and the second characteristic variable in the prediction cluster center model; calculate the cosine distance between two elements in the first matrix to generate a distance matrix;
[0029] A weight matrix construction unit, used to obtain a sample to be predicted, calculate the cosine distance between the sample to be predicted and the first matrix, and generate a weight matrix according to the calculation result and the distance matrix;
[0030] The prediction unit is used to obtain the prediction result of the primary frequency modulation capacity of the sample to be predicted according to the weight matrix and the second matrix.
[0031] Furthermore, the first characteristic variable includes occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variable includes actual regulation capacity and actual power contribution rate.
[0032] The present application also provides a terminal device, including:
[0033] one or more processors;
[0034] A memory, coupled to the processor, for storing one or more programs;
[0035] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any one of the above items.
[0036] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any one of the above items is implemented.
[0037] Compared with the prior art, the beneficial effects of this application are:
[0038] 1) This application selects 10 parameters, including occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening, as multi-dimensional feature parameter vectors for predicting a frequency modulation prediction event. The parameters are selected by comprehensively considering the occurrence time of the event, the actual working conditions of the unit at the time of occurrence, and the operating conditions of the DEH, which are easier to obtain in the DCS system, so there is no problem of real-time collection.
[0039] 2) Fuzzy clustering algorithms such as k-means clustering algorithm and EM algorithm are used to divide the operating conditions, reducing the amount of calculation for primary frequency regulation capacity prediction.
[0040] 3) When a new frequency regulation event occurs, the multi-dimensional characteristic parameter vector of the event is matched with the multi-class typical operating condition characteristic parameter vectors of the trained historical unit frequency regulation events through a similarity program, and the cosine distance between the event and the multi-class typical operating condition characteristic parameter vectors is calculated. Then, by calculating the similarity weight, the prediction result of the current frequency regulation event is fitted, and the actual regulation capacity of 0 to 60 seconds and the power contribution rate of 0 to 60 seconds are selected as variables to characterize the prediction results, which ultimately improves the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the implementation manner will be briefly introduced below. Obviously, the drawings described below are only some implementation manners of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 It is a flow chart of a method for predicting the primary frequency regulation capacity of a thermal power unit provided in a certain embodiment of the present application;
[0043] Figure 2 yes Figure 1 Schematic diagram of the process of the sub-steps of step S20;
[0044] Figure 3 It is a structural schematic diagram of a device for predicting the primary frequency regulation capacity of a thermal power unit provided in a certain embodiment of the present application;
[0045] Figure 4 It is a structural diagram of a terminal device provided in a certain embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.
[0048] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0049] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0050] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.
[0051] See also Figure 1 In one embodiment of the present application, a method for predicting the primary frequency regulation capacity of a thermal power unit is provided. Figure 1 As shown, the method for predicting the primary frequency regulation capacity of a thermal power unit includes steps S10 to S50. The specific steps are as follows:
[0052] S10, obtaining historical operation data of the first characteristic variable and the second characteristic variable in a frequency modulation action of the thermal power unit as training samples.
[0053] In this embodiment, a historical frequency modulation event under normal operating state of the unit is firstly screened out to obtain the main parameters of the event, namely, the first characteristic variable and the second characteristic variable.
[0054] Specifically, the first characteristic variable includes occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variable includes actual regulation capacity and actual power contribution rate. Among them, the first characteristic variable is used to characterize the primary frequency regulation performance of the thermal power unit, and the second characteristic variable is used to characterize the result of the primary frequency regulation capacity.
[0055] It should be noted that the actual regulation capacity and the actual power contribution rate are preferably 0-60 seconds actual regulation capacity and 0-60 seconds power contribution rate, and the parameters selected in this application can be directly obtained in the DCS system, so there is no problem of real-time collection.
[0056] In a preferred embodiment, after obtaining the operating data of the first characteristic variable and the second characteristic variable, normalization processing is also required, the purpose of which is to divide the input data and the output data uniformly into a specific interval of [-1,1] to facilitate calculations in subsequent processes.
[0057] Specifically, the normalization process is as follows:
[0058] Occurrence time: The normalization process of occurrence time is different from other parameters. It needs to first subtract the occurrence time of each historical event from the occurrence time of the predicted event to obtain a unified unit time vector, and then use the vector normalization principle to add each element and divide it by the sum to get the normalized result.
[0059] Unit load and main steam pressure: Convert to per unit quantity for normalization. Specifically, divide by the corresponding rated unit capacity and rated main steam pressure respectively.
[0060] Valve opening: the first valve opening GV1, the second valve opening GV2, the third valve opening GV3 and the fourth valve opening GV4, and the 0-60 second power contribution rate are originally numbers between [0,1] and do not require additional processing.
[0061] The frequency deviation, theoretical regulation capacity, and theoretical contribution power are directly normalized through the principle of vector normalization. Each parameter is combined into a vector and summed up. Each element is divided by the sum to obtain the normalized result.
[0062] The normalized result of the actual regulating capacity from 0 to 60 seconds is obtained by calculating the ratio with the theoretical regulating capacity.
[0063] S20. Using a fuzzy clustering algorithm, the training samples are divided into k types of operating conditions, and a prediction cluster center model of the primary frequency regulation capacity of the thermal power unit is constructed according to the k types of operating conditions.
[0064] See also Figure 2 , Figure 2FIG. 4 is a schematic diagram of the sub-step flow chart of step S20. Figure 2 As shown, step S20 further includes the following sub-steps:
[0065] S201, using the k-means algorithm to divide the training samples into k types of first working conditions, and calculating the mean, variance and weight of each type of first working condition;
[0066] S202, based on the mean, variance and weight of each type of first working condition, using the EM algorithm for iterative calculation, generating the mean, variance and weight under the corresponding optimal estimation parameters, and obtaining k types of second working conditions;
[0067] S203. According to the k-type second operating conditions, a prediction cluster center model of the primary frequency regulation capacity of the thermal power unit is constructed.
[0068] S30, constructing a first matrix and a second matrix respectively based on the first characteristic variable and the second characteristic variable in the prediction cluster center model; calculating the cosine distance between each pair of elements in the first matrix to generate a distance matrix.
[0069] In this step, the first characteristic variable in the k-type operating condition, that is, the occurrence time of a frequency regulation event, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, and regulating valve opening GV1\GV2\GV3\GV4, is used to form a multidimensional characteristic parameter matrix, which is recorded as the first matrix (A matrix). The second characteristic variable in the k-type operating condition, that is, the actual regulation capacity of 0 to 60 seconds and the power contribution rate matrix of 0 to 60 seconds that characterize the prediction results, is recorded as the second matrix (B matrix). Each element of the B matrix is the parameter trend of 0 to 60 seconds.
[0070] In a specific implementation manner, calculating the cosine distances between two elements in the first matrix to generate a distance matrix includes:
[0071] The cosine distance between the vector corresponding to the i-th historical primary frequency modulation capacity cluster center and the vector corresponding to the j-th historical primary frequency modulation capacity cluster center in the first matrix is calculated.
[0072] Furthermore, in this step, the distance matrix G(k×k) is obtained by calculating the cosine distance. The element G of the G matrix is ij It is equal to the cosine distance between the two vectors of the cluster center of the i-th historical frequency regulation capacity and the cluster center of the j-th historical frequency regulation capacity in matrix A. The cosine distance is defined as follows:
[0073] Assuming an object has d attributes, the object can be regarded as a point in d-dimensional space, x i =(x i1 ,x i2 ,…,x id ), xj =(x j1 ,x j2 ,…,x jd ). The cosine distance is used to measure the distance between two vectors, and it is defined as follows:
[0074]
[0075] S40, obtaining a sample to be predicted, calculating a cosine distance between the sample to be predicted and the first matrix, and generating a weight matrix according to the calculation result and the distance matrix.
[0076] Specifically, step S40 further includes:
[0077] Acquire current running data of the first characteristic variable to form a first vector;
[0078] Calculate the cosine distance between each element in the first vector and the element corresponding to each cluster center condition in the first matrix to generate a second vector;
[0079] The weight matrix is generated by inverting the distance matrix and multiplying it by the second vector on the right.
[0080] In this embodiment, the sample to be predicted is first obtained. For example, the current unit obtains a set of data (parameter 1, parameter 2, parameter 3, parameter 4, parameter 5, parameter 6, parameter 7, parameter 8, parameter 9, parameter 10), which is called the first vector X, and is used as the sample to be predicted. Then, the cosine distance between it and each cluster center working condition in the matrix A is calculated to obtain the vector X'(k*1). Finally, the distance matrix G obtained in step S30 is inverted and right-multiplied by the vector X' to obtain the weight matrix w0(k×1).
[0081] In a preferred embodiment, in order to improve the accuracy of the prediction result, after obtaining the weight matrix, it also includes:
[0082] The weight matrix is corrected by using a correction matrix; the correction matrix is obtained according to an expert prediction method or a hierarchical analysis method;
[0083] The modified weight matrix is normalized, including dividing each element in the modified weight matrix by the sum of all elements to obtain a normalized weight matrix.
[0084] It can be understood that in this step, the correction matrix S = (s1, s2, s3, s4, s5, s6, s7, s8, s9, s10) can be used to correct w0, that is, w0 is multiplied by the elements in the same position in (s1, s2, s3, s4, s5, s6, s7, s8, s9, s10) to obtain a new matrix w0'. Among them, the correction matrix can be obtained by expert prediction method (expert brainstorming method) or hierarchical analysis method. The dispatch specialists and power experts have a deeper understanding of the performance of primary frequency regulation. The opinions of experts can be taken into account through the correction matrix, that is, the weight value is corrected to a value that is more in line with the actual application scenario.
[0085] Furthermore, w0' is finally normalized to obtain the final weight matrix, called w. The normalization process is as follows:
[0086] Add up all the elements in w0' and divide each element by the sum to get the normalized result.
[0087] S50: Obtain a prediction result of a primary frequency modulation capacity of the sample to be predicted according to the weight matrix and the second matrix.
[0088] In this step, the B matrix of each cluster center is weighted according to different weights to obtain the actual regulation capacity of 0 to 60 seconds and the predicted value of the power contribution rate of 0 to 60 seconds.
[0089] In summary, this application selects 10 parameters, including occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening, as a multi-dimensional feature parameter vector for predicting a frequency modulation prediction event. Not only is it easy to obtain the parameters, but there is also no real-time problem; by using fuzzy clustering algorithms such as k-means clustering algorithm and EM algorithm to divide the working conditions, the amount of calculation for predicting the frequency modulation regulation capacity is reduced. By introducing the cosine distance and weight correction method, the actual regulation capacity of 0 to 60 seconds and the power contribution rate of 0 to 60 seconds are selected as variables to characterize the prediction results, thereby improving the final prediction accuracy.
[0090] See also Figure 3 A certain embodiment of the present application further provides a device for predicting the primary frequency regulation capacity of a thermal power unit, comprising:
[0091] The sample acquisition unit 01 is used to acquire historical operation data of the first characteristic variable and the second characteristic variable in a frequency modulation action of the thermal power unit as training samples;
[0092] The operating condition division unit 02 is used to divide the training samples into k types of operating conditions by using a fuzzy clustering algorithm, and to construct a prediction cluster center model of the primary frequency regulation capacity of the thermal power unit according to the k types of operating conditions;
[0093] The distance matrix construction unit 03 is used to construct a first matrix and a second matrix respectively based on the first characteristic variable and the second characteristic variable in the prediction cluster center model; calculate the cosine distance between each two elements in the first matrix to generate a distance matrix;
[0094] The weight matrix construction unit 04 is used to obtain the sample to be predicted, calculate the cosine distance between the sample to be predicted and the first matrix, and generate a weight matrix according to the calculation result and the distance matrix;
[0095] The prediction unit 05 is used to obtain a prediction result of the primary frequency modulation capacity of the sample to be predicted according to the weight matrix and the second matrix.
[0096] In a certain embodiment, the first characteristic variable includes occurrence time, frequency deviation, unit load, theoretical regulation capacity, theoretical contribution power, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variable includes actual regulation capacity and actual power contribution rate.
[0097] In one embodiment, the operating condition division unit 02 is further used for:
[0098] The k-means algorithm is used to divide the training samples into k categories of first working conditions, and the mean, variance and weight of each category of first working condition are calculated;
[0099] Based on the mean, variance and weight of each type of first working condition, the EM algorithm is used for iterative calculation to generate the mean, variance and weight under the corresponding optimal estimation parameters, and obtain k types of second working conditions;
[0100] According to the k-type second operating conditions, a prediction cluster center model for the primary frequency regulation capacity of thermal power units is constructed.
[0101] In one embodiment, the distance matrix construction unit 03 is further used to calculate the cosine distance between the vector corresponding to the i-th historical primary frequency regulation capacity cluster center and the vector corresponding to the j-th historical primary frequency regulation capacity cluster center in the first matrix.
[0102] In one embodiment, the weight matrix construction unit 04 is further used for:
[0103] Acquire current running data of the first characteristic variable to form a first vector;
[0104] Calculate the cosine distance between each element in the first vector and the element corresponding to each cluster center condition in the first matrix to generate a second vector;
[0105] The weight matrix is generated by inverting the distance matrix and multiplying it by the second vector on the right.
[0106] In one embodiment, the device for predicting the primary frequency regulation capacity of a thermal power unit further includes a correction unit for:
[0107] The weight matrix is corrected by using a correction matrix; the correction matrix is obtained according to an expert prediction method or a hierarchical analysis method;
[0108] The modified weight matrix is normalized, including dividing each element in the modified weight matrix by the sum of all elements to obtain a normalized weight matrix.
[0109] It can be understood that the primary frequency regulation capacity prediction device of a thermal power unit provided in this embodiment is used to execute the primary frequency regulation capacity prediction method of a thermal power unit as described in any of the above embodiments, and achieve the same technical effect as the method, which will not be further elaborated here.
[0110] See also Figure 4 , a certain embodiment of the present application provides a terminal device, including:
[0111] one or more processors;
[0112] A memory, coupled to the processor, for storing one or more programs;
[0113] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for predicting the primary frequency regulation capacity of a thermal power unit as described above.
[0114] The processor is used to control the overall operation of the terminal device to complete all or part of the steps of the above-mentioned method for predicting the primary frequency regulation capacity of the thermal power unit. The memory is used to store various types of data to support the operation of the terminal device, and these data may include, for example, instructions for any application or method used to operate on the terminal device, and data related to the application. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0115] In an exemplary embodiment, the terminal device can be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), controllers, microcontrollers, microprocessors or other electronic components, and is used to execute the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any of the above embodiments, and achieve the technical effect consistent with the above method.
[0116] In another exemplary embodiment, a computer-readable storage medium including a computer program is also provided, and when the computer program is executed by a processor, the steps of the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any of the above embodiments are implemented. For example, the computer-readable storage medium may be the above-mentioned memory including the computer program, and the above-mentioned computer program may be executed by a processor of a terminal device to complete the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any of the above embodiments, and achieve the technical effect consistent with the above-mentioned method.
[0117] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.
Claims
1. A method for predicting the primary frequency regulation capacity of a thermal power unit, characterized in that: include: Obtain historical operating data of the first characteristic variable and the second characteristic variable in a frequency regulation operation of a thermal power unit as training samples; The training samples are divided into k types of operating conditions using fuzzy clustering algorithm, and a cluster center model for predicting the primary frequency regulation capacity of thermal power units is constructed based on the k types of operating conditions. Based on the first characteristic variable and the second characteristic variable in the prediction cluster center model, a first matrix and a second matrix are constructed respectively; the cosine distance between each element in the first matrix is calculated to generate a distance matrix; Obtain the sample to be predicted, calculate the cosine distance between the sample to be predicted and the first matrix, and generate a weight matrix based on the calculation result and the distance matrix; Obtaining a prediction result of the primary frequency modulation capacity of the sample to be predicted according to the weight matrix and the second matrix; The first characteristic variables include occurrence time, frequency deviation, unit load, theoretical regulating capacity, theoretical contributed electricity, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variables include actual regulating capacity and actual electricity contribution rate; The step of obtaining a sample to be predicted, calculating a cosine distance between the sample to be predicted and the first matrix, and generating a weight matrix based on the calculation result and the distance matrix includes: Obtaining current running data of the first characteristic variable to form a first vector; Calculate the cosine distance between each element in the first vector and the element corresponding to each cluster center condition in the first matrix to generate a second vector; Invert the distance matrix and multiply it by the second vector to generate the weight matrix; After generating the weight matrix, the method further includes: The weight matrix is corrected using a correction matrix obtained according to an expert prediction method or a hierarchical analysis method; The modified weight matrix is normalized, including dividing each element in the modified weight matrix by the sum of all elements to obtain a normalized weight matrix.
2. The method for predicting the primary frequency regulation capacity of a thermal power unit according to claim 1, characterized in that: The fuzzy clustering algorithm is used to divide the training samples into k types of working conditions, including: The k-means algorithm is used to divide the training samples into k categories of first working conditions, and the mean, variance and weight of each category of first working conditions are calculated; Based on the mean, variance and weight of each type of first working condition, the EM algorithm is used to iteratively calculate and generate the mean, variance and weight under the corresponding optimal estimation parameters to obtain k types of second working conditions; According to the k-type second operating conditions, a prediction cluster center model for the primary frequency regulation capacity of thermal power units is constructed.
3. The method for predicting the primary frequency regulation capacity of a thermal power unit according to claim 1, characterized in that: The step of calculating the cosine distance between each pair of elements in the first matrix to generate a distance matrix includes: The cosine distance between the vector corresponding to the center of the i-th historical frequency regulation capacity cluster and the vector corresponding to the center of the j-th historical frequency regulation capacity cluster in the first matrix is calculated.
4. A device for predicting the primary frequency regulation capacity of a thermal power unit, characterized in that: include: A sample acquisition unit is used to acquire historical operating data of the first characteristic variable and the second characteristic variable in a frequency regulation operation of the thermal power unit as a training sample; An operating condition division unit is used to divide the training samples into k types of operating conditions using a fuzzy clustering algorithm, and to construct a prediction cluster center model for the primary frequency regulation capacity of the thermal power unit based on the k types of operating conditions; A distance matrix construction unit is used to construct a first matrix and a second matrix based on the first characteristic variable and the second characteristic variable in the prediction cluster center model, respectively; calculate the cosine distance between each element in the first matrix to generate a distance matrix; A weight matrix construction unit is used to obtain a sample to be predicted, calculate the cosine distance between the sample to be predicted and the first matrix, and generate a weight matrix based on the calculation result and the distance matrix; A prediction unit, configured to obtain a prediction result of a primary frequency modulation capacity of a sample to be predicted based on the weight matrix and the second matrix; The first characteristic variables include occurrence time, frequency deviation, unit load, theoretical regulating capacity, theoretical contributed electricity, main steam pressure, first regulating valve opening, second regulating valve opening, third regulating valve opening and fourth regulating valve opening; the second characteristic variables include actual regulating capacity and actual electricity contribution rate; The weight matrix construction unit is further used to: Obtaining current running data of the first characteristic variable to form a first vector; Calculate the cosine distance between each element in the first vector and the element corresponding to each cluster center condition in the first matrix to generate a second vector; Invert the distance matrix and multiply it by the second vector to generate the weight matrix; The device for predicting the primary frequency regulation capacity of a thermal power unit further includes a correction unit, which is configured to: The weight matrix is corrected using a correction matrix obtained according to an expert prediction method or a hierarchical analysis method; The modified weight matrix is normalized, including dividing each element in the modified weight matrix by the sum of all elements to obtain a normalized weight matrix.
5. A terminal device, characterized in that: include: one or more processors; a memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for predicting the primary frequency regulation capacity of a thermal power unit as described in any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for predicting the primary frequency regulation capacity of a thermal power unit according to any one of claims 1 to 3 is implemented.
