Method and device for adjusting uniform design table

By cyclically amplifying and adjusting uniform design tables based on reservoir scheduling requests, the method addresses the issue of poor dispatching schemes, ensuring the reservoir output meets basin electricity demand, thereby improving scheduling efficiency and accuracy.

CN119228071AActive Publication Date: 2024-12-31ZHEJIANG KEEPSOFT INFORMATIONTECHNOLOGY CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411721000.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2024-12-31
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

The existing reservoir scheduling methods based on uniform design tables often result in poor dispatching schemes due to the direct use of pre-determined tables, failing to meet the electricity demand of the basin.

Method used

A method and device for adjusting a uniform design table by cyclically amplifying and adjusting the table until the maximum output value of the reservoir meets the electricity demand, involving magnification and adjustment processes based on current magnification and adjustment coefficients, and curve fitting to refine the data.

Benefits of technology

This approach enhances the reservoir scheduling plan by ensuring it meets the basin's electricity demand, providing a more accurate and efficient scheduling solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119228071A_ABST
    Figure CN119228071A_ABST
Patent Text Reader

Abstract

The invention relates to a uniform design table adjustment method and device, and the method comprises the steps: obtaining a pre-generated uniform design table based on a reservoir scheduling request in a process of executing a uniform design-based reservoir optimization scheduling method; determining a scheduling period, dividing the scheduling period into a plurality of time periods, and selecting multiple columns of data from a pre-generated uniform design table to obtain a target uniform design table formed by the selected multiple columns of data; wherein the column number of the target uniform design table is not less than 500; and if the maximum output value NR of the reservoir in the scheduling period does not meet the drainage basin power demand, circularly amplifying and adjusting the target uniform design table, and stopping circulation until the maximum output value NR of the reservoir in the scheduling period meets the drainage basin power demand, so that compared with the prior art, a better reservoir scheduling scheme can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of water resource planning and management, and in particular to a method and device for adjusting a uniform design table. Background Art

[0002] Reservoir scheduling is a technical management method for controlling the use of reservoirs. Specifically, it is based on the reasonable needs of various water-using departments, referring to the annual water storage situation of the reservoir and the expected possible natural water inflow and sand content, to plan and reasonably control the water storage and release process of the reservoir in various periods, that is, to control the rise and fall of its water level. Generally, when designing a reservoir, an expected reservoir scheduling plan should be proposed, and it should be continuously revised and corrected in the actual operation in the future to conform to the objective reality.

[0003] At present, in the process of implementing the reservoir optimization dispatching method based on uniform design, if the uniform design table determined based on the dispatching period is directly used for reservoir dispatching, it may cause the problem that the determined reservoir dispatching scheme is relatively poor. Summary of the invention

[0004] 1. Technical issues to be resolved In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method and device for adjusting a uniform design table, which solves the technical problem of relatively poor reservoir scheduling scheme in the prior art.

[0005] (II) Technical solution In order to achieve the above object, the main technical solutions adopted by the present invention include: In the first aspect, an embodiment of the present invention provides a method for adjusting a uniform design table, comprising: in the process of executing a reservoir optimization scheduling method based on uniform design, based on a reservoir scheduling request, obtaining a pre-generated uniform design table; determining a scheduling period, and dividing the scheduling period into multiple time periods, and selecting multiple columns of data from the pre-generated uniform design table to obtain a target uniform design table composed of the selected multiple columns of data; wherein the number of columns of the target uniform design table is not less than 500 columns; if the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, cyclically amplifying and adjusting the target uniform design table until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, then stopping the cycle.

[0006] In a possible embodiment, the step of performing a magnification adjustment process on the target uniform design table each time includes: determining a current magnification factor of the target uniform design table; wherein the current magnification factor is used to represent the number of specifications of the uniform design table required in the actual problem of reservoir operation. SThe value is determined; based on the current magnification coefficient, all data of the current row of the target uniform design table are magnified to obtain all magnified data corresponding to all data of the current row; wherein the current row is any row of all rows of the target uniform design table; based on the largest magnified data among all magnified data corresponding to all data of the current row, the new number of columns of the current row is determined, and the value of each column of data in the new number of columns of the current row is determined; based on all magnified data corresponding to all data of the current row, an adjustment coefficient is determined; based on the adjustment coefficient, the value of each column of data in the new number of columns of the current row is adjusted to obtain all adjusted data of the current row.

[0007] In a possible embodiment, when the current magnification factor is a non-first magnification factor of the cyclic process, the process of determining the current magnification factor includes: determining the magnification factor of the determined n-1th cyclic process. The absolute value of the target interval is determined, and the target interval can be one of multiple intervals, and each interval has a corresponding S value; n is a positive integer greater than or equal to 2; the target interval range corresponds to S The value is used as the value of the nth cycle process S value, and based on the nth cycle process S The value determines the current magnification factor.

