A high-cost black-box simulation optimization method based on inter-stage search knowledge transfer

By dividing the hydrodynamic model parameter calibration process into multiple stages and extracting and transmitting search state information at each stage, the problem of high computational cost in high-cost black-box simulation optimization is solved, and more efficient parameter calibration is achieved.

CN123179977APending Publication Date: 2026-11-27NORTHWEST ELECTRIC POWER DESIGN INST OF CHINA POWER ENG CONSULTING GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611338376.2
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

Technical Problem

Existing technologies suffer from high computational costs and low efficiency in hydrodynamic model parameter calibration due to the high number of evaluations of single functions and the lack of search state information transfer and inheritance between optimization algorithms.

Method used

A method based on inter-stage search knowledge transfer is adopted to divide the optimization process into multiple stages. At the end of each stage, the search state information is extracted and converted into the initial search constraints for the next stage. The parameter space is compressed by the ellipsoidal search space to realize the transfer and reuse of the search state.

Benefits of technology

By using inter-stage search knowledge transfer, invalid function evaluations are reduced, improving the efficiency and accuracy of hydrodynamic model parameter calibration and lowering computational costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179977A_ABST
    Figure CN123179977A_ABST
Patent Text Reader

Abstract

The application discloses a high-cost black-box simulation optimization method based on inter-stage search knowledge transmission, belongs to the technical field of hydrology and water dynamics modeling and intelligent optimization cross, and establishes a black-box objective function of an optimized water dynamics model for simulating water flow movement of a hydraulic system, which is generated by comparing candidate parameter simulation results with hydraulic system observation data; the parameter optimization process is divided into at least two search stages, search state information is extracted at the end of each stage, and is converted into initial search constraints of the next stage to compress the parameter search space; optimization search is performed in the compressed space, and candidate parameter solutions are updated, and through multi-stage relay iteration to convergence, the optimal parameter solution of the model and performance evaluation indexes are output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the interdisciplinary field of hydrological and hydrodynamic modeling and intelligent optimization, specifically involving a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer. Background Technology

[0002] Hydrodynamic models are core tools in hydraulic engineering fields such as river hydraulics, flood evolution analysis, and urban drainage system design. Hydrodynamic models contain numerous sensitive parameters that need to be calibrated, such as the Manning roughness coefficient, pipe roughness coefficient, and surface infiltration parameters. The values ​​of these parameters directly determine the degree of agreement between the simulation results and measured data, and the accuracy of these values ​​has a crucial impact on engineering decisions.

[0003] In the process of calibrating hydrodynamic model parameters, the objective function is usually obtained by modifying parameters, performing simulation calculations, extracting simulation results, and comparing them with observed data of the hydraulic system. Due to the large amount of computation involved in hydrodynamic simulations and the long time required for each evaluation, this objective function is a typical high-cost black-box function: the function expression is unknown, the function value can only be obtained through simulation calls, and the computational cost of a single function evaluation is high.

[0004] Existing automatic calibration techniques mainly employ a single optimization algorithm to directly search the global parameter space. Global optimization algorithms require a large number of function evaluations to converge, resulting in low computational efficiency in high-cost black-box simulation scenarios. Local optimization algorithms, on the other hand, rely heavily on initial value selection, and inappropriate initial values ​​can easily lead to local optima. To balance global exploration capability with local convergence performance, some studies have proposed hybrid optimization strategies combining multiple optimization algorithms. In some multi-algorithm cascade schemes for hydrodynamic model parameter calibration, only the current better solution is passed between stages; the next stage still needs to reset the search range or randomly initialize the population. The search state information from the previous stage is not fully reused, and the overall number of function evaluations required remains high.

[0005] In summary, existing technologies have the following shortcomings: First, multi-stage sequential solutions only transmit single-point optimal solutions, failing to transmit search state information such as search neighborhood range, search direction, and covariance matrix. Second, they lack a mechanism to convert the search state information of the previous stage into the initial search constraints of the next stage, requiring subsequent stages to re-initialize from the global parameter space, thus failing to inherit information accumulated from previous searches. Third, the stages are merely sequential executions of the algorithm, failing to form a collaborative optimization chain based on the reuse of search information, making it difficult to further reduce the overall computational cost of parameter calibration. Therefore, there is an urgent need for a high-cost black-box simulation optimization method that can transmit search state information between optimization stages, compress the search space, and inherit search experience to reduce the computational cost of hydrodynamic model parameter calibration. Summary of the Invention

[0006] The purpose of this invention is to overcome the problems of high cost of single function evaluation, many evaluation times of a single optimization algorithm, and inability to inherit optimization experience at different stages in high-cost black-box simulation optimization. It proposes a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer.

[0007] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer, comprising the following steps: A black-box objective function is established for the hydrodynamic model to be optimized, which simulates the water flow motion of the hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and comparing the simulation results with the observed data of the hydraulic system. The parameter optimization process for the black-box objective function is divided into at least two search phases; At the end of each search phase, extract the search status information for that search phase. The search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space. In the next search phase, parameter optimization search is performed in the compressed parameter search space. The objective function feedback of the candidate parameters is obtained based on the black-box objective function, and the candidate parameter solution is updated. The relay search process is repeated until the convergence condition is met, and the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized are output.

[0008] Furthermore, the generation process of the black-box objective function includes: Candidate parameters are written into the project file of the hydrodynamic model to be optimized, simulation calculations are performed, simulation results are read and compared with hydraulic system observation data, and objective function feedback values ​​are generated.

[0009] Furthermore, the search status information during the search phase is extracted, including: Select an elite set from the candidate parameter solution set during the search phase; The search center is determined based on the elite set, and the covariance matrix and search scale parameters are used as search state information for the search phase.

[0010] Furthermore, the elite set consists of the top preset proportion of samples sorted by fitness from the candidate parameter solution set during the search phase, or samples that meet the preset fitness threshold.

[0011] Furthermore, the compressed parameter search space is an ellipsoidal search space; The ellipsoidal search space is constrained by Mahalanobis distance constraints, which are constructed based on the search center and covariance matrix of the previous search stage.

[0012] Furthermore, the subsequent search phase performs a parameter optimization search within the compressed parameter search space, including: When the population optimization algorithm is executed in the next search phase, an initial population is generated in the ellipsoidal search space according to the probability distribution determined by the covariance matrix and the parameter optimization search is performed. When the non-population optimization algorithm is executed in the next search phase, the search center is used as the initial vertex, the initial step size is set by the shrinking value of the search scale parameter, the initial simplex vertex is constructed based on the decomposition factor of the covariance matrix, and the parameter optimization search is executed.

[0013] Furthermore, the relay search process is repeated until the convergence condition is met, outputting the optimal parameter solution and performance evaluation metrics, including: When the current search phase reaches the preset number of evaluations, or when the improvement of the objective function in the consecutive preset number of iterations is less than the preset threshold, the current search phase ends and the next search phase begins. When the objective function reaches the preset accuracy, the total number of evaluations reaches the upper limit, or all search stages are completed, the parameter optimization search is terminated and the optimal parameter solution and performance evaluation index of the simulated hydrodynamic model to be optimized are output.

[0014] Secondly, the present invention provides a high-cost black-box simulation optimization system based on inter-stage search knowledge transfer, comprising: The function establishment module is used to establish the black-box objective function of the hydrodynamic model to be optimized, which simulates the water flow motion of the hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and comparing the simulation results with the observed data of the hydraulic system. The function optimization module is used to divide the parameter optimization process for the black-box objective function into at least two search stages; at the end of each search stage, the search state information of the search stage is extracted; the search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space; the next search stage performs parameter optimization search in the compressed parameter search space, obtains the objective function feedback of the candidate parameters based on the black-box objective function, and updates the candidate parameter solutions. The index output module is used to repeat the relay search process until the convergence condition is met, and output the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized.

[0015] 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 high-cost black-box simulation optimization method based on inter-stage search knowledge transfer.

[0016] Fourthly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer.

[0017] Compared with the prior art, the present invention has the following beneficial technical effects: This invention proposes a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer. By passing search state information from one stage to the next, the subsequent stage inherits the search experience of the previous stage within a compressed parameter space, thereby reducing invalid function evaluations and improving calibration efficiency. The search state serves as a unified intermediate representation connecting different types of optimization algorithms, containing statistics such as the search center, covariance matrix, and search range. Using this unified intermediate representation, the search knowledge extracted from the previous stage can be converted and reused between population-based and non-population-based algorithms, thus upgrading the direct concatenation of heterogeneous optimization algorithms to relay optimization based on a unified search state. Attached Figure Description

