Boiler operation simulation method based on complex calculation
By screening and correcting the sample temperature data and operating data in the genetic algorithm, the local optimal solution problem of the genetic algorithm in determining the optimal critical temperature of the boiler is solved, and the accuracy and best effect of the boiler operation simulation are achieved.
Patent Information
- Application Number
- CN202410727066.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing methods that use genetic algorithms to determine the optimal critical temperature of a boiler are prone to falling into local optimal solutions and cannot accurately obtain the optimal critical temperature, resulting in poor boiler operation simulation results.
By obtaining the boiler operating data within a preset time period, filtering the sample temperature data, constructing the initial population of the genetic algorithm, and correcting the fitness based on fitness, population diversity and actual thermal power, iterating until the difference in corrected fitness is less than the threshold to obtain the best individual.
It improves the accuracy of genetic algorithm in obtaining the optimal solution, reduces the possibility of local optimal solution, and ensures the accuracy and best effect of boiler operation simulation.
Smart Images

Figure CN118313282B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric digital data processing, and in particular to a boiler operation simulation method based on complex calculation. Background Art
[0002] As an important energy conversion device, boilers play a key role in industrial production and power supply. Fuels such as coal, oil, and natural gas are ignited in the boiler's combustion chamber to generate heat energy, which is used in various scenarios such as generator power generation, heating, and heating in industrial production processes. During boiler operation, a reasonable critical temperature must be set. The critical temperature refers to the water being heated to a saturated state, and further heating will cause the water to convert into steam. When the critical temperature is too high, it will cause the boiler components to degrade, deform, or break, posing a safety hazard and reducing the thermal efficiency of the boiler. When the critical temperature is too low, the heat energy generated by the fuel cannot be fully utilized, affecting steam generation. Therefore, it is extremely important to set a reasonable critical temperature during boiler operation simulation.
[0003] Existing methods use genetic algorithms to determine the optimal critical temperature of a boiler, and then determine various other optimal operating data in boiler operation simulations, simulating the boiler's operation under these optimal operating data. However, in practice, genetic algorithms only consider temperature data during boiler operation to determine the fitness of each individual. This can easily lead to the genetic algorithm falling into a local optimal solution, making it impossible to accurately determine the optimal critical temperature and, consequently, the various other optimal operating data in boiler operation simulations. This results in suboptimal boiler operation simulations and hinders accurate analysis of the boiler's actual operating conditions. Summary of the Invention
[0004] In order to solve the technical problem that the genetic algorithm only considers the temperature data during the operation of the boiler to obtain the fitness of each individual, which easily causes the genetic algorithm to fall into a local optimal solution, cannot accurately obtain the optimal critical temperature, and thus cannot determine various other optimal operating data in the boiler operation simulation, making the boiler operation simulation unable to achieve the best effect, the purpose of the present invention is to provide a boiler operation simulation method based on complex calculations, and the technical solutions adopted are as follows:
[0005] The present invention proposes a boiler operation simulation method based on complex calculation, which includes the following steps:
[0006] Obtaining the operating data of the boiler at each moment within a preset time period; wherein the operating data includes temperature data, fuel consumption, steam exhaust flow, steam exhaust heat, and flue gas exhaust oxygen content;
[0007] Based on the changes in temperature data within a preset time period, a preset number of sample temperature data are screened out. Based on each sample temperature data within the preset time period and each type of operating data at the corresponding moment of the same temperature data, the operating data vector corresponding to each sample temperature data is obtained, and all of them are used as individuals in the genetic algorithm to construct an initial population; based on the size of the temperature data in each individual, the fitness of each individual is obtained;
[0008] According to the fluctuation of the fitness of all individuals in each iteration of the genetic algorithm, the fluctuation of the corresponding temperature data and the similarity between individuals, the population diversity value in each iteration is obtained; according to the fuel consumption, steam emission flow, steam emission heat and flue gas emission oxygen content of each individual in each iteration, as well as the fuel calorific value of the fuel, the actual thermal power of each individual in each iteration is obtained; according to the difference between the rated thermal power and the actual thermal power of each individual in each iteration, as well as the fitness and population diversity value of each individual in each iteration, the corrected fitness of each individual in each iteration is obtained, and then the parent generation in each iteration is determined to iterate until the difference between the means of the corrected fitness after two adjacent iterations is less than the preset judgment threshold, and the iteration of the genetic algorithm is stopped;
[0009] According to the corrected fitness of each individual after stopping the iteration, the best individual is obtained to perform boiler operation simulation.
[0010] Furthermore, the method of filtering out a preset number of sample temperature data based on the change of temperature data within a preset time period, and obtaining the operation data vector corresponding to each sample temperature data according to each other operation data at the corresponding moment of the same temperature data within the preset time period is as follows:
[0011] Sort the temperature data within a preset time period from small to large to obtain a temperature data sequence;
[0012] Evenly dividing the temperature data sequence into a first preset number of temperature data intervals, and randomly selecting a second preset number of temperature data from each temperature data interval as sample temperature data;
[0013] For any sample temperature data, the time corresponding to the temperature data with the same temperature as the sample temperature data within the preset time period is used as the reference time of the sample temperature data;
[0014] All the same type of operating data at all reference moments are constructed into a set, and one operating data is randomly selected from each set to construct a vector as the operating data vector corresponding to the sample temperature data.
[0015] Furthermore, the method for obtaining the fitness is:
[0016] Obtain the difference between the temperature data of each individual and the theoretical critical temperature data as the first eigenvalue of the corresponding individual;
[0017] The result of negatively correlating and normalizing the first eigenvalue of each individual is taken as the fitness of the corresponding individual.
[0018] Furthermore, the calculation formula for the population diversity value is:
[0019] Where, is the population diversity value under the rth iteration of the genetic algorithm; is the variance of the fitness of all individuals in the rth iteration of the genetic algorithm; is the variance of temperature data of all individuals in the rth iteration of the genetic algorithm; is the total number of individuals in the rth iteration of the genetic algorithm; is the distance between the i-th individual and the j-th individual in the r-th iteration of the genetic algorithm.
[0020] Furthermore, the calculation formula of the actual thermal power is:
[0021] Where, is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the oxygen content of smoke emission in the ath individual in the rth iteration of the genetic algorithm; is the fuel consumption of the ath individual in the rth iteration of the genetic algorithm; is the steam emission flow rate in the ath individual under the rth iteration of the genetic algorithm; is the steam emission heat in the ath individual in the rth iteration of the genetic algorithm; is the fuel calorific value of the fuel; It is the first preset constant, which is greater than 0.
[0022] Furthermore, the method for obtaining the modified fitness is:
[0023] According to the difference between the rated thermal power and the actual thermal power of each individual in each iteration of the genetic algorithm, as well as the population diversity value in each iteration of the genetic algorithm, the fitness correction factor of each individual in each iteration of the genetic algorithm is obtained;
[0024] The fitness of each individual in each iteration of the genetic algorithm is corrected according to the fitness correction factor to obtain the corrected fitness of each individual in each iteration of the genetic algorithm.
[0025] Furthermore, the calculation formula of the fitness correction factor is:
[0026] Where, is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm; is the rated thermal power; is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the population diversity value under the rth iteration of the genetic algorithm; is the second preset constant, which is greater than 0; norm is the normalization function.
[0027] Furthermore, the calculation formula of the modified fitness is:
[0028] Where, is the modified fitness of the ath individual in the rth iteration of the genetic algorithm; is the fitness of the ath individual in the rth iteration of the genetic algorithm; It is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm.
[0029] Furthermore, the method for obtaining the parent generation in each iteration is:
[0030] The individuals corresponding to the sample temperature data in the same temperature data interval are marked as the same characteristic individuals;
[0031] Obtain the corrected fitness of each individual in each iteration, and use the individual with the largest corrected fitness among each characteristic individual in each iteration as the parent generation in each iteration.
[0032] Furthermore, the method for obtaining the best individual is:
[0033] The individual with the largest corrected fitness after stopping the iteration is regarded as the best individual.
[0034] The present invention has the following beneficial effects:
[0035] Based on the changes in temperature data within a preset time period, a preset number of sample temperature data are screened out to improve the efficiency of obtaining individuals in the genetic algorithm, which is conducive to the genetic algorithm to accurately and efficiently obtain the optimal solution; then, based on each sample temperature data within the preset time period and each other operating data at the corresponding moment of the same temperature data, the operating data vector corresponding to each sample temperature data is obtained, and the individuals in the genetic algorithm are determined to construct the initial population; in order to obtain the optimal critical temperature data through the genetic algorithm, the fitness of each individual is obtained according to the size of the temperature data in each individual, and the individual where the optimal critical temperature data is located is preliminarily judged to prepare for obtaining the best individual; in order to avoid the situation where the genetic algorithm has a local optimal solution, the population diversity value under each iteration is obtained according to the fluctuation of the fitness of all individuals under each iteration of the genetic algorithm, the fluctuation of the corresponding temperature data and the similarity between individuals, which preliminarily reflects that there is an error in the fitness of each individual under each iteration. degree; in order to further analyze the degree of error in the fitness of each individual under each iteration, the actual thermal power of each individual under each iteration is obtained according to the fuel consumption, steam emission flow, steam emission heat and flue gas emission oxygen content of each individual under each iteration, as well as the fuel calorific value of the fuel, which further reflects the degree of error in the fitness of each individual under each iteration; therefore, according to the difference between the rated thermal power and the actual thermal power of each individual under each iteration, as well as the fitness and population diversity value of each individual under each iteration, the corrected fitness of each individual under each iteration is accurately obtained, which accurately reflects the possibility that each individual is the best individual and reduces the possibility of a local optimal solution in the genetic algorithm; and then according to the corrected fitness of each individual after the genetic algorithm stops iterating, the best individual is accurately obtained, and the boiler operation simulation is accurately performed, so that the boiler operation simulation achieves the best effect, which is conducive to accurate analysis of the actual working state of the boiler. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 A schematic flow chart of a boiler operation simulation method based on complex calculations provided by one embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a flow chart for stopping iteration of a genetic algorithm provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0039] To further illustrate the technical means and effectiveness of the present invention in achieving its intended objectives, a complex calculation-based boiler operation simulation method proposed by the present invention is described in detail below, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0041] The following describes in detail a specific solution of a boiler operation simulation method based on complex calculations provided by the present invention with reference to the accompanying drawings.
[0042] The specific scenario of the embodiment of the present invention is as follows: the existing method uses a genetic algorithm to analyze the fitness of individuals. The genetic algorithm is prone to local optimal solutions, resulting in the inability to obtain the best individual, and thus the inability to obtain the optimal boiler operating data, making it impossible to achieve the optimal effect of the boiler operation simulation. Therefore, the embodiment of the present invention analyzes the differences between individuals in each iteration of the genetic algorithm to obtain the population diversity value in each iteration, which preliminarily reflects the degree of error in the fitness of each individual in each iteration; further analyzes the operating data of each individual in each iteration to obtain the actual thermal power of each individual in each iteration, further reflecting the degree of error in the fitness of each individual in each iteration, and then corrects the fitness of each individual in each iteration based on the difference between the rated thermal power and the actual thermal power of each individual in each iteration, as well as the population diversity value in each iteration, accurately obtaining the corrected fitness of each individual in each iteration, improving the accuracy of the genetic algorithm in obtaining the optimal solution, reducing the possibility of the genetic algorithm having a local optimal solution, and accurately obtaining the best individual, so that the boiler operation simulation can be carried out accurately and achieve the optimal effect. Among them, the genetic algorithm is a well-known technology and will not be described in detail.
[0043] See also Figure 1 , which shows a flow chart of a boiler operation simulation method based on complex calculations provided by one embodiment of the present invention, the method comprising the following steps:
[0044] Step S1: Obtaining the operating data of the boiler at each moment within a preset time period; wherein the operating data includes temperature data, fuel consumption, steam exhaust flow, steam exhaust heat, and flue gas exhaust oxygen content.
[0045] Specifically, the embodiment of the present invention takes any boiler as an example, and obtains various operating data of the boiler at each moment within a preset time period through various sensors such as temperature sensors, fuel consumption sensors, and steam emission flow sensors, wherein the preset time period is the time period from the moment the boiler starts to stop operating, that is, the time period corresponding to the start and complete combustion of the fuel in the boiler combustion chamber. The embodiment of the present invention sets the time interval between two adjacent moments of collecting operating data to 0.1 seconds. The implementer can set the time interval between two adjacent moments of obtaining operating data according to actual conditions, which is not limited here. The embodiment of the present invention uses five types of operating data, namely temperature data, fuel consumption, steam emission flow, steam emission heat, and flue gas emission oxygen content, as examples for analysis. The implementer can perform analysis based on other types of operating data, which is not limited here. Data cleaning is performed on each type of operating data within the preset time period, and subsequent operating data is defaulted to the cleaned operating data.
[0046] Step S2: Based on the changes in temperature data within a preset time period, a preset number of sample temperature data are screened out. According to each sample temperature data within the preset time period and each type of operating data at the corresponding moment of the same temperature data, the operating data vector corresponding to each sample temperature data is obtained, and all of them are used as individuals in the genetic algorithm to construct an initial population; according to the size of the temperature data in each individual, the fitness of each individual is obtained.
[0047] Specifically, it is known that whether the critical temperature data of the boiler is set reasonably is crucial to whether the boiler can operate more reasonably. In order to accurately and efficiently obtain each optimal operating parameter in the boiler operation simulation, so that the boiler can operate more reasonably in actual conditions, the embodiment of the present invention sorts the temperature data within the preset time period from small to large to obtain a temperature data sequence, and then evenly divides the temperature data sequence into a first preset number of temperature data intervals. The embodiment of the present invention sets the first preset number to 5. The implementer can set the size of the first number according to actual conditions, and there is no limitation here. It should be noted that if the total number of temperature data in the temperature data sequence is not a multiple of 5, the left end of the temperature data sequence is filled with 0 as a minimum, so that the total number of temperature data in the temperature data sequence is a multiple of 5. Among them, the temperature data in each temperature data interval can be defaulted to the temperature data of the same stage, and a second preset number of temperature data are randomly selected from each temperature data interval, all as sample temperature data. The embodiment of the present invention sets the second preset number to 10. The implementer can set the size of the second preset number according to actual conditions, and there is no limitation here. Therefore, a total of Sample temperature data.
[0048] For any sample temperature data, the time corresponding to the same temperature data as the sample temperature data within a preset time period is used as the reference time for the sample temperature data. The same type of operating data at all reference times for the sample temperature data is constructed into a set. For example, the temperature data at all reference times for the sample temperature data is constructed into a temperature data set, and the fuel consumption at all reference times for the sample temperature data is constructed into a fuel consumption set. A randomly selected operating data element from each set is constructed into a vector, serving as the operating data vector corresponding to the sample temperature data. The operating data vector includes the temperature data, fuel consumption, steam exhaust flow rate, steam exhaust heat, and flue gas exhaust oxygen content. The operating data vector corresponding to each sample temperature data element is then obtained, and each operating data vector is used as an individual in the genetic algorithm to construct an initial population. It is known that the magnitude of the temperature data can preliminarily reflect the fitness of each individual. Therefore, embodiments of the present invention obtain the fitness of each individual based on the temperature data within each individual, facilitating the acquisition of optimal critical temperature data through the genetic algorithm. This allows the acquisition of other optimal operating data elements based on the optimal critical temperature data, enabling accurate boiler operation simulation. The specific method for obtaining the fitness of each individual is as follows:
[0049] Based on factors such as the material characteristics and other characteristics involved in the boiler's design and manufacturing processes, the boiler's theoretical critical temperature data is obtained. The theoretical critical temperature data for the boiler is a known quantity, and the method for obtaining this data is well-known and will not be further described. The difference between the temperature data for each individual and the theoretical critical temperature data is then obtained. The smaller the difference between the temperature data for a particular individual and the theoretical critical temperature data, the greater the fitness of that individual, and the more likely that the temperature data for that individual is the optimal critical temperature data.
[0050] Preferably, the method for obtaining fitness is to obtain the difference between the temperature data of each individual and the theoretical critical temperature data as the first eigenvalue of the corresponding individual; the smaller the first eigenvalue, the greater the fitness of the corresponding individual. Therefore, the result of negatively correlating and normalizing the first eigenvalue of each individual is used as the fitness of the corresponding individual.
[0051] As an example, taking the i-th individual in the k-th iteration of the genetic algorithm as an example, the calculation formula for obtaining the fitness of the i-th individual in the k-th iteration of the genetic algorithm is:
[0052] Where, is the fitness of the i-th individual under the k-th iteration; T is the theoretical critical temperature data; is the temperature data of the i-th individual in the k-th iteration; is the first eigenvalue of the i-th individual under the k-th iteration; is the absolute value function; norm is the normalization function.
[0053] It should be noted that the first eigenvalue The smaller, and The closer they are, the more likely the temperature data in the i-th individual at the k-th iteration is to be the optimal critical temperature data. The bigger, The larger; therefore, The larger it is, the more likely the temperature data of the i-th individual in the k-th iteration is to be the optimal critical temperature data.
[0054] According to the method of obtaining the fitness of the i-th individual in the k-th iteration of the genetic algorithm, the fitness of each individual in each iteration is obtained.
[0055] Step S3: According to the fluctuation of the fitness of all individuals in each iteration of the genetic algorithm, the fluctuation of the corresponding temperature data and the similarity between individuals, the population diversity value in each iteration is obtained; according to the fuel consumption, steam emission flow, steam emission heat and flue gas emission oxygen content of each individual in each iteration, as well as the fuel calorific value of the fuel, the actual thermal power of each individual in each iteration is obtained; according to the difference between the rated thermal power and the actual thermal power of each individual in each iteration, as well as the fitness and population diversity value of each individual in each iteration, the corrected fitness of each individual in each iteration is obtained, and then the parent generation in each iteration is determined to iterate until the difference between the means of the corrected fitness after two adjacent iterations is less than the preset judgment threshold, and the iteration of the genetic algorithm is stopped.
[0056] Specifically, existing genetic algorithms directly select parents for each iteration based on the fitness of each individual. However, in embodiments of the present invention, if parents are directly obtained based on the fitness of each individual, this may cause individuals in the population at each iteration of the genetic algorithm to cluster toward certain local characteristics, resulting in a decrease in the diversity of individuals at each iteration of the genetic algorithm. This can lead to the genetic algorithm converging too quickly and resulting in a local optimal solution. Therefore, to improve the genetic algorithm's ability to obtain the optimal solution, it is necessary to adjust the fitness of each individual at each iteration of the genetic algorithm. Furthermore, based on the revised fitness of each individual at each iteration of the genetic algorithm, the optimal solution in the genetic algorithm, namely, the optimal individual for the boiler, can be accurately obtained.
[0057] The more inconsistent the characteristics of the individuals in the population are under each iteration of the genetic algorithm, the more accurate the fitness of each individual is, because the degree of population diversity is directly related to the genetic algorithm's search ability and its ability to obtain the best individual. When the individuals in the population all exhibit the same characteristics, the genetic algorithm is prone to local optimal solutions, making it impossible to determine the best individual in the genetic algorithm. In order to obtain the degree of diversity of the individuals in the population under each iteration of the genetic algorithm, the embodiment of the present invention obtains the variance of the fitness of all individuals under each iteration of the genetic algorithm, which is used as the first variance. When the first variance is larger, the individual characteristics in the population under the corresponding iteration are more inconsistent. At the same time, the variance of the temperature data of all individuals under each iteration of the genetic algorithm is obtained, which is used as the second variance. When the second variance is larger, the individual characteristics in the population under the corresponding iteration are also more inconsistent. In order to more accurately analyze the diversity of the population under each iteration of the genetic algorithm, the embodiment of the present invention further obtains the distance between any two individuals under each iteration of the genetic algorithm. When the distance between any two individuals is larger, the corresponding two individuals are less similar. When the distance between different individuals under a certain iteration of the genetic algorithm is larger, the population diversity under that iteration of the genetic algorithm is greater. Among them, the method for obtaining the distance between any two vectors is a well-known technology and will not be described in detail. Therefore, the embodiment of the present invention obtains the population diversity value under each iteration of the genetic algorithm based on the fluctuation of the fitness of all individuals under each iteration of the genetic algorithm, the fluctuation of the corresponding temperature data, and the similarity between individuals. Among them, the larger the population diversity value, the more accurate the fitness of each individual under the corresponding iteration of the genetic algorithm.
[0058] Given that the operating data for each individual is randomly constructed, in order to more accurately obtain the optimal individual, all other operating data other than temperature data for each individual is analyzed. Taking any individual in any iteration of the genetic algorithm as an example, when the fuel consumption and the calorific value of the fuel in that iteration are greater, it indicates that the boiler's heat input is greater, the energy generated is greater, the actual thermal power of the boiler corresponding to that individual in that iteration is greater, and the individual's fitness for that iteration is more accurate. When the steam exhaust flow rate and steam exhaust heat in that iteration are both smaller, it indicates that the boiler's heat output is smaller, the energy is more fully utilized, and the actual thermal power of the boiler corresponding to that individual in that iteration is greater. Furthermore, when the oxygen content of the flue gas emissions in that iteration is smaller, it indicates that the fuel is more fully burned, the actual thermal power of the boiler corresponding to that individual in that iteration is greater, closer to the rated thermal power, and the individual's fitness for that iteration is more accurate. The calorific value of the fuel is a known quantity, so the method for obtaining the calorific value will not be elaborated on. Therefore, the embodiment of the present invention obtains the actual thermal power of each individual in each iteration through the fuel consumption, steam emission flow, steam emission heat and flue gas emission oxygen content of each individual in each iteration, as well as the fuel calorific value of the fuel.
[0059] When the actual thermal power is larger and closer to the rated thermal power, it means that the fitness of the corresponding individual in the corresponding iteration of the genetic algorithm is more accurate. Among them, the rated thermal power is a known quantity, and the method of obtaining it is a well-known technology and will not be described in detail. Therefore, the embodiment of the present invention obtains the fitness correction factor of each individual in each iteration of the genetic algorithm based on the difference between the rated thermal power and the actual thermal power of each individual in each iteration, as well as the population diversity value in each iteration. When the fitness correction factor is smaller, the fitness of the corresponding individual in the corresponding iteration of the genetic algorithm is more accurate, and the degree of correction required is smaller. Then, the fitness of each individual in each iteration of the genetic algorithm is corrected according to the fitness correction factor to obtain the corrected fitness of each individual in each iteration of the genetic algorithm. Based on the corrected fitness of each individual in each iteration, the accuracy of the genetic algorithm is improved.
[0060] In order to improve the diversity of the population in each iteration of the genetic algorithm and avoid the situation where the genetic algorithm has a local optimal solution, the embodiment of the present invention determines the multiple parents in each iteration based on the corrected fitness of each individual in each iteration, and continues to iterate the genetic algorithm until the difference between the corrected fitness means after two adjacent iterations is less than a preset judgment threshold, and then stops the iteration of the genetic algorithm. The process of stopping the iteration of the genetic algorithm is as follows: Figure 2 shown.
[0061] S3-001: Get the population diversity value.
[0062] As an example, taking the individuals in the rth iteration of the genetic algorithm as an example, the calculation formula for obtaining the population diversity value in the rth iteration of the genetic algorithm is:
[0063] Where, is the population diversity value under the rth iteration of the genetic algorithm; The variance of the fitness of all individuals in the rth iteration of the genetic algorithm is the first variance; is the variance of the temperature data of all individuals in the rth iteration of the genetic algorithm, that is, the second variance; is the total number of individuals in the rth iteration of the genetic algorithm; is the distance between the i-th individual and the j-th individual in the r-th iteration of the genetic algorithm.
[0064] It should be noted that The bigger, The larger it is, the more inconsistent the characteristics of the individuals in the population are at the rth iteration of the genetic algorithm, which indirectly indicates that the individual diversity in the population is greater at the rth iteration. The bigger; The larger it is, the more dissimilar the i-th individual is to the j-th individual in the r-th iteration of the genetic algorithm. The larger it is, the greater the difference between individuals in the rth iteration of the genetic algorithm, and the greater the diversity of the population in the rth iteration of the genetic algorithm. The larger; therefore, The larger it is, the greater the individual diversity in the population is at the rth iteration, which indirectly indicates that the fitness of each individual is more accurate at the rth iteration.
[0065] According to the method for obtaining the population diversity value under the rth iteration of the genetic algorithm, the population diversity value under each iteration of the genetic algorithm is obtained.
[0066] S3-002: Get actual thermal power.
[0067] As an example, taking the ath individual in the rth iteration of the genetic algorithm as an example, the calculation formula for obtaining the actual thermal power of the ath individual in the rth iteration of the genetic algorithm is:
[0068] Where, is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the oxygen content of smoke emission in the ath individual in the rth iteration of the genetic algorithm; is the fuel consumption of the ath individual in the rth iteration of the genetic algorithm; is the steam emission flow rate in the ath individual under the rth iteration of the genetic algorithm; is the steam emission heat in the ath individual under the rth iteration of the genetic algorithm; is the fuel calorific value of the fuel; It is the first preset constant, which is greater than 0.
[0069] The embodiment of the present invention will Set to 1 to avoid the denominator being 0. Implementers can set it according to actual conditions. The size is not limited here.
[0070] It should be noted that The bigger, The larger the The larger it is, the greater the boiler input heat corresponding to the ath individual in the rth iteration of the genetic algorithm is. The bigger; The smaller, The smaller, that is The smaller it is, the smaller the heat output of the boiler corresponding to the ath individual in the rth iteration of the genetic algorithm is, and the more fully the heat is converted into the required energy. The bigger; The smaller it is, the more complete the fuel combustion is, and the greater the boiler input heat corresponding to the ath individual in the rth iteration of the genetic algorithm is. The bigger, The larger; therefore, The larger it is, the greater the actual thermal power of the boiler corresponding to the ath individual in the rth iteration of the genetic algorithm is, and the closer it is to the rated thermal power.
[0071] According to the method of obtaining the actual thermal power of the ath individual in the rth iteration, the actual thermal power of each individual in each iteration of the genetic algorithm is obtained.
[0072] S3-003: Get the fitness correction factor.
[0073] As an example, taking the ath individual in the rth iteration of the genetic algorithm as an example, the calculation formula for obtaining the fitness correction factor of the ath individual in the rth iteration is:
[0074] Where, is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm; is the rated thermal power; is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the population diversity value under the rth iteration of the genetic algorithm; is the second preset constant, which is greater than 0; norm is the normalization function.
[0075] The embodiment of the present invention will Set to 1 to avoid the denominator being 0. Implementers can set it according to actual conditions. The size is not limited here.
[0076] It should be noted that The smaller, that is The closer it is to 0, More and more , indicating that the more accurate the fitness of the ath individual is in the rth iteration of the genetic algorithm, the less correction is needed. The smaller; The larger it is, the more inconsistent the individuals in the population are under the r-th iteration of the genetic algorithm, and the more accurate the fitness of the individuals in the population are under the r-th iteration of the genetic algorithm, which indirectly indicates that the fitness of the a-th individual is more accurate under the r-th iteration of the genetic algorithm. The smaller, The smaller; therefore, The smaller it is, the more accurate the fitness of the ath individual in the rth iteration of the genetic algorithm is, and the less correction is needed.
[0077] According to the method for obtaining the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm, the fitness correction factor of each individual in each iteration of the genetic algorithm is obtained.
[0078] S3-004: Get the corrected fitness.
[0079] It is known that the smaller the fitness correction factor is, the more accurate the fitness of the corresponding individual in the genetic algorithm in the corresponding iteration is. As an example, taking the ath individual in the rth iteration of the genetic algorithm as an example, the calculation formula for obtaining the corrected fitness of the ath individual in the rth iteration of the genetic algorithm is:
[0080] Where, is the modified fitness of the ath individual in the rth iteration of the genetic algorithm; is the fitness of the ath individual in the rth iteration of the genetic algorithm; It is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm.
[0081] It should be noted that The smaller, The smaller, That is, the fitness correction part of the ath individual under the rth iteration of the genetic algorithm, then and The closer they are, the more accurate the fitness of the ath individual is in the rth iteration of the genetic algorithm. The larger it is, the more likely the temperature data in the ath individual under the rth iteration of the genetic algorithm is to be the optimal critical temperature data, which indirectly indicates that the ath individual under the rth iteration of the genetic algorithm is more likely to be the best individual. At the same time, it indicates that the ath individual under the rth iteration of the genetic algorithm is more likely to be the parent.
[0082] According to the method for obtaining the revised fitness of the ath individual in the rth iteration of the genetic algorithm, the revised fitness of each individual in each iteration of the genetic algorithm is obtained.
[0083] S3-005: Get the parent of each iteration.
[0084] In order to ensure the diversity of the population in each iteration, the embodiment of the present invention marks the individuals corresponding to the sample temperature data in the same temperature data interval as the same characteristic individual, that is, the individuals corresponding to the 10 sample temperature data in the same temperature interval are the same characteristic individual. The corrected fitness of each individual in each iteration is obtained, and the individual corresponding to the largest corrected fitness of each characteristic individual in each iteration is used as the parent in each iteration. As can be seen from step S2, the embodiment of the present invention divides the temperature data within the preset time period into 5 temperature data intervals. Therefore, each iteration contains a total of 5 characteristic individuals, and then the genetic algorithm screens out 5 parents in each iteration. It should be noted that if the largest corrected fitness of a certain characteristic individual in a certain iteration of the genetic algorithm corresponds to at least two individuals, then any individual is selected as one of the parents in that iteration.
[0085] S3-006: Stop the iteration of the genetic algorithm.
[0086] The mean corrected fitness of all individuals in each iteration of the genetic algorithm is obtained. When the absolute difference between the corrected fitness means between two consecutive iterations is less than a preset judgment threshold, the genetic algorithm iteration is terminated. In this embodiment of the present invention, the preset judgment threshold is set to 0.1. Implementers can adjust the preset judgment threshold based on actual conditions and this is not limited here. This concludes the genetic algorithm iteration process.
[0087] Step S4: According to the corrected fitness of each individual after stopping the iteration, the best individual is obtained to perform boiler operation simulation.
[0088] Specifically, the corrected fitness of each individual after the genetic algorithm stops iterating is obtained, and the individual corresponding to the highest corrected fitness is selected as the best individual. If there are at least two individuals corresponding to the highest corrected fitness, one of them is randomly selected as the best individual. The temperature data of the best individual is the optimal critical temperature data. Each operating data of the best individual is input into the constructed boiler simulation model, and the boiler simulation model is run to obtain the operating status of the boiler under the optimal operating data.
[0089] Based on the results of boiler operation simulation, the performance of the boiler in actual conditions under optimal operating data is analyzed and evaluated, including the efficiency of boiler fuel combustion, boiler fuel energy consumption and boiler safety performance. Based on the analysis and evaluation results, specific measures for the subsequent boiler operation strategy are formulated to enable the boiler to generate more energy while operating safely.
[0090] So far, the present invention is completed.
[0091] In summary, the embodiment of the present invention obtains the operating data of the boiler at each moment, and then obtains individuals in the genetic algorithm. Based on the differences between individuals in each iteration of the genetic algorithm, a population diversity value is obtained; based on the fuel consumption, steam emission flow rate, steam emission heat, and flue gas emission oxygen content in the individuals in each iteration, as well as the fitness and population diversity value of the individuals in each iteration, a corrected fitness of each individual in each iteration is obtained until the genetic algorithm iteration stop condition is met and the iteration is stopped; based on the corrected fitness of the individual after the iteration is stopped, the optimal individual is obtained to perform boiler operation simulation. The present invention improves the accuracy of the genetic algorithm by correcting the fitness of each individual in each iteration of the genetic algorithm, thereby accurately obtaining the optimal individual and enabling accurate boiler operation simulation.
[0092] It should be noted that the order in which the embodiments of the present invention are described above is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0093] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
Claims
1. A boiler operation simulation method based on complex calculations, It is characterized in that The method comprises the following steps: Obtaining the operating data of the boiler at each moment within a preset time period; wherein the operating data includes temperature data, fuel consumption, steam exhaust flow, steam exhaust heat, and flue gas exhaust oxygen content; Based on the change of temperature data in a preset time period, a preset number of sample temperature data are screened out, and according to each sample temperature data in the preset time period and each other operating data at the corresponding time of the same temperature data, the operating data vector corresponding to each sample temperature data is obtained, and all of them are used as individuals in the genetic algorithm to construct an initial population; according to the size of the temperature data in each individual, the fitness of each individual is obtained; According to the fluctuation of the fitness of all individuals in each iteration of the genetic algorithm, the fluctuation of the corresponding temperature data and the similarity between individuals, the population diversity value in each iteration is obtained; according to the fuel consumption, steam emission flow, steam emission heat and flue gas emission oxygen content in each individual in each iteration, and the fuel calorific value of the fuel, the actual thermal power of each individual in each iteration is obtained; according to the difference between the rated thermal power and the actual thermal power of each individual in each iteration, as well as the fitness and population diversity value of each individual in each iteration, the corrected fitness of each individual in each iteration is obtained, and then the parent generation in each iteration is determined to iterate until the difference between the means of the corrected fitness after two adjacent iterations is less than the preset judgment threshold, and the iteration of the genetic algorithm is stopped; According to the corrected fitness of each individual after stopping iteration, the best individual is obtained to perform boiler operation simulation; The method for obtaining the modified fitness is: According to the difference between the rated thermal power and the actual thermal power of each individual in each iteration of the genetic algorithm, and the population diversity value in each iteration of the genetic algorithm, the fitness correction factor of each individual in each iteration of the genetic algorithm is obtained; Correcting the fitness of each individual in each iteration of the genetic algorithm according to the fitness correction factor to obtain the corrected fitness of each individual in each iteration of the genetic algorithm; The calculation formula of the fitness correction factor is: ; In the formula, is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm; is the rated thermal power; is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the population diversity value at the rth iteration of the genetic algorithm; is the second preset constant, greater than 0; norm is the normalization function; The calculation formula of the modified fitness is: ; In the formula, is the modified fitness of the ath individual in the rth iteration of the genetic algorithm; is the fitness of the ath individual in the rth iteration of the genetic algorithm; It is the fitness correction factor of the ath individual in the rth iteration of the genetic algorithm.
2. A boiler operation simulation method based on complex calculation as claimed in claim 1, It is characterized in that The method of filtering a preset number of sample temperature data based on the change of temperature data within a preset time period, and obtaining the operation data vector corresponding to each sample temperature data according to each other operation data at the corresponding moment of the same temperature data within the preset time period is: Sort the temperature data within a preset time period from small to large to obtain a temperature data sequence; Evenly divide the temperature data sequence into a first preset number of temperature data intervals, and randomly select a second preset number of temperature data from each temperature data interval as sample temperature data; For any sample temperature data, the time corresponding to the temperature data with the same temperature data as the sample temperature data within the preset time period is used as the reference time of the sample temperature data; The same type of operating data at all reference moments are constructed into a set, and one operating data is randomly selected from each set to construct a vector as the operating data vector corresponding to the sample temperature data.
3. A boiler operation simulation method based on complex calculation as claimed in claim 1, It is characterized in that The method for obtaining the fitness is: Obtain the difference between the temperature data of each individual and the theoretical critical temperature data as the first eigenvalue of the corresponding individual; The result of negatively correlating and normalizing the first eigenvalue of each individual is taken as the fitness of the corresponding individual.
4. A boiler operation simulation method based on complex calculation as claimed in claim 1, It is characterized in that The calculation formula of the population diversity value is: ; In the formula, is the population diversity value at the rth iteration of the genetic algorithm; is the variance of the fitness of all individuals in the rth iteration of the genetic algorithm; is the variance of temperature data of all individuals in the rth iteration of the genetic algorithm; is the total number of individuals in the rth iteration of the genetic algorithm; is the distance between the i-th individual and the j-th individual in the r-th iteration of the genetic algorithm.
5. A boiler operation simulation method based on complex calculation as claimed in claim 1, It is characterized in that The calculation formula of the actual thermal power is: ; In the formula, is the actual thermal power of the ath individual in the rth iteration of the genetic algorithm; is the oxygen content of smoke emission in the ath individual in the rth iteration of the genetic algorithm; is the fuel consumption of the ath individual in the rth iteration of the genetic algorithm; is the steam emission flow rate in the ath individual under the rth iteration of the genetic algorithm; is the steam emission heat in the ath individual in the rth iteration of the genetic algorithm; is the fuel calorific value of the fuel; It is the first preset constant, which is greater than 0.
6. A boiler operation simulation method based on complex calculation as claimed in claim 2, It is characterized in that The method for obtaining the parent generation in each iteration is: The individuals corresponding to the sample temperature data in the same temperature data interval are marked as the same characteristic individuals; The corrected fitness of each individual in each iteration is obtained, and the individual corresponding to the largest corrected fitness of each characteristic individual in each iteration is used as the parent in each iteration.
7. A boiler operation simulation method based on complex calculation as claimed in claim 1, It is characterized in that The method for obtaining the best individual is: The individual corresponding to the maximum corrected fitness after stopping the iteration is taken as the best individual.