[0008] In a possible embodiment, when the current magnification factor is not the first magnification factor in the cyclic process, the process of determining the current magnification factor includes: determining the magnification factor determined for the n-1th time The absolute value of the size and calculate the absolute value and preset precision , and round the quotient to get an integer value; where n is a positive integer greater than or equal to 2; determine whether the integer value is greater than 1; if the integer value is greater than 1, calculate the n-1th cycle process S The product of the value and the integer value is used as the product of the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor; if the integer value is less than or equal to 1, the value of the n-1th cycle process is increased in multiples. S The value is processed to obtain the value for determining the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor.

[0009] In one possible embodiment, all data in the current row of the target uniform design table are amplified based on the current magnification coefficient to obtain all amplified data corresponding to all data in the current row, including: obtaining multiple groups of data to be fitted based on the number of columns before amplification and the amplified data obtained after amplifying the data in the current row based on the current magnification coefficient; performing curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; re-dividing all x values ​​corresponding to the fitting curve into a number equal to the new number of columns, and determining the corresponding y values ​​based on the new number of divisions, and determining the y value corresponding to each division point on the fitting curve, and using it as the amplified data corresponding to each column number in the new number of columns.

[0010] In a possible embodiment, all data of the current row of the target uniform design table are amplified based on the current magnification coefficient to obtain all amplified data corresponding to all data of the current row, including: obtaining multiple groups of data to be fitted based on the number of columns before amplification and the amplified data obtained after amplifying the data of the current row based on the current magnification coefficient; performing curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; randomly inserting multiple insertion points in the fitting curve, and determining the y value corresponding to each insertion point in the multiple insertion points, and rounding the y value corresponding to each insertion point by rounding; wherein the number of insertion points is determined by the difference between the new number of columns and the number of columns of the target uniform design table; obtaining the y values ​​of all points in the order of all points, and using the y values ​​of all points as the values ​​of all columns in the new number of columns.

[0011] In a possible embodiment, the calculation expression of the adjustment coefficient is as follows: ; ; In the formula, VA Indicates the average value of all the amplified data of the current row; V Lmedian Indicates the median of all enlarged data in the current row; j represents the new column number; R represents the adjustment coefficient.

[0012] In the second aspect, an embodiment of the present invention provides an adjustment device for a uniform design table, comprising: an acquisition module, used to acquire a pre-generated uniform design table based on a reservoir scheduling request during the execution of a reservoir optimization scheduling method based on uniform design; a determination selection module, used to determine a scheduling period, and divide the scheduling period into multiple time periods, and select multiple columns of data from the pre-generated uniform design table to obtain a target uniform design table composed of the selected multiple columns of data; wherein the number of columns of the target uniform design table is not less than 500 columns; an amplification and adjustment module, used to cyclically amplify and adjust the target uniform design table if the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and then stop the cycle.

[0013] In a possible embodiment, the amplification adjustment module is specifically used to: determine the current amplification factor of the target uniform design table; wherein the current amplification factor is used to represent the number of specifications of the uniform design table required in the actual problem of reservoir operation. S The value is determined; based on the current magnification coefficient, all data of the current row of the target uniform design table are magnified to obtain all magnified data corresponding to all data of the current row; wherein the current row is any row of all rows of the target uniform design table; based on the largest magnified data among all magnified data corresponding to all data of the current row, the new number of columns of the current row is determined, and the value of each column of data in the new number of columns of the current row is determined; based on all magnified data corresponding to all data of the current row, an adjustment coefficient is determined; based on the adjustment coefficient, the value of each column of data in the new number of columns of the current row is adjusted to obtain all adjusted data of the current row.

[0014] In a possible embodiment, the amplification adjustment module is specifically used to: when the current amplification factor is not the first amplification factor of the cycle process, determine the determined amplification factor of the n-1th cycle process. The absolute value of the target interval is determined, and the target interval can be one of multiple intervals, and each interval has a corresponding S value; n is a positive integer greater than or equal to 2; the target interval range corresponds to S The value is used as the value of the nth cycle process S value, and based on the nth cycle process S The value determines the current magnification factor.

[0015] In a possible embodiment, the amplification adjustment module is specifically used to: when the current amplification factor is not the first amplification factor of the cyclic process, determine the n-1th determined The absolute value of the size and calculate the absolute value and preset precision The quotient of is rounded to an integer; where n is a positive integer greater than or equal to 2; if the integer value is greater than 1, the value of the n-1th cycle is calculated. S The product of the value and the integer value is used as the product of the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor; if the integer value is less than or equal to 1, the value of the n-1th cycle process is increased in multiples. S The value is processed to obtain the value for determining the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor.

[0016] In one possible embodiment, the magnification adjustment module is specifically used to: obtain multiple groups of data to be fitted based on the number of columns before magnification and the enlarged data obtained after amplifying the data of the current row based on the current magnification coefficient; perform curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; re-divide all x values ​​corresponding to the fitting curve into a number equal to the new number of columns, and determine the corresponding y value based on the newly divided number of parts, and determine the y value corresponding to each division point on the fitting curve, and use it as the magnified data corresponding to each column number in the new number of columns.