[0018] 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 a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer, according to the present invention.

[0019] Figure 2 This is a simplified structural diagram of a high-cost black-box simulation optimization system based on inter-stage search knowledge transfer according to the present invention.

[0020] Figure 3 This is an electronic device diagram of a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to the present invention.

[0021] Figure 4 This is a schematic diagram of the overall architecture of a high-cost black-box simulation optimization system based on inter-stage search knowledge transfer in an embodiment of the present invention.

[0022] Figure 5 This is a schematic diagram of the inter-stage search knowledge transfer process in an embodiment of the present invention.

[0023] Figure 6 This is a schematic diagram illustrating the principle of the search space compression mechanism in an embodiment of the present invention. Detailed Implementation

[0024] 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.

[0025] Example 1 See Figure 1 A high-cost black-box simulation optimization method based on inter-stage search knowledge transfer includes the following steps: A black-box objective function is established for the hydrodynamic model to be optimized, which simulates the water flow motion of the hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and comparing the simulation results with the observed data of the hydraulic system. The parameter optimization process for the black-box objective function is divided into at least two search phases; At the end of each search phase, extract the search status information for that search phase. The search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space. In the next search phase, parameter optimization search is performed in the compressed parameter search space. The objective function feedback of the candidate parameters is obtained based on the black-box objective function, and the candidate parameter solution is updated. The relay search process is repeated until the convergence condition is met, and the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized are output.

[0026] See Figure 4 A high-cost black-box simulation optimization method based on inter-stage search knowledge transfer, specifically including the following steps: S1. Establish the black-box objective function of the model to be calibrated. The black-box objective function is obtained by modifying the model parameters, performing simulation calculations, extracting simulation results, and comparing them with the observed data.

[0027] S2 divides the optimization process into at least two stages, with each stage undertaking at least one of the following search roles: global search, local exploration, or fast convergence.

[0028] S3. At the end of each stage, extract the search state information of that stage, select an elite set from the candidate solution set of this stage, and determine the search center, the regularized covariance matrix, and the search scale parameter based on the elite set.

[0029] S4, based on the search center, search scale parameters and covariance matrix passed from the previous stage, constructs an ellipsoidal search space constrained by Mahalanobis distance as the initial search constraint for the next stage, so that the next stage inherits the search experience of the previous stage within the compressed parameter space, instead of randomly re-initializing from the global parameter space.

[0030] S5, within the ellipsoidal search space, generates the initial population or initial simplex for the next stage according to the probability distribution determined by the covariance matrix.

[0031] S6: Write the candidate parameters generated in the current stage into the temporary project file of the external simulation model, perform simulation calculation, read the results and calculate the objective function feedback, update the candidate solution according to the objective function, obtain the better parameters for this stage after the stage ends, repeat the above stage relay process until the convergence condition is met, and output the better parameter solution and performance evaluation index that meet the error requirements.

[0032] The mathematical description of the high-cost black-box simulation optimization problem is as follows. Let the vector of parameters to be calibrated be x, and the original parameter space be... Then the black-box optimization objective can be expressed as: (1) Where x is the vector of parameters to be calibrated. Given the original parameter space, f(x) is the error objective function obtained through a single simulation calculation, which is a typical high-cost black-box function.

[0033] Figure 5 This is a schematic diagram of the inter-stage search knowledge transfer process designed in this invention. Figure 6 This is a schematic diagram illustrating the principle of search space compression. For example... Figure 5 As shown, the entire transfer process includes: the first stage (such as the global search stage) in the original parameter space. Perform a distributed search internally and output a globally optimal solution. Elite Gathering and the corresponding search center With covariance matrix After the knowledge extraction module, the knowledge conversion function will then... The calculation results are mapped to the initial search constraints of the second stage, including the search center. ,Depend on Search directions obtained from decomposition ( ) and shrinkage coefficient The second phase (such as the partial development phase) is carried out by... and Continue the search within the limited compressed parameter space and output a locally better solution. And the updated elite collection After the knowledge transformation function is searched, the third stage (such as the fast convergence stage) converges rapidly within a smaller neighborhood, outputting the final better solution. The entire process forms a relay optimization chain of "Phase 1 → Knowledge Extraction → Knowledge Transformation → Phase 2 → Knowledge Extraction → Knowledge Transformation → Phase 3".

