Dam line optimization method, device, computer equipment and storage medium

By obtaining the initial dam line and optimization model and repeating optimization operations, the problem of excessive scale resulting from dam line selection is solved, and the optimization and cost reduction of dam line are achieved.

CN118551466BActive Publication Date: 2024-11-05POWERCHINA HUADONG ENG CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411027709.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-05
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

The selection of dam lines in the prior art may lead to a large dam scale, high engineering volume and cost, and a lack of effective optimization methods.

Method used

By obtaining the initial dam line and the pre-established dam line optimization model, repeat the optimization operation, optimize the dam line using rotation and constraints until the optimal dam line is obtained, and the scale index of the dam line is reduced.

Benefits of technology

The optimization of the dam line has been achieved, significantly reducing the scale and cost of the dam and improving the optimization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551466B_ABST
    Figure CN118551466B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a dam line optimization method, device, computer equipment and storage medium, the method comprising: obtaining an initial dam line and a pre-established dam line optimization model; the initial dam line is the dam line to be optimized; repeating the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained: taking the target endpoint of the target dam line targeted by this optimization operation as the rotation center, rotating the target dam line targeted by this optimization operation to obtain the candidate dam line targeted by this optimization operation; determining the target dam line targeted by the next optimization operation according to the dam line optimization model; when the target dam line targeted by this optimization operation is the same as the target dam line targeted by the next optimization operation, determining the target dam line targeted by this optimization operation as the optimal dam line corresponding to the initial dam line. The scheme based on the present invention can effectively optimize the dam line and reduce the scale and cost of the dam while ensuring the reservoir capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a dam line optimization method, device, computer equipment and storage medium. Background Art

[0002] As an important water conservancy project, reservoirs can be used for flood control, water storage for irrigation, water supply, power generation, etc. As a major water retaining structure, the selection of dam lines is very important. In related technologies, the dam line is usually determined in a relatively large area. The dam line determined by the above method may not be the best, and the dam may be large in scale, resulting in a high engineering workload and cost for dam construction.

[0003] Therefore, how to optimize the dam line, reduce the size of the dam and reduce costs has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] In view of this, the present invention provides a dam line optimization method, device, computer equipment and storage medium to solve the problem of large dam scale and high cost in related technologies.

[0005] In a first aspect, the present invention provides a dam line optimization method, comprising:

[0006] Acquire an initial dam line and a pre-established dam line optimization model; the initial dam line is the dam line to be optimized;

[0007] Repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained:

[0008] The target end point of the target dam line targeted by this optimization operation is used as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain the candidate dam line targeted by this optimization operation; wherein, the target dam line targeted by the first optimization operation is the initial dam line; the target end point of the target dam line targeted by this optimization operation is an end point of the initial dam line or an end point other than the target end point of the target dam line targeted by the last optimization operation;

[0009] Determine the target dam line for the next optimization operation according to the dam line optimization model; wherein the target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for the current optimization operation;

[0010] When the target dam line targeted by the current optimization operation is the same as the target dam line targeted by the next optimization operation, the target dam line targeted by the current optimization operation is determined as the optimal dam line corresponding to the initial dam line.

[0011] In an optional implementation, the target endpoint of the target dam line targeted by the current optimization operation is used as the rotation center, and the target dam line targeted by the current optimization operation is rotated to obtain the candidate dam line targeted by the current optimization operation, including:

[0012] Taking the target endpoint of the target dam line targeted by this optimization operation as the rotation center, the target dam line targeted by this optimization operation is rotated to obtain a rotated dam line;

[0013] A candidate dam line for this optimization operation is determined according to the rotated dam line; wherein the candidate dam line is determined by extending the rotated dam line.

[0014] In an optional implementation manner, determining the candidate dam line for the current optimization operation according to the rotated dam line includes:

[0015] Determine contour lines and watershed lines based on digital elevation models;

[0016] Extend the rotation dam line until the dam line formed by the intersection of the rotation dam line and the contour line is the dam line with the maximum elevation, or the rotation dam line intersects with the watershed line;

[0017] The dam line with the maximum elevation or the dam line obtained by intersecting the rotated dam line with the watershed line is determined as the candidate dam line for this optimization operation.

[0018] In an optional embodiment, the method further includes:

[0019] Taking the minimum scale index as the goal, construct the objective function;

[0020] Determining constraint conditions of the dam line optimization model, wherein the constraint conditions are used to constrain dam height, dam length and reservoir capacity;

[0021] Based on the objective function and the constraint conditions, the dam line optimization model is established.