[0017] In one possible embodiment, the magnification adjustment module is specifically used to: obtain multiple groups of data to be fitted based on the number of columns before magnification and the enlarged data obtained after amplifying the data of the current row based on the current magnification coefficient; perform curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; randomly insert multiple insertion points in the fitting curve, and determine the y value corresponding to each insertion point in the multiple insertion points, and use rounding to round the y value corresponding to each insertion point; wherein the number of insertion points is determined by the difference between the new number of columns and the number of columns in the target uniform design table; obtain the y values ​​of all points in the order of all points, and use the y values ​​of all points as the values ​​of all columns in the new number of columns.

[0018] In a possible embodiment, the calculation expression of the adjustment coefficient is as follows: ; ; In the formula, VA Indicates the average value of all the amplified data of the current row; V Lmedian Indicates the median of all enlarged data in the current row; j represents the new column number; R represents the adjustment coefficient.

[0019] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to execute the method described in the first aspect or any optional implementation of the first aspect.

[0020] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the method described in the first aspect or any optional implementation method of the first aspect is performed.

[0021] In a fifth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0022] (III) Beneficial effects The beneficial effects of the present invention are: The embodiment of the present application provides a method and device for adjusting a uniform design table. In the process of executing a reservoir optimization scheduling method based on uniform design, based on a reservoir scheduling request, a pre-generated uniform design table is obtained, and a scheduling period is determined, and the scheduling period is divided into multiple time periods, and multiple columns of data are selected from the pre-generated uniform design table to obtain a target uniform design table composed of the selected multiple columns of data. If the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, the target uniform design table is cyclically amplified and adjusted until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and the cycle is stopped. Compared with the prior art, it can obtain a better reservoir scheduling plan.

[0023] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and understandable, the following specifically cites preferred embodiments and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flow chart of a method for adjusting a uniform design table provided in an embodiment of the present application is shown; Figure 2A structural block diagram of a uniform design table adjustment device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0027] The embodiment of the present application provides a method and device for adjusting a uniform design table. In the process of executing a reservoir optimization scheduling method based on uniform design, based on a reservoir scheduling request, a pre-generated uniform design table is obtained, and a scheduling period is determined, and the scheduling period is divided into multiple time periods, and multiple columns of data are selected from the pre-generated uniform design table to obtain a target uniform design table composed of the selected multiple columns of data. If the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, the target uniform design table is cyclically amplified and adjusted until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and the cycle is stopped. Compared with the prior art, it can obtain a better reservoir scheduling plan.

[0028] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0029] See also Figure 1 , Figure 1 A flow chart of a method for adjusting a uniform design table provided in an embodiment of the present application is shown. It should be understood that the reservoir optimization scheduling method can be executed by a reservoir optimization scheduling device, and the specific device of the reservoir optimization scheduling device can be set according to actual needs, and the embodiment of the present application is not limited thereto. For example, the reservoir optimization scheduling device can be a computer or a server. Specifically, the reservoir optimization scheduling method includes: Step S110, in the process of executing the reservoir optimization scheduling method based on uniform design, a reservoir scheduling request is obtained.

[0030] It should be understood that the specific process of the reservoir optimization scheduling method based on uniform design can be found in the relevant description of a reservoir scheduling method based on uniform design disclosed in Patent No. 201910039163.3, which will not be repeated here.

[0031] Step S120, based on the reservoir dispatching request, obtain a pre-generated uniform design table. A portion of the uniform design table is pre-generated. During the calculation process, if the selected uniform design table meets the calculation requirements, the current uniform design table is selected. If it does not meet the calculation requirements, the selected uniform design table can be enlarged until it meets the calculation requirements. The number of rows in the uniform design table is L.

[0032] It should be understood that the generation process of the uniform design table can be set according to actual needs, and the embodiments of the present application are not limited thereto.

[0033] Alternatively, in experimental design, there are usually multiple factors that affect the results of the experiment. Sometimes, there are many levels for each factor, but the number of experiments should not be too many. To address this problem, a method of experimental design that only considers the uniform distribution of experimental points within the experimental range has been developed, namely the so-called "uniform design". Moreover, the uniform design can arrange the experiment according to the uniform design table and the corresponding use table. The uniform design table is obtained based on the uniform design theory.

[0034] And, with i and j represent the row number and column number of the uniform design table to be generated, and the i Line j The column values ​​are generated by the following algorithm: ( mod m ); In the formula, m ij Indicates the uniform design table i Line j The value of the column; i Indicates the row number; j Indicates the column number; h j Represents the vector consisting of the first row of numbers in the uniform design table; [ mod m ] represents congruence calculation, that is m ij Divide by modulus m The remainder and i * h j Divide by modulus m The remainders are the same. Among them, m A positive number greater than 1.

