Research on efficient automatic calibration of SWMM based on elitist preservation genetic algorithm and parallel computing framework
-
摘要: 全球气候变化及城市化进程,引发了极端降雨事件增多和城市水文气候条件剧变,城市内涝灾害的发生频率显著上升。在此形势下,通过城市排水管网系统的精细化模拟,提升精细化管理水平和应急管理能力十分必要。在排水管网模型建立过程中,常面临传统率定方法依赖主观经验和现有自动率定技术效率偏低的问题。基于此,提出了一种基于精英保留遗传算法和multiprocessing库的并行计算框架,用于SWMM模型的自动率定,并于一个居民住宅小区排水管网模型开展案例研究。案例应用结果表明:并行计算框架通过自动化调整模型参数,在确保模型率定精度和参数合理的情况下,可显著缩短率定时间。该计算框架在率定精度和寻优效率之间实现了良好平衡,为后期解决城市排水管网系统的快速模拟提供了参考。Abstract: Global climate change and urbanization have led to an increase in the frequency and intensity of extreme rainfall events, resulting in significant alterations in urban hydrological and climatic conditions. In this context, refined simulation of urban drainage systems is essential for enhancing management and emergency response capabilities. The traditional calibration methods rely heavily on subjective experience and are inefficient. This study addressed the challenge of low efficiency in automatic calibration techniques by proposing a novel approach based on an elitist preservation genetic algorithm and a parallel computing framework for the automatic calibration of the Storm Water Management Model (SWMM). It utilized the SWMM-API library for interaction with SWMM, enabling the reading and execution of SWMM input files (INP) and the parsing of output results (OUT). The elitist preservation genetic algorithm from the open-source genetic and evolutionary algorithm toolbox Geatpy was employed to enhance the global exploration capability and convergence speed of the algorithm. To overcome the limitations of Python's Global Interpreter Lock (GIL) for CPU multi-core parallel computing, the study utilized Python's built-in multiprocessing module to create a multiprocessing pool, thereby accelerated the computation of the optimization algorithm. The proposed method was tested on a residential community drainage network model, demonstrating that the automatic calibration program significantly reduced the time required for SWMM model calibration. The parallel framework achieved a 40.3% increase in auto calibration speed compared to the non-parallel framework while maintaining an equivalent model accuracy. The study showed that the parallel framework can search more extensively in the parameter space without compromising parameter optimization quality. The study successfully developed a reliable parameter calibration framework by coupling the elitist preservation genetic algorithm with the SWMM model, reduced the computational time for model parameter automatic calibration, demonstrating its efficiency in addressing large-scale and complex hydrological simulation problems. Future work should focus on multi-scenario simulations for different rainfall intensities, frequencies, and patterns, developing dynamic parameter calibration algorithms to meet the dynamic needs of actual urban rainwater management systems. Additionally, the optimal number of parallel processes under different hardware configurations needs to be determined experimentally, and the potential of GPU acceleration for further enhancing the optimization effects need to be explored.
-
[1] WANG K F,ZHANG H B,LI G,et al. Research progress and key supporting technologies for urban flood resilience:a review[J]. Water Resources and Hydropower Engineering(Chinese-English),2023,54(11):77-88. 王凯丰,张洪斌,力刚,等. 城市洪涝韧性的研究进展及关键支撑技术综述[J]. 水利水电技术(中英文),2023,54(11):77-88. [2] CHEN Y H. Flood risk assessment in highly urbanized areas[D]. Guangzhou:South China University of Technology,2023. 陈昱宏. 高度城市化地区内涝风险评估[D]. 广州:华南理工大学,2023. [3] DING Q Y,XI X F. Analysis of urban flood causes based on the SWMM model[J]. Water Resources and Hydropower Express,2024,45(4):31-34,40. 丁青云,习雪飞. 基于SWMM模型的城市内涝成因分析[J]. 水利水电快报,2024,45(4):31-34,40. [4] CHEN J,DAI J L,GU Y X,et al. Model-based simulation of control logic in complex drainage systems[J]. China Water & Wastewater,2022,38(20):102-108. 陈俊,戴俊龙,古燕霞,等. 基于模型的复杂排水系统控制逻辑模拟仿真[J]. 中国给水排水,2022,38(20):102-108. [5] SONG X Y,LIU X W,LI C J,et al. Simulation analysis of the Yudai River catchment area in Zhenjiang based on the SWMM model[J]. China Water & Wastewater,2016,32(23):151-154. 宋晓阳,刘绪为,李成江,等. 基于SWMM模型对镇江玉带河汇水区域的模拟分析[J]. 中国给水排水,2016,32(23):151-154. [6] WANG E S,GONG Y W,ZHOU G H. Simulation analysis of runoff quantity and quality effects in a sponge city building complex in Tianjin based on the SWMM model[J]. Environmental Engineering,2023,41(12):48-53. 王二松,宫永伟,周国华. 基于SWMM的天津市某海绵型建筑小区径流水量水质效果模拟分析[J]. 环境工程,2023,41(12):48-53. [7] ZHU M,TAO T. A Review of Research Progress on Calibration of Urban Stormwater Model Parameters[J]. Water & Wastewater Engineering,2012,48(S1):461-465. 朱敏,陶涛. 城市雨水模型参数校准研究进展综述[J]. 给水排水,2012,48(增刊1):461-465. [8] GÜLBAZ S,KAZEZYILMAZ-ALHAN C. Calibrated hydrodynamic model for sazlidere watershed in Istanbul and investigation of urbanization effects[J]. Journal of Hydrologic Engineering,2013,18. [9] ZHU Y X. Calibration of urban stormwater model parameters based on an improved harmony search algorithm[D]. Chongqing:Chongqing University,2021. 朱韵西. 基于改进和声搜索算法的城市雨洪模型参数率定[D]. 重庆:重庆大学,2021. [10] YANG S X,QING X X,ZHU Y X. An automatic parameter calibration algorithm coupled with SWMM computation and its implementation[J]. Water & Wastewater Engineering,2021,57(1):148-154. 杨森雄,卿晓霞,朱韵西. 一种耦合SWMM计算的参数自动率定算法及实现[J]. 给水排水,2021,57(1):148-154. [11] WANG F F,QING X X,YANG S X,et al. Study on automatic calibration of SWMM parameters based on PySWMM[J]. China Water & Wastewater,2022,38(21):124-130. 王菲菲,卿晓霞,杨森雄,等. 基于PySWMM的SWMM参数自动率定研究[J]. 中国给水排水,2022,38(21):124-130. [12] YUAN S C,LI D,CHEN Y,et al. Automatic calibration method of SWMM parameters based on BP neural network algorithm[J]. China Water & Wastewater,2021,37(21):125-130. 袁绍春,李迪,陈垚,等. 基于BP神经网络算法的SWMM参数自动率定方法[J]. 中国给水排水,2021,37(21):125-130. [13] ZHANG Y Y. Research on prefabricated component production scheduling optimization based on improved genetic algorithm[D]. Jinan:Shandong Jianzhu University,2024. 张译匀. 基于改进遗传算法的预制构件生产调度优化研究[D]. 济南:山东建筑大学,2024. [14] MI B F,XU M,WEN S F,et al. Testing and analysis of the impact of cross probability on the computational speed of improved genetic algorithms[J]. Practice and Understanding of Mathematics,2014,44(12):215-218. 弭宝福,徐梅,文士发,等. 交叉概率对改进遗传算法运算速度影响的测试与分析[J]. 数学的实践与认识,2014,44(12):215-218. -
点击查看大图
计量
- 文章访问数: 4
- HTML全文浏览量: 1
- PDF下载量: 0
- 被引次数: 0
登录
注册
E-alert
登录
注册
E-alert
下载: