Optimization method for energy-saving operation of series compressor units based on genetic algorithm
Through the genetic algorithm, the operation parameters of the compressor group are optimized, and the problem of low energy-saving operation optimization efficiency of the compressor group in the existing technology is solved, and the optimal operating parameter combination is achieved quickly and accurately, which meets the total pressure ratio and power requirements, and improves the compressor group's Energy-saving effect.
Patent Information
- Application Number
- CN202411162037.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-23
AI Technical Summary
In the prior art, the energy-saving operation optimization method of the compressor group is inefficient and cannot quickly and accurately obtain the optimal operating parameter combination, resulting in the total power not necessarily being the smallest, and there is a lack of correlation between the operating parameter adjustments of each compressor.
Using a genetic algorithm-based method, by setting constraints and fitness functions, the operating parameters of the compressor group are optimized to ensure that the operating parameters of each compressor are within its interval, the total pressure ratio meets the preset requirements, and the total power is reduced. The calculation model is used as a fitness function, and iterative optimization obtains the target running parameter combination.
On the basis of meeting the total pressure ratio requirements, the operating parameter combination with the smallest total power of the compressor group is quickly and accurately obtained, which improves the energy-saving operation efficiency of the compressor group and ensures the optimization correlation of each compressor parameter.
Smart Images

Figure CN118690662B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of compressors, and in particular to a method and medium for optimizing the energy-saving operation of a series compressor set based on a genetic algorithm. Background Art
[0002] Compressors are the main energy-consuming equipment in the fields of chemical industry, air separation, etc. In practical applications, in order to meet the demand for large pressure ratio of compressors, multiple compressors can be connected in series to obtain a series-connected compressor unit. And on the basis of meeting the pressure ratio requirements, the operating parameters of the compressor unit are adjusted so that the compressor unit operates at the minimum power, thereby achieving energy saving effect.
[0003] In the related art, according to the existing compressor performance curve, on the basis of meeting the flow rate and pressure ratio requirements, the adjustable range of each compressor is determined according to empirical data, and according to the adjustment step, multiple groups of compressor operating parameter combination schemes are gradually designed. For each group of combination schemes, the total power of the compressor unit when it operates according to the operating parameters in the combination scheme is obtained, and then the combination scheme corresponding to the minimum total power is selected so that the compressor unit can operate according to the combination scheme corresponding to the minimum total power.
[0004] However, the processing efficiency of the method in the related art is low, and it is impossible to obtain the best combination scheme in a short time. In addition, the operating parameters of each compressor in the compressor unit are gradually adjusted according to the adjustment step, and the number of obtained combination schemes is limited. The combination scheme with the minimum total power selected from the limited combination schemes may not be the optimal scheme that can meet the flow and pressure ratio requirements and the minimum total power requirements. In addition, when the operating parameters are adjusted according to the adjustment step, there is a lack of correlation between the optimization degree of each group of combination schemes, and there is no dependence between the total power obtained after each adjustment of the operating parameters and the total power obtained after the previous adjustment. That is, in the related art, there is a lack of a method that can quickly and accurately obtain the optimal operating parameter combination of the compressor unit. Summary of the invention
[0005] The present application aims to provide a method for optimizing the energy-saving operation of a series compressor unit based on a genetic algorithm, at least to solve the problem in the prior art of lacking a method for quickly and accurately obtaining the optimal operating parameter combination of the compressor unit.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] The embodiment of the present application provides a method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm, wherein the compressor unit includes a plurality of compressors connected in series; the method includes:
[0008] Obtaining constraint conditions of the genetic algorithm, the constraint conditions comprising: an operating parameter of each of the compressors is within an operating parameter interval corresponding to the compressor, and a flow rate of each of the compressors is equal to a preset flow rate corresponding to each compressor, and when each compressor operates according to an operating parameter corresponding to the compressor in an operating parameter combination, a total pressure ratio of the compressor group is greater than a preset pressure ratio; the operating parameter combination comprises a plurality of operating parameters, and the operating parameters correspond to the compressors one by one;
[0009] Determining a total power calculation model of the compressor group as the fitness function of the genetic algorithm; the total power calculation model is used to calculate the total power of the compressor group according to the combination of operating parameters;
[0010] A genetic algorithm is used to iteratively optimize the operating parameter combination of the compressor unit according to the constraint conditions and the fitness function to obtain a target operating parameter combination so that the compressor unit can operate according to the target operating parameter combination.
[0011] In summary, in this embodiment, the operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and the flow rate of each compressor is equal to the preset flow rate corresponding to each compressor, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio as the constraint condition of the genetic algorithm. The total power calculation model of the compressor group is determined as the fitness function of the genetic algorithm. Using the genetic algorithm, according to the above-mentioned constraints and fitness function, the operating parameter combination of the compressor group is iteratively optimized to obtain the target operating parameter combination for the compressor group to operate according to the target operating parameter combination. By setting the genetic algorithm with the above-mentioned constraints and fitness function, the operating parameters of each compressor in the compressor group can be in the corresponding operating parameter range, and the compressor pressure ratio meets the user's pressure ratio requirements for the compressor, that is, the total pressure ratio of the compressor group is equal to the preset pressure ratio. This embodiment can quickly and accurately obtain the target operating parameter combination with the minimum total power on the basis that the total pressure ratio of the compressor group meets the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flowchart of the steps of a method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm provided in an embodiment of the present application;
[0013] Figure 2 It is a flow-pressure ratio performance curve diagram of a compressor provided in an embodiment of the present application;
[0014] Figure 3 It is a flowchart of the steps of another method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm provided by the present application;
[0015] Figure 4 This is a flowchart of the steps of another method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm provided by the present application;
[0016] Figure 5 It is a structural schematic diagram of a series compressor unit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0019] Compressors are the main energy-consuming equipment in the fields of chemical industry, air separation, etc. In order to meet the demand for high-pressure ratio compression of gas, multiple compressors can be connected in series, and the gas can be compressed multiple times through the compressor units connected in series to reach the target pressure. However, the energy consumption of multiple compressors running in series is relatively high. Therefore, how to adjust the speed of each compressor so that it can run in an energy-saving manner while meeting the flow and pressure requirements is of great significance to reducing energy consumption and saving costs. When multiple compressors are operated in series, the inlet temperature and inlet pressure of the downstream compressor will change with the outlet conditions of the upstream compressor, and the performance curve of the compressor will also change with the changes in the inlet conditions. Among them, refer to Figure 5 In two interconnected compressors, if the outlet of compressor one is connected to the inlet of compressor two, compressor one is the upstream compressor of compressor two, and compressor two is the downstream compressor of compressor one.
[0020] In the related art, adjusting the downstream compressor based on the performance curve data under the existing single inlet condition will produce a large error, and it is impossible to accurately determine the optimal operating point for energy-saving operation of the compressor unit, and it is impossible to obtain the optimal operating parameter combination of the compressor unit.
[0021] In actual engineering, based on the existing compressor performance curves, on the basis of meeting the flow and pressure requirements, the adjustable range and adjustment step of each compressor speed are usually determined by experience. According to the adjustment step, the speed combination schemes of each compressor are tested separately within the adjustable range, and the optimal scheme is selected for the actual operation process. However, the operation process of this method is cumbersome, and the test cost is high. In addition, there is no dependency between the total powers of the compressor units corresponding to the different operating parameter combinations adjusted. The global optimal result cannot be guaranteed by the relevant technical methods. Therefore, it is necessary to propose a new energy-saving operation optimization method for series compressor units, which can quickly and accurately calculate the speed adjustment schemes of each compressor when the total operating power of the series compressor unit is the lowest.
[0022] In response to the problems existing in the related art, an embodiment of the present application provides a method for optimizing the energy-saving operation of a series compressor group based on a genetic algorithm, including: obtaining the constraints of the genetic algorithm, the constraints including: the operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and, the flow rate of each compressor is equal to the preset flow rate corresponding to each compressor, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio; the operating parameter combination includes multiple operating parameters, and the operating parameters and compressors correspond one to one; the total power calculation model of the compressor group is determined as the fitness function of the genetic algorithm; the total power calculation model is used to calculate the total power of the compressor group according to the operating parameter combination; using a genetic algorithm, according to the constraints and the fitness function, the operating parameter combination of the compressor group is iteratively optimized to obtain a target operating parameter combination, so that the compressor group can operate according to the target operating parameter combination.
[0023] The following is a further exemplary description of the energy-saving operation optimization method of a series compressor unit based on a genetic algorithm of the present application in conjunction with the accompanying drawings and specific embodiments.
[0024] Figure 1 1 is a flowchart of a method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm provided in an embodiment of the present application. In this embodiment, the compressor unit includes a plurality of compressors connected in series. Figure 1 As shown, the method may include:
[0025] Step 101, obtaining the constraints of the genetic algorithm, the constraints include: the operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and the flow rate of each compressor is equal to the corresponding preset flow rate, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio.
[0026] Specifically, the operating parameter combination includes multiple operating parameters, and the operating parameters correspond to the compressors one by one. For example, the operating parameters may include: compressor speed, compressor inlet guide vane angle, or other adjustable operating parameters that affect the compressor power.
[0027] The operating parameter range of the compressor is a range consisting of the minimum value and the maximum value of the operating parameter. The minimum value and the maximum value of the adjustable operating parameter of the compressor provided by the compressor manufacturer can be obtained, and the range consisting of the minimum performance parameter and the maximum performance parameter is determined as the operating parameter range of the compressor.
[0028] You can also obtain the performance curve of the compressor pressure ratio changing with flow rate, and obtain the operating parameter range based on the performance curve. For example, Figure 2 The following is a schematic diagram of the performance curve of a compressor in a compressor unit. Figure 2 The operating parameter is the speed, among which the performance parameters include 5 items, which are , speed , speed , speed And speed The corresponding performance curve is: < < < , then the operating parameter range of the compressor is [ , ].in, Indicates the pressure ratio, Indicates flow rate, and The speed is equal to When the minimum flow and maximum flow Furthermore, the performance curve may be a performance curve provided by the compressor manufacturer when the compressor leaves the factory, or a performance curve obtained after a performance test of the compressor.
[0029] The compressor may be a centrifugal compressor, an axial compressor, or other compressors. Further, when the compressor is a centrifugal compressor, the performance curve is a centrifugal compressor performance curve; when the compressor is an axial compressor, the performance curve is an axial compressor performance curve.
[0030] The preset pressure ratio is the pressure ratio that the user needs the compressor to provide. For example, the total pressure ratio calculation model of the compressor is as follows:
[0031] ;
[0032] in, is the total pressure ratio of the compressor unit, For the i The pressure ratio of the compressor, is the total number of compressors in the compressor unit.
[0033] According to the total pressure ratio calculation model, the total pressure ratio of the compressor unit is equal to the product of the pressure ratios of the flow rates of each compressor.
[0034] Furthermore, the flow-pressure ratio performance curve of the compressor can be obtained when the compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, and the pressure ratio of each compressor according to the preset flow rate is substituted into the above-mentioned total pressure ratio calculation model according to the flow-pressure ratio performance curve of the compressor, so as to obtain the total pressure ratio of the compressor group.
[0035] Step 102: determining the total power calculation model of the compressor unit as the fitness function of the genetic algorithm.
[0036] Specifically, the total power calculation model is used to calculate the total power of the compressor unit according to the combination of operating parameters.
[0037] For example, the total power calculation model of the compressor unit is as follows:
[0038] ;
[0039] in, is the total power of the compressor unit, For the i The power of the compressor, For the i The power calculation function of a compressor, For the i The operating parameters of the compressor, For the i The flow rate of the compressor, is the total number of compressors in the compressor unit.
[0040] According to the total power calculation model, the total power of the compressor unit is equal to the sum of the powers of each compressor in the compressor unit.
[0041] The compressor power is a quantity related to the operating parameters and the flow rate. When performing iterative optimization according to the genetic algorithm, the compressor power of the compressor can be obtained according to the flow-power performance curve of the compressor when the compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, and the preset flow rate of the compressor.
[0042] Step 103, using a genetic algorithm, according to the constraint conditions and the fitness function, iteratively optimizes the operating parameter combination of the compressor unit to obtain a target operating parameter combination, so that the compressor unit can operate according to the target operating parameter combination.
[0043] In each iteration optimization, the individuals inherited to this iteration are selected from the individuals obtained in the previous iteration optimization, and the selected individuals are adjusted to obtain new individuals of this iteration. Among them, one individual corresponds to one operating parameter combination.
[0044] The constraints of the genetic algorithm include: the operating parameters of each compressor are within the operating parameter range corresponding to the compressor. When adjusting the individual, it is necessary to ensure that the operating parameters of each compressor in the new individual are within the operating parameter range corresponding to the compressor.
[0045] The constraints of the genetic algorithm also include: when the flow rate of each compressor is equal to the corresponding preset flow rate, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio. Then, in each iteration, after obtaining a new individual, it is necessary to ensure that when the compressor group operates according to the operating parameter combination corresponding to the new individual, the total pressure ratio of the compressor group is greater than or equal to the preset pressure ratio.
[0046] In addition, if within the operating parameter range, after adjusting the individuals selected from the individuals of the previous iteration, the total pressure ratio corresponding to the new individuals obtained is less than the preset pressure ratio, individuals with high fitness (i.e., small total power) and corresponding total pressure ratio greater than or equal to the preset pressure ratio can be selected from the individuals obtained from the previous iteration, and the newly selected individuals are used to replace the new individuals with total pressure ratio less than the preset pressure ratio in this iteration. In this way, it can be ensured that all new individuals can meet the following constraints: when the flow rate of each compressor is equal to the corresponding preset flow rate, and each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio.
[0047] Furthermore, multiple selection operations are performed on the individuals obtained by the last iterative optimization, and when each selection operation is performed, the probability of the individual being selected is inversely proportional to the fitness function value of the individual. In this embodiment, the fitness function is a total power calculation model of the compressor group, and the fitness function value is the total power of the compressor group, and the smaller the fitness function value, the higher the fitness of the individual.
[0048] Correspondingly, in each selection operation, the probability of an individual being selected is inversely proportional to the total power of the compressor unit when the compressor unit operates according to the operating parameter combination corresponding to the individual. In other words, the smaller the total power corresponding to the individual, the higher the probability of the individual being selected.
[0049] The target operating parameter combination obtained is used for the compressor unit to operate according to the target operating parameter combination. Figure 5 , the compressor unit includes compressor 1 and compressor 2, the operating parameter is the speed, and the target operating parameter combination includes the speed n1 of compressor 1 and the speed n2 of compressor 2. After determining the target operating parameter combination, compressor 1 operates at the speed n1, and compressor 2 operates at the speed n2, so as to ensure that the total flow of the compressor unit meets the user's needs, the pressure ratio of each compressor meets the user's needs, and the speed of each compressor is within the speed range corresponding to the compressor, and the total power of the compressor unit is minimized.
[0050] In this embodiment, in this embodiment, the operating parameters of each compressor are in the operating parameter interval corresponding to the compressor, and the flow rate of each compressor is equal to the preset flow rate corresponding to each compressor, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio as the constraint condition of the genetic algorithm. The total power calculation model of the compressor group is determined as the fitness function of the genetic algorithm. Using the genetic algorithm, according to the above-mentioned constraints and fitness function, the operating parameter combination of the compressor group is iteratively optimized to obtain the target operating parameter combination for the compressor group to operate according to the target operating parameter combination. By setting the genetic algorithm with the above-mentioned constraints and fitness function, the operating parameters of each compressor in the compressor group can be in the corresponding operating parameter interval, and the compressor pressure ratio meets the user's pressure ratio requirements for the compressor, that is, the total pressure ratio of the compressor group is equal to the preset pressure ratio. This embodiment can quickly and accurately obtain the target operating parameter combination with the minimum total power on the basis that the total pressure ratio of the compressor group meets the user's needs.
[0051] Figure 3 is a flowchart of another method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm provided in an embodiment of the present application, referring to Figure 3 , the method may include the following steps:
[0052] Step 201, obtaining the constraints of the genetic algorithm, the constraints include: the operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and the flow rate of each compressor is equal to the corresponding preset flow rate, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio.
[0053] The operating parameter combination includes a plurality of operating parameters, and the operating parameters correspond to the compressors one by one.
[0054] For example, in step 201, obtaining the total pressure ratio of the compressor group when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination may include the following sub-steps:
[0055] Sub-step 2011, obtaining the pressure ratio of each compressor when it operates according to the operating parameters corresponding to the compressor in the operating parameter combination.
[0056] For example, a flow-pressure ratio curve corresponding to the operating parameters is obtained, and the flow-pressure ratio curve is a curve showing the pressure ratio changing with the flow rate. According to the flow-pressure ratio curve, a target pressure ratio corresponding to the preset flow rate is obtained, and the target pressure ratio is determined as the pressure ratio when the compressor operates according to the corresponding preset flow rate and each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination.
[0057] In sub-step 2012, the product of the pressure ratios of all the compressors is determined as the total pressure ratio of the compressor group.
[0058] That is, the total pressure ratio of the compressor group is obtained according to the following method: for:
[0059] ;
[0060] in, is the total pressure ratio of the compressor unit, For the i The pressure ratio of the compressor, is the total number of compressors in the compressor unit.
[0061] Step 202: determine the total power calculation model of the compressor unit as the fitness function of the genetic algorithm.
[0062] The total power calculation model is used to calculate the total power of the compressor unit according to the combination of operating parameters. The method of this step has been described in the aforementioned step 102 and will not be repeated here.
[0063] Step 203: In each iteration process, multiple selection operations are performed on the multiple first operating parameter combinations obtained in the previous iteration to obtain multiple target first operating parameter combinations.
[0064] The first operating parameter combination includes a plurality of first operating parameters corresponding one-to-one to the compressors.
[0065] In each selection operation, the probability of the first operating parameter combination being selected is negatively correlated with the first total power of the compressor group corresponding to the first operating parameter combination.
[0066] The total power calculation model of the compressor unit is determined as the fitness function of the genetic algorithm, and the total power is the fitness function value of the genetic algorithm. The smaller the total power, the higher the fitness of the first operating parameter combination, and the higher the excellence of the first operating parameter combination.
[0067] Step 204: for each target first operating parameter combination, according to the constraint condition of the genetic algorithm, adjust the first operating parameter in the target first operating parameter combination to obtain a second operating parameter combination.
[0068] According to the constraint condition of the genetic algorithm, the first operating parameter in the target first operating parameter combination is adjusted to ensure that the second operating parameters in the second operating parameter combination are all within the operating parameter range of the compressor corresponding to the second operating parameter. Each second operating parameter combination has a corresponding second total power.
[0069] Furthermore, the second operating parameter is an operating parameter obtained by performing factor-free processing on the compressor operating parameter according to the compressor inlet temperature. The operating parameters of the compressor are speed , using its inlet temperature The speed is processed dimensionlessly to obtain the second operating parameter: .
[0070] Each second operating parameter combination has a corresponding second total power. Specifically, according to the second operating parameter of each compressor in the second operating parameter combination, the compressor power of each compressor is obtained respectively, and the compressor powers of each compressor in the compressor group are summed to obtain the total power of the compressor group.
[0071] For example, the data structure of the target first operating parameter combination is a string structure; step 204 may include the following sub-steps:
[0072] Sub-step 2041 , combining target first operating parameter combinations in pairs to obtain a plurality of parameter combination pairs.
[0073] The data structure of the target first operating parameter combination is a string structure. For example, multiple first operating parameters are concatenated and encoded to obtain the target first operating parameter of the string structure.
[0074] For example, the target first operating parameter combination may be randomly assigned to obtain a plurality of parameter combination pairs.
[0075] Sub-step 2042, within the parameter combination interval, swapping characters of the first preset data bits of two target first operating parameter combinations in the parameter combination pair to obtain two third operating parameter combinations.
[0076] The first preset data bit may be one or more, and the second preset data bit may be randomly selected.
[0077] Specifically, in the parameter combination pair, the characters of the first target first operation parameter combination in the first preset data and the characters of the second target first operation parameter combination in the first preset data are obtained, and the two characters are exchanged to obtain two third operation parameter combinations.
[0078] For example, the target first operating parameter combination is a binary string structure data, one of which is 0000100100001001, and the other is 0000101000011011. The first preset data is the third data bit arranged from left to right. In "0000100000011001", the character of the seventh data bit is "0", and in "0000101000011011", the character of the seventh data bit is "1". By exchanging these two characters, the two third operating parameter combinations obtained are "0000101100001001" and "0000100100001011".
[0079] For another example, the crossover bits in two string structure data are determined, the two data bits before and after the crossover bits are determined as first preset data bits, and for each string structure data, the characters of the two first preset data bits are exchanged to obtain two third operating parameter combinations.
[0080] Sub-step 2043, within the parameter combination interval, changing the character of the second preset data bit of the third operating parameter combination to obtain a fourth operating parameter combination, and determining the fourth operating parameter combination as the second operating parameter combination.
[0081] The second preset data bit may be one or more, and the second preset data bit may be randomly selected. For example, if the target first operating parameter is a string structure data in binary format, the characters of the second preset data bit may be inverted to obtain a fourth operating parameter combination. Specifically, the inversion process is to change the character "0" to "1" and the character "1" to "0".
[0082] For example, the third operating parameter is "0000100100001011", and the second preset data bit is the sixth data bit arranged from left to right, then the character of the second preset data bit is inverted, and the fourth operating parameter combination obtained is "00001101000011011".
[0083] For example, the parameter combination intervals in sub-step 2042 and sub-step 2043 can be obtained according to the following sub-steps:
[0084] Sub-step A1: acquiring a first upper limit value and a first lower limit value of the first operating parameter according to an operating parameter range of the compressor corresponding to the first operating parameter.
[0085] The first operating parameter combination includes multiple first operating parameters, and the first operating parameters correspond to the compressors in the compressor group one by one. The method for obtaining the operating parameter interval of the compressor corresponding to the first operating parameter can refer to the description of the operating parameter interval in the above step 101, which will not be repeated here.
[0086] Sub-step A2: concatenate and encode the first lower limit values of all first operating parameters to obtain the second lower limit value of the target first operating parameter combination.
[0087] For example, the compressor group includes multiple compressors, each compressor has its own number, and the compressor numbers are sorted to obtain a sorting result. According to the sorting result, the first lower limit value of the first operating parameter corresponding to each compressor is spliced and encoded to obtain the second lower limit value of the target first operating parameter combination.
[0088] For example, refer to Figure 5 The compressor includes compressor 1 and compressor 2, the operating parameter is the speed, the lower limit value of the speed of compressor 1 is 15, and the lower limit value of the speed of compressor 2 is also 15. These two lower limit values of the speed are concatenated and converted into binary format, and the second lower limit value of the target first operating parameter combination is "0000111100001111".
[0089] Sub-step A3, concatenating and encoding the first upper limit values of all first operating parameters to obtain the second upper limit value of the target first operating parameter combination.
[0090] For example, the sorting result obtained in step A2 is obtained, and according to the sorting result, the upper limit values of the first operating parameters corresponding to the compressors are concatenated and encoded to obtain the second upper limit value of the target first operating parameter combination.
[0091] For example, refer to Figure 5 , the speed upper limit value of compressor one is 100, and the speed upper limit value of compressor two is 110, then these two speed upper limit values are concatenated and converted into binary format to obtain the second upper limit value of the target first operating parameter combination is "0110010001101110".
[0092] Sub-step A4: constructing a parameter combination interval according to the second lower limit value and the second upper limit value.
[0093] The upper limit of the parameter combination interval is the second upper limit, and the lower limit of the parameter combination interval is the second lower limit. For example, the second lower limit is "0000111100001111", and the second upper limit is "0110010001101110", then the parameter combination interval is [0000111100001111, 0110010001101110].
[0094] Step 205: Obtain the compressor power corresponding to the second operating parameter.
[0095] The compressor power function of the compressor is a quantity related to the operating parameters and the pressure ratio. For example, when the pressure ratio is equal to the preset pressure ratio, the preset pressure ratio and the second operating parameter are substituted into the power function , the compressor power corresponding to the second operating parameter can be obtained. For the i The pressure ratio of the compressor, is the second operating parameter of the i-th compressor.
[0096] For example, step 205 may include the following sub-steps:
[0097] Sub-step 2051, obtaining a first performance curve when the compressor operates according to the second operating parameters.
[0098] The first performance curve is a curve showing power variation with flow rate when the compressor is operated according to the second operating parameter. For example, the first performance curve is a quadratic function curve, and the first performance curve can also be a cubic spline curve. For the same compressor, different second operating parameters correspond to different first performance curves.
[0099] For example, obtaining a first performance curve of a compressor may include the following sub-steps:
[0100] Sub-step F1, obtaining a plurality of third performance curves of the compressor.
[0101] The third performance curve corresponds to the preset operating parameters one by one, and the third performance curve is a curve showing the power changes with the flow rate when the compressor operates according to the corresponding preset operating parameters. For the same compressor, different preset operating parameters correspond to different third performance curves.
[0102] Specifically, the third performance curve corresponds to the preset operating parameters one by one, and the third performance curve is a curve showing that the pressure ratio changes with the flow rate when the compressor operates according to the corresponding preset operating parameters.
[0103] For example, there are five third performance curves of compressor 1, and each third performance curve has a corresponding operating parameter (for example, a rotation speed).
[0104] For example, refer to Figure 2 , if the vertical axis is power, then Figure 2 This is the third performance curve of power changing with flow. If the preset operating parameters are marked as n 1, n 2, n 3, n 4, n 5, but Figure 2 It includes five third performance curves with different preset operating parameters.
[0105] Sub-step F2: for each third performance curve, interpolate the third performance curve to obtain a plurality of first flow values sorted in order of flow size.
[0106] Each first flow value has a corresponding arrangement sequence number, and the number of first flow values obtained from each third performance curve is equal.
[0107] For example, for each third performance curve, an equal number of encrypted interpolation methods can be adopted to obtain multiple first flow values. For example, after equal number of encrypted interpolation is performed on each third performance curve, 10 data points can be obtained for each first performance curve, and each data point includes a first flow value and a first power corresponding to the first flow value. For example, the first flow of the data point increases in the order of arrangement numbers 1, 2, ..., 10.
[0108] Sub-step F3, fitting multiple fourth performance curves according to the first flow values with the same arrangement number in the multiple third performance curves, the first power corresponding to the first flow value, and the preset operating parameters corresponding to each third performance curve.
[0109] Among them, the fourth performance curve and the arrangement number correspond one to one; for example, according to the five data points with arrangement number 1 (the five data points with the smallest first flow value on each third performance curve), the fourth performance curve with arrangement number 1 is fitted; according to the five data points with arrangement number 2 (the five data points with the smallest first flow value on each third performance curve), the fourth performance curve with arrangement number 2 is fitted; and so on, a total of 10 fourth performance curves are fitted, and the arrangement numbers of the fourth performance curves are 1, 2, ..., 10, respectively.
[0110] The number of first data points is not limited to 10, but may be more. For example, if the first flows are sorted in ascending order, and there are 50 first flows, then in each first performance curve, the arrangement numbers of the 50 first flows are 1, 2, ..., 50.
[0111] For example, there are five third performance curves. From the third performance curves corresponding to each preset operating parameter, the first flow value with the arrangement number 1 and the first power corresponding to the first flow value are extracted respectively. Thus, five data points can be obtained, each of which includes the first flow value and the first power corresponding to the first flow value. A quadratic function curve is fitted to these five data points to obtain the fourth performance curve with the arrangement number 1. For example, referring to Figure 2 ,like Figure 2 The vertical axis is power, Figure 2 The surge line in the figure is the fourth performance curve with the arrangement number 1, and the blockage line is the fourth performance curve with the largest arrangement number.
[0112] Sub-step F4, interpolating the fourth performance curve to obtain a second flow value when the compressor operates according to the second operating parameter, and a second power corresponding to the second flow value.
[0113] For example, interpolation processing is performed on each fourth performance curve to obtain a data point on the second performance curve where the operating parameter is equal to the second operating parameter.
[0114] For example, 10 data points are arranged in order from small to large flow rates to obtain an arrangement result of 10 data points, each of which has a corresponding arrangement number. Further, in the same third performance curve, the arrangement number of the data point increases as the flow rate increases.
[0115] The first data point in each third performance curve is obtained, and five data points are obtained. A quadratic function is fitted based on the five data points to obtain the first fourth performance curve. The second data point in each third performance curve is obtained, and five data points are obtained. A quadratic function is fitted based on the five data points to obtain the second fourth performance curve. The curve fitting step is repeated to obtain 10 fourth performance curves.
[0116] When iteratively optimizing the operating parameters according to the genetic algorithm, if the operating parameters of a compressor are X k For each fourth performance curve, obtain the data point with the minimum flow rate in the fourth performance curve and the data point with the maximum flow rate in the fourth performance curve. Interpolate the two data points on the fourth performance curve to obtain the data corresponding to the operating parameters. X k According to the corresponding data points of the plurality of fourth curves and the operating parameters X k The corresponding data points are fitted to obtain the first performance curve in the form of a quadratic function.
[0117] For example, in the fourth performance curve, the minimum flow rate is qmin , the maximum flow is q max . Minimum flow q min The corresponding operating parameters are , the maximum flow is q max The corresponding operating parameters are . Obtain and run parameters according to the following method Corresponding flow q k :
[0118] ;
[0119] According to the flow q k And the fourth performance curve, you can get the operating parameters The data points on the fourth performance curve. And so on, we can get the operating parameters The data points on the 10 fourth performance curves include the operating parameters The corresponding 10 second flow values and the power values corresponding to the second flow values one by one.
[0120] Sub-step F5, fitting a first performance curve when the compressor operates according to the second operating parameters, based on the multiple second flow values and the second power corresponding to each second flow value.
[0121] For example, the second flow value and the second power corresponding to the second flow value constitute a data point on the second performance curve. By fitting the data points on the multiple second performance curves, the first performance curve corresponding to the second operating parameter can be obtained. According to the first performance curve and the preset power, the second flow value when the compressor is operated according to the second operating parameter can be obtained.
[0122] After obtaining 10 data points according to the method of step F4, a cubic spline fitting is performed on these 10 data points to obtain The corresponding performance curve is the first performance curve in this embodiment.
[0123] Sub-step 2052, obtaining the inlet temperature and inlet pressure of the compressor.
[0124] For example, a condenser is provided between two adjacent compressors, and the outlet temperature of the condenser is obtained, and the outlet temperature of the condenser is determined as the inlet temperature of the compressor located downstream of the two adjacent compressors. Among them, the inlet temperature of the first compressor in the compressor group can be obtained by testing the temperature sensor device provided at the inlet of the compressor.
[0125] Reference Figure 5 The compressor unit includes a compressor 1 and a compressor 2 connected in series, a condenser is arranged between the compressor 1 and the compressor 2, and the outlet temperature of the condenser is the inlet temperature of the compressor 2.
[0126] For example, obtaining the inlet pressure of the compressor in sub-step 2052 includes the following sub-steps:
[0127] Sub-step M1, for each compressor in the compressor group, obtain the pressure ratio and inlet pressure of the previous compressor.
[0128] Furthermore, the previous compressor refers to a compressor located upstream of the compressor, that is, the outlet of the previous compressor is connected to the inlet of the compressor. Figure 5 , the previous compressor is compressor one.
[0129] For example, sub-step M1 may include the following sub-steps:
[0130] Sub-step M11, obtaining a preset flow rate of a previous compressor and a fifth performance curve when the previous compressor operates according to the second operating parameters.
[0131] The fifth performance curve is a curve showing the change of pressure ratio with flow rate when the first compressor operates according to the second operating parameters.
[0132] For example, multiple sixth performance curves are obtained, the sixth performance curves correspond to preset operating parameters one by one, and the sixth performance curve is a curve of pressure ratio changing with flow rate when the compressor operates according to the corresponding preset operating parameters; for each sixth performance curve, the sixth performance curve is interpolated to obtain multiple third flow values sorted in sequence according to flow rate; each third flow value has a corresponding arrangement number, and the number of third flow values obtained from each sixth performance curve is equal; according to the third flow values with the same arrangement number in the multiple sixth performance curves, the first pressure ratio corresponding to the third flow value, and the preset operating parameters corresponding to each sixth performance curve respectively, multiple seventh performance curves are fitted; the seventh performance curve corresponds to the arrangement number one by one; the seventh performance curve is interpolated to obtain the fourth flow value when the compressor operates according to the second operating parameter, and the second pressure ratio corresponding to the fourth flow value; according to the multiple fourth flow values and the second pressure ratio corresponding to each fourth flow value respectively, the fifth performance curve when the compressor operates according to the second operating parameter is fitted.
[0133] Furthermore, the method for obtaining the fifth performance curve (flow-pressure ratio curve) can refer to the instructions for obtaining the first performance curve (flow-power curve) in the aforementioned sub-steps F1 to F5. During the reference processing, the power can be replaced by the pressure ratio, which will not be repeated here.
[0134] Sub-step M12, obtaining a target pressure ratio corresponding to a preset flow rate according to the fifth performance curve, and determining the target pressure ratio as the pressure ratio of the previous compressor.
[0135] For example, the fifth performance curve may be dimensionally processed to obtain a processed performance curve, and the preset flow rate may be dimensionally processed to obtain a processed preset flow rate. According to the processed performance curve, a pressure ratio at which the flow rate is equal to the processed preset flow rate is obtained, and the pressure ratio is determined as the pressure ratio of the compressor.
[0136] Sub-step M2, obtaining the outlet pressure of the previous compressor according to the pressure ratio and inlet pressure of the previous compressor.
[0137] For example, the ratio of the inlet pressure and the pressure ratio of the previous compressor is obtained, and the ratio is the outlet pressure of the previous compressor.
[0138] Sub-step M3, determining the outlet pressure of the previous compressor as the inlet pressure of the compressor.
[0139] That is, in two adjacent compressors, the outlet pressure of the compressor located upstream is equal to the inlet pressure of the compressor located downstream. Figure 5 , the outlet pressure of compressor one is determined as the inlet pressure of compressor two.
[0140] Furthermore, except for the first compressor, the inlet pressure of any other compressor can be obtained according to sub-step M1 to sub-step M2.
[0141] For example, the target pressure required by the user is determined as the inlet pressure of the first compressor, wherein the target pressure required by the user is the pressure of the gas to be compressed by the compressor unit. , determined as the flow rate of the first compressor ,Right now:
[0142] ;
[0143] Obtain the flow-pressure ratio performance curve of the first compressor. According to the flow-pressure ratio curve, the flow of the first compressor is equal to the target flow. The pressure ratio at that time is determined, and the outlet pressure of the first compressor is obtained according to the inlet pressure and pressure ratio of the first compressor. The outlet pressure of the first compressor is determined as the inlet pressure of the second compressor.
[0144] Furthermore, the outlet pressure of the compressor is equal to the inlet pressure in the pressure ratio, and the outlet pressure of the previous compressor is equal to the inlet pressure of the compressor connected to it and located downstream thereof.
[0145] For any compressor other than the first compressor , its preset flow for:
[0146] ;
[0147] in, For the The flow rate of the compressor, and Respectively The first compressor and the The inlet pressure of the compressor; and Respectively The first compressor and the The inlet temperature of the compressor; and Respectively The first compressor and the The compressibility coefficient of a compressor.
[0148] Sub-step 2053, dimensionlessly processing the first performance curve using the inlet temperature and the inlet pressure to obtain a second performance curve.
[0149] Specifically, for the power value in the first performance curve, use the formula The power value is processed to obtain the processed power value; for the flow value in the first performance curve, the formula is used The flow value is processed to obtain a processed flow value; and a processed second performance curve is obtained by fitting according to the processed flow value and the processed power value.
[0150] in, is the power of the compressor in the first performance curve, is the pressure of the compressor in the first performance curve, is the temperature of the compressor, is the flow rate of the compressor.
[0151] Sub-step 2054, obtaining a target power corresponding to a preset flow rate of the compressor according to the second performance curve, and determining the target power as the compressor power corresponding to the second operating parameter.
[0152] The second performance curve is obtained using the formula The power value in the first performance curve is processed using the formula The performance curve obtained by processing the flow value in the first performance curve is thus the preset flow value of the i-th compressor. The dimensionless processing result , and then obtain the second performance curve, and the dimensionless processing result A dimensionless processing result of the corresponding compressor power is determined as the compressor power when the compressor operates according to the second operating parameter.
[0153] When multiple compressors are operated in series, the inlet temperature and inlet pressure of the downstream compressor will change with the outlet conditions of the upstream compressor, and the performance curve of the compressor will also change with the changes in the inlet conditions. In the related art, adjusting the downstream compressor according to the performance curve under a single inlet condition will produce a large error, and it is impossible to accurately obtain the optimal operating parameter combination of the compressor group. In this embodiment, the first performance curve is dimensionally processed, and the target power corresponding to the preset flow rate of the compressor is obtained according to the processed second performance curve, and the target power is determined as the compressor power corresponding to the second operating parameter. In this way, the influence of the compressor inlet conditions on the compressor power can be avoided, the availability of the compressor power is improved, and the accuracy of determining the optimal operating parameter combination according to the compressor power is improved.
[0154] Step 206: summing up the compressor powers corresponding to all the second operating parameters in the second operating parameter combination to obtain a second total power corresponding to the second operating parameter combination.
[0155] For example, refer to Figure 5 , the compressor power of compressor one is A, the compressor power of compressor two is B, then the second total power of the second operating parameter combination is A+B.
[0156] Step 207, obtain the minimum second total power from multiple second total powers, and when the minimum second total power is less than or equal to a preset power threshold, or the number of iterations reaches a preset number threshold, determine the second operating parameter combination corresponding to the minimum second total power as the target operating parameter combination.
[0157] The preset power threshold can be set according to user needs. For example, when the energy consumption requirement for the compressor unit is relatively high, the preset power threshold can be set smaller. Conversely, the preset power threshold can be set larger.
[0158] The preset number threshold can be set according to user needs. For example, when the time requirement for determining the compressor unit operating parameters is high, the preset number can be set smaller. Otherwise, the preset number can be set larger.
[0159] In this embodiment, the constraint conditions of the genetic algorithm are obtained, and the constraint conditions include: the operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and the flow rate of each compressor is equal to the preset flow rate corresponding to each compressor, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio. In other words, the constraint conditions include the operating parameter range constraint and the pressure ratio distribution constraint of each compressor in the compressor group.
[0160] The operating parameters of each compressor are within the operating parameter range corresponding to the compressor, and the flow rate of each compressor is equal to the preset flow rate corresponding to each compressor, and when each compressor operates according to the operating parameters corresponding to the compressor in the operating parameter combination, the total pressure ratio of the compressor group is greater than the preset pressure ratio as the constraint condition of the genetic algorithm. The total power calculation model of the compressor group is determined as the fitness function of the genetic algorithm. In each iteration process, multiple selection operations are performed on the multiple first operating parameter combinations obtained in the previous iteration to obtain multiple target first operating parameter combinations, and in each selection operation, the probability of the first operating parameter combination being selected is negatively correlated with the first total power of the compressor group corresponding to the first operating parameter combination. It is equivalent to taking the total power of the compressor group as the fitness function value and performing optimal calculation on the fitness corresponding to the fitness function value. The individuals in the iteration process are obtained from the individuals obtained in the previous generation of iterations. Therefore, the operating parameter combinations in different iteration processes are related to each other, and the processing results of the previous iteration have guidance for the acquisition of the operating parameter combination of the current iteration. In other words, the operating parameter combination of the current iteration can be optimized based on the processing results of the previous iteration. Compared with the processing method in the related art in which each operating parameter combination adjustment scheme is unrelated, this embodiment can improve the processing efficiency of determining the optimal operating parameter combination.
[0161] In each iteration, for each target first operating parameter combination, the first operating parameter in the target first operating parameter combination is adjusted according to the constraint condition of the genetic algorithm to obtain the second operating parameter combination. Then, in the iteration of the genetic algorithm, the obtained operating parameter combination can satisfy the operating parameter range constraint and the pressure ratio distribution constraint for each compressor.
[0162] The compressor power corresponding to the second operating parameter is obtained, and the compressor powers corresponding to all the second operating parameters in the second operating parameter combination are summed to obtain the second total power corresponding to the second operating parameter combination, and the minimum second total power is obtained from the multiple second total powers, and when the minimum second total power is less than or equal to the preset power threshold, or the number of iterations reaches the preset number threshold, the second operating parameter combination corresponding to the minimum second total power is determined as the target operating parameter combination. When the individual (i.e., the second operating parameter combination) with the best fitness (i.e., the minimum second total power) meets the requirements, or the number of iterations reaches the requirements, the iteration is stopped, and the second operating parameter combination corresponding to the minimum second total power is determined as the target operating parameter combination. The target operating combination is to ensure that the target operating parameter combination meets the operating parameter interval constraint, and the corresponding compressor flow meets the flow distribution constraint, and the total power of the compressor unit is the minimum. The compressor unit operates based on the target operating parameters, and can ensure the minimum energy consumption on the basis of meeting the flow requirements and the pressure ratio requirements, so as to achieve the purpose of energy saving.
[0163] In summary, this embodiment optimizes and iterates the operating parameter combination based on the genetic algorithm by setting the constraint conditions and fitness function, and can quickly and accurately obtain the optimal operating parameters (ie, the target operating parameter combination) with the minimum total power.
[0164] The following takes the adjustable operating parameter of the compressor as the speed as an example. Figure 4 , the method may include the following steps:
[0165] Step S1, performing dimensionless processing on the performance curves of the compressors in the compressor group.
[0166] Different compressor inlet temperatures and inlet pressures will cause the compressor performance curve to shift. By non-dimensionalizing the performance curve of the compressor in the compressor unit and converting the performance curve, the influence of the compressor inlet temperature and inlet pressure on the performance curve can be eliminated.
[0167] Methods for dimensionless processing of performance curves may include:
[0168] For the compressor unit compressor, get the inlet temperature and inlet pressure , using the inlet temperature and inlet pressure The following dimensionless conversions are performed on the flow rate and pressure ratio in the flow rate-pressure ratio performance curve, and the flow rate-power in the flow rate-power performance curve:
[0169] Convert traffic to ; Convert the speed to ; Convert power into , where the pressure ratio remains unchanged .
[0170] in, , , , are the inlet volume flow, pressure ratio, speed, and power of the i-th compressor in the series compressor group, , are the inlet temperature and inlet pressure of the existing performance curve of the i-th compressor. i <m , m is the number of compressors.
[0171] Step S2, establishing a calculation model for the series compressor set.
[0172] The compressor unit consists of m The compressors are connected in series. i Actual inlet temperature of compressor , actual inlet pressure . Then the calculation model of the series compressor unit is:
[0173] ;
[0174] in, is the preset target pressure ratio, that is, the compression ratio of the compressor unit required by the user. For the i The pressure ratio of the compressor, is the total number of compressors in the compressor unit. The inlet temperature of the first compressor is the total inlet temperature of the unit, i The inlet temperature of the compressor (i>1) is the i The first compressor and the i+ Condenser outlet temperature between 1 compressors, where The inlet pressure of the first compressor is is the total inlet pressure of the unit, i Inlet pressure of compressor (i>1) is equal to the upstream compressor outlet pressure. is the total power of the compressor unit, For the i The power of the compressor, is the speed calculation function of the i-th compressor, is the speed of the i-th compressor. is the power of the i-th compressor The calculation function of . For the The flow rate of the compressor, and Respectively The first compressor and the The inlet pressure of the compressor; and Respectively The first compressor and the The inlet temperature of the compressor; and Respectively The first compressor and the The compressibility coefficient of a compressor.
[0175] in, It is obtained based on the state equation of the two compressor inlets. The compressibility coefficient of the compressor inlet is .
[0176] Furthermore, ,in, is the inlet gas pressure of the i-th compressor, is the inlet gas temperature of the i-th compressor, is the inlet gas volume of the ith compressor, n is the molar mass of the gas, and R is the molar gas constant.
[0177] For example, the isothermal expansion experimental method can be used to measure the compressibility coefficient of the gas compressed by the compressor at the same temperature and different pressures. Specifically, the gas temperature is kept constant, which can be equal to the inlet temperature of the compressor in the above step, and the working fluid in the test container is expanded to change the gas pressure, and the gas volume and pressure are measured. The compressibility coefficient can be calculated by the above compressibility coefficient calculation formula.
[0178] Furthermore, by keeping the compressor inlet temperature constant, the relationship between pressure and compressibility coefficient can be fitted through the data of compressibility coefficient under different pressures. According to the fitted relationship, as well as the inlet gas pressure, inlet gas temperature and inlet gas volume of the compressor in the compressor unit, the compressibility coefficient of the compressor in the compressor unit can be obtained.
[0179] Among them, the target total inlet flow of the series compressor group is equal to the inlet flow of the first compressor, that is: .
[0180] Target total pressure ratio of series compressor units Less than the product of all compressor pressure ratios, that is: .
[0181] Total power of series compressor units It is equal to the sum of the power of each compressor, that is: .
[0182] Step S3, determining the fitness function and constraint conditions of the genetic algorithm according to the dimensionless performance curve and the series compressor unit calculation model.
[0183] Specifically, the total operating power of the series compressor units is determined as the fitness function of the genetic algorithm. The smaller the fitness function value is, the higher the individual fitness is.
[0184] Specifically, As the first constraint of the genetic algorithm.
[0185] The flow-pressure ratio operating point of each compressor is within the performance curve as the second constraint of the genetic algorithm. The performance curve refers to the area composed of the surge line, the blockage line, the performance curve corresponding to the maximum speed, and the performance curve corresponding to the minimum speed in the performance curve. Furthermore, the second preset condition includes: the speed of the compressor is within the speed range, for each speed, the flow of the compressor is within the flow range on the performance curve corresponding to the speed, and the pressure ratio is within the pressure ratio range on the performance curve corresponding to the speed.
[0186] For example, refer to Figure 2 , the speed is in the speed range [ , ], for example, at a speed equal to When, flow Located in the flow range [ , ], the pressure ratio is in the pressure ratio interval [ , ]Inside.
[0187] Step S4, according to the constraint conditions and the fitness function, the fitness function is optimized by using a genetic algorithm, and the speed combination scheme corresponding to the optimal fitness is determined as the parameter combination of the compressor unit, so that the compressor unit can operate according to the parameter combination.
[0188] Specifically, the pressure ratios of each compressor are encoded, and the initial population is randomly generated according to the adjustable upper and lower limits of the pressure ratios of each compressor, and the individuals that do not meet the constraint condition one are regenerated.
[0189] The pressure ratio of each compressor i After determination, the inlet pressure of each compressor i can be determined Specifically, the compressor pressure ratio is equal to the exhaust pressure at the inlet pressure. The inlet pressure of the first compressor is a constant value, which is equal to the user's required pressure. Then, according to the pressure ratio and inlet pressure of the first compressor, the outlet pressure of the first compressor can be obtained. The outlet pressure of the first compressor is equal to the inlet pressure of the second compressor. By analogy, the inlet pressure of each compressor can be obtained.
[0190] Among them, the inlet temperature of each compressor i is It is known that the performance curve can be re-corrected according to step S1, and the individuals that do not meet the second constraint condition can be regenerated.
[0191] After obtaining the inlet pressure of each compressor, and Get the inlet volume flow rate of each compressor .
[0192] After obtaining the inlet volume flow rate, according to and The speed of each compressor can be obtained and power . Based on the power of each compressor, the total power can be obtained.
[0193] The individuals are selected, crossed, and mutated, the individuals that do not meet the constraints are replaced, and the above iterative evolution process is repeated to finally obtain a rotation speed combination scheme under the optimal fitness function. Specifically, the method of selecting, crossing, and mutating the individuals can refer to the description of the aforementioned sub-steps 2041 to 2043, which will not be repeated here.
[0194] The following is an example of a compressor unit consisting of two compressors connected in series to further illustrate this solution. Figure 5 , compressor one and compressor two are connected in series, and a condenser is arranged between the two compressors.
[0195] Step N1, dimensionless and converted processing is performed on the performance curve parameters of each compressor.
[0196] In this embodiment, the inlet temperature of compressor 1 is , inlet pressure Under this inlet condition, the performance curve of compressor 1 includes the volume flow-pressure ratio performance curve ( - Curve), and volume flow-power performance curve ( - curve).
[0197] Each set of performance curves includes multiple performance curves and the speed corresponds to each other, that is, each performance curve has a corresponding speed. , s can be equal to 1, 2, ... S, where S is the total number of speeds, Represents the sth speed of compressor 1.
[0198] Inlet temperature of compressor 2 , inlet pressure Volume flow-pressure ratio performance curve under inlet conditions ( - Curve), and volume flow-power performance curve ( - Each performance curve group includes multiple performance curves, and the performance curves and the speeds correspond to each other one by one, that is, each performance curve has a corresponding speed. .
[0199] Where s can be equal to 1, 2, ..., S, where S is the total number of speeds, Indicates the sth speed of compressor 2.
[0200] In order to eliminate the influence of the change of inlet conditions, the performance curve is dimensionless. The flow rates after dimensionless processing are and , the speeds after dimensionless processing are and , the power after dimensionless processing is and The pressure ratio of the first compressor The pressure ratio of the second compressor It is not affected by import conditions and therefore not processed.
[0201] When the inlet conditions are redetermined, the temperature and pressure can be substituted into the above dimensionless parameters to obtain the parameters under the inlet conditions.
[0202] Step N2: Establish a calculation model for the series compressor unit.
[0203] Total inlet temperature of compressor unit , compressor 2 inlet position condenser outlet temperature . Total inlet pressure of the unit , compressor 2 inlet pressure Depends on the compressor outlet pressure. The adjustment target of the compressor unit is , .
[0204] The calculation model of the series compressor unit is:
[0205] ;
[0206] Inlet temperature of the first compressor is the total inlet temperature of the unit, 2 The inlet temperature of the compressor For the 2 The inlet temperature of the compressor. and are the inlet pressures of the first and second compressors respectively. and are the powers of the first compressor and the second compressor respectively; and are the speeds of the first compressor and the second compressor respectively; and The speed of the first compressor is and the speed of the second compressor The calculation function of and The power of the first compressor is and the power of the second compressor The calculation function of . and are the flow rates of the first compressor and the second compressor respectively. and are the compressibility coefficients of compressor 1 and compressor 2 respectively.
[0207] Step N3: Determine the fitness function and constraints.
[0208] Sure is the fitness function of the genetic algorithm. The smaller the fitness function value, the higher the individual fitness. The first constraint condition is that the operating point of each compressor is within the flow-pressure ratio performance curve (a quadrilateral consisting of the surge line, the blockage line, the performance curve corresponding to the maximum speed, and the performance curve corresponding to the minimum speed).
[0209] Step N4: Use genetic algorithm to optimize the fitness function.
[0210] The optimization calculation process includes multiple iterations based on the genetic algorithm. When the operating parameters are debugged in each iteration, the debugging process may include an encoding process. Specifically, the encoding method adopts a binary encoding method to convert the adjustable pressure ratio of the two compressors into binary genotype string structure data: the lower limit of the pressure ratio of the two compressors is encoded as the minimum value in the binary string structure data, and the upper limit of the pressure ratio of the two compressors is encoded as the maximum value in the binary string structure data.
[0211] In the first iteration, an initial population needs to be generated. For example, 50 initial string structure data are randomly generated, and the individuals that do not meet the pressure ratio constraint are regenerated. , After confirmation, the compressor second inlet pressure can be determined , because the inlet temperatures of the two compressors , It is known that the performance curve is re-corrected according to step N1, and the individuals that do not meet the operating parameter range are regenerated. There are many methods to determine whether the operating parameter range constraint is met. For example, the ray method can be used to judge: draw a ray to the right from the operating point corresponding to the individual. If there is only one intersection point with the quadrilateral formed by the curve, it is determined that the individual meets the operating parameter range constraint, or in other words, the operating parameter corresponding to the individual is within the operating parameter range.
[0212] In the iteration process, it is necessary to evaluate the fitness of individuals. Specifically, according to and The volume flow rate at the compressor second inlet can be determined ,according to and Can determine the speed of two compressors , ,according to and The power of two compressors can be determined , , that is, the fitness function is obtained. and The solution uses bivariate function interpolation.
[0213] After completing an iteration, when selecting preferred individuals from the individuals of this iteration and using them as individuals for the next iteration, a roulette wheel method can be used to select individuals from the individuals of this iteration, wherein the higher the fitness, the greater the probability of selection.
[0214] After selecting multiple individuals from the previous iteration, the multiple individuals can be cross-processed. Specifically, the selected individuals are randomly matched, and each pair of individuals exchanges genes in the string structure data (i.e., data in the encoded data bits) with a certain probability. For example, the cross-probability of generating new individuals can be set to 0.8.
[0215] After the individuals are cross-processed, the processed individuals can also be mutated. Specifically, each gene of the new individuals obtained after the cross-processing has a certain probability of mutation. For example, for binary coding, the mutation method of inverting the gene value is used. For example, the mutation probability can be set to 0.1.
[0216] In the iterative process, when individuals are subjected to crossover and mutation processing, the processing results need to be subjected to constraint judgment processing. Specifically, the newly generated population is subjected to constraint judgment, and the child individuals that do not meet the constraints are replaced by parent individuals, where the parent individuals are the individuals that meet the constraints in the previous iteration, and the child individuals are the individuals in this iteration.
[0217] In this embodiment, the iteration termination condition is: the iteration is stopped when a certain number of inheritance times is reached, and the individual with the highest fitness is output; or, the total power of the compressor unit corresponding to the optimal individual obtained in the last iteration is less than or equal to the preset total power threshold.
[0218] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0219] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A method for optimizing energy-saving operation of a series compressor unit based on a genetic algorithm, characterized in that: The compressor unit comprises a plurality of compressors connected in series; the method comprises: Obtaining constraint conditions of the genetic algorithm, the constraint conditions comprising: an operating parameter of each of the compressors is within an operating parameter interval corresponding to the compressor, and a flow rate of each of the compressors is equal to a preset flow rate corresponding to each compressor, and when each compressor operates according to an operating parameter corresponding to the compressor in an operating parameter combination, a total pressure ratio of the compressor group is greater than a preset pressure ratio; the operating parameter combination comprises a plurality of operating parameters, and the operating parameters correspond to the compressors one by one; Determining a total power calculation model of the compressor group as the fitness function of the genetic algorithm; the total power calculation model is used to calculate the total power of the compressor group according to the combination of operating parameters; In each iteration process, multiple selection operations are performed on multiple first operating parameter combinations obtained in the previous iteration to obtain multiple target first operating parameter combinations; for each target first operating parameter combination, the first operating parameter in the target first operating parameter combination is adjusted according to the constraint conditions of the genetic algorithm to obtain a second operating parameter combination; Acquire a first performance curve when the compressor operates according to the second operating parameters; the first performance curve is a curve of power variation with flow rate when the compressor operates according to the second operating parameters; Acquire the inlet temperature and inlet pressure of the compressor; perform dimensionless processing on the first performance curve using the inlet temperature and the inlet pressure to obtain a second performance curve; According to the second performance curve, a target power corresponding to a preset flow rate of the compressor is acquired, and the target power is determined as a compressor power corresponding to the second operating parameter; summing up the compressor powers corresponding to all the second operating parameters in the second operating parameter combination to obtain a second total power corresponding to the second operating parameter combination; The minimum second total power is obtained from multiple second total powers, and when the minimum second total power is less than or equal to a preset power threshold, or the number of iterations reaches a preset number threshold, the second operating parameter combination corresponding to the minimum second total power is determined as the target operating parameter combination.
2. The method according to claim 1, characterized in that The first operating parameter combination includes a plurality of first operating parameters corresponding one to one with the compressors; In each selection operation, the probability of the first operating parameter combination being selected is negatively correlated with the first total power of the compressor group corresponding to the first operating parameter combination; The second operating parameters in the second operating parameter combination are all within the operating parameter range of the compressor corresponding to the second operating parameter, and each of the second operating parameter combinations has a corresponding second total power.
3. The method according to claim 2, characterized in that The data structure of the target first operating parameter combination is a string structure; the first operating parameter in the target first operating parameter combination is adjusted to obtain the second operating parameter combination, including: Combining the target first operating parameter combinations in pairs to obtain a plurality of parameter combination pairs; the data structure of the target first operating parameter combinations is a string structure; In the parameter combination interval, characters of the first preset data bits of two target first operating parameter combinations in the parameter combination pair are exchanged to obtain two third operating parameter combinations; In the parameter combination interval, the character of the second preset data bit of the third operating parameter combination is changed to obtain a fourth operating parameter combination, and the fourth operating parameter combination is determined as the second operating parameter combination.
4. The method according to claim 1, characterized in that: The obtaining of a first performance curve when the compressor operates according to the second operating parameter includes: Acquire a plurality of third performance curves of the compressor; the third performance curves correspond to preset operating parameters one by one, and the third performance curves are curves of power variation with flow rate when the compressor operates according to the corresponding preset operating parameters; For each of the third performance curves, interpolation processing is performed on the third performance curve to obtain a plurality of first flow values sorted in order according to flow size; each of the first flow values has a corresponding arrangement sequence number, and the number of first flow values obtained from each of the third performance curves is equal; Fitting a plurality of fourth performance curves according to the first flow values with the same arrangement number in the plurality of third performance curves, the first power corresponding to the first flow value, and the preset operating parameters corresponding to each of the third performance curves; the fourth performance curves and the arrangement number correspond one to one; interpolating the fourth performance curve to obtain a second flow value when the compressor operates according to the second operating parameter, and a second power corresponding to the second flow value; According to a plurality of second flow values and a second power respectively corresponding to each of the second flow values, a first performance curve when the compressor operates according to the second operating parameters is fitted.
5. The method according to claim 1, characterized in that Obtaining the inlet pressure of the compressor, comprising: For each compressor in the compressor unit, obtain the pressure ratio and inlet pressure of the previous compressor; According to the pressure ratio and inlet pressure of the previous compressor, the outlet pressure of the previous compressor is obtained; The outlet pressure of the previous compressor is determined as the inlet pressure of the compressor.
6. The method according to claim 5, characterized in that The obtaining of the pressure ratio of the previous compressor includes: Obtaining a preset flow rate of a previous compressor and a fifth performance curve of the previous compressor when the previous compressor operates according to the second operating parameter; the fifth performance curve is a curve of pressure ratio changing with flow rate when the first compressor operates according to the second operating parameter; According to the fifth performance curve, a target pressure ratio corresponding to the preset flow rate is obtained, and the target pressure ratio is determined as the pressure ratio of the previous compressor.
7. The method according to any one of claims 1 to 6, characterized in that: Obtaining the total pressure ratio of the compressor group when the flow rate of each compressor is equal to the corresponding preset flow rate and each compressor operates according to the operating parameter corresponding to the compressor in the operating parameter combination, includes: Obtaining a pressure ratio of each compressor when it operates according to the operating parameters corresponding to the compressor in the operating parameter combination; The product of the pressure ratios of all compressors is determined as the total pressure ratio of the compressor group.
8. The method according to any one of claims 1 to 6, characterized in that Also includes: Determine the preset target flow rate as the preset flow rate of the first compressor in the compressor group; For the compressor, according to the preset flow calculation model, the Preset flow rate for each compressor : in, For the The flow rate of the compressor, and Respectively The first compressor and the The inlet pressure of the compressor; and Respectively The first compressor and the The inlet temperature of the compressor; and Respectively The first compressor and the The compressibility coefficient of a compressor.