[0035] And, if i * h j The product value exceeds the modulus m, Use i * h j The modulus is subtracted from the product ofm An appropriate multiple of , so that the difference range falls within [1, m], i * h j It can be generated recursively (using this algorithm can generate uniform design tables faster), specifically: m ij= h j ; This indicates assignment, which assigns the vector to a row of the uniform design table; like m ij + h j ≤m, then m i +1, j = m ij + h j ;in, m ij The uniform design table i Line j The corresponding numbers of the columns, m i Indicates the uniform design table i numeric vector corresponding to the rows; like m ij + h j >m, then m i +1, j = m ij + h j -m ;in, m ij The uniform design table i Line j The corresponding numbers of the columns, m i Indicates the uniform design table i numeric vector corresponding to the rows; in, i =1,2,3....,m-1.

[0036] For example, if the value of m is 7, h represents the vector h=(1,2,3,4,5,6) composed of the first row of numbers in the uniform design table, i represents the row number of the uniform design table, and the uniform design table generated according to the above process is shown in Table 1 below, and this uniform table is applied to experimental design to indicate that the number of levels of factors in the experiment is 7, the maximum number of experiments is 6, and the numbers in each column are the levels of the factors taken in each experiment.

[0037] Table 1

[0038] It should be noted here that in the optimal scheduling of reservoirs, if the number of factor levels is too small, the accuracy requirements will not be met, and if the number of factor levels is too large, it will cause waste of resources and too long calculation time. It will take a long time to construct a large number of factor levels (the modulus and factor level values ​​in the same uniform design table are the same, such as m>1000). Also, in the reservoir scheduling optimization problem of the present application, the number of factor levels can be 500, that is, m=500, wherein the value range of the factor level number m can be selected according to actual needs without a fixed value range. According to the above principle, a uniform table of m*200 can be generated. The range of the factor level number is selected between 500 and 2000. If the number of factor levels studied is 9, and it is determined that 9 experiments are to be conducted, then there must be 9 rows in the design table. According to the principle, the columns are constructed using the numbers from 1 to 8 whose greatest common divisor with 9 is 1. The numbers that meet this condition are 1, 2, 4, 5, 7, and 8. The greatest common divisor of 3 and 6 with 9 is 3, which does not meet the condition, so they are excluded. Therefore, 6 columns can be constructed, that is, a maximum of 6 factors can be arranged.

[0039] Step S130, determine the scheduling period, divide the scheduling period into multiple time periods, and select multiple columns of data from the pre-generated uniform design table to obtain a target uniform design table composed of the selected multiple columns of data. The multiple columns of data correspond to the multiple time periods one by one, that is, each column of data corresponds to one time period; the number of columns of the target uniform design table is not less than 500, and the data of each row of the target uniform design table may not be completely the same.

[0040] Specifically, in the optimal dispatching problem of a reservoir, the dispatching period is usually divided into multiple time periods, and the specific time periods of the multiple time periods can be set according to actual needs. For example, in the optimal dispatching problem of the reservoir solved this time, the total length of the dispatching period is one year, and the small time periods are divided into monthly periods, that is, the entire dispatching period is divided into 12 time periods. To apply the uniform table, it is necessary to select 12 columns of data from the 500*200 uniform design table generated according to the relevant method of step S120. The selection process must be in column order, and in the subsequent steps of actually generating the reservoir dispatching line, it is necessary to call each row of data in turn according to the target uniform design table (or target matrix) composed of the column data selected in advance.

[0041] It should be noted here that a complete uniform design includes a uniform table and a usage table. The data in the usage table indicates which columns of data should be selected for different numbers of tests. The selection of data depends on the deviation of the uniform table.

[0042] Step S140, if the maximum output value NR of the reservoir during the scheduling period does not meet the power demand of the basin, the target uniform design table is amplified and adjusted in a loop until the maximum output value NR of the reservoir during the scheduling period meets the power demand of the basin, and then the loop is stopped.

[0043] Specifically, at this time, the previously generated target uniform design table is selected in the generation of the entire reservoir optimization scheduling plan. The basin electricity demand represents the maximum electricity demand of a region in the basin. If the objective function of the optimization problem obtained, that is, the cumulative maximum output value NR of the reservoir during the scheduling period (the maximum output value NR is used to represent the work done by the hydropower station unit to generate electricity) meets the basin electricity demand, the calculation and solution are stopped. If the objective function of the optimization problem, that is, the maximum output value NR of the reservoir during the scheduling period, does not meet the basin electricity demand, the target uniform design table is enlarged and adjusted. The steps for enlarging and adjusting the target uniform design table are as follows: Calculate the magnification factor of the target uniform design table according to the actual needs of the current reservoir operation L : ; In the formula, S is the number of specifications of the uniform design table required in the actual problem of reservoir operation, where S Usually, an integer multiple of the number of factor levels m (i.e., the magnification factor L is a positive integer), that is S The value of can be selected according to actual needs, and the number of factor levels m can be adjusted according to actual needs. For example, for the same reservoir, 500 can be selected as the number of factor levels m in the initial calculation in this calculation. If the objective function value NR of the current reservoir power generation optimization scheduling problem does not meet the actual needs, that is, , whereZ is the objective function value during the expected reservoir operation period, is the precision value, then the number of target uniform design table specifications required in the actual problem can be taken as a multiple S of 500. For example, the number of factor levels selected for the first construction of the target uniform design table is 500. If it cannot meet the actual calculation needs, then 1000, 1500, and other increasing multiples can be selected as the specification number S for calculation.

[0044] It should be noted here that in each cycle, a new S , and use the new S Determine the new magnification factor L , and use the new magnification factor L Continue to execute the subsequent process. And, the number of columns of the target uniform design table will increase as the uniform design table is enlarged.

[0045] Then, based on the magnification factor L Amplify all data in the current row of the target uniform design table to obtain all amplified data, namely V L = L *v, where V L It can represent the amplified data obtained after amplifying v, L Indicates the magnification factor, v can represent any data of the current row before magnification. The current row is any row.

[0046] Then, all the magnified data of the current row can be obtained, and the largest available magnified data can be determined from all the magnified data, and the largest available magnified data can be used as the intermediate value for determining the new number of columns, and the number of common divisors that meet the preset conditions can be used as the new number of columns. For example, after a row of data is magnified, it can be determined that the largest available magnified data is 9, and 9 can be used as the intermediate value for determining the new number of columns, and according to the principle, the columns are constructed using the numbers from 1 to 8 whose greatest common divisor with 9 is 1, and the numbers that meet this condition are 1, 2, 4, 5, 7, and 8, so the new number of columns is 6.

[0047] And, after determining the new number of columns, the number of columns before enlargement corresponding to all the enlarged data and the enlarged data can be used as multiple sets of data to be fitted for fitting the curve. For example, when the data of the 6th column of the current row before enlargement is 3, the enlarged data obtained after enlarging it is 9, and the number of columns before enlargement corresponding to 9 is 6, and (6,9) can be used as a set of data to be fitted, that is, 6 can be used as the x value and 9 as the y value.

[0048] Subsequently, after obtaining multiple sets of data to be fitted, curve fitting is performed based on the multiple sets of data to be fitted in the xy axis coordinate system. Moreover, since the number of columns corresponding to the fitting curve is different from the new number of columns (for the enlarged uniform design table, the number of columns in each row is the same), it is necessary to determine the enlarged data corresponding to each column in the new number of columns. This application can be implemented in the following two ways: Optionally, it is necessary to divide all x values ​​corresponding to the fitting curve into a number of parts equal to the new number of columns, and determine the corresponding y values ​​based on the new number of parts, and determine the y values ​​corresponding to each division point on the fitting curve, and use them as the enlarged data corresponding to each column number in the new number of columns. For example, when the total number of columns before enlargement is n and the new number of columns is m, the value divided by n can be divided into m parts, and the m parts correspond to the new number of columns, and the y values ​​corresponding to each column number in the new number of columns are determined on the fitting curve, and each y value is the enlarged data corresponding to the new number of columns; Optionally, when the total number of columns before enlargement is n and the new number of columns is m, mn points can be randomly inserted into the fitting curve, and the y value corresponding to each of the mn insertion points can be determined, and the y value corresponding to each insertion point can be rounded off, and then the y values ​​of all points can be obtained in the order of all points, that is, the values ​​of all columns in the new number of columns are obtained.

[0049] In addition, since there is an error in the above method of determining the y value corresponding to each column number in the new column number and the deviation of the uniform design table has a great impact on the reservoir operation plan, the following error adjustment formula is used to readjust the data in the amplified uniform design table, as follows: ; ; In the formula, VA Represents the average value of all magnified data in the current row; V Lmedian Indicates the median of all enlarged data in the current row; j It represents the column number of the enlarged uniform design table (i.e. the new column number); R represents the adjustment coefficient.

[0050] Then, according to the calculated adjustment coefficient R, a row M of the enlarged uniform design table is adjusted. i Adjustment is performed and the adjusted data is expressed as M Ri Indicates, as follows: M Ri =R*M i .

[0051] It should be noted here that if the adjusted data is expressed in M Ri If there is a decimal, the rounding method can be used for each M Ri Round up.

[0052] Therefore, each row M of the enlarged uniform design table can be sequentially i Adjustments are made to obtain the adjusted uniform design table M1.

[0053] Subsequently, the total output value NR within N dispatching periods can be calculated using the amplified and adjusted uniform design table M1. If the obtained objective function value of the reservoir within the dispatching period, i.e., the output value NR, satisfies the accuracy, i.e. , where Z is the expected objective function value during the reservoir operation period, and the objective function value during the current reservoir operation period satisfies the accuracy , stop enlarging and adjusting the current uniform design table, where, , i=1,2,3,...,J, where J is the total number of reservoir operation periods and also represents the number of columns in the uniform design table.

[0054] It should be understood that the specific process of calculating the total output value NR within N scheduling periods using the enlarged and adjusted uniform design table M1 can be found in the relevant description of a reservoir scheduling method based on uniform design disclosed in Patent No. 201910039163.3, which will not be repeated here.

[0055] Also, after obtaining the final uniform design table, the relevant process of using the final uniform design table for reservoir optimization scheduling can also be found in the relevant description of a reservoir scheduling method based on uniform design disclosed in Patent No. 201910039163.3, which will not be repeated here.

[0056] In addition, it should be noted that in the process of continuous magnification adjustment, after the first magnification adjustment, the calculated The absolute value is still greater than the precision , then the second cycle amplification adjustment is carried out. During the second cycle adjustment process, it is necessary to determine S If the value is calculated in the above-mentioned ascending manner, it may cause too many cycles. In order to reduce the number of cycles, this application can determine the first calculated The first absolute value of , and the second magnification coefficient L can be determined based on the first determined value, and after the second magnification coefficient L is determined, the target uniform design table is subsequently magnified and adjusted, and so on, until the loop stop condition is met, then the loop can be stopped.

[0057] It should be understood that although the description of step S140 discloses a method of increasing by multiples of 500, 1000, and 1500, if the final S If the value is large, multiple cycles will occur, resulting in a long cycle time. Based on this, the embodiment of the present application also proposes the following improved solution: Optionally, in the first S If the value is the set initial value, the n-1th determined value can be determined. The absolute value of the absolute value is determined, and the target interval range of the absolute value is determined, and the target interval range can be one of multiple interval ranges and each interval range has a corresponding S value, the target interval range can be S The value is used as the value of the nth cycle process S value, and then obtain the amplification factor of the nth cycle process. Wherein, n is a positive integer greater than or equal to 2, and the specific range of the interval range can be set according to actual needs; Optionally, in the first S If the value is the set initial value, the n-1th determined value can be determined. The absolute value of the value and the precision of the value are calculated. The quotient is rounded to get an integer value, and then determine whether the integer value is greater than 1. If it is greater than 1, calculate the n-1th S The product of the value and the integer value is used as the nth S value, and based on the nth cycle process S The value determines the amplification factor for the nth time; if it is less than or equal to 1, it is determined that the S value for the n-1th time is very close, so a small adjustment can be made in the manner described above, based on the n-1th S The value is determined by the above-mentioned method of increasing multiples. S value, and based on the nth cycle process S The value determines the nth magnification factor, where n is a positive integer greater than or equal to 2.

[0058] For example, when n is 5, determine the fourth The absolute value and precision of The quotient is 6.4, and the quotient is rounded to 6, and it is determined that the rounded value is greater than 1, so the fourth S The product of the value and 6 is used as the new value for the fifth time. S value.

[0059] Therefore, with the help of the above technical scheme, the technical scheme of the invention repeatedly enlarges and adjusts the current uniform design table based on the characteristics of the uniform design table, and calls the improved uniform design table to generate a reservoir scheduling plan each time during the optimization calculation, which greatly improves the solution efficiency while meeting the accuracy requirements.

[0060] Furthermore, the technical solution of the present application does not adopt a method of generating uniform design tables of various specifications in advance, but adjusts the uniform design table generated by the sample row by row according to the current reservoir scheduling calculation results. While gradually adjusting, the uniform design table can be continuously improved and adjusted according to the needs of reservoir power generation optimization scheduling. The solution is more targeted and saves relevant computing resources.

[0061] It should be understood that the above-mentioned adjustment method of the uniform design table is only exemplary, and those skilled in the art may make various modifications according to the above-mentioned method, and the modified scheme also belongs to the protection scope of the present application.

[0062] See also Figure 2 , Figure 2 The structural block diagram of a uniform design table adjustment device 200 provided in an embodiment of the present application is shown. It should be understood that the adjustment device 200 can perform each step in the above method embodiment. The specific functions of the adjustment device 200 can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here. The adjustment device 200 includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the data protection device 500. Specifically, the adjustment device 200 includes: An acquisition module 210 is used to acquire a pre-generated uniform design table based on a reservoir scheduling request during the execution of the reservoir optimization scheduling method based on uniform design; A determination and selection module 220 is used to determine a scheduling period, divide the scheduling period into a plurality of time periods, and select a plurality of columns of data from a pre-generated uniform design table to obtain a target uniform design table consisting of the selected plurality of columns of data; wherein the number of columns of the target uniform design table is not less than 500; The amplification and adjustment module 230 is used to cyclically amplify and adjust the target uniform design table if the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and then stop the cycle.

[0063] In a possible embodiment, the amplification adjustment module 230 is specifically used to: determine the current amplification factor of the target uniform design table; wherein the current amplification factor is used to represent the number of specifications of the uniform design table required in the actual problem of reservoir operation. SThe value is determined; based on the current magnification coefficient, all data of the current row of the target uniform design table are magnified to obtain all magnified data corresponding to all data of the current row; wherein the current row is any row of all rows of the target uniform design table; based on the largest magnified data among all magnified data corresponding to all data of the current row, the new number of columns of the current row is determined, and the value of each column of data in the new number of columns of the current row is determined; based on all magnified data corresponding to all data of the current row, an adjustment coefficient is determined; based on the adjustment coefficient, the value of each column of data in the new number of columns of the current row is adjusted to obtain all adjusted data of the current row.

[0064] In a possible embodiment, the amplification adjustment module 230 is specifically used to: when the current amplification factor is not the first amplification factor of the cyclic process, determine the determined amplification factor of the n-1th cyclic process. The absolute value of the target interval is determined, and the target interval can be one of multiple intervals, and each interval has a corresponding S value; n is a positive integer greater than or equal to 2; the target interval range corresponds to S The value is used as the value of the nth cycle process S value, and based on the nth cycle process S The value determines the current magnification factor.

[0065] In a possible embodiment, the amplification adjustment module 230 is specifically configured to: when the current amplification factor is not the first amplification factor of the cyclic process, determine the n-1th determined amplification factor. The absolute value of the size and calculate the absolute value and preset precision The quotient of is rounded to an integer; where n is a positive integer greater than or equal to 2; if the integer value is greater than 1, the value of the n-1th cycle is calculated. S The product of the value and the integer value is used as the product of the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor; if the integer value is less than or equal to 1, the value of the n-1th cycle process is increased in multiples. S The value is processed to obtain the value for determining the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor.

[0066] In a possible embodiment, the magnification adjustment module 230 is specifically used to: obtain multiple groups of data to be fitted based on the number of columns before magnification and the enlarged data obtained after amplifying the data of the current row based on the current magnification coefficient; perform curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; re-divide all x values ​​corresponding to the fitting curve into a number equal to the new number of columns, and determine the corresponding y value based on the new number of divisions, and determine the y value corresponding to each division point on the fitting curve, and use it as the magnified data corresponding to each column number in the new number of columns.

[0067] In a possible embodiment, the magnification adjustment module 230 is specifically used to: obtain multiple groups of data to be fitted based on the number of columns before magnification and the enlarged data obtained after amplifying the data of the current row based on the current magnification coefficient; perform curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; randomly insert multiple insertion points in the fitting curve, and determine the y value corresponding to each insertion point in the multiple insertion points, and use rounding to round the y value corresponding to each insertion point; wherein the number of insertion points is determined by the difference between the new number of columns and the number of columns in the target uniform design table; obtain the y values ​​of all points in the order of all points, and use the y values ​​of all points as the values ​​of all columns in the new number of columns.

[0068] In a possible embodiment, the calculation expression of the adjustment coefficient is as follows: ; ; In the formula, VA Indicates the average value of all the amplified data of the current row; V Lmedian Indicates the median of all enlarged data in the current row; j represents the new column number; R represents the adjustment coefficient.

[0069] Since the device described in the above embodiment of the present invention is a device used to implement the method of the above embodiment of the present invention, based on the method described in the above embodiment of the present invention, a person skilled in the art can understand the specific structure and deformation of the device, so it is not described here. All devices used in the method of the above embodiment of the present invention belong to the scope of protection of the present invention.

[0070] The present application provides a storage medium having a computer program stored thereon. The computer program is executed by a processor to execute the method described in the embodiment.

[0071] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.

[0072] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0073] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0074] It should be noted that the word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising a number of different components and by means of a suitably programmed computer. Among the several means listed, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the name of the component.

[0075] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0076] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the technical solution should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0077] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the technical solution of the present invention and its equivalent technology, the present invention should also include these modifications and variations.

Claims

1. A method for adjusting a uniform design table, characterized in that: include: In the process of executing the reservoir optimization dispatching method based on uniform design, based on the reservoir dispatching request, a pre-generated uniform design table is obtained; Determine a scheduling period, and divide the scheduling period into a plurality of time periods, and select a plurality of columns of data from the pre-generated uniform design table to obtain a target uniform design table consisting of the selected plurality of columns of data; wherein the number of columns of the target uniform design table is not less than 500; If the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, the target uniform design table is amplified and adjusted in a loop until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and then the loop is stopped.