[0034] The technical effect of the search state information extraction and knowledge transformation described in steps S3 and S4 is that the previous stage not only transmits the location information of the optimal solution to the next stage, but also transmits the estimated search neighborhood range. and search direction covariance matrix This allows the subsequent stage to set an appropriate initial search radius and population size, avoiding slow convergence due to an excessively large search range or missing better solutions due to an excessively small search range. In population-based algorithms, the previous stage also transmits population distribution characteristics. This allows each subsequent stage to inherit the search experience from the previous stage, rather than starting from scratch with random initialization. This search knowledge transfer mechanism transforms the stages from simple algorithmic sequences into a relay chain of coordinated strategies.

[0035] In step S3, the elite set consists of the top p% of the candidate solution set in this stage, sorted by fitness, or the samples that meet the preset fitness threshold, where p ranges from 5% to 50%.

[0036] In step S3, the search center is taken as the sample mean of the elite set; the search radius... The root mean square dispersion of the elite set samples to the search center is taken as follows: ,in >0 represents the radius magnification factor; the covariance matrix is ​​obtained by adding a regularization term to the sample covariance of the elite set, i.e. ,in The regularization term is added to prevent the covariance matrix from degenerating. is the coefficient of the regularization term.

[0037] In step S4, the ellipsoidal search space is explicitly defined by the Mahalanobis distance constraint, i.e. ,in (0,1) is the ellipsoid confidence level parameter, which narrows the search range of the later stage relative to the previous stage and focuses on the neighborhood of the better solution identified in the previous stage.

[0038] In step S5, for the population optimization algorithm, the initial population in the later stage is generated by directional sampling near the search center according to the probability distribution determined by the covariance matrix. The sampling range is determined by the shrinkage coefficient. Control, among which (0,1).

[0039] In step S5, for non-population optimization algorithms, the search center is used as the initial vertex, and... As the initial step size constraint, where This allows for the execution of the simplex method or pattern search within the compressed neighborhood; the initial simplex is formed by... Composed of vertices: with the search center As the reference vertex, the rest Take each vertex ,in Covariance decomposition factor The List, >0 represents the simplex side length coefficient.

[0040] The closed-loop external simulation model call in step S6 includes: restoring the project file backup, modifying the parameter values ​​to be calibrated, executing model calculations through the program interface, extracting simulation data from the result file and comparing it with the observation data to calculate the objective function, and using the objective function as a feedback signal to adjust the parameter search direction; the external simulation model includes any model from HEC-RAS, MIKE, InfoWorks, SWMM, and EFDC that supports parameter file modification, simulation task calling, and result file reading.

[0041] Compared to existing hybrid optimization methods, the stages of this invention are not simply executed sequentially. In some cascade optimization schemes in the field of hydrodynamic model parameter calibration, the stages mainly pass on the current better solution, and the next stage still needs to reset the search range or randomly initialize the population. The search experience of the previous stage is not effectively inherited, and the overall number of evaluations is still relatively large. This invention further passes on search state information such as the search neighborhood range, search direction covariance, and population distribution characteristics, so that the next stage can inherit the search experience of the previous stage and perform the search within the compressed parameter space, thereby reducing invalid function evaluations.

[0042] This invention is applied to the calibration of parameters in hydrodynamic models. The parameters include one or more of the following: Manning roughness multiplier factors for each river segment or cross section, pipe roughness coefficients in urban drainage models, or surface infiltration parameters. When using multiplier factors for modeling, the product of the baseline parameters of each partition and the multiplier factor to be optimized is used as the effective parameter. For the baseline parameters within the same parameter partition, the multiplier factor is used for proportional correction. When multiple partitions are set with multiplier factors, the baseline parameter structure within each partition remains unchanged, and the relative relationship of effective parameters between partitions is allowed to change with the multiplier.