[0022] In an optional implementation, determining a target dam line for the next optimization operation according to the dam line optimization model includes:

[0023] Determine the standard dam line targeted by this optimization operation according to the constraint conditions;

[0024] Determine the dam line with the smallest scale index among the standard dam lines targeted by this optimization operation according to the objective function;

[0025] The dam line with the smallest scale index among the standard dam lines targeted by this optimization operation is determined as the target dam line for the next optimization operation.

[0026] In an optional implementation, determining the constraint conditions of the dam line optimization model includes:

[0027] Determining a first constraint condition of the dam line optimization model, wherein the first constraint condition is used to constrain the dam height and the dam length;

[0028] A second constraint condition of the dam line optimization model is determined, where the second constraint condition is used to constrain the reservoir capacity.

[0029] In an optional implementation manner, determining the standard dam line for this optimization operation according to the constraint conditions includes:

[0030] At least a part of the dam height or dam length of the dam line to be adjusted among the candidate dam lines targeted by this optimization operation is adjusted so that the dam height and dam length corresponding to the adjusted dam line to be adjusted meet the first constraint condition; wherein the dam height corresponding to the dam line to be adjusted is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition;

[0031] The adjusted dam line to be adjusted that meets the second constraint condition and the dam line that meets the first constraint condition and the second constraint condition among the candidate dam lines targeted by this optimization operation are respectively determined as the standard dam lines targeted by this optimization operation.

[0032] In a second aspect, the present invention provides a dam line optimization device, comprising:

[0033] The first processing module is used to obtain an initial dam line and a pre-established dam line optimization model; the initial dam line is the dam line to be optimized;

[0034] The second processing module is used to repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained:

[0035] The target end point of the target dam line targeted by this optimization operation is used as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain the candidate dam line targeted by this optimization operation; wherein, the target dam line targeted by the first optimization operation is the initial dam line; the target end point of the target dam line targeted by this optimization operation is an end point of the initial dam line or an end point other than the target end point of the target dam line targeted by the last optimization operation;

[0036] Determine the target dam line for the next optimization operation according to the dam line optimization model; wherein the target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for the current optimization operation;

[0037] When the target dam line targeted by the current optimization operation is the same as the target dam line targeted by the next optimization operation, the target dam line targeted by the current optimization operation is determined as the optimal dam line corresponding to the initial dam line.

[0038] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the dam line optimization method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0039] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the dam line optimization method of the first aspect or any corresponding embodiment thereof.

[0040] The technical solution provided by the present invention has the following technical effects:

[0041] The embodiment of the present invention needs to repeat the optimization operation until the optimal dam line corresponding to the initial dam line is obtained. The first optimization operation is to use one end point of the initial dam line as the target end point, and use the target end point as the rotation center to rotate the initial dam line to obtain a candidate dam line. According to the dam line optimization model, the dam line with the smallest scale index among the candidate dam lines is obtained as the target dam line. It is judged whether the target dam line is the same as the initial dam line. When the target dam line is the same as the initial dam line, it means that the initial dam line is the optimal dam line. Based on the technical solution of the present invention, it can be determined whether the initial dam line is the optimal dam line. In addition, when the target dam line obtained by the first optimization operation is different from the initial dam line, a second optimization operation can be performed. One of the end points of the target dam line obtained by the first optimization operation is the target end point targeted by the last optimization operation, and the other end point is a newly generated end point. In the second optimization operation, the target dam line targeted by the first optimization operation is rotated with the newly generated end point as the rotation center to re-determine the candidate dam line and the target dam line targeted by the next optimization operation. Repeat the above optimization operation until the optimal dam line corresponding to the initial dam line is obtained. The technical solution of the present invention can optimize the two end points of the dam line in sequence until the target dam lines obtained by two adjacent optimization operations are the same. Optimizing the dam line based on the technical solution of the present invention can significantly reduce the scale index of the dam. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 is a schematic flow chart of a dam line optimization method according to an embodiment of the present invention;

[0044] Figure 2is a structural block diagram of a dam line optimization device according to an embodiment of the present invention;

[0045] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0047] As a major water-retaining structure, the selection of the dam line is very important. In related technologies, the dam line is usually determined in a relatively large area. Due to the large calculation space range, the spatial arrangement of the identified dam line may not be optimal, and the dam may be large in scale, resulting in a high engineering workload and cost for dam construction.

[0048] Therefore, the embodiments of the present invention provide a dam line optimization method, device, computer equipment and storage medium to solve the above problems, optimize the dam line, and reduce the size and cost of the dam.

[0049] According to an embodiment of the present invention, an embodiment of a dam line optimization method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0050] Figure 1 4 is a flow chart of a dam line optimization method according to an embodiment of the present invention.

[0051] like Figure 1 As shown, a dam line optimization method provided in an embodiment of the present invention includes:

[0052] S101: Obtain an initial dam line and a pre-established dam line optimization model.

[0053] In this embodiment, the initial dam line is the dam line to be optimized.

[0054] In this embodiment, for example, if one wants to build a dam in a certain area, the dam line of the dam is determined by combining factors such as terrain, climate, and geology. This dam line can be used as the dam line to be optimized, that is, the initial dam line in this embodiment.

[0055] In this embodiment, the dam line optimization model includes constraints and an objective function. The constraints include: dam length constraint, dam height constraint and reservoir capacity constraint. The objective function is constructed with the goal of minimizing the scale index.

[0056] S102: Repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained.

[0057] The target end point of the target dam line targeted by this optimization operation is taken as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain a candidate dam line targeted by this optimization operation.

[0058] The target dam line for the next optimization operation is determined based on the dam line optimization model.

[0059] When the target dam line for this optimization operation is the same as the target dam line for the next optimization operation, the target dam line for this optimization operation is determined as the optimal dam line corresponding to the initial dam line.

[0060] In this embodiment, the target dam line for the first optimization operation is the initial dam line. The target endpoint of the target dam line for this optimization operation is an endpoint of the initial dam line or an endpoint other than the target endpoint of the target dam line for the last optimization operation. The target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for this optimization operation.

[0061] In this embodiment, the dam line that meets the constraint conditions among the candidate dam lines targeted by this optimization operation can be determined according to the dam line optimization model, the scale index of the dam line that meets the constraint conditions among the candidate dam lines targeted by this optimization operation can be determined according to the objective function, and the dam line with the smallest scale index among the candidate dam lines that meet the constraint conditions among the candidate dam lines targeted by this optimization operation can be determined, and the dam line with the smallest scale index among the candidate dam lines that meet the constraint conditions among the candidate dam lines targeted by this optimization operation can be determined as the target dam line for the next optimization operation.

[0062] In this embodiment, when the target dam line for this optimization operation is different from the target dam line for the next optimization operation, the above steps of the optimization operation are repeated until the optimal dam line corresponding to the initial dam line is obtained.

[0063] The embodiment of the present invention needs to repeat the optimization operation until the optimal dam line corresponding to the initial dam line is obtained. The first optimization operation is to use one end point of the initial dam line as the target end point, and use the target end point as the rotation center to rotate the initial dam line to obtain a candidate dam line. According to the dam line optimization model, the dam line with the smallest scale index among the candidate dam lines is obtained as the target dam line. It is judged whether the target dam line is the same as the initial dam line. When the target dam line is the same as the initial dam line, it means that the initial dam line is the optimal dam line. Based on the technical solution of the present invention, it can be determined whether the initial dam line is the optimal dam line.

[0064] In addition, when the target dam line obtained by the first optimization operation is different from the initial dam line, a second optimization operation can be performed. One of the endpoints of the target dam line obtained by the first optimization operation is the target endpoint targeted by the previous optimization operation, and the other endpoint is a newly generated endpoint. In the second optimization operation, the target dam line targeted by the first optimization operation is rotated with the newly generated endpoint as the rotation center to re-determine the candidate dam line and the target dam line targeted by the next optimization operation. Repeat the above optimization operation until the optimal dam line corresponding to the initial dam line is obtained. The technical solution of the present invention can optimize the two endpoints of the dam line in sequence until the target dam lines obtained by two adjacent optimization operations are the same.

[0065] The technical solution of the present invention can optimize the two endpoints of the dam line in sequence until the target dam lines obtained by two adjacent optimization operations are the same. Based on the technical solution of the present invention, the dam line optimization problem is converted into an endpoint optimization problem, which can significantly improve the optimization efficiency and reduce the scale index of the dam.

[0066] In an optional implementation, the target endpoint of the target dam line targeted by the optimization operation is used as the rotation center in S102 to rotate the target dam line targeted by the optimization operation to obtain the candidate dam line targeted by the optimization operation, specifically including:

[0067] Sa1: Taking the target endpoint of the target dam line targeted by this optimization operation as the rotation center, rotate the target dam line targeted by this optimization operation to obtain a rotated dam line.

