Multi-reach manning roughness decoupling method, system, device and storage medium
By using parameter-freezing sequential calibration for each river segment and boundary constraint transfer, the problem of coupling Manning roughness parameters in multiple river segments was solved, achieving efficient multi-segment roughness calibration and improving the stability and efficiency of parameter calibration.
Patent Information
- Application Number
- CN202611338235.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
In multi-segment series scenarios, the parameter coupling of Manning roughness makes it difficult for high-dimensional optimization to converge. Existing technologies lack effective decoupling and calibration methods, especially methods that transform high-dimensional joint optimization problems into low-dimensional sub-optimization problems through parameter freezing mechanisms, and lack fixed boundary constraints and iterative refinement mechanisms.
A parameter-freezing sequential calibration method is adopted, which freezes the parameters of the calibrated river segments and optimizes only the Manning roughness of the current river segment. Combined with boundary constraints and iterative refinement, the optimization dimension is gradually reduced and the influence of parameter coupling is reduced.
It effectively reduces the compensation effect of parameter coupling in multiple river segments, improves the stability and efficiency of parameter calibration, reduces simulation calculation overhead, and is suitable for roughness calibration scenarios of various multi-segment series channels.
Smart Images

Figure CN123179976A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the interdisciplinary field of hydrological and hydrodynamic modeling and intelligent optimization, specifically involving a method, system, equipment, and storage medium for decoupling and calibrating the Manning roughness of multiple river segments. Background Technology
[0002] The Manning roughness coefficient is a core and sensitive parameter in one-dimensional river hydrodynamic calculation models, directly determining the degree of agreement between simulated water levels and measured data. Its accuracy has a crucial impact on flood evolution analysis, levee design evaluation, and river management scheme demonstration. However, the Manning roughness coefficient is influenced by a combination of factors, including channel bed roughness, vegetation cover, cross-sectional morphology, and flow conditions. In engineering practice, it is difficult to obtain precisely using theoretical formulas and usually requires empirical calculations or field calibration.
[0003] In multi-segment connected scenarios, significant hydraulic coupling exists between upstream and downstream segments. Changes in the roughness of the upstream segment directly affect its outlet water level, thereby altering the inlet boundary conditions of the downstream segment. When all segment parameters are optimized simultaneously, a compensation effect can easily occur between parameters of different segments; that is, an increase in the roughness of one segment may be offset by a decrease in the roughness of another segment, making it difficult for the optimization algorithm to converge to a stable optimal solution in the high-dimensional parameter space. Furthermore, each hydrodynamic simulation is typically time-consuming. In high-dimensional multi-segment scenarios, existing methods often employ a synchronous global optimization strategy, resulting in an excessive number of evaluations and overall calibration efficiency that fails to meet engineering requirements.
[0004] The physical essence of the Manning roughness coefficient reflects the resistance characteristics of the riverbed. Its theoretical basis can be traced back to Einstein's resistance theory, which decomposes the surface resistance into sand grain resistance and sand wave resistance, providing a theoretical framework for the analysis of the physical mechanism of roughness. In engineering practice, the Manning roughness coefficient is usually calibrated as a comprehensive resistance coefficient, and its value needs to take into account various factors such as surface composition, vegetation cover, and cross-sectional morphology.
[0005] Existing hydrodynamic modeling software provides mature hydrodynamic calculation capabilities, but it lacks decoupling calibration functions for multi-segment parameter coupling. Although some studies have attempted to use scripting languages to call simulation software interfaces to achieve batch calculations, there is still a lack of systematic automated technical solutions for decoupling calibration strategies for multi-segment parameter coupling, especially methods that gradually reduce the optimization dimensionality through parameter freezing mechanisms.
[0006] In summary, existing technologies suffer from the following shortcomings: a lack of decoupling calibration methods for upstream and downstream parameter coupling in multiple river segments, especially methods to transform high-dimensional joint optimization problems into low-dimensional sub-optimization problems through parameter freezing; a lack of fixed boundary constraint mechanisms to further reduce upstream and downstream hydraulic coupling based on parameter freezing; and a lack of reinforcement mechanisms for iterative refinement based on parameter freezing results. Therefore, there is an urgent need for a Manning roughness rate decoupling calibration method that effectively reduces parameter coupling in multiple river segments, with parameter freezing as its core and river segment topological relationships as its guiding sequence. Summary of the Invention
[0007] The purpose of this invention is to overcome the problem that the coupling of upstream and downstream parameters in the Manning roughness calibration process in a multi-segment series scenario makes it difficult for high-dimensional optimization to converge. The invention proposes a decoupling calibration method, system, equipment and storage medium for the Manning roughness in a multi-segment series scenario.
[0008] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a method for decoupling and calibrating the Manning roughness coefficient across multiple river segments, comprising the following steps: Acquire geometric data, boundary condition data, and observed water level data of multiple river segments to determine the upstream and downstream topological relationships of each river segment; According to the upstream and downstream topology, Manning roughness calibration is performed segment by segment along the upstream to downstream direction. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. After the current river segment is calibrated, the water level time series at the downstream end of the current river segment is extracted to generate the inlet boundary constraints of the adjacent downstream river segments. The inlet boundary constraints of the adjacent downstream river segments are used as the input conditions for the calibration of the adjacent downstream river segments. After all river sections have been calibrated, the Manning roughness parameters and calibration results for each river section will be output.
[0009] Furthermore, the current river section is defined as including: Construct a candidate parameter vector that contains only the Manning roughness parameter of the current river segment; Set the Manning roughness parameter of the calibrated river section to the frozen value, and set the Manning roughness parameter of the uncalibrated river section to the initial value; Hydrodynamic simulation is performed based on candidate parameter vectors. The simulated water level sequence of each station is extracted, and the objective function value is calculated in combination with the observed water level data. The Manning roughness parameter of the current river segment is updated according to the objective function value until the convergence condition is met, and then the Manning roughness parameter of the current river segment is frozen. The sub-optimization problem for the i-th river segment is shown in the following equation: minF i (αi |α1 ,…,α i-1 ,α i+1 0 ,…,α n 0 ) Where, α i Let α1 be the Manning roughness parameter for the i-th river segment. ,…,α i-1 For parameters that have been calibrated and frozen, α i+1 0 ,…,α n 0 For the initial parameters of the uncalibrated river section, F i Let be the objective function for the i-th river segment.
[0010] Furthermore, when generating the inlet boundary constraints for adjacent downstream river segments, the simulated water level time series of the current river segment under the optimal Manning roughness parameter is extracted. The inlet boundary constraints for adjacent downstream river segments are generated using the simulated water level time series, as shown in the following formula:
[0011] in This indicates that the i-th river segment is in optimal parameters. The downstream outlet water level time series was calculated below. This represents the time series of the inlet boundary water level for the (i+1)th river segment; When there is observed water level data at the connection section between the current river segment and the adjacent downstream river segment, and the observed water level is preset as the boundary condition, the observed water level time series of the connection section is extracted, and the inlet boundary constraint of the adjacent downstream river segment is generated using the observed water level time series.
[0012] Furthermore, after all river segments have completed one round of calibration, the Manning roughness parameters of each river segment in the previous round are used as the initial values for the new round of calibration. According to the upstream and downstream topological relationship, the Manning roughness calibration is re-executed segment by segment from upstream to downstream until the set number of rounds is reached or the global convergence condition is met.
[0013] Furthermore, when the channel to be calibrated includes multiple rivers, the river segments are grouped according to the river names, and the river segments belonging to the same river are grouped together. When there is no hydraulic connection between multiple rivers, each group independently performs the Manning roughness rate determination; When multiple rivers are hydraulically connected, a directed acyclic topology graph is constructed, and Manning roughness calibration and parameter freezing are performed on each group in sequence according to the topology hierarchy.
[0014] Furthermore, the Manning roughness parameter for each river section is obtained by multiplying the benchmark Manning roughness by a multiplier factor, and the range of values for the multiplier factor is determined according to a preset configuration. Alternatively, the absolute Manning roughness value can be directly used as the optimization variable for the Manning roughness parameter of each river section.
[0015] Furthermore, during the calibration process, a weighted composite objective function is used to perform parameter optimization. The weighted composite objective function includes the global root mean square error, the station equilibrium error, and the parameter regularization term. The weighted composite objective function is shown in the following equation:
[0016] in, This is the global root mean square error; λ is the station equilibrium error; λ is the regularization coefficient. For parameter regularization terms, , Here, N represents the weighting coefficient, and N is the total number of river segments. Let be the Manning roughness multiplier factor for the i-th river segment; The output calibration results include root mean square error, Nash efficiency coefficient, and percentage deviation.
[0017] Secondly, the present invention provides a multi-segment Manning roughness decoupling calibration system, comprising: The data acquisition module is used to acquire river channel geometry data, boundary condition data, and observed water level data for multiple river segments, and to determine the upstream and downstream topological relationships of each river segment. The parameter optimization module is used to perform Manning roughness calibration segment by segment along the upstream to downstream direction according to the upstream and downstream topological relationship. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. The constraint generation module is used to extract the water level time series at the downstream end of the current river segment after the current river segment calibration is completed, generate the inlet boundary constraints of the adjacent downstream river segment, and use the inlet boundary constraints of the adjacent downstream river segment as the input conditions for the calibration of the adjacent downstream river segment. The results output module is used to output the Manning roughness parameters and calibration results for each river segment after calibration is completed.
[0018] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a multi-segment Manning roughness decoupling calibration method.
[0019] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a method for decoupling and calibrating the Manning roughness of multiple river segments.
[0020] Compared with the prior art, the present invention has the following beneficial technical effects: This invention proposes a multi-segment Manning roughness decoupling calibration method, which achieves decoupling calibration by combining parameter-freezing segment-by-segment sequential calibration with boundary constraint propagation. Through the segment-by-segment parameter freezing mechanism, the joint high-dimensional optimization problem of multiple river segments is decomposed into multiple low-dimensional sub-optimization problems of single river segments. This effectively suppresses the compensation effect between parameters of different river segments, reduces the dimensionality of the parameter search space, lowers the convergence difficulty of the optimization algorithm, and improves the stability of the parameter calibration results. Downstream inlet boundary constraints are generated from the downstream water level sequence of the calibrated river segments, achieving decoupling propagation of upstream and downstream hydraulic conditions. This reduces the interference of upstream parameter changes on the downstream optimization process and strengthens the independence of single-segment optimization. The segment-by-segment sequential optimization mode significantly reduces the parameter scale of a single optimization, reduces the overall computational overhead of simulation, improves calibration efficiency, and is adaptable to various roughness calibration scenarios of multi-segment tandem rivers. Attached Figure Description
[0021] The accompanying drawings described herein are for illustrative purposes only and are not intended to limit the scope of the invention in any way. Furthermore, the shapes and proportions of the components in the drawings are merely schematic to aid in understanding the invention and do not specifically limit the shapes and proportions of the components. In the drawings: Figure 1 This is a flowchart of the multi-segment Manning roughness decoupling calibration method of the present invention.
[0022] Figure 2 This is a simplified structural diagram of the multi-segment Manning roughness decoupling calibration system of the present invention.
[0023] Figure 3 This is an electronic device diagram of the multi-segment Manning roughness decoupling calibration method of the present invention.
[0024] Figure 4 This is a schematic diagram of the overall process of the decoupling calibration method for the roughness of multiple river sections in an embodiment of the present invention.
[0025] Figure 5 This is a schematic diagram illustrating the principle of how the parameter freezing mechanism in this embodiment of the invention transforms high-dimensional joint optimization into low-dimensional sub-optimization.
[0026] Figure 6 This is a schematic diagram illustrating the principle of the fixed boundary constraint transfer mechanism in an embodiment of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] Example 1 See Figure 1 The method for determining the decoupling rate of roughness in multiple river sections of the Manning River includes the following steps: Acquire geometric data, boundary condition data, and observed water level data of multiple river segments to determine the upstream and downstream topological relationships of each river segment; According to the upstream and downstream topology, Manning roughness calibration is performed segment by segment along the upstream to downstream direction. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. After the current river segment is calibrated, the water level time series at the downstream end of the current river segment is extracted to generate the inlet boundary constraints of the adjacent downstream river segments. The inlet boundary constraints of the adjacent downstream river segments are used as the input conditions for the calibration of the adjacent downstream river segments. After all river sections have been calibrated, the Manning roughness parameters and calibration results for each river section will be output.
[0029] This invention, centered on parameter freezing and guided by the topological relationships of river segments, revolves around the following core technical approach: parameter-freezing sequential calibration, fixed boundary constraints, and iterative refinement. In multi-segment connected scenarios, when all river segment parameters are optimized synchronously, compensation effects can easily occur between parameters of different river segments. That is, the effect of increasing the roughness of one river segment may be offset by the decrease in the roughness of another river segment, making it difficult for the optimization algorithm to converge to a stable optimal solution in the high-dimensional parameter space. This invention, through a parameter freezing mechanism, transforms the multi-segment joint optimization problem into multiple low-dimensional sub-optimization problems: when optimizing the current river segment, the parameters of the calibrated river segments are frozen and locked, and the current optimization vector only contains the parameters of the current river segment to be calibrated, making the dimension of each sub-optimization problem significantly lower than the dimension of the global synchronous optimization. After parameter freezing, the objective function of the current sub-optimization problem only changes with the parameters of the current river segment, the compensation effect between parameters is significantly suppressed, the dimension of the current searchable parameter space is reduced, the change of the objective function is less affected by the perturbation of parameters from other river segments, the locality is stronger, and the optimization algorithm can more reliably find the optimal solution for each sub-problem. When the downstream boundary condition of a calibrated river segment is a water level constraint, the water level information at the downstream end of the calibrated segment is used as a fixed boundary constraint in the simulation of the downstream segment. This transforms the hydraulic influence of the calibrated segment on the downstream into a fixed constraint, further reducing parameter coupling. After all river segments have completed one round of parameter-freezing sequential calibration, the system can activate an iterative refinement mechanism, using the optimal parameters of each river segment from the previous round as new initial values, and then perform the next round of parameter-freezing sequential calibration in the order from upstream to downstream. This invention is applicable to the automatic calibration of Manning roughness coefficients for multiple river segments in a one-dimensional river hydrodynamic model, and is not limited to a specific simulation software platform.
[0030] For details, see Figure 4 The method for determining the decoupling rate of roughness in multiple river sections of the Manning River includes the following steps: S1. Obtain the geometric data, boundary condition data, and observed water level data of multiple river segments to determine the upstream and downstream topological relationships between each river segment. The determination of the upstream and downstream topological relationships between each river segment in step S1 is based on the flow direction identifier, river segment connection relationship, start and end section number, or mileage station sorting rules in the river data. When the project adopts the coding rule of decreasing mileage station along the water flow direction, the river segment with the larger mileage station is determined as the upstream river segment, and the river segment with the smaller mileage station is determined as the downstream river segment.
[0031] S2, following the topological order from upstream to downstream, perform parameter-freezing sequential calibration on each river segment: When optimizing the current river segment, construct a candidate parameter vector containing only the parameters to be calibrated in the current river segment. This candidate parameter vector includes Manning roughness-related parameters to be calibrated in the current river segment, including but not limited to the Manning roughness multiplier factor or absolute Manning roughness value for each river segment. Set the parameters of calibrated river segments as frozen values, and set the parameters of uncalibrated river segments as initial values or values from the previous round of refinement. Perform hydrodynamic simulation on the candidate parameters, extract the simulated water level sequence of the corresponding stations, calculate the objective function value, and update the parameters of the current river segment according to the objective function value until the convergence condition of the current river segment is met, at which point the parameters of that river segment are frozen. In the same round of sequential calibration, the parameters of the calibrated river segments are used in subsequent rounds of optimization. The parameters are kept frozen during the optimization process. During the current river segment optimization process, hydrodynamic simulation is performed for each candidate parameter evaluation and the station water level is extracted for the objective function calculation. When the river segment meets the convergence condition, an additional simulation with the optimal parameters as input is performed to generate the downstream fixed boundary water level sequence. The technical mechanism of parameter freezing sequential calibration in step S2 is as follows: In the scenario of multiple river segments connected in series, if a synchronous optimization strategy is adopted, the optimization objective is a global objective function in which all river segment parameters participate simultaneously. At this time, there is a significant compensation effect between the parameters of each river segment. That is, the effect of increasing the roughness parameter of the upstream river segment may be offset by the decrease of the roughness parameter of the downstream river segment, resulting in the objective function surface exhibiting a complex coupling form in the parameter space. The optimization algorithm is difficult to converge to a stable optimal solution in high-dimensional space. Suppose the river channel to be calibrated comprises N river segments, and the Manning roughness multipliers for each segment are denoted as α1, α2, …, α… n Then the global synchronization optimization problem can be expressed as: minF(α), α=(α1,α2,…,α) n (1) Where, α i Let represent the Manning roughness multiplier for the i-th river segment, and N be the number of river segments. During simultaneous optimization, all α i Simultaneously, the objective function F(α) changes as a whole with the N-dimensional parameter vector. There is a significant parameter compensation effect between different dimensions, that is, an increase in one dimension may be offset by a decrease in another dimension, resulting in a complex coupling shape on the surface of the objective function.
[0032] See Figure 5Through the parameter freezing mechanism, when optimizing the i-th river segment, only the parameters corresponding to that river segment are retained as optimization variables, while the parameters of the other calibrated river segments are frozen as constants, and the river segments that have not yet been optimized retain their initial values. At this time, the objective function of the i-th sub-optimization problem only changes with the parameters of the i-th river segment. The parameter dimension is reduced from the global dimension to the single river segment dimension. The dimension of the currently searchable parameter space is reduced, the change of the objective function is less affected by the disturbance of parameters from non-current river segments, the locality is stronger, and the compensation effect between parameters is significantly suppressed.
[0033] This invention decomposes the aforementioned N-dimensional global optimization problem into N low-dimensional sub-optimization problems through a parameter freezing mechanism. When optimizing the i-th river segment, the first i... The optimal parameter α1 for a river segment ,…,α i-1 It has been frozen as a constant, after N The i river segments retain the initial value α. i+1 0 ,…,α n 0 The parameter α of the i-th river segment remains unchanged. i As optimization variables, the i-th sub-optimization problem can then be expressed as: minF i (α i |α1 ,…,α i-1 ,α i+1 0 ,…,α n 0 (2) Where, α1 ,…,α i-1 For parameters that have been calibrated and frozen, α i+1 0 ,…,α n 0 The initial parameters are for the uncalibrated river segments. As can be seen from equation (2), the original N-dimensional joint optimization is decomposed into several one-dimensional sub-optimizations. Each sub-optimization problem only involves the parameter changes of a single river segment. The parameter dimension is reduced from the global dimension N to the single river segment dimension 1. The dimension of the currently searchable parameter space is reduced, the impact of parameter disturbances from non-current river segments on the objective function change is reduced, and the compensation effect between parameters is significantly suppressed. The optimizer searches independently in the local parameter space of the current river segment until convergence before moving to the next river segment. Since each sub-problem only involves a low-dimensional search space, the number of function evaluations required is far less than that of the global synchronous optimization, and the convergence stability of each sub-problem is significantly better than that of the global optimization.
[0034] More generally, if the i-th river segment contains multiple roughness zones (such as the main channel, left bank floodplain, right bank floodplain, etc.), then the parameters to be optimized for this river segment are in vector form θ. i ∈ di , where d i Let θ be the parameter dimension of the i-th river segment. Then, the i-th sub-optimization problem can be expressed as: θ i =argmin_{θ i ∈Ω i}F i (θ1 ,…,θ i-1 ,θ i ,θ i+1 0 ,…,θ n 0 ) Among them, Ω i Let θ1 represent the parameter search space corresponding to the i-th river segment. ,…,θ i-1 θ represents the parameters of the upstream river segment that have been calibrated and frozen. i+1 0 ,…,θ n 0 This represents the initial parameters for the uncalibrated river segment. The global optimization dimension is defined by D=Σ. i=1 d i Reduced to the dimension d of the current subproblem i .
[0035] When the channel to be calibrated contains multiple rivers, the process before step S2 includes: automatically grouping river segments by river name, with segments on the same river grouped together; when there is no hydraulic connection between multiple rivers, each group independently performs parameter-freezing sequential calibration, with parallel or arbitrary execution between groups; when there are confluence, branching, or upstream / downstream connections between multiple rivers, a directed acyclic topology graph is constructed, and calibration and freezing are performed sequentially for each group according to the topology hierarchy. When the channel to be calibrated contains multiple rivers, the system supports segmented parameter-freezing sequential calibration. The system automatically groups river segments by river name, with segments on the same river grouped together. Within a group, all river segments are optimized simultaneously, sharing the objective function of that group; when there is no hydraulic connection between multiple rivers, each group independently performs parameter-freezing sequential calibration, with parallel or arbitrary execution between groups; when there are confluence, branching, or upstream / downstream connections between multiple rivers, a directed acyclic topology graph is constructed, and calibration and freezing are performed sequentially for each group according to the topology hierarchy. This strategy is an extension of parameter-freezing sequential calibration in complex multi-river scenarios, balancing global coupling and local accuracy.
[0036] S3, Once the current river segment has been calibrated, the system, with its Manning roughness parameters frozen, extracts the simulated water level time series at the downstream end of the river segment based on the simulation results described in step S2 with the optimal parameters as input. This time series is then written into the inlet boundary condition file of the adjacent downstream river segment, transforming the hydraulic influence of the calibrated river segment on the downstream into a fixed constraint; see [link to relevant documentation]. Figure 6 As an optional enhancement scheme for fixed boundary constraints, when the connecting section has synchronous measured water level data and the user explicitly selects to enable it, the system uses the measured water level time series instead of the simulated sequence as the downstream boundary; the fixed boundary constraint mentioned in step S3 is mainly implemented by writing the downstream outlet water level time series obtained by calibrating the river section under optimal parameters into the inlet boundary condition file of the adjacent downstream river section; when the connecting section has a reliable measured water level and the user explicitly selects to enable it, the measured water level time series of the connecting section is used as the fixed boundary constraint.
[0037] The technical effect of fixed boundary constraints is as follows: when the downstream boundary condition of the calibrated river segment is a water level constraint, the downstream outlet water level time series simulated under optimal parameters is used as the fixed inlet boundary constraint for the adjacent downstream river segment, thus transforming the hydraulic influence of the calibrated river segment on the downstream into a fixed constraint. When a reliable measured water level exists at the connecting section, the measured water level time series can also be used as the corrected fixed boundary constraint. This mechanism further decouples the optimization objective function of the downstream river segment, avoiding interference from upstream parameter changes on the downstream optimization process. In one embodiment, the fixed boundary constraint is implemented by writing the downstream observed water level of the calibrated river segment into the boundary condition file of the simulation software; in another embodiment, it is implemented by directly substituting the hydraulic characteristic parameters of the calibrated river segment into the inlet boundary calculation of the downstream river segment.
[0038] When the simulated outlet water level of the upstream river segment is used as the downstream boundary, the fixed boundary transfer relationship can be expressed as: (3) Among them, Z i , out sim (t;θ i ) represents the i-th river segment with optimal parameters θ i The downstream outlet water level time series calculated below, Z i+1 , in bc (t) represents the time series of the inlet boundary water level of the (i+1)th river segment.
[0039] When the observed water level at the connecting section is used as the fixed boundary, the transfer relationship can be expressed as: Z i+1, in bc (t)=Z c i obs (t)(4) Among them, Z c i obs (t) represents the time series of observed water levels at the cross-section connecting the i-th river segment and the (i+1)-th river segment.
[0040] S4: After all river segments have completed one round of parameter-freezing sequential calibration, the iterative refinement mechanism is activated. When entering the next round of iterative refinement, the parameters of each river segment obtained in the previous round are used as new initial values, and these parameters become the variables to be optimized again in the current river segment. The next round of parameter-freezing sequential calibration is then performed in the order from upstream to downstream. The iterative refinement mechanism described in step S4 is as follows: After the first round of parameter-freezing sequential calibration is completed, the system records the optimal parameter values for each river segment. In the second round of optimization, these optimal parameter values are used as new initial values for each river segment, and parameter-freezing sequential calibration is performed one by one in the order from upstream to downstream. At this time, the search range of each river segment is narrowed, realizing local fine-tuning of the obtained solutions. The number of rounds of iterative refinement is set by the user, with a minimum of one round.
[0041] The technical effect of the iterative refinement mechanism is as follows: In the first round of parameter-freezing sequential calibration, the initial values of each river segment may be far from the optimal solution, resulting in the first round of optimization only achieving a locally optimal solution. By enabling iterative refinement, the system uses the optimal parameters of each river segment from the first round as new initial values and performs a second round of parameter-freezing sequential calibration according to the topological order. At this point, the initial values of each river segment are close to the optimal region, and the second round of optimization can finely adjust within a narrower search range, gradually improving the calibration results and increasing the probability of obtaining a stable, optimal solution. The number of rounds of iterative refinement is set by the user, typically 2 to 3 rounds. Iterative refinement is an enhanced execution of the parameter-freezing strategy, rather than a method independent of the parameter-freezing strategy.
[0042] S5, after all river sections have been calibrated, output the Manning roughness parameter, simulated water level results, and performance evaluation indicators that meet the convergence conditions. The objective function mentioned in step S5 is calculated using a weighted composite evaluation method, including the weighted sum of global root mean square error, station equilibrium error, and parameter regularization term; the performance evaluation indicators include RMSE, NSE, and PBIAS.
[0043] The Manning roughness parameter for each river segment is modeled using a multiplier factor-based approach. This means that the effective Manning roughness is the product of the baseline Manning roughness for each segment and the multiplier factor to be optimized. The search range of the multiplier factor is configured by the user based on engineering experience. This parameter modeling method adjusts the roughness magnitude of each river segment uniformly through the multiplication factor while keeping the relative spatial distribution of the baseline roughness unchanged. In another embodiment, the absolute Manning roughness value of each river segment is directly used as the optimization variable.
[0044] The formula for calculating the effective Manning roughness is: n i eff =α i ·n i 0 (5) Where, n i 0 Let α be the baseline Manning roughness for the i-th river segment. i For the corresponding multiplier to be optimized, n i eff For the effective Manning roughness to participate in hydrodynamic simulation, α i The range of values for is [α] min ,α max ].
[0045] The multiplier factor modeling method described above is also applicable to roughness parameterization schemes based on Einstein's resistance theory. That is, the comprehensive roughness magnitude of each river segment is uniformly adjusted by the multiplier factor, while keeping the relative proportions of each resistance component in the Einstein resistance formula unchanged.
[0046] The objective function described in step S5 adopts a weighted composite evaluation method, and its mathematical expression is as follows: (6) in, The global root mean square error reflects the overall deviation between the simulated water level and the observed water level. The station-level equalization error reflects the uniformity of the fitting accuracy across all stations; λ is the regularization coefficient. The parameter regularization term is used to constrain the degree to which the multiplier factor deviates from the baseline value of 1, so as to avoid excessively large and physically unreasonable parameter values; w1 and w2 are weight coefficients, which are configured by the user according to the engineering requirements.
[0047] The root mean square error of each station is defined as: (7) Among them, T k Z represents the length of the observation time series at the k-th station. k , t sim Z represents the simulated water level at time t at the k-th station.k , t obs This indicates the corresponding observed water level.
[0048] Station equilibrium error is defined as the standard deviation of the RMSE at each station: (8) Where, RMSĒ=1 / K·Σ k=1 RMSE k Let be the average RMSE of all stations, and K be the total number of stations. The station equilibrium error is used to measure the degree of uniformity of fitting accuracy among stations; the smaller the value, the more uniform the fitting accuracy among stations.
[0049] The formula for calculating the global root mean square error RMSEglobal is: (9) Where K is the total number of stations, T k Let M be the length of the observation time series at the k-th station, where M = Σ k=1 T k Z represents the total number of observed samples. sim k , t Z represents the simulated water level at time t for the k-th station. obs k , t This corresponds to the observed water level.
[0050] The formula for calculating the Nash efficiency coefficient (NSE) in performance evaluation metrics is as follows: (10) Among them, Z t obs Z represents the observed water level at time t. t sim This represents the simulated water level at time t. obs This represents the average water level over time.
[0051] The formula for calculating percentage deviation (PBIAS) is: (11) PBIAS is used to measure the overall trend of simulated values being too high or too low. A positive value indicates that the simulated values are generally too high, and a negative value indicates that the simulated values are generally too low.
[0052] The hydrodynamic simulation described in step S5 is executed through the program interface of external simulation software. The system pre-generates a temporary project file based on geometric data, boundary condition data, and calibration configuration data. Before each fitness assessment, the system restores the project file backup and modifies the parameter values to be calibrated, then executes the model calculation through the program interface. After the calculation is complete, the system extracts the simulated water level of each station from the result file and compares the error with the measured values.
[0053] Taking a multi-segment unsteady flow scenario as an example, users upload geometric data of multiple river segments, unsteady flow boundary condition data, and observed water level time series data. The system determines the upstream and downstream topological relationships between each river segment and performs parameter-freezing sequential calibration on each segment in order from upstream to downstream. In the unsteady flow boundary condition processing, the system re-executes hydrodynamic calculations under the condition of freezing the Manning roughness parameters of the calibrated river segments, extracts the simulated water level time series at the downstream end of the river segment, and writes this time series into the inlet boundary condition file of the adjacent downstream river segment as a fixed boundary constraint. After the optimization of each river segment is completed, its parameters are frozen. After all river segments have completed one round, the system starts an iterative refinement mechanism to perform a second round of parameter-freezing sequential calibration. Finally, the optimal Manning roughness parameters of each river segment and performance evaluation indicators such as RMSE, NSE, and PBIAS are output.
[0054] This invention utilizes a parameter-freezing sequential calibration mechanism to transform the high-dimensional problem of joint optimization across multiple river segments into several low-dimensional subproblems. This effectively reduces the parameter correlation between upstream and downstream river segments, decoupling the optimization dimensions and significantly improving convergence stability. Under parameter-freezing conditions, the objective function of the current sub-optimization problem changes only with the parameters of the current river segment. The compensation effect between parameters is significantly suppressed, the dimension of the currently searchable parameter space is reduced, and the impact of disturbances from parameters outside the current river segment on the objective function is lessened. This allows the optimization algorithm to more reliably find the optimal solution for each subproblem.
[0055] This invention transforms the hydraulic influence of a calibrated river section on the downstream into a fixed constraint through a fixed boundary constraint mechanism. This further decouples the optimization objective function of the downstream river section, avoids interference from upstream parameter changes on the downstream optimization process, and improves the effectiveness of the parameter freezing strategy.
[0056] This invention employs an iterative refinement mechanism to perform multiple rounds of fine adjustments based on a previously obtained optimal solution, gradually improving the calibration results, increasing the probability of obtaining a stable optimal solution, and enhancing the overall calibration accuracy. The iterative refinement is based on parameter-freezing sequential calibration, further searching within the neighborhood of the previous round's results, representing a strengthened implementation of the parameter-freezing strategy.
[0057] This invention employs a parameter freezing mechanism, where each sub-optimization problem involves only a low-dimensional search space. The number of function evaluations required is far fewer than that of global synchronous optimization, resulting in a significant improvement in overall calibration efficiency in scenarios where the cost of each simulation call is high.
[0058] When the river channel to be calibrated contains multiple independent rivers, this invention performs segmented parameter freezing sequential calibration, which balances global coupling and local accuracy in complex watershed scenarios and is suitable for larger-scale engineering applications.
[0059] Example 2 See Figure 2 The multi-segment Manning roughness decoupling rate determination system includes: The data acquisition module is used to acquire river channel geometry data, boundary condition data, and observed water level data for multiple river segments, and to determine the upstream and downstream topological relationships of each river segment. The parameter optimization module is used to perform Manning roughness calibration segment by segment along the upstream to downstream direction according to the upstream and downstream topological relationship. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. The constraint generation module is used to extract the water level time series at the downstream end of the current river segment after the current river segment calibration is completed, generate the inlet boundary constraints of the adjacent downstream river segment, and use the inlet boundary constraints of the adjacent downstream river segment as the input conditions for the calibration of the adjacent downstream river segment. The results output module is used to output the Manning roughness parameters and calibration results for each river segment after calibration is completed.
[0060] Specifically, the multi-segment Manning roughness decoupling calibration system also includes: The topology order determination module is used to acquire river channel geometry data of multiple river segments, determine the upstream and downstream topological relationships between each river segment, and output the optimization order of the river segments according to the topological order from upstream to downstream. The parameter optimization module is used to update the candidate Manning roughness parameters of the current river segment based on the objective function value, using particle swarm optimization, Bayesian optimization, genetic algorithm, grid search or other black-box optimization algorithms. The parameter-freezing sequential calibration module is used to perform parameter-freezing sequential calibration on each river segment in the order of river segment optimization: when optimizing the current river segment, the Manning roughness parameter of the calibrated river segment is frozen and locked, and the current optimization vector only contains the parameters of the current river segment to be calibrated, so that the multi-segment joint optimization problem is transformed into multiple low-dimensional sub-optimization problems; The fixed boundary constraint module is used to extract the boundary water level and write the downstream boundary file according to the optimal parameters after the river section has been calibrated. The iterative refinement control module is used to determine whether to proceed to the next round of refinement and to manage the updating of the initial values of each river segment; The simulation and error feedback module is used to perform hydrodynamic simulation on the candidate Manning roughness parameters, obtain the simulated water level sequence corresponding to each station, calculate the objective function value based on the simulated water level sequence and the observed water level sequence, and feed it back to the parameter optimization module.
[0061] Example 3 See Figure 3 An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a multi-segment Manning roughness decoupling calibration method.
[0062] Example 4 A computer-readable storage medium storing a computer program that, when executed by a processor, implements a multi-segment Manning roughness decoupling calibration method.
[0063] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, read-only optical discs, optical storage, etc.) containing computer-usable program code.
[0064] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0065] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0067] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for determining the decoupling rate of Manning roughness in multiple river segments, characterized in that, Includes the following steps: Acquire geometric data, boundary condition data, and observed water level data of multiple river segments to determine the upstream and downstream topological relationships of each river segment; According to the upstream and downstream topological relationship, Manning roughness calibration is performed segment by segment along the upstream to downstream direction. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. After the current river segment is calibrated, the water level time series at the downstream end of the current river segment is extracted to generate the inlet boundary constraints of the adjacent downstream river segments. The inlet boundary constraints of the adjacent downstream river segments are used as the input conditions for the calibration of the adjacent downstream river segments. After all river sections have been calibrated, the Manning roughness parameters and calibration results for each river section will be output.
2. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, The calibration of the current river section includes: Construct a candidate parameter vector that contains only the Manning roughness parameter of the current river segment; Set the Manning roughness parameter of the calibrated river section to the frozen value, and set the Manning roughness parameter of the uncalibrated river section to the initial value; Hydrodynamic simulation is performed based on the candidate parameter vector, the simulated water level sequence of each station is extracted, the objective function value is calculated in combination with the observed water level data, the Manning roughness parameter of the current river segment is updated according to the objective function value, and the Manning roughness parameter of the current river segment is frozen after the convergence condition is met. The sub-optimization problem for the i-th river segment is shown in the following equation: minF i (a i |a1 ,…,a i-1 ,a i+1 0 ,…,a n 0 ) Where, α i Let α1 be the Manning roughness parameter for the i-th river segment. ,…,α i-1 For parameters that have been calibrated and frozen, α i+1 0 ,…,α n 0 For the initial parameters of the uncalibrated river section, F i Let be the objective function for the i-th river segment.
3. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, When generating the inlet boundary constraints for adjacent downstream river segments, the simulated water level time series of the current river segment at the downstream end under the optimal Manning roughness parameter is extracted. The inlet boundary constraints for adjacent downstream river segments are generated using the simulated water level time series, as shown in the following formula: in This indicates that the i-th river segment is in optimal parameters. The downstream outlet water level time series was calculated below. This represents the time series of the inlet boundary water level for the (i+1)th river segment; When there is observed water level data at the connection section between the current river segment and the adjacent downstream river segment, and the observed water level is preset as the boundary condition, the observed water level time series of the connection section is extracted, and the inlet boundary constraint of the adjacent downstream river segment is generated using the observed water level time series.
4. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, After all river segments have completed one round of calibration, the Manning roughness parameters of each river segment in the previous round are used as the initial values for the new round of calibration. According to the upstream and downstream topological relationship, the Manning roughness calibration is repeated for each river segment from upstream to downstream until the set number of rounds is reached or the global convergence condition is met.
5. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, When the channel to be calibrated includes multiple rivers, the river segments are grouped according to the river name, and the river segments belonging to the same river are grouped together. When there is no hydraulic connection between multiple rivers, each group independently performs the Manning roughness rate determination; When multiple rivers are hydraulically connected, a directed acyclic topology graph is constructed, and Manning roughness calibration and parameter freezing are performed on each group in sequence according to the topology hierarchy.
6. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, The Manning roughness parameter for each river section is obtained by multiplying the benchmark Manning roughness by a multiplier factor, and the range of values for the multiplier factor is determined according to a preset configuration. Alternatively, the absolute Manning roughness value can be directly used as the optimization variable for the Manning roughness parameter of each river section.
7. The method for decoupling and calibrating the Manning roughness of multiple river segments according to claim 1, characterized in that, During the calibration process, a weighted composite objective function is used to perform parameter optimization. The weighted composite objective function includes the global root mean square error, the station equilibrium error, and the parameter regularization term. The weighted composite objective function is shown in the following equation: in, This is the global root mean square error; λ is the station equilibrium error; λ is the regularization coefficient. For parameter regularization terms, , Here, N represents the weighting coefficient, and N is the total number of river segments. Let be the Manning roughness multiplier factor for the i-th river segment; The output calibration results include root mean square error, Nash efficiency coefficient, and percentage deviation.
8. A multi-segment Manning roughness decoupling calibrating system, characterized in that, include: The data acquisition module is used to acquire river channel geometry data, boundary condition data, and observed water level data for multiple river segments, and to determine the upstream and downstream topological relationships of each river segment. The parameter optimization module is used to perform Manning roughness calibration segment by segment along the upstream to downstream direction according to the upstream and downstream topological relationship. When calibrating the current segment, the Manning roughness parameters of the calibrated segments are kept frozen. Only the Manning roughness parameters of the current segment are used as optimization variables. Hydrodynamic simulation is performed based on the inlet boundary constraints of the current segment to complete parameter optimization. After optimization, the Manning roughness parameters of the current segment are frozen. The constraint generation module is used to extract the water level time series at the downstream end of the current river segment after the current river segment calibration is completed, generate the inlet boundary constraints of the adjacent downstream river segment, and use the inlet boundary constraints of the adjacent downstream river segment as the input conditions for the calibration of the adjacent downstream river segment. The results output module is used to output the Manning roughness parameters and calibration results for each river segment after calibration is completed.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multi-segment Manning roughness decoupling calibration method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the multi-segment Manning roughness decoupling calibration method as described in any one of claims 1-7.