[0043] This invention addresses the technical problems of high cost of single-function evaluation, numerous evaluations of a single optimization algorithm, and the inability to inherit optimization experience across different stages in high-cost black-box simulation optimization. It proposes a staged relay optimization method based on inter-stage search knowledge transfer. The optimization process is divided into at least two stages, each stage undertaking at least one search role: global search, local exploration, or rapid convergence. The output of the previous stage includes not only a better parameter combination but also search state information such as the search neighborhood range, search direction, covariance matrix, and population distribution characteristics. The subsequent stage uses this search state information to set the initial search center, search radius, initial population, or local search constraints, continuing the search within the compressed parameter space to avoid random re-initialization from the global parameter space. The extraction, compression, and transfer of search state information between stages are achieved through a search knowledge transfer function, allowing each stage to inherit the search experience of the previous stage instead of starting independently from scratch. This invention uses the HEC-RAS model as a typical example for illustration; other external simulation models that support parameter file modification, simulation task invocation, and result file reading, such as MIKE, InfoWorks, SWMM, and EFDC, can be adapted in the same way, and are not limited to one-dimensional river scenarios. The final output includes a better parameter solution, simulation results, and performance evaluation indicators that meet the convergence conditions and error requirements.

[0044] This invention utilizes an inter-stage search knowledge transfer mechanism, where the previous stage not only transmits the location information of the optimal solution to the next stage, but also transmits search state information such as the estimated search neighborhood range, the search direction covariance matrix, or population distribution characteristics. This allows the next stage to inherit the search experience of the previous stage, avoiding random initialization from scratch and reducing invalid function evaluations.

[0045] This invention employs a search space compression mechanism, where the subsequent stage continues the search within the already compressed parameter space. This narrows the search range compared to the previous stage and concentrates it on the neighborhood of a better solution, avoiding ineffective exploration in a vast space and improving search efficiency.

[0046] This invention combines global search capability, local development capability, and fast convergence capability in stages through a phase division and role division mechanism. While making full use of global search to reduce the risk of getting stuck in local optima, it further converges in the neighborhood of the optimal solution through local development and fast convergence, thereby reducing the number of fitness function evaluations.

[0047] This invention utilizes a knowledge transformation function mapping mechanism to adaptively transform search state information between stages based on the search roles of preceding and subsequent stages. This enables each stage to form a relay chain of strategic collaboration, rather than simply connecting algorithms directly (e.g., particle swarm optimization directly connecting to genetic algorithms, and then directly connecting to the simplex method). With the help of a unified intermediate representation of search state, this invention can complete the transformation and reuse of search knowledge between population-based and non-population-based algorithms, allowing heterogeneous algorithms to relay each other through a unified intermediate representation, rather than simply being hard-connected based on the position of the optimal solution.

[0048] This invention is applicable to various hydrodynamic models, not limited to one-dimensional river scenarios, and has wide engineering applicability.

[0049] This invention proposes a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer. Through four core steps—stage division and role allocation, search state information extraction, search knowledge conversion and transfer, and stage relay search—it achieves automated search, refinement, and evaluation of hydrodynamic model parameters.

[0050] The phase division and role allocation module divides the optimization process into at least two phases. In one embodiment, a three-phase configuration is adopted: the first phase is the global search phase, in which an optimization algorithm with global exploration capabilities performs a broad search within the original global parameter space to identify regions of better solutions and estimate the search neighborhood range; the second phase is the local development phase, in which an optimization algorithm with local development capabilities performs a deep search within the compressed local parameter space, using the search center and search radius passed from the first phase as constraints; the third phase is the fast convergence phase, in which an optimization algorithm with fast convergence capabilities uses the search center (mean of the elite set) passed from the second phase as the initial vertex to quickly converge to a better parameter solution that meets the error requirements within the compressed minimal neighborhood.

[0051] The search state information extraction module extracts the search knowledge vector at the end of each stage. In the global search stage, it extracts the globally optimal solution. The radius of the search neighborhood for identification Population distribution characteristics During the local development phase, extract locally optimal solutions. Shrinking search neighborhood radius The updated covariance matrix During the fast convergence phase, extract the optimal parameter solution that meets the error requirements after convergence. .