[0068] In this embodiment, the target endpoint of the target dam line targeted by this optimization operation is taken as the rotation center, and the target dam line targeted by this optimization operation is rotated N times clockwise and counterclockwise at a preset angle to obtain 2N rotated dam lines targeted by this optimization operation.

[0069] In this embodiment, a rotation dam line is generated each time the rotation is performed. N is a natural number, and the product of N and the preset angle is less than 180 degrees.

[0070] Sa2: Determine the candidate dam line for this optimization operation based on the rotated dam line.

[0071] In this embodiment, the candidate dam lines are determined by extending the rotated dam lines.

[0072] In this embodiment, it is considered that the terrain, river width and other environmental factors of the dam line may change before and after the rotation. For example, the dam corresponding to the rotated dam line may not intersect with the river bank after the rotation. Therefore, it is necessary to extend the rotated dam line to make the candidate dam line adapt to the terrain, river width and other environmental factors after the rotation.

[0073] In this embodiment, contour lines and watershed lines can be determined based on the digital elevation model. The rotated dam line can be extended until the dam line formed by the intersection of the rotated dam line and the contour line is the dam line with the highest elevation, or the rotated dam line intersects with the watershed line. The dam line with the highest elevation or the dam line obtained by the intersection of the rotated dam line and the watershed line is determined as the candidate dam line for this optimization operation. The intersection of the dam line with the highest elevation and the contour line can form a cover area. The dam corresponding to the candidate dam line obtained by extending the rotated dam line according to the above method is the dam with the largest reservoir capacity, the largest dam height, and the largest dam length that can be built at this location, which is convenient for the later adjustment of the candidate dam line to obtain a candidate dam line that meets the constraints.

[0074] In an optional implementation, the dam line optimization method further includes:

[0075] Sb1: Construct the objective function with the goal of minimizing the scale index.

[0076] Sb2: Determine the constraints of the dam line optimization model.

[0077] In this embodiment, the constraint conditions are used to constrain the dam height, dam length and reservoir capacity.

[0078] Sb3: Establish a dam line optimization model based on the objective function and constraints.

[0079] In this embodiment, the objective function is:

[0080]

[0081] in, represents the scale index, The objective function is constructed with the goal of minimizing the scale index. Indicates the dam length corresponding to the candidate dam line targeted by this optimization operation, Indicates the dam height corresponding to the candidate dam line targeted by this optimization operation. Indicates the preset constant corresponding to the dam length, Represents the corresponding preset constant of the dam height.

[0082] The constraints include:

[0083]

[0084] in, represents the minimum constraint on the dam height, Represents the maximum constraint on the dam height. represents the minimum constraint on the dam length, Represents the maximum constraint on the dam length. Indicates the maximum storage capacity of the reservoir corresponding to the candidate dam line targeted by this optimization operation, represents the maximum storage capacity of the reservoir corresponding to the initial dam line, Represents storage capacity loss coefficient.

[0085] In this embodiment, the minimum constraint of dam height, the maximum constraint of dam height, the minimum constraint of dam length, and the maximum constraint of dam length can be set to specific values ​​or to a value range. In this embodiment, it is also necessary to determine the maximum storage capacity of the reservoir corresponding to the initial dam line and the maximum storage capacity of the reservoir corresponding to each candidate dam line in the candidate dam line targeted by this optimization operation. Specifically, the maximum storage capacity of the reservoir can be calculated based on the upper water storage level of the reservoir.

[0086] In this embodiment, in order to improve the versatility of the dam line optimization model, It can be set dynamically, usually -10%. When the maximum storage capacity of the reservoir corresponding to the optimized dam line is allowed to be larger than the maximum storage capacity of the reservoir corresponding to the initial dam line before optimization, The value of is greater than 0. When the maximum storage capacity of the reservoir corresponding to the optimized dam line is allowed to be less than or equal to the maximum storage capacity of the reservoir corresponding to the initial dam line before optimization, The value of is less than or equal to 0.

[0087] In this embodiment, the constraint conditions can be used to determine the dam line that meets the constraint conditions among the candidate dam lines targeted by this optimization operation, and then the dam line with the smallest scale index among the dam lines that meet the constraint conditions can be determined through the objective function, which can reduce the amount of data and the amount of calculation.

[0088] This embodiment constrains the storage capacity, and can reduce the scale of the dam without significantly reducing the reservoir capacity, thereby reducing the amount of work and cost.

[0089] Specifically, the optimization conditions of the dam line optimization model may include: dam height constraint , Dam length constraints , Storage capacity constraints .

[0090] In an optional implementation, Sb2 determines the constraint conditions of the dam line optimization model, specifically including:

[0091] Determine the first constraint condition of the dam line optimization model, which is used to constrain the dam height and dam length.

[0092] Determine the second constraint condition of the dam line optimization model, which is used to constrain the reservoir capacity.

[0093] In this embodiment, after determining whether the first constraint condition is satisfied, it is determined whether the second constraint condition is satisfied.

[0094] In this embodiment, the dam height constraint and the dam length constraint can be determined as the first constraint condition of the dam line optimization model, and the reservoir capacity constraint can be determined as the second constraint condition of the dam line optimization model.

[0095] In an optional implementation manner, determining the target dam line for the next optimization operation according to the dam line optimization model in S102 specifically includes:

[0096] Sc1: Determine the standard dam line for this optimization operation based on the constraints.

[0097] In this embodiment, at least a part of the dam height or dam length of the dam line to be adjusted in the candidate dam line targeted by this optimization operation is adjusted so that the dam height and dam length corresponding to the adjusted dam line to be adjusted meet the first constraint condition. Among them, the dam height corresponding to the dam line to be adjusted is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition. The adjusted dam line to be adjusted that meets the second constraint condition and the dam line that meets the first constraint condition and the second constraint condition in the candidate dam line targeted by this optimization operation are respectively determined as the standard dam line targeted by this optimization operation.

[0098] In this embodiment, the dam height constraint and the dam length constraint can be used to determine the candidate dam lines that do not meet the dam height constraint or the dam length constraint among the candidate dam lines targeted by this optimization operation, and the dam line to be adjusted is selected from the candidate dam lines that do not meet the dam height constraint or the dam length constraint among the candidate dam lines targeted by this optimization operation, and the dam height and dam length of the dam line to be adjusted satisfy at least one of the following: the dam height is greater than the upper limit value of the dam height constraint and the dam length satisfies the dam length constraint, the dam length is greater than the upper limit value of the dam length constraint and the dam height satisfies the dam height constraint, and the dam height is greater than the upper limit value of the dam height constraint and the dam length is greater than the upper limit value of the dam length constraint.

[0099] In this embodiment, the method of adjusting at least a part of the dam height or dam length of the dam line to be adjusted in the candidate dam line targeted by the current optimization operation includes: reducing the dam height of the dam line to be adjusted in the candidate dam line targeted by the current optimization operation, and shortening the dam length of the dam line to be adjusted in the candidate dam line targeted by the current optimization operation. The adjusted dam height of the dam line to be adjusted satisfies the dam height constraint and the dam length satisfies the dam length constraint.

[0100] Considering that the dam corresponding to the candidate dam line is the dam with the largest reservoir capacity, the largest dam height and the largest dam length that can be built at this location, when there is a dam line to be adjusted, at least a part of the dam height or dam length of the dam line to be adjusted can be adjusted to obtain all dam lines that may become the optimal dam line, thereby improving the accuracy of optimization.

[0101] After the height of the adjusted dam line to be adjusted meets the dam height constraint and the dam length meets the dam length constraint, the maximum storage capacity of the reservoir corresponding to the adjusted dam line to be adjusted is determined, and the dam line that meets the storage capacity constraint among the adjusted dam lines to be adjusted is determined according to the storage capacity constraint. The adjusted dam line to be adjusted that meets the storage capacity constraint and the dam line that meets the dam height constraint, dam length constraint and storage capacity constraint among the candidate dam lines for this optimization operation are respectively determined as the standard dam lines for this optimization operation.

[0102] Sc2: Determine the dam line with the smallest scale index among the standard dam lines targeted by this optimization operation based on the objective function.

[0103] In this embodiment, the scale index corresponding to each dam line in the standard dam lines targeted by this optimization operation is calculated, and the dam line with the smallest scale index is selected from the standard dam lines corresponding to all scale indices as the target dam line for the next optimization operation.

[0104] Sc3: The dam line with the smallest scale index among the standard dam lines targeted by this optimization operation is determined as the target dam line for the next optimization operation.

[0105] In this embodiment, a parallel computing method is also proposed and applied to the above-mentioned dam line optimization step, and the dam line can be optimized specifically by means of parallel computing.

[0106] The parallel calculation method includes: the main control computer calculates the maximum storage capacity of the reservoir corresponding to the initial dam line according to the initial dam line .

[0107] The initial dam line includes two endpoints. The main control computer controls one of the endpoints A and optimizes the other endpoint B as follows:

[0108] With the endpoint A as the rotation center, the initial dam line is rotated N times clockwise and counterclockwise at a smaller preset angle to obtain 2N rotated dam lines targeted by this optimization operation.

[0109] The main control computer publishes the 2N rotating dam lines targeted by this optimization operation as a computing task to the task queue one by one. The engine management center automatically distributes the computing tasks from the task queue to each computing node machine according to the engine load status.

[0110] The computing node machine reads the data of the rotating dam line and determines the standard dam line for this optimization operation based on the constraints, including:

[0111] According to the contour lines, extend the rotated dam line to both ends as much as possible until the rotated dam line and the contour lines cannot form a closed area (equivalent to extending the rotated dam line until the dam line formed by the intersection of the rotated dam line and the contour lines is the dam line with the highest elevation), or the rotated dam line touches the watershed line, and obtain the dam height and dam length data of the extended rotated dam line (the extended rotated dam line is equivalent to the candidate dam line corresponding to the rotated dam line).

[0112] If the dam length of the candidate dam line is less than the lower limit value of the minimum dam length constraint in the first constraint condition or the dam height is less than the lower limit value of the minimum dam height constraint in the first constraint condition, then the candidate dam line is determined to be invalid, recorded in the database, and the calculation of this candidate dam line is terminated.

[0113] If the dam height of the candidate dam line is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition, it means that the dam line corresponding to the candidate dam line is the dam line to be adjusted, and the dam height and dam length of the candidate dam line are adjusted, specifically, the dam height of the candidate dam line is lowered and the dam length of the candidate dam line is shortened until the dam height and dam length of the candidate dam line meet the first constraint condition.

[0114] According to the adjusted dam height and dam length of the candidate dam line, calculate the maximum storage capacity of the reservoir corresponding to the adjusted candidate dam line , the maximum storage capacity of the reservoir corresponding to the initial dam line If the storage capacity constraint is not met, the candidate dam line after adjustment is judged to be invalid, recorded in the database, and the calculation of this dam line is terminated.

[0115] If the storage capacity constraint is met, the scale index is calculated according to the objective function, and the adjusted candidate dam line is returned to the main control server.

[0116] The main control computer sorts all the returned dam lines from low to high according to their size index, and the first one is the best.

[0117] Control the optimized endpoint B and repeat the above steps in the same way to optimize endpoint A.

[0118] Until the optimized endpoints A and B are stable, it is the optimal dam line corresponding to the initial dam line.

[0119] It should be noted that during the implementation of the plan, the position, height and length of the initial dam line before optimization, as well as the position, length, height and maximum storage capacity of the optimal dam line after optimization, need to be retained. The storage capacity curve corresponding to the optimal dam line after optimization can also be determined. The storage capacity curve is a curve that represents the relationship between the reservoir water level and its corresponding storage capacity.

[0120] It should be noted that the contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

[0121] In this embodiment, a dam line optimization device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0122] Figure 2 4 is a structural block diagram of a dam line optimization device according to an embodiment of the present invention.

[0123] This embodiment provides a dam line optimization device, such as Figure 2 As shown, including:

[0124] The first processing module 11 is used to obtain an initial dam line and a pre-established dam line optimization model. The initial dam line is the dam line to be optimized.

[0125] The second processing module 12 is used to repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained:

[0126] The target endpoint of the target dam line targeted by this optimization operation is used as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain the candidate dam line targeted by this optimization operation. Among them, the target dam line targeted by the first optimization operation is the initial dam line. The target endpoint of the target dam line targeted by this optimization operation is an endpoint of the initial dam line or an endpoint other than the target endpoint of the target dam line targeted by the last optimization operation.

[0127] The target dam line for the next optimization operation is determined according to the dam line optimization model, wherein the target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for the current optimization operation.

[0128] When the target dam line for this optimization operation is the same as the target dam line for the next optimization operation, the target dam line for this optimization operation is determined as the optimal dam line corresponding to the initial dam line.

[0129] In an optional embodiment, the second processing module 12 includes: a first processing unit. The first processing unit includes:

[0130] The first subunit is used to rotate the target dam line targeted by the current optimization operation by taking the target endpoint of the target dam line targeted by the current optimization operation as the rotation center to obtain a rotated dam line.

[0131] The second subunit is used to determine the candidate dam line for this optimization operation according to the rotated dam line, wherein the candidate dam line is determined by extending the rotated dam line.

