Steam turbine initial pressure optimization method, device, equipment and storage medium
By constructing a heat rate matrix and a neural network prediction model, combined with genetic algorithm optimization, the initial pressure of the steam turbine is accurately determined, which solves the problem of difficulty in accurately determining the initial pressure in the existing technology and improves the operating economy and energy-saving effect of thermal power units.
Patent Information
- Application Number
- CN202010720947.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-07-23
AI Technical Summary
It is difficult to accurately determine the initial pressure of the steam turbine with existing technology, resulting in poor operating economy and energy saving effects of thermal power units.
By obtaining the operation history data of thermal power units, extracting heat rate characteristic variables, constructing a heat rate matrix and performing normalization processing, establishing a neural network prediction model, and combining genetic algorithms to optimize the neural network structure to determine the optimal heat rate. prediction model to optimize the turbine initial pressure.
The optimal steam turbine initial pressure is accurately determined, which improves the operating economy and energy-saving effect of thermal power units and avoids the computational complexity and high cost problems in existing methods.
Smart Images

Figure CN111859807B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of thermal power generation, and in particular to a method, device, equipment and storage medium for optimizing initial pressure of a steam turbine. Background Art
[0002] Normally, affected by the environment and the thermal power unit's own factors, the thermal power unit will not operate under the designed conditions, but deviate from the rated or economic conditions. This means that the cycle efficiency of the thermal power unit is reduced. To improve the thermal economy of the thermal power unit, it is required that the thermal power unit has the best operating state under different load conditions, that is, to determine the optimal steam pressure (i.e., turbine initial pressure) of the thermal power unit under variable conditions. For a given load, there is a corresponding initial pressure optimization range. Each initial pressure value within this range corresponds to a different unit heat rate, and the main steam pressure corresponding to the minimum heat rate is the optimal initial pressure. Finding the optimal initial pressure of the thermal power unit under different loads is of great significance to improving the thermal economy and energy saving of the thermal power unit.
[0003] At present, the commonly used methods for optimizing the initial pressure of steam turbines in thermal power units include theoretical optimization method and experimental optimization method. However, the theoretical optimization method needs to use mass and energy balance equations to establish a complex theoretical calculation model for the whole operating condition of the unit. Not only is the amount of calculation large, but the linearization and empirical fitting of certain parameters in the heat rate calculation process also make the model accuracy low, making it difficult to promote in practice. Although the experimental optimization method is easy to implement, due to experimental cost considerations, the pressure selection at the typical load point cannot be infinitely selected. Therefore, the determined optimal initial pressure is only the optimal value of the selected pressure, not necessarily the optimal value for the unit operation, and has certain limitations.
[0004] Therefore, there is essentially a technical problem of how to accurately determine the optimal turbine initial pressure and improve the operating economy of thermal power units.
[0005] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present invention is to propose a method, device, equipment and storage medium for optimizing the initial pressure of a steam turbine, aiming to solve the technical problem of how to accurately determine the optimal initial pressure of a steam turbine and improve the operating economy of a thermal power unit.
[0007] To achieve the above object, the present invention provides a method for optimizing initial pressure of a steam turbine, the method comprising the following steps:
[0008] Acquire operation history data of the thermal power unit, extract the heat rate from the operation history data and determine the heat rate characteristic variables related to the heat rate, construct a heat rate matrix and perform normalization processing to generate an "input-output" matrix, and divide the matrix data into training set data, validation set data and test set data according to a preset ratio;
[0009] Establishing and training a heat rate neural network prediction model based on the training set data and the validation set data, optimizing the neural network structure using a genetic algorithm combined with the test set data, and determining an optimal heat rate neural network prediction model;
[0010] Determine the operating range of the thermal power unit under the preset load and the characteristic variable value corresponding to any initial pressure value in the operating range, and generate a characteristic variable matrix, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different initial pressure values, use a genetic algorithm to optimize the initial pressure of the turbine, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the initial pressure of the turbine.
[0011] Preferably, the acquisition of operation history data of the thermal power unit, extraction of heat rate from the operation history data and determination of heat rate characteristic variables related to the heat rate, construction of a heat rate matrix and normalization processing, generation of an "input-output" matrix, and division of the matrix data into training set data, validation set data and test set data according to a preset ratio specifically includes:
[0012] Acquiring operation history data of the thermal power unit, extracting heat rate from the operation history data, and determining heat rate characteristic variables related to the heat rate;
[0013] constructing a heat rate matrix according to the heat rate and the heat rate characteristic variable;
[0014] Normalizing the heat rate matrix to generate an "input-output" matrix;
[0015] The matrix data in the "input-output" matrix is obtained, and the matrix data is divided into training set data, verification set data and test set data according to a preset ratio.
[0016] Preferably, the heat rate neural network prediction model is established and trained according to the training set data and the validation set data, and a genetic algorithm is used in combination with the test set data to optimize the neural network structure to determine the optimal heat rate neural network prediction model, which specifically includes:
[0017] Randomly generate multiple sample individuals, form a sample optimization population based on the sample individuals, and determine the current sample individual;
[0018] Obtaining the number of hidden layers and neurons according to the current sample individuals, and building an initial neural network model, training the initial neural network model according to the training set data and the validation set data, and obtaining a heat rate neural network prediction model;
[0019] The fitness value corresponding to the current sample individual is determined according to the test set data and the heat rate neural network prediction model, and a genetic algorithm is used in combination with the fitness value to optimize the neural network structure to determine the optimal heat rate neural network prediction model.
[0020] Preferably, the randomly generating a plurality of sample individuals, forming a sample optimization population according to the sample individuals, and determining the current sample individual specifically includes:
[0021] Randomly generate multiple sample individuals, where each sample individual represents a set of feasible solutions for the number of hidden layers of the neural network and the number of neurons in each layer;
[0022] Forming an initial sample optimization population according to the sample individuals;
[0023] The initial sample optimization population is used as the current sample optimization population, and the sample individuals in the current sample optimization population are used as the current sample individuals.
[0024] Preferably, obtaining the number of hidden layers and neurons according to the current sample individuals, building an initial neural network model, training the initial neural network model according to the training set data and the validation set data, and obtaining a heat rate neural network prediction model specifically includes:
[0025] Decoding the current sample individual to obtain the number of hidden layers and the number of neurons after decoding;
[0026] The number of hidden layers and neurons after decoding are used to build an initial neural network model, wherein the number of neurons in the input layer of the neural network corresponding to the initial neural network model is the number of characteristic variables of the heat rate, and the number of neurons in the output layer of the neural network is 1;
[0027] The initial neural network model is trained according to the training set data and the validation set data to obtain a heat rate neural network prediction model.
[0028] Preferably, determining the fitness value corresponding to the current sample individual according to the test set data and the heat rate neural network prediction model, using a genetic algorithm combined with the fitness value to optimize the neural network structure, and determining the optimal heat rate neural network prediction model specifically includes:
[0029] Inputting the test set data into the heat rate neural network prediction model to perform heat rate prediction to obtain a heat rate prediction result;
[0030] Performing a denormalization process on the heat rate prediction result to obtain a heat rate prediction value;
[0031] extracting actual heat rate values from the test set data;
[0032] Calculating a root mean square error value according to the heat rate prediction value and the actual heat rate value;
[0033] Determine the fitness value corresponding to the current sample individual according to the root mean square error value;
[0034] Determine whether the current number of iterations of the sample optimization population is equal to the preset number of iterations of the sample optimization population threshold;
[0035] When the number of iterations of the current sample optimal population is not equal to the preset sample optimal population iteration number threshold, the current sample individuals are selected, crossed and mutated to generate a candidate sample optimal population, the candidate sample optimal population is used as a new current sample optimal population, and the step of using the sample individuals in the current sample optimal population as the current sample individuals is returned;
[0036] When the number of iterations of the current sample optimization population is equal to the preset sample optimization population iteration number threshold, the fitness value corresponding to the current sample individual is used as the first fitness value;
[0037] sorting the first fitness values;
[0038] According to the sorting result, the smallest first fitness value is used as the first target fitness value;
[0039] Taking the current sample individual corresponding to the first target fitness value as the target sample individual;
[0040] The heat consumption rate neural network prediction model corresponding to the target sample individual is used as the optimal heat consumption rate neural network prediction model.
[0041] Preferably, the operation range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value in the operation range are determined, and a characteristic variable matrix is generated, the characteristic variable matrix is brought into the optimal heat rate neural network prediction model, the heat rate values corresponding to different initial pressure values are predicted, the turbine initial pressure is optimized by using a genetic algorithm, the final initial pressure value is determined, and the final initial pressure value is used as the optimization result of the turbine initial pressure, specifically including:
[0042] Determine the operating range of the thermal power unit under a preset load, randomly generate a plurality of initial pressure value individuals within the operating range, form an initial pressure optimization population according to the initial pressure value individuals, and determine the current initial pressure value individual;
[0043] Determine the characteristic variable value corresponding to the individual current initial pressure value, generate a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different current initial pressure values, use a genetic algorithm to optimize the initial pressure of the turbine, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the initial pressure of the turbine.
[0044] Preferably, the determining of the operating range of the thermal power unit under a preset load, randomly generating a plurality of initial pressure value individuals within the operating range, forming an initial pressure optimization population according to the initial pressure value individuals, and determining the current initial pressure value individual specifically includes:
[0045] Determine an operation range of the thermal power unit under a preset load, and randomly generate a plurality of initial pressure value individuals within the operation range, wherein each initial pressure value individual corresponds to an initial pressure value within the operation range;
[0046] According to the individuals with the initial pressure values, an initial initial pressure optimization population is formed;
[0047] The initial initial pressure optimal population is used as the current initial pressure optimal population, and the initial pressure value individual in the current initial pressure optimal population is used as the current initial pressure value individual.
[0048] Preferably, the determining of the characteristic variable value corresponding to the individual current initial pressure value, generating a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value, bringing the characteristic variable matrix into the optimal heat rate neural network prediction model, predicting the heat rate values corresponding to different current initial pressure values, optimizing the initial pressure of the steam turbine by using a genetic algorithm, determining the final initial pressure value, and using the final initial pressure value as the optimization result of the initial pressure of the steam turbine, specifically includes:
[0049] Determine the characteristic variable value corresponding to the current initial pressure value individual, and generate a characteristic variable matrix according to the current initial pressure value corresponding to the current initial pressure value individual and the characteristic variable value;
[0050] Normalizing the characteristic variable matrix to obtain a normalized target characteristic variable matrix;
[0051] Obtaining characteristic variable parameters in the target characteristic variable matrix;
[0052] Inputting the characteristic variable parameters into the optimal heat rate neural network prediction model to perform model prediction calculation to obtain a heat rate value;
[0053] Determine the fitness value corresponding to the individual of the current initial pressure value according to the heat consumption rate value;
[0054] Determine whether the current number of iterations of the initial pressure optimization population is equal to the preset number of iterations of the initial pressure optimization population threshold;
[0055] When the number of iterations of the current initial pressure optimal population is not equal to the preset initial pressure optimal population iteration number threshold, the current initial pressure value individual is subjected to selection, crossover and mutation operations to generate a candidate initial pressure optimal population, the candidate initial pressure optimal population is used as a new current initial pressure optimal population, and the process of using the initial pressure value individual in the current initial pressure optimal population as the current initial pressure value individual is returned;
[0056] When the number of iterations of the current initial pressure optimization population is equal to the preset initial pressure optimization population iteration number threshold, the fitness value corresponding to the individual of the current initial pressure value is used as the second fitness value;
[0057] sorting the second fitness values;
[0058] According to the sorting result, the smallest second fitness value is used as the second target fitness value;
[0059] Taking the current initial pressure value individual corresponding to the second target fitness value as the target initial pressure value individual;
[0060] The initial pressure value corresponding to the target initial pressure value individual is used as the final initial pressure value, and the final initial pressure value is used as the optimization result of the initial pressure of the steam turbine.
[0061] In addition, in order to achieve the above-mentioned purpose, the present invention also proposes a steam turbine initial pressure optimization device, the steam turbine initial pressure optimization device comprising:
[0062] A data preprocessing module is used to obtain the operation history data of the thermal power unit, extract the heat rate from the operation history data and determine the heat rate characteristic variables related to the heat rate, construct a heat rate matrix and perform normalization processing, generate an "input-output" matrix, and divide the matrix data into training set data, verification set data and test set data according to a preset ratio;
[0063] A neural network structure optimization module is used to establish and train a heat rate neural network prediction model based on the training set data and the validation set data, and to optimize the neural network structure using a genetic algorithm combined with the test set data to determine an optimal heat rate neural network prediction model;
[0064] The steam turbine initial pressure optimization module is used to determine the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value within the operating range, and generate a characteristic variable matrix, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different initial pressure values, use a genetic algorithm to optimize the steam turbine initial pressure, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the steam turbine initial pressure.
[0065] In addition, to achieve the above-mentioned purpose, the present invention also proposes a turbine initial pressure optimization device, which includes: a memory, a processor, and a turbine initial pressure optimization program stored in the memory and executable on the processor, and the turbine initial pressure optimization program is configured with steps to implement the turbine initial pressure optimization method as described above.
[0066] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a turbine initial pressure optimization program is stored. When the turbine initial pressure optimization program is executed by a processor, the steps of the turbine initial pressure optimization method described above are implemented.
[0067] The method for optimizing the initial pressure of a steam turbine proposed in the present invention obtains the operating history data of the thermal power unit, extracts the heat rate therefrom and determines the relevant heat rate characteristic variables, constructs a heat rate matrix and performs normalization processing to generate an "input-output" matrix; establishes a heat rate neural network prediction model and adopts a genetic algorithm to optimize the neural network structure to determine the optimal heat rate neural network prediction model; determines the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value in the operating range, generates a characteristic variable matrix and brings it into the optimal heat rate neural network prediction model to predict the heat rate values corresponding to different initial pressure values, adopts a genetic algorithm to optimize the initial pressure of the steam turbine, determines the final initial pressure value, and uses the final initial pressure value as the optimization result of the initial pressure of the steam turbine, thereby accurately determining the optimal initial pressure of the steam turbine and improving the operating economy of the thermal power unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a schematic diagram of the structure of a steam turbine initial pressure optimization device in the hardware operating environment involved in the embodiment of the present invention;
[0069] Figure 2 It is a schematic flow chart of the first embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention;
[0070] Figure 3 It is a flow chart of the second embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention;
[0071] Figure 4 It is a schematic flow chart of a third embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention;
[0072] Figure 5 A schematic diagram of the number of sample individual digits and their meanings of the third embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention;
[0073] Figure 6 It is a schematic flow chart of a fourth embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention;
[0074] Figure 7 It is a functional module diagram of the first embodiment of the steam turbine initial pressure optimization device of the present invention.
[0075] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0076] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0077] Reference Figure 1 , Figure 1 The schematic diagram of the structure of the steam turbine initial pressure optimization device in the hardware operating environment involved in the embodiment of the present invention.
[0078] like Figure 1 As shown, the steam turbine initial pressure optimization device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a button, and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0079] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the steam turbine initial pressure optimization device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0080] like Figure 1As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a steam turbine initial pressure optimization program.
[0081] exist Figure 1 In the steam turbine initial pressure optimization device shown, the network interface 1004 is mainly used to connect to the external network and communicate data with other network devices; the user interface 1003 is mainly used to connect to the user device and communicate data with the user device; the device of the present invention calls the steam turbine initial pressure optimization program stored in the memory 1005 through the processor 1001, and executes the steam turbine initial pressure optimization method provided by the embodiment of the present invention.
[0082] Based on the above hardware structure, an embodiment of the method for optimizing initial pressure of a steam turbine of the present invention is proposed.
[0083] Reference Figure 2 , Figure 2 It is a schematic flow chart of the first embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention.
[0084] In the first embodiment, the method for optimizing the initial pressure of a steam turbine comprises the following steps:
[0085] Step S10, obtaining the operation history data of the thermal power unit, extracting the heat rate from the operation history data and determining the heat rate characteristic variables related to the heat rate, constructing the heat rate matrix and performing normalization processing, generating an "input-output" matrix, and dividing the matrix data into training set data, validation set data and test set data according to a preset ratio.
[0086] It should be noted that the executor of this embodiment may be a steam turbine initial pressure optimization device, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, the steam turbine initial pressure optimization device is taken as an example for explanation.
[0087] It should be understood that the implementation process of the entire scheme includes three parts, which correspond to step S10, step S20, and step S30 respectively, among which the first part is data preprocessing; the second part is neural network structure optimization, which can be further divided into three processes: population initialization, neural network model construction and training, and using genetic algorithm to optimize the neural network structure; the third part is turbine initial pressure optimization, which can be further divided into two processes: population initialization and using the optimal heat rate neural network model to predict the heat rate.
[0088] It is understandable that the method for obtaining the operating history data of the thermal power unit may be to obtain it from a local database, to obtain it from a cloud database, or to obtain it in other ways, which is not limited in this embodiment.
[0089] Step S20, establishing and training a heat rate neural network prediction model based on the training set data and the validation set data, using a genetic algorithm combined with the test set data to optimize the neural network structure, and determining an optimal heat rate neural network prediction model.
[0090] It should be noted that a neural network adaptive prediction model with heat rate as the model output is established. This model is a multi-input single-output model. The variables with a large correlation with heat rate (heat rate characteristic variables) are selected as the input of the model, and the heat rate is selected as the output of the model. The heat rate neural network prediction model is established. On this basis, the genetic algorithm is used to find the optimal structure of the neural network (that is, the number of hidden layers and the number of neurons in each layer), and the root mean square error between the heat rate prediction value Y* and the actual value Y is calculated, and it is used as the fitness function of the genetic algorithm, and the optimization is carried out with the minimum value as the goal.
[0091] It should be understood that in this embodiment, the heat rate neural network prediction model can be automatically established and optimized, and the model structure can be self-adjusted for different units, with good accuracy and versatility. The specific contents include:
[0092] 1. Population initialization. Use binary coding to randomly generate a number of sample individuals with the same number of bits. Each sample individual is a set of feasible solutions representing the number of hidden layers of the neural network and the number of neurons in each layer. The number of sample individuals is the initial population size. Set the number of iterations of the population. In addition to using binary coding to randomly generate sample individuals, other methods can also be used, which are not limited in this embodiment.
[0093] 2. Construction and training of neural network model. Decode the sample individuals in the initial population, and use the decoded hidden layer number and number of neurons to build a neural network model. The number of neurons in the input layer of the neural network is the number of characteristic parameters, and the number of neurons in the output layer of the neural network is 1. The activation functions of the input layer and the hidden layer both use the Relu function, and the activation function of the output layer uses the Sigmoid function. Bring in the training set and validation set data, and use the Adam optimizer to train the heat rate neural network prediction model. Other functions and optimizers can also be processed, and this embodiment does not limit this.
[0094] After the model is trained, the test set data is brought into the model for heat rate prediction, and the prediction results are denormalized to obtain the heat rate prediction value. The root mean square error between the predicted value and the actual heat rate in the test set is calculated and used as the fitness function in the genetic algorithm. The minimum fitness function value is the optimization goal of the genetic algorithm.
[0095] 3. Repeat the process of building and training the neural network model for each individual in the population to obtain the fitness values corresponding to different individuals.
[0096] 4. Perform selection, crossover and mutation operations on all individuals to generate a new generation of population. Repeat the process of building and training the neural network model for each individual in the new generation of population, and calculate the corresponding fitness value. When the number of population iterations meets the set value, the genetic algorithm ends the optimization process of the neural network structure, and the individual with the smallest fitness value in the calculation process is recorded as the optimal individual, and the corresponding neural network model is the final selected heat rate neural network prediction model.
[0097] Step S30, determining the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value within the operating range, and generating a characteristic variable matrix, bringing the characteristic variable matrix into the optimal heat rate neural network prediction model, predicting the heat rate values corresponding to different initial pressure values, using a genetic algorithm to optimize the initial pressure of the turbine, determining the final initial pressure value, and using the final initial pressure value as the optimization result of the initial pressure of the turbine.
[0098] It should be noted that after obtaining the optimal heat rate prediction model of the optimal structure of the unit, the feasible initial pressure operating range of the unit under a given load and other characteristic variable values corresponding to any initial pressure in the range are determined, and these characteristic variable values are normalized and sent to the optimized neural network model for heat rate prediction. On this basis, the genetic algorithm is used to find the optimal steam turbine initial pressure, and the minimum heat rate is used as the objective function of the genetic algorithm for optimization.
[0099] This embodiment avoids the shortcomings of the existing theoretical sliding pressure optimization and experimental sliding pressure optimization methods, such as complex models, time-consuming and labor-intensive, saves time and calculation costs, and has better optimization performance. The specific contents include:
[0100] 1. Determine the operable range of the initial pressure of the steam turbine under a given load. This range is the optimization range of the initial pressure of the steam turbine by the genetic algorithm.
[0101] 2. Population initialization. Use floating point coding to randomly generate a number of initial pressure value individuals, each of which is a certain initial pressure value in the feasible interval. The number of initial pressure value individuals is the initial population size, and the number of population iterations is set. In addition to using floating point coding to randomly generate initial pressure value individuals, they can also be generated by other methods, which is not limited in this embodiment.
[0102] 3. Use the optimal heat rate neural network prediction model to predict the heat rate, determine the values of other characteristic variables corresponding to different initial pressure values in the population, combine the initial pressure with it and perform normalization to generate a characteristic variable matrix, and bring each row of characteristic variables in the matrix as input parameters into the neural network model with optimized structural parameters to predict the heat rate, and obtain the heat rate values corresponding to different individuals in turn, use this value as the fitness value of the genetic algorithm, and take the minimum fitness value as the optimization goal of the genetic algorithm.
[0103] 4. Perform selection, crossover and mutation operations on all initial pressure value individuals to generate a new generation of population; repeatedly use the optimal heat rate neural network prediction model to predict the heat rate for each individual in the new generation of population, and determine whether there is an optimal value of the objective function. When the number of population iterations meets the set value, the genetic algorithm ends the optimization process for the initial pressure of the turbine, and the individual with the smallest fitness value in the calculation process is recorded as the optimal individual, that is, the initial pressure value corresponding to it is the final initial pressure value.
[0104] In this embodiment, the operation history data of the thermal power unit is obtained, the heat rate is extracted from it and the related heat rate characteristic variables are determined, a heat rate matrix is constructed and normalized, and an "input-output" matrix is generated; a heat rate neural network prediction model is established and a genetic algorithm is used to optimize the neural network structure to determine the optimal heat rate neural network prediction model; the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value in the operating range are determined, a characteristic variable matrix is generated and brought into the optimal heat rate neural network prediction model, the heat rate values corresponding to different initial pressure values are predicted, the genetic algorithm is used to optimize the initial pressure of the steam turbine, the final initial pressure value is determined, and the final initial pressure value is used as the optimization result of the initial pressure of the steam turbine, so as to accurately determine the optimal initial pressure of the steam turbine, thereby improving the economic efficiency of the operation of the thermal power unit.
[0105] In one embodiment, if Figure 3 As shown, a second embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention is proposed based on the first embodiment, wherein step S10 comprises:
[0106] Step S101, obtaining operation history data of a thermal power unit, extracting heat rate from the operation history data, and determining heat rate characteristic variables related to the heat rate.
[0107] It can be understood that the operation history data of the thermal power unit within a period of time is obtained from the DCS or SIS database of the power plant at a certain time interval (such as every 2 seconds), and the data representing the stable operation of the unit is selected, totaling m groups, and the heat rate is extracted from the historical operation data. The extracted heat rate is used as the target parameter, represented by y, and then i variables including the turbine initial pressure that are more closely related to the heat rate are selected as heat rate characteristic variables, represented by x.
[0108] It should be noted that the heat rate refers to the amount of heat consumed by a thermal power unit for every kW·h of electricity generated.
[0109] Step S102: constructing a heat rate matrix according to the heat rate and the heat rate characteristic variable.
[0110] It should be understood that the heat rate matrix X is constructed according to the heat rate and the heat rate characteristic variables, wherein the heat rate matrix X is a characteristic matrix including the heat rate characteristic variables x, which is used for subsequent neural network training.
[0111] It should be understood that the heat rate matrix X is as follows:
[0112]
[0113] Among them, the characteristic variables in the above matrix are the heat rate characteristic variables, the superscript represents the sample number, and the subscript represents the characteristic variable number.
[0114] Step S103, normalizing the heat rate matrix to generate an "input-output" matrix.
[0115] It should be noted that the heat rate matrix X is normalized to generate an "input-output matrix" A (A can be expressed as [X, Y]) of size m×(i+1).
[0116] It should be understood that the input-output matrix A is as follows:
[0117]
[0118] Step S104, obtaining the matrix data in the "input-output" matrix, and dividing the matrix data into training set data, validation set data and test set data according to a preset ratio.
[0119] It should be understood that after obtaining the input and output matrix, the matrix data in the input and output matrix is obtained, and the matrix data is divided into training set data, verification set data and test set data according to a preset ratio. The number of rows of the input and output matrix A can be divided according to 8:2, with the last 20% of the data used as the test set, and the first 80% of the data divided into training set and verification set according to 9:1. Other division methods may also be used, and this embodiment does not limit this.
[0120] In this embodiment, by acquiring the operation history data of the thermal power unit, the heat rate is extracted from the operation history data, and the heat rate characteristic variables related to the heat rate are determined; a heat rate matrix is constructed according to the heat rate and the heat rate characteristic variables; the heat rate matrix is normalized to generate an "input-output" matrix; the matrix data in the "input-output" matrix is acquired, and the matrix data is divided into training set data, verification set data and test set data according to a preset ratio, thereby obtaining data for the subsequent establishment and training of the heat rate neural network prediction model, and the optimization of the neural network structure, thereby improving the accuracy and reliability of the overall solution.
[0121] In one embodiment, if Figure 4 As shown, a third embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention is proposed based on the first embodiment or the second embodiment. In this embodiment, the first embodiment is used for explanation, and the step S20 includes:
[0122] Step S201, randomly generate multiple sample individuals, form a sample optimization population based on the sample individuals, and determine the current sample individual.
[0123] Furthermore, the step S201 includes:
[0124] (1) Randomly generate multiple sample individuals, where each sample individual represents a set of feasible solutions for the number of hidden layers of the neural network and the number of neurons in each layer.
[0125] It should be noted that multiple sample individuals are randomly generated, and each sample individual is a set of feasible solutions representing the number of hidden layers of the neural network and the number of neurons in each layer. The individual is composed of binary codes, and the number "1" or "0" is randomly generated at each position. The individual length is a bits in total. The first a1 bits represent the number of hidden layers, and the last a2 bits represent the number of neurons in each layer, a=a1+a2. For example, an individual is "1100110110", a total of 10 bits, the first 3 digits are "110", and the last 7 digits are "0110110". Converting to decimal means that the number of hidden layers of the neural network at this time is 6 layers, and each layer has 54 neurons. The schematic diagram showing the number of sample individual bits and their meanings is shown below. Figure 5 As shown, N1 represents the number of hidden layers of the neural network, and N2 represents the number of neurons in each layer.
[0126] It is understandable that, in addition to randomly generating multiple sample individuals through binary coding, they can also be generated through other methods, which are not limited in this embodiment.
[0127] (2) Establishing an initial sample optimization population based on the sample individuals.
[0128] It can be understood that, when forming an initial sample optimization population based on randomly generated sample individuals, the size of the initial sample optimization population can be set to d first, that is, d sample individuals of the same length are randomly generated. The number of sample individuals can also be determined first, and then the size of the initial sample optimization population is determined. This embodiment does not limit this.
[0129] (3) The initial sample optimization population is used as the current sample optimization population, and the sample individuals in the current sample optimization population are used as the current sample individuals.
[0130] Step S202, obtaining the number of hidden layers and neurons according to the current sample individuals, and building an initial neural network model, training the initial neural network model according to the training set data and the validation set data, and obtaining a heat rate neural network prediction model.
[0131] Furthermore, the step S202 includes:
[0132] (1) Decode the current sample individual to obtain the number of hidden layers and the number of neurons after decoding.
[0133] (2) The number of hidden layers and neurons after decoding is used to build an initial neural network model, wherein the number of neurons in the input layer of the neural network corresponding to the initial neural network model is the number of characteristic variables of the heat rate, and the number of neurons in the output layer of the neural network is 1.
[0134] It should be understood that the number of neurons is the number of neurons in the hidden layer, and the current sample individual is decoded to obtain the number of hidden layers and the number of neurons, and the initial neural network model is built according to the number of hidden layers and the number of neurons, wherein the number of neurons in the input layer of the neural network is the number of characteristic variables of the heat consumption rate, and the number of hidden layers and the number of neurons in the hidden layer of the initial neural network model are respectively set as the decoded parameters, and the number of neurons in the output layer of the neural network is 1, wherein the activation functions of the input layer and the hidden layer can both use the Relu function, and the activation function of the output layer can use the Sigmoid function, and other functions can also be used, and this embodiment does not limit this, and in this embodiment, only this is used as an example to illustrate.
[0135] (3) The initial neural network model is trained according to the training set data and the validation set data to obtain a heat rate neural network prediction model.
[0136] Step S203, determining the fitness value corresponding to the current sample individual according to the test set data and the heat rate neural network prediction model, using a genetic algorithm combined with the fitness value to optimize the neural network structure, and determining the optimal heat rate neural network prediction model.
[0137] Furthermore, the step S203 includes:
[0138] (1) Inputting the test set data into the heat rate neural network prediction model to perform heat rate prediction and obtain a heat rate prediction result.
[0139] (2) performing a denormalization process on the heat rate prediction result to obtain a heat rate prediction value.
[0140] (3) Extracting actual heat rate values from the test set data.
[0141] (4) Calculating a root mean square error value based on the heat rate prediction value and the actual heat rate value.
[0142] (5) Determine the fitness value corresponding to the current sample individual according to the root mean square error value.
[0143] (6) Determine whether the current number of iterations of the sample optimization population is equal to the preset number of iterations of the sample optimization population threshold.
[0144] (7) When the number of iterations of the current sample optimal population is not equal to the preset sample optimal population iteration number threshold, selection, crossover and mutation operations are performed on the current sample individuals to generate a candidate sample optimal population, the candidate sample optimal population is used as the new current sample optimal population, and the process returns to the step of using the sample individuals in the current sample optimal population as the current sample individuals.
[0145] (8) When the number of iterations of the current sample optimization population is equal to the preset sample optimization population iteration number threshold, the fitness value corresponding to the current sample individual is used as the first fitness value.
[0146] (9) Sort the first fitness values.
[0147] (10) According to the sorting result, the smallest first fitness value is used as the first target fitness value.
[0148] (11) Taking the current sample individual corresponding to the first target fitness value as the target sample individual.
[0149] (12) The heat consumption rate neural network prediction model corresponding to the target sample individual is used as the optimal heat consumption rate neural network prediction model.
[0150] It should be noted that the training set data and the validation set data are input into the initial neural network model, and the Adam optimizer can be used to train and evaluate the heat rate neural network prediction model to obtain a trained heat rate neural network prediction model. Other optimizers can also be used to train and evaluate the heat rate neural network prediction model, which is not limited in this embodiment.
[0151] It can be understood that the test set data is substituted into the trained heat rate neural network prediction model to perform heat rate prediction to obtain the heat rate prediction result, the heat rate prediction result is denormalized to obtain the heat rate prediction value Y*, the actual heat rate value is extracted from the test set data, the root mean square error between the heat rate prediction value Y* and the actual heat rate value Y extracted from the test set data is calculated, and it is used as the fitness function in the genetic algorithm, the calculated root mean square error value is the fitness value corresponding to the sample individual, the minimum value is taken as the objective function, and then the above steps are repeated for each sample individual in the current sample optimization population to obtain the fitness values corresponding to different sample individuals.
[0152] It should be noted that, when judging whether the number of iterations of the current sample optimal search population is equal to the preset number of iterations threshold of the sample optimal search population, if the number of iterations of the current sample optimal search population is not equal to the preset number of iterations threshold of the sample optimal search population, all sample individuals are selected, crossed and mutated to generate a new generation of the current sample optimal search population, and then the above steps are repeated until the number of iterations of the current sample optimal search population is equal to the preset number of iterations threshold of the sample optimal search population. The optimization process of the heat rate neural network prediction model by the genetic algorithm is completed, and the sample individual with the smallest fitness value is taken as the target sample individual, and the heat rate neural network prediction model corresponding to the target sample individual is taken as the optimal heat rate neural network prediction model finally selected.
[0153] In this embodiment, a plurality of sample individuals are randomly generated, a sample optimization population is formed according to the sample individuals, and a current sample individual is determined; the number of hidden layers and the number of neurons are obtained according to the current sample individual, and an initial neural network model is built, and the initial neural network model is trained according to the training set data and the validation set data to obtain a heat rate neural network prediction model; the fitness value corresponding to the current sample individual is determined according to the test set data and the heat rate neural network prediction model, and a genetic algorithm is used in combination with the fitness value to optimize the neural network structure to determine the optimal heat rate neural network prediction model. In this way, the optimal heat rate neural network prediction model used for optimizing the initial pressure value can be determined, thereby improving the accuracy of the overall solution.
[0154] In one embodiment, if Figure 6 As shown, a third embodiment of the method for optimizing initial pressure of a steam turbine according to the present invention is proposed based on the first embodiment or the second embodiment. In this embodiment, the first embodiment is used for explanation, and the step S30 includes:
[0155] Step S301, determining the operating range of the thermal power unit under a preset load, randomly generating a plurality of initial pressure value individuals within the operating range, forming an initial pressure optimization population according to the initial pressure value individuals, and determining a current initial pressure value individual.
[0156] Furthermore, the step S301 includes:
[0157] (1) determining an operating range of the thermal power unit under a preset load, and randomly generating a plurality of individual initial pressure values within the operating range, wherein each individual initial pressure value corresponds to an initial pressure value within the operating range.
[0158] (2) Forming an initial initial pressure optimization population based on the initial pressure value individuals
[0159] It can be understood that the operating range of the initial pressure of the turbine of the thermal power unit under the preset load is determined, and this range is the optimization range of the initial pressure of the turbine by the genetic algorithm. Within the operating range, multiple initial pressure value individuals are randomly generated using floating-point coding, and each initial pressure value individual corresponds to an initial pressure value within the operating range. The number of initial pressure value individuals is the size of the initial initial pressure optimization population.
[0160] (3) The initial initial pressure optimal population is used as the current initial pressure optimal population, and the initial pressure value individual in the current initial pressure optimal population is used as the current initial pressure value individual.
[0161] Step S302, determine the characteristic variable value corresponding to the individual current initial pressure value, generate a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different current initial pressure values, use a genetic algorithm to optimize the initial pressure of the turbine, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the initial pressure of the turbine.
[0162] Furthermore, the step S302 includes:
[0163] (1) Determine a characteristic variable value corresponding to the current initial pressure value individual, and generate a characteristic variable matrix according to the current initial pressure value corresponding to the current initial pressure value individual and the characteristic variable value.
[0164] It should be noted that other i-1 characteristic variable values corresponding to different current initial pressure values can be determined.
[0165] It can be understood that a plurality of characteristic variable values corresponding to each individual current initial pressure value are determined, and therefore a characteristic variable matrix can be generated according to a plurality of current initial pressure values and a plurality of characteristic variable values.
[0166] (2) Normalizing the characteristic variable matrix to obtain a normalized target characteristic variable matrix.
[0167] It should be noted that the generated characteristic variable matrix is normalized and the normalized characteristic variable matrix is used as the target variable matrix.
[0168] (3) Obtain characteristic variable parameters in the target characteristic variable matrix.
[0169] It can be understood that the characteristic variable parameters of each row are obtained from the target characteristic variable matrix.
[0170] (4) Inputting the characteristic variable parameters into the optimal heat rate neural network prediction model to perform model prediction calculation to obtain the heat rate value.
[0171] (5) Determine the fitness value corresponding to the individual current initial pressure value according to the heat consumption rate value.
[0172] It can be understood that by inputting the characteristic variable parameters into the optimal heat rate neural network prediction model for model prediction calculation, the heat rate values corresponding to individuals with different initial pressure values can be obtained. The above-mentioned heat rate prediction method is used as the fitness function, and the different heat rate values calculated are the fitness values corresponding to individuals with different initial pressure values. The minimum value is taken as the objective function.
[0173] (6) Determine whether the current number of iterations of the initial pressure optimization population is equal to the preset number of iterations of the initial pressure optimization population threshold.
[0174] (7) When the number of iterations of the current initial pressure optimal population is not equal to the preset initial pressure optimal population iteration number threshold, selection, crossover and mutation operations are performed on the current initial pressure value individual to generate a candidate initial pressure optimal population, the candidate initial pressure optimal population is used as the new current initial pressure optimal population, and the process returns to the step of using the initial pressure value individual in the current initial pressure optimal population as the current initial pressure value individual.
[0175] (8) When the number of iterations of the current initial pressure optimization population is equal to the preset initial pressure optimization population iteration number threshold, the final initial pressure value is determined according to the fitness value corresponding to the individual of the current initial pressure value, and the final initial pressure value is used as the optimization result of the turbine initial pressure.
[0176] It should be noted that the preset optimal population iteration number threshold can be set according to actual conditions, for example, 5 times, 8 times, etc., and this embodiment does not limit this.
[0177] It should be noted that the preset optimal population iteration number threshold can be set when forming a population, or can be set at the beginning and then forming a population, or can be set at other times, and this embodiment does not limit this.
[0178] It should be understood that, when judging whether the current number of iterations of the initial pressure optimization population is equal to the preset number of iterations threshold of the initial pressure optimization population, when the current number of iterations of the initial pressure optimization population is not equal to the preset number of iterations threshold of the initial pressure optimization population, all initial pressure value individuals are selected, crossed and mutated to generate a new generation of the current initial pressure optimization population, and then the above steps are repeated until the current number of iterations of the initial pressure optimization population is equal to the preset number of iterations threshold of the initial pressure optimization population. The genetic algorithm ends the optimization process of the initial pressure value, and takes the initial pressure value individual with the smallest fitness value as the target initial pressure value individual, and the initial pressure value corresponding to the target initial pressure value individual is taken as the final initial pressure value.
[0179] (9) When the current number of iterations of the initial pressure optimization population is equal to the preset initial pressure optimization population iteration number threshold, the fitness value corresponding to the individual of the current initial pressure value is used as the second fitness value.
[0180] (10) Sort the second fitness values.
[0181] (11) According to the sorting result, the smallest second fitness value is used as the second target fitness value.
[0182] (12) The current initial pressure value individual corresponding to the second target fitness value is used as the target initial pressure value individual.
[0183] (13) The initial pressure value corresponding to the target initial pressure value is used as the final initial pressure value, and the final initial pressure value is used as the optimization result of the initial pressure of the turbine.
[0184] In this embodiment, by determining the operating range of the thermal power unit under a preset load, a plurality of initial pressure value individuals are randomly generated within the operating range, an initial pressure optimization population is formed according to the initial pressure value individuals, and a current initial pressure value individual is determined; a characteristic variable value corresponding to the current initial pressure value individual is determined, a characteristic variable matrix is generated according to the current initial pressure value corresponding to the current initial pressure value individual and the characteristic variable value, the characteristic variable matrix is brought into the optimal heat rate neural network prediction model, the heat rate values corresponding to different current initial pressure values are predicted, a genetic algorithm is used to optimize the initial pressure of the turbine, a final initial pressure value is determined, and the final initial pressure value is used as the optimization result of the initial pressure of the turbine, so as to accurately determine the optimal initial pressure of the turbine.
[0185] In addition, an embodiment of the present invention further proposes a storage medium, on which a steam turbine initial pressure optimization program is stored. When the steam turbine initial pressure optimization program is executed by a processor, the steps of the steam turbine initial pressure optimization method described above are implemented.
[0186] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0187] In addition, refer to Figure 7 The embodiment of the present invention further provides a steam turbine initial pressure optimization device, the steam turbine initial pressure optimization device comprising:
[0188] The data preprocessing module 10 is used to obtain the operation history data of the thermal power unit, extract the heat rate from the operation history data and determine the heat rate characteristic variables related to the heat rate, construct the heat rate matrix and perform normalization processing, generate an "input-output" matrix, and divide the matrix data into training set data, verification set data and test set data according to a preset ratio.
[0189] It is understandable that the method for obtaining the operating history data of the thermal power unit may be to obtain it from a local database, to obtain it from a cloud database, or to obtain it in other ways, which is not limited in this embodiment.
[0190] The neural network structure optimization module 20 is used to establish and train a heat rate neural network prediction model based on the training set data and the validation set data, and to optimize the neural network structure using a genetic algorithm combined with the test set data to determine the optimal heat rate neural network prediction model.
[0191] It should be noted that a neural network adaptive prediction model with heat rate as the model output is established. This model is a multi-input single-output model. The variables with a large correlation with heat rate (heat rate characteristic variables) are selected as the input of the model, and the heat rate is selected as the output of the model. The heat rate neural network prediction model is established. On this basis, the genetic algorithm is used to find the optimal structure of the neural network (that is, the number of hidden layers and the number of neurons in each layer), and the root mean square error between the heat rate prediction value Y* and the actual value Y is calculated, and it is used as the fitness function of the genetic algorithm, and the optimization is carried out with the minimum value as the goal.
[0192] It should be understood that in this embodiment, the heat rate neural network prediction model can be automatically established and optimized, and the model structure can be self-adjusted for different units, with good accuracy and versatility. The specific contents include:
[0193] 1. Population initialization. Use binary coding to randomly generate a number of sample individuals with the same number of bits. Each sample individual is a set of feasible solutions representing the number of hidden layers of the neural network and the number of neurons in each layer. The number of sample individuals is the initial population size. Set the number of iterations of the population. In addition to using binary coding to randomly generate sample individuals, other methods can also be used, which are not limited in this embodiment.
[0194] 2. Construction and training of neural network model. Decode the sample individuals in the initial population, and use the decoded hidden layer number and number of neurons to build a neural network model. The number of neurons in the input layer of the neural network is the number of characteristic parameters, and the number of neurons in the output layer of the neural network is 1. The activation functions of the input layer and the hidden layer both use the Relu function, and the activation function of the output layer uses the Sigmoid function. Bring in the training set and validation set data, and use the Adam optimizer to train the heat rate neural network prediction model. Other functions and optimizers can also be processed, and this embodiment does not limit this.
[0195] After the model is trained, the test set data is brought into the model for heat rate prediction, and the prediction results are denormalized to obtain the heat rate prediction value. The root mean square error between the predicted value and the actual heat rate in the test set is calculated and used as the fitness function in the genetic algorithm. The minimum fitness function value is the optimization goal of the genetic algorithm.
[0196] 3. Repeat the process of building and training the neural network model for each individual in the population to obtain the fitness values corresponding to different individuals.
[0197] 4. Perform selection, crossover and mutation operations on all individuals to generate a new generation of population. Repeat the process of building and training the neural network model for each individual in the new generation of population, and calculate the corresponding fitness value. When the number of population iterations meets the set value, the genetic algorithm ends the optimization process of the neural network structure, and the individual with the smallest fitness value in the calculation process is recorded as the optimal individual, and the corresponding neural network model is the final selected heat rate neural network prediction model.
[0198] The steam turbine initial pressure optimization module 30 is used to determine the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value within the operating range, and generate a characteristic variable matrix, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different initial pressure values, use a genetic algorithm to optimize the steam turbine initial pressure, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the steam turbine initial pressure.
[0199] It should be noted that after obtaining the optimal heat rate prediction model of the optimal structure of the unit, the feasible initial pressure operating range of the unit under a given load and other characteristic variable values corresponding to any initial pressure in the range are determined, and these characteristic variable values are normalized and sent to the optimized neural network model for heat rate prediction. On this basis, the genetic algorithm is used to find the optimal steam turbine initial pressure, and the minimum heat rate is used as the objective function of the genetic algorithm for optimization.
[0200] This embodiment avoids the shortcomings of the existing theoretical sliding pressure optimization and experimental sliding pressure optimization methods, such as complex models, time-consuming and labor-intensive, saves time and calculation costs, and has better optimization performance. The specific contents include:
[0201] 1. Determine the operable range of the initial pressure of the steam turbine under a given load. This range is the optimization range of the initial pressure of the steam turbine by the genetic algorithm.
[0202] 2. Population initialization. Use floating point coding to randomly generate a number of initial pressure value individuals, each of which is a certain initial pressure value in the feasible interval. The number of initial pressure value individuals is the initial population size, and the number of population iterations is set. In addition to using floating point coding to randomly generate initial pressure value individuals, they can also be generated by other methods, which is not limited in this embodiment.
[0203] 3. Use the optimal heat rate neural network prediction model to predict the heat rate, determine the values of other characteristic variables corresponding to different initial pressure values in the population, combine the initial pressure with it and perform normalization to generate a characteristic variable matrix, and bring each row of characteristic variables in the matrix as input parameters into the neural network model with optimized structural parameters to predict the heat rate, and obtain the heat rate values corresponding to different individuals in turn, use this value as the fitness value of the genetic algorithm, and take the minimum fitness value as the optimization goal of the genetic algorithm.
[0204] 4. Perform selection, crossover and mutation operations on all initial pressure value individuals to generate a new generation of population; repeatedly use the optimal heat rate neural network prediction model to predict the heat rate for each individual in the new generation of population, and determine whether there is an optimal value of the objective function. When the number of population iterations meets the set value, the genetic algorithm ends the optimization process for the initial pressure of the turbine, and the individual with the smallest fitness value in the calculation process is recorded as the optimal individual, that is, the initial pressure value corresponding to it is the final initial pressure value.
[0205] In this embodiment, the operation history data of the thermal power unit is obtained, the heat rate is extracted from it and the related heat rate characteristic variables are determined, a heat rate matrix is constructed and normalized, and an "input-output" matrix is generated; a heat rate neural network prediction model is established and a genetic algorithm is used to optimize the neural network structure to determine the optimal heat rate neural network prediction model; the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value in the operating range are determined, a characteristic variable matrix is generated and brought into the optimal heat rate neural network prediction model, the heat rate values corresponding to different initial pressure values are predicted, the genetic algorithm is used to optimize the initial pressure of the steam turbine, the final initial pressure value is determined, and the final initial pressure value is used as the optimization result of the initial pressure of the steam turbine, so as to accurately determine the optimal initial pressure of the steam turbine, thereby improving the economic efficiency of the operation of the thermal power unit.
[0206] In one embodiment, the data preprocessing module 10 is further used to obtain operation history data of the thermal power unit, extract the heat rate from the operation history data, and determine the heat rate characteristic variables related to the heat rate; construct a heat rate matrix according to the heat rate and the heat rate characteristic variables; normalize the heat rate matrix to generate an "input-output" matrix; obtain matrix data in the "input-output" matrix, and divide the matrix data into training set data, validation set data and test set data according to a preset ratio.
[0207] In one embodiment, the neural network structure optimization module 20 is also used to randomly generate multiple sample individuals, form a sample optimization population based on the sample individuals, and determine the current sample individual; obtain the number of hidden layers and the number of neurons based on the current sample individual, and build an initial neural network model, train the initial neural network model based on the training set data and the validation set data to obtain a heat rate neural network prediction model; determine the fitness value corresponding to the current sample individual based on the test set data and the heat rate neural network prediction model, use a genetic algorithm combined with the fitness value to optimize the neural network structure, and determine the optimal heat rate neural network prediction model.
[0208] In one embodiment, the neural network structure optimization module 20 is also used to randomly generate multiple sample individuals, wherein each sample individual represents a set of feasible solutions for the number of hidden layers of the neural network and the number of neurons in each layer; an initial sample optimization population is formed based on the sample individuals; the initial sample optimization population is used as the current sample optimization population, and the sample individuals in the current sample optimization population are used as the current sample individuals.
[0209] In one embodiment, the neural network structure optimization module 20 is also used to decode the current sample individual to obtain the number of hidden layer layers and the number of neurons after decoding; use the number of hidden layer layers and the number of neurons after decoding to build an initial neural network model, wherein the number of neurons in the input layer of the neural network corresponding to the initial neural network model is the number of heat rate characteristic variables, and the number of neurons in the output layer of the neural network is 1; the initial neural network model is trained according to the training set data and the validation set data to obtain a heat rate neural network prediction model.
[0210] In one embodiment, the neural network structure optimization module 20 is further used to input the test set data into the heat rate neural network prediction model to perform heat rate prediction and obtain a heat rate prediction result; perform a denormalization process on the heat rate prediction result to obtain a heat rate prediction value; extract an actual heat rate value from the test set data; calculate a root mean square error value based on the heat rate prediction value and the actual heat rate value; determine a fitness value corresponding to the current sample individual based on the root mean square error value; determine whether the number of iterations of the current sample optimization population is equal to a preset sample optimization population iteration number threshold; and when the number of iterations of the current sample optimization population is not equal to the preset sample optimization population iteration number threshold, perform a fitness test on the current sample individual. Selection, crossover and mutation operations are performed to generate a candidate sample optimization population, the candidate sample optimization population is used as the new current sample optimization population, and the step of using the sample individual in the current sample optimization population as the current sample individual is returned; when the number of iterations of the current sample optimization population is equal to the preset sample optimization population iteration number threshold, the fitness value corresponding to the current sample individual is used as the first fitness value; the first fitness values are sorted; according to the sorting result, the smallest first fitness value is used as the first target fitness value; the current sample individual corresponding to the first target fitness value is used as the target sample individual; the heat rate neural network prediction model corresponding to the target sample individual is used as the optimal heat rate neural network prediction model.
[0211] In one embodiment, the steam turbine initial pressure optimization module 30 is also used to determine the operating range of the thermal power unit under a preset load, randomly generate a plurality of initial pressure value individuals within the operating range, form an initial pressure optimization population based on the initial pressure value individuals, and determine the current initial pressure value individual; determine the characteristic variable value corresponding to the current initial pressure value individual, generate a characteristic variable matrix based on the current initial pressure value corresponding to the current initial pressure value individual and the characteristic variable value, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different current initial pressure values, use a genetic algorithm to optimize the steam turbine initial pressure, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the steam turbine initial pressure.
[0212] In one embodiment, the steam turbine initial pressure optimization module 30 is also used to determine the operating range of the thermal power unit under a preset load, randomly generate a plurality of initial pressure value individuals within the operating range, wherein each initial pressure value individual corresponds to an initial pressure value within the operating range; form an initial initial pressure optimization population based on the initial pressure value individuals; use the initial initial pressure optimization population as the current initial pressure optimization population, and use the initial pressure value individuals in the current initial pressure optimization population as the current initial pressure value individuals.
[0213] In one embodiment, the steam turbine initial pressure optimization module 30 is further used to determine the characteristic variable value corresponding to the individual current initial pressure value, and generate a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value; normalize the characteristic variable matrix to obtain a normalized target characteristic variable matrix; obtain characteristic variable parameters in the target characteristic variable matrix; input the characteristic variable parameters into the optimal heat rate neural network prediction model to perform model prediction calculation to obtain a heat rate value; determine the fitness value corresponding to the individual current initial pressure value according to the heat rate value; determine whether the current initial pressure optimization population iteration number is equal to a preset initial pressure optimization population iteration number threshold; when the current initial pressure optimization population iteration number is not equal to the preset initial pressure optimization population iteration number threshold, The current initial pressure value individuals are subjected to selection, crossover and mutation operations to generate a candidate initial pressure optimization population, the candidate initial pressure optimization population is used as the new current initial pressure optimization population, and the step of using the initial pressure value individuals in the current initial pressure optimization population as the current initial pressure value individuals is returned; when the number of iterations of the current initial pressure optimization population is equal to the preset initial pressure optimization population iteration number threshold, the fitness value corresponding to the current initial pressure value individual is used as the second fitness value; the second fitness values are sorted; according to the sorting result, the smallest second fitness value is used as the second target fitness value; the current initial pressure value individual corresponding to the second target fitness value is used as the target initial pressure value individual; the initial pressure value corresponding to the target initial pressure value individual is used as the final initial pressure value, and the final initial pressure value is used as the optimization result of the turbine initial pressure.
[0214] Other embodiments or specific implementation methods of the steam turbine initial pressure optimization device of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0215] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0216] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0217] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the estimator software product is stored in an estimator-readable storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for enabling an intelligent steam turbine initial pressure optimization device (which can be a mobile phone, an estimator, a steam turbine initial pressure optimization device, an air conditioner, or a network steam turbine initial pressure optimization device, etc.) to execute the methods described in each embodiment of the present invention.
[0218] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for optimizing initial pressure of steam turbine. It is characterized in that The method for optimizing the initial pressure of a steam turbine comprises the following steps: Acquire operation history data of the thermal power unit, extract the heat rate from the operation history data and determine the heat rate characteristic variables related to the heat rate, construct a heat rate matrix and perform normalization processing to generate an "input-output" matrix, and divide the matrix data into training set data, verification set data and test set data according to a preset ratio; Establishing and training a heat rate neural network prediction model based on the training set data and the validation set data, optimizing the neural network structure using a genetic algorithm combined with the test set data, and determining an optimal heat rate neural network prediction model; Determine the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value within the operating range, generate a characteristic variable matrix, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different initial pressure values, use a genetic algorithm to optimize the initial pressure of the steam turbine, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the initial pressure of the steam turbine; The step of establishing and training a heat rate neural network prediction model based on the training set data and the validation set data, optimizing the neural network structure using a genetic algorithm combined with the test set data, and determining an optimal heat rate neural network prediction model specifically includes: Randomly generate multiple sample individuals, form a sample optimization population based on the sample individuals, and determine the current sample individual; Obtaining the number of hidden layers and neurons according to the current sample individuals, and building an initial neural network model, training the initial neural network model according to the training set data and the validation set data, and obtaining a heat rate neural network prediction model; The fitness value corresponding to the current sample individual is determined according to the test set data and the heat rate neural network prediction model, and a genetic algorithm is used in combination with the fitness value to optimize the neural network structure to determine the optimal heat rate neural network prediction model.
2. The method for optimizing initial pressure of a steam turbine according to claim 1, It is characterized in that The method of obtaining the operation history data of the thermal power unit, extracting the heat rate from the operation history data and determining the heat rate characteristic variables related to the heat rate, constructing the heat rate matrix and performing normalization processing, generating an "input-output" matrix, and dividing the matrix data into training set data, verification set data and test set data according to a preset ratio, specifically includes: Acquiring operation history data of the thermal power unit, extracting heat rate from the operation history data, and determining heat rate characteristic variables related to the heat rate; constructing a heat rate matrix according to the heat rate and the heat rate characteristic variable; Normalizing the heat rate matrix to generate an "input-output" matrix; Obtain the matrix data in the "input-output" matrix, and divide the matrix data into training set data, verification set data and test set data according to a preset ratio.
3. The method for optimizing initial pressure of a steam turbine according to claim 1, It is characterized in that The randomly generating a plurality of sample individuals, forming a sample optimization population according to the sample individuals, and determining the current sample individual specifically includes: Randomly generate multiple sample individuals, where each sample individual represents a set of feasible solutions for the number of hidden layers of the neural network and the number of neurons in each layer; Forming an initial sample optimization population according to the sample individuals; The initial sample optimization population is used as the current sample optimization population, and the sample individuals in the current sample optimization population are used as the current sample individuals.
4. The method for optimizing initial pressure of a steam turbine according to claim 3, It is characterized in that The step of obtaining the number of hidden layers and neurons according to the current sample individuals, building an initial neural network model, and training the initial neural network model according to the training set data and the validation set data to obtain a heat rate neural network prediction model specifically includes: Decoding the current sample individual to obtain the number of hidden layers and the number of neurons after decoding; The number of hidden layers and neurons after decoding are used to build an initial neural network model, wherein the number of neurons in the input layer of the neural network corresponding to the initial neural network model is the number of characteristic variables of the heat rate, and the number of neurons in the output layer of the neural network is 1; The initial neural network model is trained according to the training set data and the validation set data to obtain a heat rate neural network prediction model.
5. The method for optimizing initial pressure of a steam turbine according to claim 3, It is characterized in that The step of determining the fitness value corresponding to the current sample individual according to the test set data and the heat rate neural network prediction model, and optimizing the neural network structure by using a genetic algorithm combined with the fitness value to determine the optimal heat rate neural network prediction model specifically includes: Inputting the test set data into the heat rate neural network prediction model to perform heat rate prediction to obtain a heat rate prediction result; Performing a denormalization process on the heat rate prediction result to obtain a heat rate prediction value; extracting actual heat rate values from the test set data; Calculating a root mean square error value according to the heat rate prediction value and the actual heat rate value; Determine the fitness value corresponding to the current sample individual according to the root mean square error value; Determine whether the current number of iterations of the sample optimization population is equal to the preset number of iterations of the sample optimization population threshold; When the number of iterations of the current sample optimal population is not equal to the preset sample optimal population iteration number threshold, the current sample individuals are selected, crossed and mutated to generate a candidate sample optimal population, the candidate sample optimal population is used as a new current sample optimal population, and the step of using the sample individuals in the current sample optimal population as the current sample individuals is returned; When the number of iterations of the current sample optimization population is equal to the preset sample optimization population iteration number threshold, the fitness value corresponding to the current sample individual is used as the first fitness value; sorting the first fitness values; According to the sorting result, the smallest first fitness value is used as the first target fitness value; Taking the current sample individual corresponding to the first target fitness value as the target sample individual; The heat consumption rate neural network prediction model corresponding to the target sample individual is used as the optimal heat consumption rate neural network prediction model.
6. The method for optimizing initial pressure of a steam turbine according to claim 1, It is characterized in that The step of determining the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value within the operating range, generating a characteristic variable matrix, bringing the characteristic variable matrix into the optimal heat rate neural network prediction model, predicting the heat rate values corresponding to different initial pressure values, optimizing the initial pressure of the steam turbine by using a genetic algorithm, determining a final initial pressure value, and using the final initial pressure value as the optimization result of the initial pressure of the steam turbine, specifically includes: Determine the operating range of the thermal power unit under a preset load, randomly generate a plurality of initial pressure value individuals within the operating range, form an initial pressure optimization population according to the initial pressure value individuals, and determine the current initial pressure value individual; Determine the characteristic variable value corresponding to the individual current initial pressure value, generate a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different current initial pressure values, use a genetic algorithm to optimize the initial pressure of the turbine, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the initial pressure of the turbine.
7. The method for optimizing initial pressure of a steam turbine according to claim 6, It is characterized in that The step of determining an operating range of the thermal power unit under a preset load, randomly generating a plurality of initial pressure value individuals within the operating range, forming an initial pressure optimization population according to the initial pressure value individuals, and determining a current initial pressure value individual specifically includes: Determine an operation range of the thermal power unit under a preset load, and randomly generate a plurality of initial pressure value individuals within the operation range, wherein each initial pressure value individual corresponds to an initial pressure value within the operation range; According to the individuals with the initial pressure values, an initial initial pressure optimization population is formed; The initial initial pressure optimal population is used as the current initial pressure optimal population, and the initial pressure value individual in the current initial pressure optimal population is used as the current initial pressure value individual.
8. The method for optimizing initial pressure of a steam turbine according to claim 7, It is characterized in that The step of determining the characteristic variable value corresponding to the individual current initial pressure value, generating a characteristic variable matrix according to the current initial pressure value corresponding to the individual current initial pressure value and the characteristic variable value, bringing the characteristic variable matrix into the optimal heat rate neural network prediction model, predicting the heat rate values corresponding to different current initial pressure values, optimizing the initial pressure of the steam turbine by using a genetic algorithm, determining the final initial pressure value, and using the final initial pressure value as the optimization result of the initial pressure of the steam turbine, specifically includes: Determine the characteristic variable value corresponding to the current initial pressure value individual, and generate a characteristic variable matrix according to the current initial pressure value corresponding to the current initial pressure value individual and the characteristic variable value; Normalizing the characteristic variable matrix to obtain a normalized target characteristic variable matrix; Obtaining characteristic variable parameters in the target characteristic variable matrix; Inputting the characteristic variable parameters into the optimal heat rate neural network prediction model to perform model prediction calculation to obtain a heat rate value; Determine the fitness value corresponding to the individual of the current initial pressure value according to the heat consumption rate value; Determine whether the current number of iterations of the initial pressure optimization population is equal to the preset number of iterations of the initial pressure optimization population threshold; When the number of iterations of the current initial pressure optimal population is not equal to the preset initial pressure optimal population iteration number threshold, the current initial pressure value individual is subjected to selection, crossover and mutation operations to generate a candidate initial pressure optimal population, the candidate initial pressure optimal population is used as a new current initial pressure optimal population, and the process of using the initial pressure value individual in the current initial pressure optimal population as the current initial pressure value individual is returned; When the number of iterations of the current initial pressure optimization population is equal to the preset initial pressure optimization population iteration number threshold, the fitness value corresponding to the individual of the current initial pressure value is used as the second fitness value; sorting the second fitness values; According to the sorting result, the smallest second fitness value is used as the second target fitness value; Taking the current initial pressure value individual corresponding to the second target fitness value as the target initial pressure value individual; The initial pressure value corresponding to the target initial pressure value individual is used as the final initial pressure value, and the final initial pressure value is used as the optimization result of the initial pressure of the steam turbine.
9. A steam turbine initial pressure optimization device, It is characterized in that The steam turbine initial pressure optimization device comprises: A data preprocessing module is used to obtain the operation history data of the thermal power unit, extract the heat rate from the operation history data and determine the heat rate characteristic variables related to the heat rate, construct a heat rate matrix and perform normalization processing, generate an "input-output" matrix, and divide the matrix data into training set data, verification set data and test set data according to a preset ratio; A neural network structure optimization module is used to establish and train a heat rate neural network prediction model based on the training set data and the validation set data, and to optimize the neural network structure using a genetic algorithm combined with the test set data to determine an optimal heat rate neural network prediction model; A steam turbine initial pressure optimization module is used to determine the operating range of the thermal power unit under a preset load and the characteristic variable value corresponding to any initial pressure value in the operating range, and generate a characteristic variable matrix, bring the characteristic variable matrix into the optimal heat rate neural network prediction model, predict the heat rate values corresponding to different initial pressure values, use a genetic algorithm to optimize the steam turbine initial pressure, determine the final initial pressure value, and use the final initial pressure value as the optimization result of the steam turbine initial pressure; The neural network structure optimization module is also used to randomly generate a plurality of sample individuals, form a sample optimization population according to the sample individuals, and determine the current sample individual; Obtaining the number of hidden layers and neurons according to the current sample individuals, and building an initial neural network model, training the initial neural network model according to the training set data and the validation set data, and obtaining a heat rate neural network prediction model; The fitness value corresponding to the current sample individual is determined according to the test set data and the heat rate neural network prediction model, and a genetic algorithm is used in combination with the fitness value to optimize the neural network structure to determine the optimal heat rate neural network prediction model.
10. A steam turbine initial pressure optimization device, It is characterized in that The steam turbine initial pressure optimization device comprises: a memory, a processor and a steam turbine initial pressure optimization program stored in the memory and executable on the processor, wherein the steam turbine initial pressure optimization program is configured with steps for implementing the steam turbine initial pressure optimization method as described in any one of claims 1 to 8.
11. A storage medium, It is characterized in that The storage medium stores a steam turbine initial pressure optimization program, and when the steam turbine initial pressure optimization program is executed by the processor, the steps of the steam turbine initial pressure optimization method according to any one of claims 1 to 8 are implemented.