[0052] The knowledge transformation and transfer module is responsible for searching and mapping knowledge between stages. After the first stage is completed, the knowledge transformation function... Elite group in the global search phase Mapped to the initial search constraints of the second phase of local development, including the local search center. and local search radius After the second stage is completed, the knowledge conversion function... Gathering elites in the partial development phase This is mapped to the initial search constraints of the third-stage fast convergence phase, including the search center. And the convergence threshold. The entire transmission process is automatically completed by the system based on the convergence status of the previous stage, and the system automatically triggers the start of the next stage based on the convergence status of the previous stage.

[0053] The phased relay search module ensures that the subsequent phase continues the search within the parameter space defined by the initial search constraints, avoiding random re-initialization from the global parameter space. Taking the transition from the first to the second phase as an example: the second phase no longer randomly initializes the population across the entire parameter space, but instead uses the search center based on the elite set from the previous phase. Covariance matrix With shrinkage coefficient Initial candidate solutions are generated, and the search continues within the compressed ellipsoidal neighborhood. This transforms the second-stage search from re-exploration to inheritance and refinement, significantly reducing invalid evaluations.

[0054] For example, in a single-segment steady flow scenario: the user uploads a geometric template and an observed water level template for the single-segment river. The system constructs a vector of parameters to be calibrated and selects HEC-RAS as the simulation engine. The system performs phased relay optimization: the first stage involves a broad search within the global parameter space to identify regions with better solutions and extract search knowledge vectors. The second stage uses knowledge transformation functions. Obtain initial search constraints In the already compressed neighborhood The third stage involves a detailed search within the knowledge domain; the second stage utilizes knowledge transformation functions. Obtain initial search constraints It converges rapidly within a very small neighborhood. The three stages are automatically connected through knowledge transfer via search. After optimization, the system outputs the optimal parameter values ​​and one or more of the following: RMSE, MAE, NSE, Bias, and PBIAS.

[0055] For example, in a multi-segment unsteady flow scenario: users upload multi-segment geometric templates, unsteady flow boundary condition templates, and observed water level time series templates. The system constructs a multi-segment Manning roughness parameter vector and selects the HEC-RAS unsteady flow model as the simulation engine. The system performs phased relay optimization: the first stage performs a robust search in the global parameter space, outputting a globally optimal solution and an estimate of the search neighborhood; the second stage performs a depth search within the compressed neighborhood; and the third stage achieves rapid convergence within the smallest neighborhood. Since each evaluation of the HEC-RAS unsteady flow simulation is time-consuming, the search knowledge transfer mechanism helps reduce the number of high-cost simulation calls. After optimization, the system outputs optimal parameter values, simulated water levels in time series, and one or more of RMSE, MAE, NSE, Bias, and PBIAS.

[0056] Those skilled in the art should understand that the above embodiments are merely typical application scenarios of the present invention and do not constitute a limitation on the scope of protection of the present invention. Various changes can be made to the specific implementation of the present invention without departing from its spirit, such as changing the specific algorithm selection for each stage, adjusting the number of stages, adding or replacing other global or local optimization algorithms, applying it to other types of hydrodynamic models or any high-cost black-box simulation optimization scenario, etc., and all such changes fall within the scope of protection of the present invention.

[0057] The following is a benchmark experiment comparing the number of evaluation attempts for multi-stage relay optimization: To verify the effectiveness of this invention in reducing invalid function evaluations and improving search efficiency, a 3D Manning roughness coefficient (Alpha) calibration benchmark problem was constructed: the parameter range is [0.3, 2.5], the true optimal Alpha is [0.80, 1.40, 1.30], and the objective function is subjected to a slight multi-peak perturbation near the true optimal solution to more closely approximate the actual HEC-RAS black-box simulation calibration scenario. Under the condition of a fixed objective function, the optimization was run with 10 independent random seeds and the average was taken. The results were compared with the single-stage optimizer (PSO, GA, SCE-UA), the simple two-stage relay (PSO+GA only transmits the optimal solution), and the multi-stage relay strategy of this invention. The results are shown in Table 1 below (the values ​​are the average of the 10 independent random seed runs): Table 1. Comparison results between the present invention and traditional methods