[0132] In an optional embodiment, the second subunit of the second processing module 12 is specifically used to determine the contour lines and watershed lines according to the digital elevation model. The rotated dam line is extended until the dam line formed by the intersection of the rotated dam line and the contour lines is the dam line with the maximum elevation, or the rotated dam line intersects with the watershed line. The dam line with the maximum elevation or the dam line obtained by the intersection of the rotated dam line and the watershed line is determined as the candidate dam line for this optimization operation.

[0133] In an optional embodiment, the dam line optimization device further includes: a model building module. The model building module includes:

[0134] The first processing unit is used to construct an objective function with the goal of minimizing the scale index.

[0135] The second processing unit is used to determine the constraint conditions of the dam line optimization model, and the constraint conditions are used to constrain the dam height, dam length and reservoir capacity.

[0136] The third processing unit is used to establish a dam line optimization model based on the objective function and constraint conditions.

[0137] In an optional embodiment, the second processing module 12 further includes: a second processing unit. The second processing unit includes:

[0138] The first subunit is used to determine the standard dam line for this optimization operation according to the constraint conditions.

[0139] The second subunit is used to determine the dam line with the smallest scale index among the standard dam lines targeted by this optimization operation according to the objective function.

[0140] The third subunit is used to determine the dam line with the smallest scale index among the standard dam lines targeted by the current optimization operation as the target dam line for the next optimization operation.

[0141] In an optional implementation, the second processing unit of the model building module includes:

[0142] The first subunit is used to determine the first constraint condition of the dam line optimization model, and the first constraint condition is used to constrain the dam height and dam length.

[0143] The second subunit is used to determine the second constraint condition of the dam line optimization model, and the second constraint condition is used to constrain the reservoir capacity.

[0144] In an optional embodiment, the first subunit in the second processing unit included in the second processing module is specifically used to adjust at least a part of the dam height or dam length of the dam line to be adjusted in the candidate dam line targeted by this optimization operation, so that the dam height and dam length corresponding to the adjusted dam line to be adjusted meet the first constraint condition. The dam height corresponding to the dam line to be adjusted is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition.

[0145] The adjusted dam line to be adjusted that meets the second constraint condition and the dam line that meets the first constraint condition and the second constraint condition among the candidate dam lines targeted by this optimization operation are respectively determined as the standard dam lines targeted by this optimization operation.

[0146] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0147] The dam line optimization device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0148] The embodiment of the present invention also provides a computer device having the above Figure 2 The dam line optimization device shown.

[0149] See also Figure 3 , Figure 3 Schematic diagram of the hardware structure of the computer device according to the embodiment of the present invention. Figure 3 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In an optional embodiment, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.

[0150] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0151] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0152] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In an optional embodiment, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0153] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive. The memory 20 may also include a combination of the above-mentioned types of memory.

[0154] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0155] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0156] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0157] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A dam line optimization method, characterized in that: include: Obtaining the initial dam line and the pre-established dam line optimization model; The initial dam line is the dam line to be optimized; The dam line optimization model includes constraints and objective functions, wherein the constraints include: dam length constraint, dam height constraint and reservoir capacity constraint, and the objective function is constructed with the goal of minimizing the scale index; Repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained: The target end point of the target dam line targeted by this optimization operation is used as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain the candidate dam line targeted by this optimization operation; wherein, the target dam line targeted by the first optimization operation is the initial dam line; the target end point of the target dam line targeted by this optimization operation is an end point of the initial dam line or an end point other than the target end point of the target dam line targeted by the last optimization operation; Determine the target dam line for the next optimization operation according to the dam line optimization model; wherein the target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for the current optimization operation; When the target dam line targeted by the current optimization operation is the same as the target dam line targeted by the next optimization operation, the target dam line targeted by the current optimization operation is determined as the optimal dam line corresponding to the initial dam line; Determining the target dam line for the next optimization operation according to the dam line optimization model includes: Determine the standard dam line targeted by this optimization operation according to the constraint conditions; Determine the dam line with the smallest scale index among the standard dam lines targeted by this optimization operation according to the objective function; The dam line with the smallest scale index among the standard dam lines targeted by this optimization operation is determined as the target dam line targeted by the next optimization operation; The determining of the constraint conditions of the dam line optimization model includes: Determining a first constraint condition of the dam line optimization model, wherein the first constraint condition is used to constrain the dam height and the dam length; Determining a second constraint condition of the dam line optimization model, wherein the second constraint condition is used to constrain the reservoir capacity; Determining the standard dam line targeted by this optimization operation according to the constraint conditions includes: At least a part of the dam height or dam length of the dam line to be adjusted among the candidate dam lines targeted by this optimization operation is adjusted so that the dam height and dam length corresponding to the adjusted dam line to be adjusted meet the first constraint condition; wherein the dam height corresponding to the dam line to be adjusted is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition; The adjusted dam line to be adjusted that meets the second constraint condition and the dam line that meets the first constraint condition and the second constraint condition among the candidate dam lines targeted by this optimization operation are respectively determined as the standard dam lines targeted by this optimization operation.