2. The adjustment method according to claim 1, characterized in that: The step of enlarging and adjusting the target uniform design table each time includes: Determine the current magnification factor of the target uniform design table; wherein the current magnification factor is used to represent the number of specifications of the uniform design table required in the actual problem of reservoir operation. S The value is determined; Amplify all data of the current row of the target uniform design table based on the current amplification coefficient to obtain all amplified data corresponding to all data of the current row; wherein the current row is any row among all rows of the target uniform design table; Determine the new number of columns of the current row based on the largest enlarged data among all the enlarged data corresponding to all the data of the current row, and determine the value of each column of data in the new number of columns of the current row; Determining an adjustment coefficient based on all the amplified data corresponding to all the data in the current row; The value of each column of data in the new column number of the current row is adjusted based on the adjustment coefficient to obtain all adjusted data of the current row.

3. The adjustment method according to claim 2, characterized in that: In the case where the current magnification factor is a non-first magnification factor of a cyclic process, the process of determining the current magnification factor includes: Determine the n-1th cycle process The absolute value of the absolute value is determined, and the target interval range of the absolute value is determined; wherein the target interval range can be one of multiple interval ranges and each interval range has a corresponding S value; where n is a positive integer greater than or equal to 2; The target interval range corresponds to S The value is used as the value of the nth cycle process S value, and based on the nth cycle process S The value determines the current magnification factor.

4. The adjustment method according to claim 2, characterized in that: In the case where the current magnification factor is a non-first magnification factor of a cyclic process, the process of determining the current magnification factor includes: Determine the n-1th determined The absolute value of the size and calculate the absolute value and the preset precision The quotient of is rounded to obtain an integer value; wherein n is a positive integer greater than or equal to 2; Determine whether the integer value is greater than 1; If the integer value is greater than 1, the n-1th cycle process is calculated. S The product value of the value and the integer value, and the product value is used as the nth cycle process S value, and based on the nth cycle process S value to determine the current magnification factor; If the integer value is less than or equal to 1, the n-1th cycle process is incremented in multiples. S The value is processed to obtain the value for determining the nth cycle process. S value, and based on the nth cycle process S The value determines the current magnification factor.

5. The adjustment method according to claim 2, characterized in that: The step of amplifying all data of the current row of the target uniform design table based on the current amplification coefficient to obtain all amplified data corresponding to all data of the current row includes: Obtaining multiple groups of data to be fitted based on the number of columns before amplification and the amplified data obtained by amplifying the data of the current row based on the current amplification coefficient; Performing curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; All x values ​​corresponding to the fitting curve are re-divided into a number equal to the new number of columns, and the corresponding y values ​​are determined based on the new number of divisions, and the y value corresponding to each division point on the fitting curve is determined and used as the amplified data corresponding to each column number in the new number of columns.

6. The adjustment method according to claim 2, characterized in that: The step of amplifying all data of the current row of the target uniform design table based on the current amplification coefficient to obtain all amplified data corresponding to all data of the current row includes: Obtaining multiple groups of data to be fitted based on the number of columns before amplification and the amplified data obtained by amplifying the data of the current row based on the current amplification coefficient; Performing curve fitting based on the multiple groups of data to be fitted to obtain a fitting curve; A plurality of insertion points are randomly inserted into the fitting curve, and a y value corresponding to each of the plurality of insertion points is determined, and the y value corresponding to each of the plurality of insertion points is rounded off; wherein the number of the insertion points is determined by the difference between the number of new columns and the number of columns of the target uniform design table; According to the order of all points, the y values ​​of all points are obtained, and the y values ​​of all points are used as the values ​​of all columns in the new column.

7. The adjustment method according to claim 2, characterized in that: The calculation expression of the adjustment coefficient is as follows: ; ; In the formula, VA represents the average value of all the amplified data of the current row; V Lmedian Indicates the median of all the amplified data of the current row; j represents the new column number; R represents the adjustment coefficient.

8. A device for adjusting a uniform design table, characterized in that: include: An acquisition module, used to acquire a pre-generated uniform design table based on a reservoir scheduling request during the execution of the reservoir optimization scheduling method based on uniform design; A determination and selection module is used to determine a scheduling period, divide the scheduling period into a plurality of time periods, and select a plurality of columns of data from the pre-generated uniform design table to obtain a target uniform design table composed of the selected plurality of columns of data; wherein the number of columns of the target uniform design table is not less than 500; The amplification and adjustment module is used to cyclically amplify and adjust the target uniform design table if the maximum output value NR of the reservoir during the scheduling period does not meet the electricity demand of the basin, until the maximum output value NR of the reservoir during the scheduling period meets the electricity demand of the basin, and then stop the cycle.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for adjusting the uniform design table according to any one of claims 1 to 7 is executed.

10. An electronic device comprising a processor, a memory and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method for adjusting the uniform design table according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method and system for real-time scheduling of cascade reservoir

    CN108805329A

  • A reservoir optimal scheduling method based on uniform design

    CN109886543A

  • Reservoir flood control scheduling method, system and device based on improved POA and medium

    CN112561213A

  • Reservoir optimal scheduling method, system, equipment and medium

    CN116960988A

  • Simulation operation method for large-scale reservoir group in main stream and tributaries of river basin

    WO2021120787A1