[0058] As shown in Table 1, under the given objective function, parameter range, stage configuration, and evaluation budget in this embodiment, the multi-stage relay optimization scheme achieves fewer function evaluations and a lower final error. This indicates that the inter-stage search state transfer and search space compression method described in this invention can be used for the connection between multi-stage optimization algorithms, and has achieved good optimization results in this embodiment. The above results are used to illustrate a feasible implementation effect of this invention and do not constitute a general limitation on the performance improvement under different simulation models, parameter dimensions, and algorithm configurations.

[0059] For example, a real HEC-RAS single-segment steady flow calibration case: To verify that the method described in this invention can be practically integrated into high-cost black-box simulation software and complete parameter calibration, a real HEC-RAS 6.3.1 single-segment steady flow calibration case was constructed. The simulation engine was HEC-RAS 6.3.1, and the parameters to be calibrated were the Manning roughness multipliers α_(RS_5), α_(RS_5.2), and α_(RS_5.4) of the three roughness partitions within the single segment (parameter dimension d=3, parameter range [0.3, 2.5]); the observation data were water level data from multiple observation sections, read in through geometric templates, steady flow templates, and observed water level templates. A three-stage relay configuration was adopted: the first stage used a particle swarm optimization algorithm (population size 3, 2 iterations) to extensively search the global parameter space, identify the optimal solution region, and extract the search knowledge vector; the second stage used an enhanced genetic algorithm to locally develop within the compressed space defined by the search center and covariance matrix passed from the first stage; the third stage used the Nelder-Mead simplex method to achieve rapid convergence in the minimum neighborhood. The initial RMSE was approximately 0.98. After inter-stage search knowledge transfer and relay optimization, the optimal parameter solution that met the error requirements was finally obtained: the Manning roughness multipliers for the three roughness partitions were 0.889, 0.887, and 0.889, respectively, with a final RMSE of 0.6999, NSE of 0.9449, MAE of 0.587, PBIAS of 0.158, and R² of 0.950. The entire optimization process involved 65 HEC-RAS simulations. This embodiment demonstrates that the method described in this invention can establish an automatic closed-loop invocation system with HEC-RAS 6.3.1, encompassing parameter modification, simulation execution, result reading, and objective function feedback, and can complete parameter calibration according to the search status passed between stages. The 65 simulation calls recorded in this embodiment are used to illustrate the implementation process under a specific stage configuration and do not constitute a limitation on the number of simulation calls under other model sizes, parameter dimensions, or algorithm configurations.

[0060] Example 2 See Figure 2 A high-cost black-box simulation optimization system based on inter-stage search knowledge transfer includes: The function establishment module is used to establish the black-box objective function of the hydrodynamic model to be optimized, which simulates the water flow motion of the hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and comparing the simulation results with the observed data of the hydraulic system. The function optimization module is used to divide the parameter optimization process for the black-box objective function into at least two search stages; at the end of each search stage, the search state information of the search stage is extracted; the search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space; the next search stage performs parameter optimization search in the compressed parameter search space, obtains the objective function feedback of the candidate parameters based on the black-box objective function, and updates the candidate parameter solutions. The index output module is used to repeat the relay search process until the convergence condition is met, and output the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized.

[0061] Specifically, the module includes: a black-box objective function construction module for establishing the black-box objective function of the model to be calibrated; a stage division module for dividing the optimization process into at least two stages, with the first stage playing a global search role and the second stage playing a local development or rapid convergence role; an elite set and search state extraction module for selecting an elite set from the candidate solution set and calculating the search center, search radius, and covariance matrix at the end of each stage; an ellipsoidal search space construction module for constructing an ellipsoidal search space with Mahalanobis distance constraints based on the search center, search radius, and covariance matrix; an initial population generation module for generating the initial population or initial simplex for the next stage in the ellipsoidal search space according to the probability distribution determined by the covariance matrix; an external simulation calling module for writing the candidate parameters generated in the current stage into a temporary project file, executing the simulation, reading the results, and calculating the objective function feedback; and a result output module for outputting the optimal parameter solution and performance evaluation indicators when the convergence conditions are met.