2. The method according to claim 1, characterized in that The target dam line targeted by the optimization operation is rotated with the target endpoint of the target dam line targeted by the optimization operation as the rotation center to obtain the candidate dam line targeted by the optimization operation, including: Taking the target endpoint of the target dam line targeted by this optimization operation as the rotation center, the target dam line targeted by this optimization operation is rotated to obtain a rotated dam line; A candidate dam line for this optimization operation is determined according to the rotated dam line; wherein the candidate dam line is determined by extending the rotated dam line.

3. The method according to claim 2, characterized in that The step of determining a candidate dam line for the optimization operation according to the rotated dam line includes: Determine contour lines and watershed lines based on digital elevation models; Extend the rotation dam line until the dam line formed by the intersection of the rotation dam line and the contour line is the dam line with the maximum elevation, or the rotation dam line intersects with the watershed line; The dam line with the maximum elevation or the dam line obtained by intersecting the rotated dam line with the watershed line is determined as the candidate dam line for this optimization operation.

4. A dam line optimization device, characterized in that: include: The first processing module is used to obtain an initial dam line and a pre-established dam line optimization model; the initial dam line is the dam line to be optimized; The second processing module is used to repeat the following optimization operations until the optimal dam line corresponding to the initial dam line is obtained: The target end point of the target dam line targeted by this optimization operation is used as the rotation center, and the target dam line targeted by this optimization operation is rotated to obtain the candidate dam line targeted by this optimization operation; wherein, the target dam line targeted by the first optimization operation is the initial dam line; the target end point of the target dam line targeted by this optimization operation is an end point of the initial dam line or an end point other than the target end point of the target dam line targeted by the last optimization operation; Determine the target dam line for the next optimization operation according to the dam line optimization model; wherein the target dam line for the next optimization operation is the candidate dam line with the smallest scale index among the candidate dam lines for the current optimization operation; When the target dam line targeted by the current optimization operation is the same as the target dam line targeted by the next optimization operation, the target dam line targeted by the current optimization operation is determined as the optimal dam line corresponding to the initial dam line; Model building modules include: The first processing unit is used to construct an objective function with the minimum scale index as the goal; A second processing unit is used to determine the constraint conditions of the dam line optimization model, wherein the constraint conditions are used to constrain the dam height, dam length and reservoir capacity; A third processing unit, configured to establish the dam line optimization model based on the objective function and the constraint conditions; The second processing module also includes: a second processing unit; The second processing unit comprises: The first subunit is used to determine the standard dam line targeted by this optimization operation according to the constraint conditions; The second subunit is used to determine the dam line with the smallest scale index among the standard dam lines targeted by this optimization operation according to the objective function; The third subunit is used to determine the dam line with the smallest scale index among the standard dam lines targeted by the current optimization operation as the target dam line targeted by the next optimization operation; The second processing unit of the model building module includes: A first subunit is used to determine a first constraint condition of the dam line optimization model, where the first constraint condition is used to constrain the dam height and dam length; A second subunit is used to determine a second constraint condition of the dam line optimization model, wherein the second constraint condition is used to constrain the reservoir capacity; The first subunit in the second processing unit included in the second processing module is specifically used to adjust at least a part of the dam height or dam length of the dam line to be adjusted in the candidate dam line targeted by this optimization operation, so that the dam height and dam length corresponding to the adjusted dam line to be adjusted meet the first constraint condition; wherein the dam height corresponding to the dam line to be adjusted is greater than the upper limit value of the maximum constraint of the dam height in the first constraint condition or the dam length is greater than the upper limit value of the maximum constraint of the dam length in the first constraint condition; The adjusted dam line to be adjusted that meets the second constraint condition and the dam line that meets the first constraint condition and the second constraint condition among the candidate dam lines targeted by this optimization operation are respectively determined as the standard dam lines targeted by this optimization operation.

5. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the steps of the method according to any one of claims 1 to 3 by executing the computer instructions.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the steps of the method according to any one of claims 1 to 3.