[0062] 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 high-cost black-box simulation optimization method based on inter-stage search knowledge transfer.

[0063] Example 4 A computer-readable storage medium storing a computer program that, when executed by a processor, implements a high-cost black-box simulation optimization method based on inter-stage search knowledge transfer.

[0064] 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.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] 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 high-cost black-box simulation optimization method based on inter-stage search knowledge transfer, characterized in that, Includes the following steps: A black-box objective function is established for a hydrodynamic model to be optimized that simulates the flow motion of a hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and then comparing the simulation results with the observed data of the hydraulic system. The parameter optimization process for the black-box objective function is divided into at least two search phases; At the end of each search phase, the search status information of that search phase is extracted; The search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space. The next search phase performs parameter optimization search within the compressed parameter search space, obtains objective function feedback of candidate parameters based on the black-box objective function, and updates the candidate parameter solution. The relay search process is repeated until the convergence condition is met, and the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized are output.

2. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 1, characterized in that, The generation process of the black-box objective function includes: Candidate parameters are written into the project file of the hydrodynamic model to be optimized, simulation calculations are performed, simulation result data is read and compared with hydraulic system observation data, and objective function feedback values ​​are generated.

3. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 1, characterized in that, The extraction of search status information during the search phase includes: Select an elite set from the candidate parameter solution set of the search phase; The search center, the regularized covariance matrix, and the search scale parameter are determined based on the elite set and used as the search state information for the search phase.

4. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 3, characterized in that, The elite set consists of samples from the candidate parameter solution set in the search phase, which are sorted by fitness and represent the top preset proportion of samples, or samples that meet a preset fitness threshold.

5. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 3, characterized in that, The compressed parameter search space is an ellipsoidal search space; The ellipsoidal search space is defined by a Mahalanobis distance constraint, which is constructed based on the search center and the covariance matrix from the previous search stage.

6. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 5, characterized in that, The subsequent search phase performs parameter optimization search within the compressed parameter search space, including: When the population optimization algorithm is executed in the next search phase, an initial population is generated in the ellipsoidal search space according to the probability distribution determined by the covariance matrix and parameter optimization search is performed. When the non-population optimization algorithm is executed in the next search phase, the search center is used as the initial vertex, the initial step size is set by the value of the shrinkage of the search scale parameter, the initial simplex vertex is constructed based on the decomposition factor of the covariance matrix, and the parameter optimization search is executed.

7. The high-cost black-box simulation optimization method based on inter-stage search knowledge transfer according to claim 1, characterized in that, The repeated relay search process continues until the convergence condition is met, outputting a better parameter solution and performance evaluation indicators, including: When the current search phase reaches the preset number of evaluations, or when the improvement of the objective function in the consecutive preset number of iterations is less than the preset threshold, the current search phase ends and the next search phase begins. When the objective function reaches the preset accuracy, the total number of evaluations reaches the upper limit, or all search stages are completed, the parameter optimization search is terminated and the optimal parameter solution and performance evaluation index of the simulated hydrodynamic model to be optimized are output.

8. A high-cost black-box simulation optimization system based on inter-stage search knowledge transfer, characterized in that, include: The function establishment module is used to establish a black-box objective function for the hydrodynamic model to be optimized, which simulates the water flow motion of the hydraulic system. The black-box objective function is obtained by inputting candidate parameters into the hydrodynamic model to be optimized, performing simulation calculations and obtaining simulation results, and comparing the simulation results with the observed data of the hydraulic system. The function optimization module is used to divide the parameter optimization process for the black-box objective function into at least two search stages; at the end of each search stage, the search state information of the search stage is extracted; the search state information of the previous search stage is converted into the initial search constraints of the next search stage to determine the compressed parameter search space; the next search stage performs parameter optimization search in the compressed parameter search space, obtains objective function feedback of candidate parameters based on the black-box objective function, and updates the candidate parameter solutions; The index output module is used to repeat the relay search process until the convergence condition is met, and output the optimal parameter solution and performance evaluation index of the hydrodynamic model to be optimized.

9. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the high-cost black-box simulation optimization method based on inter-stage search knowledge transfer 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 high-cost black-box simulation optimization method based on inter-stage search knowledge transfer as described in any one of claims 1-7.