CN114429034A - Pressure monitoring point moving arrangement method for water supply network hydraulic model water quantity checking - Google Patents

Pressure monitoring point moving arrangement method for water supply network hydraulic model water quantity checking Download PDF

Info

Publication number
CN114429034A
CN114429034A CN202111610339.XA CN202111610339A CN114429034A CN 114429034 A CN114429034 A CN 114429034A CN 202111610339 A CN202111610339 A CN 202111610339A CN 114429034 A CN114429034 A CN 114429034A
Authority
CN
China
Prior art keywords
monitoring point
sens
monitoring
check
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111610339.XA
Other languages
Chinese (zh)
Other versions
CN114429034B (en
Inventor
颜合想
王禾
信昆仑
陶涛
王嘉莹
李树平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongji University
Original Assignee
Tongji University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongji University filed Critical Tongji University
Priority to CN202111610339.XA priority Critical patent/CN114429034B/en
Publication of CN114429034A publication Critical patent/CN114429034A/en
Application granted granted Critical
Publication of CN114429034B publication Critical patent/CN114429034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

The invention discloses a pressure monitoring point moving arrangement method for water supply network hydraulic model water quantity checking, which comprises the following steps: dividing a checking period according to the total number of the nodes of the pipe network and the number of the pressure monitoring sensors; obtaining a Jacobian matrix of node pressure relative to node water quantity based on an initialized pipe network hydraulic model; solving a monitoring point moving arrangement scheme according to a Jacobian matrix and an improved implicit enumeration optimization method; and checking and calculating the node water quantity parameters of the water supply network hydraulic model according to the monitoring data acquired by the monitoring point position deployment scheme in each checking period, and improving the calculation precision. On the premise of equivalent cost, the invention can multiply the acquisition amount of monitoring data, increase the pressure monitoring space density of the pipe network, acquire more pipe network running state information and is beneficial to improving the model checking precision; on the premise that the model checking precision is equivalent, the method can greatly reduce the hardware cost, the construction cost and the maintenance cost of model parameter checking.

Description

一种面向供水管网水力模型水量校核的压力监测点移动布置 方法A method for moving and arranging pressure monitoring points for water quantity check of hydraulic model of water supply network

技术领域technical field

本发明涉及城市供水系统建模技术领域,尤其是涉及一种面向供水管网水力模型水量校核的压力监测点移动布置方法。The invention relates to the technical field of modeling of urban water supply systems, in particular to a method for moving and arranging pressure monitoring points for checking the water quantity of a hydraulic model of a water supply pipe network.

背景技术Background technique

城市供水管网系统是城市的生命线,是现代化城市中必不可少的重要市政基础设施。近年来,随着城镇化进程快速发展,城市供水管网系统规模不断扩大,复杂度逐步增高,加之管网老化、城镇供水管网漏损率居高难降等问题,因而对管网进行有效管理与运行维护的要求与技术难度越来越高。利用现代化数字信息手段对城市水务进行高效管理已成为国内外水工业行业的共识。建立供水管网水力模型是信息化管理的核心组成部分,是实现管网合理规划改造、系统状况诊断和实时运行优化的核心技术手段之一。The urban water supply pipe network system is the lifeline of a city and an essential and important municipal infrastructure in a modern city. In recent years, with the rapid development of urbanization, the scale of the urban water supply pipe network system has continued to expand, and the complexity has gradually increased. In addition, the aging of the pipe network and the high leakage rate of the urban water supply pipe network are difficult to reduce. Therefore, the effective management of the pipe network The requirements and technical difficulty of operation and maintenance are getting higher and higher. The use of modern digital information means to efficiently manage urban water affairs has become the consensus of the water industry at home and abroad. The establishment of hydraulic model of water supply pipe network is the core component of information management, and it is one of the core technical means to realize rational planning and transformation of pipe network, system condition diagnosis and real-time operation optimization.

在当今以互联网+、物联网、大数据、人工智能等为标签的“智慧城市”和“智慧水务”快速发展的战略背景下,供水管网建模愈受重视,国内部分城市如北京、上海、广州、佛山等的供水企业均先后建立了供水管网水力模型。管网模型是在特定建模目下,能够准确代表实际系统的仿真模型。目前管网水力模型在管网规划设计、管网改扩建等方面已发挥了重要作用。然而,受管网模型精确度的限制,近年来管网模型的深度应用遭遇到相关的技术瓶颈。如基于水力模型校核的管网漏损识别与控制、管网异常状态诊断、管网水质模拟以及节能优化等深度应用,均因管网模型的精度问题而导致应用效果不理想。Under the current strategic background of the rapid development of "smart cities" and "smart water affairs" labelled by Internet+, Internet of Things, big data, artificial intelligence, etc., the modeling of water supply pipeline networks has been paid more and more attention. Some domestic cities such as Beijing and Shanghai , Guangzhou, Foshan and other water supply companies have successively established hydraulic models of water supply network. The pipeline network model is a simulation model that can accurately represent the actual system under a specific modeling purpose. At present, the hydraulic model of the pipeline network has played an important role in the planning and design of the pipeline network, and the reconstruction and expansion of the pipeline network. However, due to the limitation of the accuracy of the pipe network model, the in-depth application of the pipe network model has encountered related technical bottlenecks in recent years. For example, in-depth applications such as pipeline leakage identification and control, pipeline network abnormal state diagnosis, pipeline network water quality simulation, and energy-saving optimization based on hydraulic model checking are all due to the accuracy of the pipeline network model, resulting in unsatisfactory application results.

在供水管网水力建模过程中,常利用管网压力、流量等监测数据对管网模型进行校核,以提高管网模型的精度。一般而言,对于一个供水管网系统,监测点布置越多,模型的校核精度会越高。然而,受经济投入限制,监测设备相对而言数量非常有限。部分学者或工程师提出了各种监测点优化布置方法(如,CN105894130B、CN109930658B),对监测设备监测点选址进行优化布置;然而,受限于相对有限的监测设备数量,即使进行了监测点选址优化,采用固定监测的方式下,整个供水管网空间监测密度依然较低,管网实时运行状态监测信息不足依然是导致管网水力模型精度难以提高的关键瓶颈;对于校核方法方面,传统上常采用遗传与BP神经网络、粒子群算法(PSO)、麻雀搜索算法等随机搜索算法进行校核(CN108898512A、CN112149358A、CN112163301A、CN112733443A等),然而该类随机算法计算效率较低,难以适用于大规模管网以及实时需求的应用场景。综上所述,面对因监测设备相对较少、监测信息不足,而导致管网水力模型校核精度难以提高的瓶颈难题,本发明提出了移动监测的创新思路,旨在通过移动设备进行轮换监测,数倍增大监测数据量,并构建相应的模型校核方法,有效突破技术瓶颈,推进管网模型校核理论与技术发展。In the process of hydraulic modeling of the water supply network, the monitoring data such as the pressure and flow of the pipe network are often used to check the pipe network model to improve the accuracy of the pipe network model. Generally speaking, for a water supply network system, the more monitoring points are arranged, the higher the calibration accuracy of the model will be. However, limited by economic investment, the number of monitoring equipment is relatively limited. Some scholars or engineers have proposed various methods for optimizing the layout of monitoring points (eg, CN105894130B, CN109930658B) to optimize the location of monitoring equipment monitoring points; however, limited by the relatively limited number of monitoring equipment, even if monitoring points are selected In the case of site optimization and fixed monitoring, the spatial monitoring density of the entire water supply pipe network is still low, and the lack of real-time operating status monitoring information of the pipe network is still the key bottleneck that makes it difficult to improve the accuracy of the hydraulic model of the pipe network. Genetic and BP neural network, particle swarm algorithm (PSO), sparrow search algorithm and other random search algorithms are often used for checking (CN108898512A, CN112149358A, CN112163301A, CN112733443A, etc.), but this kind of random algorithm has low computational efficiency and is difficult to apply to Large-scale pipeline network and application scenarios of real-time demand. To sum up, in the face of the bottleneck problem that it is difficult to improve the checking accuracy of the hydraulic model of the pipeline network due to relatively few monitoring equipment and insufficient monitoring information, the present invention proposes an innovative idea of mobile monitoring, aiming to perform rotation through mobile equipment. Monitoring, increase the amount of monitoring data several times, and build corresponding model checking methods, effectively break through the technical bottleneck, and promote the development of pipeline network model checking theory and technology.

发明内容SUMMARY OF THE INVENTION

针对现有技术存在的上述问题,本申请提供了一种面向供水管网水力模型水量校核的压力监测点移动布置方法,通过有限数量的压力监测传感器就能获得足够数量的管网压力监测数据,从而提高模型校核精度。In view of the above problems existing in the prior art, the present application provides a method for moving and arranging pressure monitoring points for checking the water quantity of a hydraulic model of a water supply pipe network. A sufficient number of pressure monitoring data of the pipe network can be obtained through a limited number of pressure monitoring sensors. , so as to improve the model calibration accuracy.

本发明的技术方案如下:The technical scheme of the present invention is as follows:

一种面向供水管网水力模型水量校核的压力监测点移动布置方法,包括以下步骤:A method for moving and arranging pressure monitoring points for checking the water quantity of a hydraulic model of a water supply pipe network, comprising the following steps:

S1、制定校核计划,分为round_num个校核周期,每个校核周期的监测点数量为sens_num,校核周期的时长为t;所述监测点为压力监测传感器的安装位置;S1, formulate a check plan, which is divided into round_num check cycles, the number of monitoring points in each check cycle is sens_num, and the length of the check cycle is t; the monitoring points are the installation positions of the pressure monitoring sensors;

校核计划的全部监测点的数量为:The total number of monitoring points in the verification plan is:

length(sens)=sens_num×round_numlength(sens)=sens_num×round_num

校核计划的总时长为:The total length of the check plan is:

T=t×round_numT=t×round_num

S2、基于初始化管网水力模型,得到节点压力关于节点水量的雅克比矩阵HQ;S2. Based on the initialized hydraulic model of the pipe network, the Jacobian matrix HQ of the node pressure and the node water volume is obtained;

S3、根据雅克比矩阵HQ和改良隐枚举优化法,求解监测点移动方案sens_place;所述监测点移动方案sens_place是指:从当前校核周期变更到下一个校核周期时,监测点需要从当前位置变更到哪个位置;S3. According to the Jacobian matrix HQ and the improved implicit enumeration optimization method, solve the monitoring point moving scheme sens_place; the monitoring point moving scheme sens_place refers to: when changing from the current check cycle to the next check cycle, the monitoring point needs to be changed from Which position to change the current position to;

监测点移动方案sens_place的数学描述方法是:将每个校核周期中的不同监测点的位置定义为一个向量,即监测点位置部署方案sens_place[k],其中k代表第k个校核周期;所有校验周期的监测点位置部署方案sens_place[k]的总和即为监测点移动方案sens_place;The mathematical description method of the monitoring point movement scheme sens_place is to define the positions of different monitoring points in each check cycle as a vector, that is, the monitoring point position deployment scheme sens_place[k], where k represents the kth check cycle; The sum of the monitoring point position deployment schemes sens_place[k] of all verification periods is the monitoring point movement scheme sens_place;

S4、根据校核计划的时间顺序,选取第一个校核周期中的监测点位置部署方案sens_place[1],通过迭代法计算供水管网水力模型的节点水量;S4. According to the time sequence of the verification plan, select the monitoring point location deployment scheme sens_place[1] in the first verification cycle, and calculate the node water volume of the hydraulic model of the water supply network through an iterative method;

S5、计算该校核周期的供水管网水力模型的最优参数估计值,将计算结果设置为供水管网水力模型的参数;S5. Calculate the optimal parameter estimation value of the hydraulic model of the water supply pipe network in the checking period, and set the calculation result as the parameter of the hydraulic model of the water supply pipe network;

S6、选取第二个校核周期中的监测点位置部署方案sens_place[2],重复执行S4和S5,通过调整参数来逐步改进供水管网水力模型的计算精度,直至所有校核周期都处理完毕。S6. Select the monitoring point location deployment scheme sens_place[2] in the second check cycle, repeat S4 and S5, and gradually improve the calculation accuracy of the hydraulic model of the water supply network by adjusting the parameters until all check cycles are processed. .

进一步的,步骤S2包括如下步骤:Further, step S2 includes the following steps:

S21、设定供水管网的节点关联矩阵A:S21. Set the node association matrix A of the water supply network:

Figure BDA0003434701990000031
Figure BDA0003434701990000031

S22、利用海澄-威廉方程计算水头损失对管段的偏微分:S22. Use the Haicheng-Wilhelm equation to calculate the partial differential of the head loss to the pipe section:

Figure BDA0003434701990000032
Figure BDA0003434701990000032

其中:h为水头损失,Ku为单位换算系数,d、L、q及c为管道的管径(mm)、管长(m)、水量(L/s)及海澄-威廉系数;Among them: h is the head loss, Ku is the unit conversion factor, d, L, q and c are the pipe diameter (mm), pipe length (m), water volume (L/s) and Haicheng-Williams coefficient;

S23、将水头损失对管段的偏微分写为对角阵的形式:S23. Write the partial differential of the head loss to the pipe section in the form of a diagonal matrix:

Figure BDA0003434701990000041
Figure BDA0003434701990000041

S24、根据以下公式求算节点压力关于节点水量的雅克比矩阵HQ:S24. Calculate the Jacobian matrix HQ of the nodal pressure with respect to the nodal water volume according to the following formula:

HQ=-(ABAT)-1HQ=-(ABA T ) -1 .

进一步的,步骤S3包括如下步骤:Further, step S3 includes the following steps:

S31、依照雅克比矩阵HQ,构建目标函数:S31. According to the Jacobian matrix HQ, construct the objective function:

Figure BDA0003434701990000042
Figure BDA0003434701990000042

其中:n为供水管网的节点总数,sens为监测点位置的索引;Among them: n is the total number of nodes in the water supply network, and sens is the index of the monitoring point location;

S32、使用改良隐枚举优化法求解目标函数f(sens),得到一个向量,即监测点位置总布置sensall_vector;所述监测点位置总布置sensall_vector描述的是所有监测点的节点索引集合;S32, use the improved implicit enumeration optimization method to solve the objective function f(sens), and obtain a vector, that is, the monitoring point position general arrangement sensall_vector; the monitoring point position general arrangement sensall_vector describes the node index set of all monitoring points;

S33、使用kmeans++方法根据空间位置将sensall_vector中的全部监测点进行聚类,分类组数cluster_num等于监测点数量sens_num;S33. Use the kmeans++ method to cluster all the monitoring points in the sensall_vector according to the spatial position, and the number of classification groups cluster_num is equal to the number of monitoring points sens_num;

S34、对每个分类组中的监测点依照其敏感度向量的1范数从大到小排序,得到监测点位置序列;所述敏感度向量是指雅克比矩阵HQ中的某一行,其中监测点i的敏感度向量为雅克比矩阵HQ的第i行;所述监测点位置序列代表了同一个压力监测传感器在每个校核周期中的不同位置;S34. Sort the monitoring points in each classification group according to the 1-norm of the sensitivity vector from large to small to obtain a monitoring point position sequence; the sensitivity vector refers to a row in the Jacobian matrix HQ, in which the monitoring point The sensitivity vector of point i is the ith row of the Jacobian matrix HQ; the monitoring point position sequence represents the different positions of the same pressure monitoring sensor in each calibration cycle;

如果监测点位置序列的长度小于校核周期round_num,就用循环的方式往该序列尾部补充监测点,直至该序列的长度等于校核周期round_num;If the length of the monitoring point position sequence is less than the check period round_num, add monitoring points to the end of the sequence in a circular manner until the length of the sequence is equal to the check period round_num;

S35、对于第一个校核周期,依次从每个分类组的监测点位置序列中选择第一个数据,得到一个维数等于监测点数量sens_num的向量,该向量即为第一个校核周期的监测点位置部署方案sens_place[1];对于第二个校核周期,依次从每个分类组的监测点位置序列中选择第二个数据,同样得到一个维数等于监测点数量sens_num的向量,该向量即为第二个校核周期的监测点位置部署方案sens_place[2];以此类推,得到所有校核周期的监测点位置部署方案,即为监测点移动方案sens_place。S35. For the first check cycle, select the first data from the monitoring point position sequence of each classification group in turn, and obtain a vector whose dimension is equal to the number of monitoring points sens_num, which is the first check cycle The monitoring point position deployment scheme sens_place[1]; for the second check cycle, the second data is selected from the monitoring point position sequence of each classification group in turn, and a vector whose dimension is equal to the number of monitoring points sens_num is also obtained, This vector is the monitoring point position deployment scheme sens_place[2] of the second check cycle; and so on, the monitoring point position deployment scheme of all check periods is obtained, which is the monitoring point movement scheme sens_place.

进一步的,步骤S4包括以下步骤:Further, step S4 includes the following steps:

S41、将当前校核周期划分为M个时间段,标记为:时段t1、时段t2、…、时段tMS41. Divide the current calibration cycle into M time periods, marked as: period t 1 , period t 2 , . . . , period t M ;

S42、设置一个向量Q[t],用于描述所有节点的水量布置;所述向量Q[t]的维数等于模型的节点总数,每个维度的数值分别代表对应节点的水量;S42, set a vector Q[t] for describing the water quantity arrangement of all nodes; the dimension of the vector Q[t] is equal to the total number of nodes of the model, and the value of each dimension represents the water quantity of the corresponding node respectively;

S43、对于时段t1,设定Q[t]的初始值Q[t1]为模型总水量的平均值:S43. For the time period t 1 , set the initial value Q[t 1 ] of Q[t] as the average value of the total water volume of the model:

Q[t1]=ones(1,n)*Qavg Q[t 1 ]=ones(1,n)*Q avg

Qavg=Qtotal/nQ avg =Q total /n

其中:Qtotal为模型总水量(L/s),Qavg为模型节点水量平均值(L/s),ones(1,n)为长度为节点总数n的元素均为1的行向量;Where: Q total is the total water volume of the model (L/s), Q avg is the average water volume of the model nodes (L/s), and ones(1,n) is a row vector whose length is the total number of nodes n and the elements are all 1;

S44、假设当前是第k个校核周期,读取其监测点位置部署方案sens_place[k],并设定目标迭代需要消除的压力误差量:S44. Assuming that it is currently the k-th calibration cycle, read the monitoring point position deployment scheme sens_place[k], and set the pressure error amount to be eliminated by the target iteration:

dH=Ho[sens]-Hs[sens]dH=H o [sens]-H s [sens]

其中:Ho为压力监测传感器测量得到的压力(m),Hs为每次迭代校正后的压力(m);Where: H o is the pressure (m) measured by the pressure monitoring sensor, and H s is the pressure (m) after each iteration correction;

S45、求解水量布置为Q[t1]时的管网模型的雅克比矩阵HQ;S45, solve the Jacobian matrix HQ of the pipe network model when the water quantity is arranged as Q[t 1 ];

S46、求解方程HQ×dQ=dH,得到Q[t1]的修正量dQ;S46, solve the equation HQ×dQ=dH, and obtain the correction amount dQ of Q[t 1 ];

S47、通过公式Q[t1]n+1=Q[t1]n+dQ算出下一次迭代的水量布置Q[t1]n+1S47. Calculate the water quantity arrangement Q[t 1 ] n+1 of the next iteration by using the formula Q[t 1 ] n+1 =Q[t 1 ] n +dQ;

S48、当dH小于设定允许的误差阈值时迭代停止,此时得到的结果为时段t1的水量布置Q[t1]的最终结果;S48, the iteration stops when dH is less than the set allowable error threshold, and the result obtained at this time is the final result of the water quantity arrangement Q[t 1 ] in the time period t 1 ;

S49、将Q[t1]作为初始值,计算时段t2的水量布置Q[t2];以此类推,重复执行S45至S48,直至计算出所有时段的水量布置Q[t];S49, take Q[t 1 ] as the initial value, calculate the water quantity arrangement Q[t 2 ] of the time period t 2 ; and so on, repeat S45 to S48 until the water quantity arrangement Q[t] of all time periods is calculated;

S410、将所有求得的单时段用水量按照时序排列便可得到节点用水量模式;所述节点用水量模式是指管网模型中用水节点的用水量随时间变化的系数。S410 , arranging all the obtained water consumption in a single period in time sequence to obtain a node water consumption pattern; the node water consumption pattern refers to a coefficient of the water consumption of a water node in the pipe network model changing with time.

进一步的,步骤S32所述改良隐枚举优化法的具体步骤如下:Further, the specific steps of improving the implicit enumeration optimization method described in step S32 are as follows:

S51、设置一个向量sensall_init,为所有监测点的节点索引集合;S51. Set a vector sensall_init, which is the node index set of all monitoring points;

S52、将所有的节点随机排列,得到一个入点组Nin(i),并依序选择一个入点;S52. Randomly arrange all nodes to obtain an in-point group N in (i), and select an in-point in sequence;

S53、将所有初始解解向量元素随机排列,得到一个出点组Nout(j),让入点依顺序替换出点得到一个新的解sensall_new;S53. Randomly arrange all the initial solution vector elements to obtain an out point group N out (j), and replace the out points with the in points in order to obtain a new solution sensall_new;

S54、将原始解sensall_init和新解sensall_new代入步骤S31的目标函数,求解原始解f(sensall_init)和新解f(sensall_new),选取更优解进入下一次迭代;S54. Substitute the original solution sensall_init and the new solution sensall_new into the objective function of step S31, solve the original solution f(sensall_init) and the new solution f(sensall_new), and select a better solution to enter the next iteration;

S55、重复执行S52、S53、S54,直到无法产生更优解时终止;最终求得的解即为监测点位置总布置sensall_vector。S55. Repeat S52, S53, and S54 until a better solution cannot be generated, and terminate; the final solution obtained is the sensall_vector of the general arrangement of monitoring point positions.

进一步的,步骤S44的具体方法如下:Further, the specific method of step S44 is as follows:

记HQ为A,dH为b,dQ为需要求解的未知数x,则采用迭代法求解Ax=b的过程为:Denote HQ as A, dH as b, and dQ as the unknown x to be solved, then the process of solving Ax=b by iterative method is:

Figure BDA0003434701990000061
Figure BDA0003434701990000061

b2=b-A·dx1 b 2 =bA·dx 1

Figure BDA0003434701990000062
Figure BDA0003434701990000062

b3=b2-A·dx2 b 3 =b 2 -A·dx 2

……...

Figure BDA0003434701990000063
Figure BDA0003434701990000063

bn+1=bn-A·dxn b n+1 =b n -A·dx n

……...

迭代结束后,迭代次数为N,则x的值为:After the iteration is over, the number of iterations is N, then the value of x is:

Figure BDA0003434701990000071
Figure BDA0003434701990000071

其中:sum(A,axis=0)表示为对矩阵A列加和,sum(A,axis=1)表示为对矩阵A行加和,abs(A)表示对矩阵A取绝对值,式中乘除法均为对位相乘除。Among them: sum(A, axis=0) represents the sum of the columns of the matrix A, sum(A, axis=1) represents the sum of the rows of the matrix A, and abs(A) represents the absolute value of the matrix A, where Multiplication and division are both multiplication and division of counterpoints.

本发明有益的技术效果在于:The beneficial technical effects of the present invention are:

(1)在成本相当的前提下,本发明可以数倍扩大监测数据的采集量,增大管网压力空间监测密度,获取更多的管网运行状态信息,为提高给水管网水力模型校核精度提供坚实的数据基础;(1) Under the premise of the same cost, the present invention can expand the collection amount of monitoring data several times, increase the monitoring density of the pressure space of the pipe network, and obtain more information on the operation status of the pipe network, so as to improve the hydraulic model checking of the water supply pipe network. Accuracy provides a solid data foundation;

(2)在模型校核精度相当的前提下,本发明可以大幅减少模型参数校核的硬件成本、施工成本和维护成本;而且,相对于传统的随机搜索算法,本发明提出的数值解法可以大幅减少计算时间,提高计算效率,对实时校核的应用场景具有更好的适应性;(2) On the premise that the model checking accuracy is comparable, the present invention can greatly reduce the hardware cost, construction cost and maintenance cost of model parameter checking; Reduce computing time, improve computing efficiency, and have better adaptability to the application scenarios of real-time verification;

(3)本发明对监测数据的持续累积具有累积吸收的能力,即随着监测数据在时间维度与空间维度的累积,管网的校核精度在整体趋势上逐步提高,逼近当所有节点均布设有监测设备时对应的校核精度。(3) The present invention has the ability to accumulate and absorb the continuous accumulation of monitoring data, that is, with the accumulation of monitoring data in the time dimension and the space dimension, the calibration accuracy of the pipe network is gradually improved in the overall trend, approaching when all nodes are laid out Corresponding calibration accuracy when monitoring equipment is available.

本发明可应用于供水管网模型参数校核、运行状态诊断等,具有广泛的应用前景。The invention can be applied to model parameter checking of water supply pipe network, running state diagnosis, etc., and has wide application prospect.

附图说明Description of drawings

附图1是实施例的管网拓扑图;Accompanying drawing 1 is the pipe network topology diagram of the embodiment;

附图2是监测点移动方案的示意图;Accompanying drawing 2 is the schematic diagram of monitoring point movement scheme;

附图3是实施例管网的监测点移动布置过程示意图;3 is a schematic diagram of the process of moving and arranging monitoring points of the pipeline network of the embodiment;

附图4是实施例管网的移动监测过程中全节点绝对压力校核误差变化曲线;Accompanying drawing 4 is the variation curve of absolute pressure checking error of all nodes in the mobile monitoring process of the pipeline network of the embodiment;

附图5是实施例管网的移动监测过程全节点流量相对校核误差变化曲线;Accompanying drawing 5 is the variation curve of relative calibration error of all-node flow in the mobile monitoring process of the pipeline network of the embodiment;

附图6是实施例管网的移动监测过程全管段流量相对校核误差变化曲线。FIG. 6 is the variation curve of the relative calibration error of the flow rate of the whole pipe section during the mobile monitoring process of the pipe network of the embodiment.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明进行具体描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The present invention will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例是一个工程案例的给水管网模型,如附图1所示。该管网系统有4个供水水源,各自拥有时间模式,总用水节点数量484,节点用水量模式数量为17,节点分为17组并各自赋予随机用水量模式,基线用水量随机设定,管道总数567根,管道的粗糙系数随机设定,范围在90~130之间。The embodiment is a water supply pipe network model of an engineering case, as shown in FIG. 1 . The pipe network system has 4 water supply sources, each with its own time pattern, the total number of water nodes is 484, the number of node water consumption patterns is 17, the nodes are divided into 17 groups and assigned random water consumption patterns, the baseline water consumption is randomly set, and the pipeline There are 567 pipes in total, and the roughness coefficient of the pipes is randomly set, ranging from 90 to 130.

参数校核的步骤如下:The steps of parameter checking are as follows:

S1、制定校核计划,分为round_num个校核周期,每个校核周期的监测点数量为sens_num(即可移动的压力监测传感器的数量),校核周期的时长为t;监测点为压力监测传感器的安装位置。S1. Formulate a check plan, which is divided into round_num check cycles. The number of monitoring points in each check cycle is sens_num (the number of pressure monitoring sensors that can be moved), and the length of the check cycle is t; the monitoring point is the pressure Monitor where the sensor is installed.

对于实施例,round_num=20,sens_num=10,t=24小时。For the example, round_num=20, sens_num=10, t=24 hours.

校核计划的全部监测点的数量为:The total number of monitoring points in the verification plan is:

length(sens)=sens_num×round_num=10×20=200length(sens)=sens_num×round_num=10×20=200

校核计划的总时长为:The total length of the check plan is:

T=t×round_num=24×20=480(小时)T=t×round_num=24×20=480 (hours)

S2、基于初始化管网水力模型,得到节点压力关于节点水量的雅克比矩阵HQ。具体步骤如下:S2. Based on the initialized hydraulic model of the pipe network, the Jacobian matrix HQ of the node pressure and the node water quantity is obtained. Specific steps are as follows:

(2-1)设定供水管网的节点关联矩阵A:(2-1) Set the node association matrix A of the water supply network:

Figure BDA0003434701990000081
Figure BDA0003434701990000081

(2-2)利用海澄-威廉方程计算水头损失对管段的偏微分:(2-2) Use the Haicheng-Wilhelm equation to calculate the partial differential of the head loss to the pipe section:

Figure BDA0003434701990000091
Figure BDA0003434701990000091

其中:h为水头损失,Ku为单位换算系数,d、L、q及c为管道的管径(mm)、管长(m)、水量(L/s)及海澄-威廉系数;Among them: h is the head loss, Ku is the unit conversion factor, d, L, q and c are the pipe diameter (mm), pipe length (m), water volume (L/s) and Haicheng-Williams coefficient;

(2-3)将水头损失对管段的偏微分写为对角阵的形式:(2-3) Write the partial differential of the head loss to the pipe section in the form of a diagonal matrix:

Figure BDA0003434701990000092
Figure BDA0003434701990000092

(2-4)根据以下公式求算节点压力关于节点水量的雅克比矩阵HQ:(2-4) Calculate the Jacobian matrix HQ of the nodal pressure with respect to the nodal water volume according to the following formula:

HQ=-(ABAT)-1 HQ=-(ABA T ) -1

S3、根据雅克比矩阵HQ和改良隐枚举优化法,求解监测点移动方案sens_place。监测点移动方案sens_place是指:从当前校核周期变更到下一个校核周期时,监测点需要从当前位置变更到哪个位置,如附图2所示。S3. According to the Jacobian matrix HQ and the improved implicit enumeration optimization method, solve the monitoring point movement scheme sens_place. The monitoring point moving scheme sens_place refers to: when changing from the current check cycle to the next check cycle, the monitoring point needs to be changed from the current position to which position, as shown in FIG. 2 .

监测点移动方案sens_place的数学描述方法是:将每个校核周期中的不同监测点的位置定义为一个向量,即监测点位置部署方案sens_place[k],其中k代表第k个校核周期;所有校验周期的监测点位置部署方案sens_place[k]的总和即为监测点移动方案sens_place。The mathematical description method of the monitoring point movement scheme sens_place is to define the positions of different monitoring points in each check cycle as a vector, that is, the monitoring point position deployment scheme sens_place[k], where k represents the kth check cycle; The sum of the monitoring point position deployment schemes sens_place[k] of all verification periods is the monitoring point moving scheme sens_place.

具体步骤如下:Specific steps are as follows:

(3-1)依照雅克比矩阵HQ,构建目标函数:(3-1) According to the Jacobian matrix HQ, construct the objective function:

Figure BDA0003434701990000093
Figure BDA0003434701990000093

其中:n为供水管网的节点总数,sens为监测点位置的索引。Among them: n is the total number of nodes in the water supply network, and sens is the index of the monitoring point location.

(3-2)使用改良隐枚举优化法求解目标函数f(sens),得到一个向量,即监测点位置总布置sensall_vector。监测点位置总布置sensall_vector描述的是所有监测点的节点索引集合。具体步骤如下:(3-2) Use the improved implicit enumeration optimization method to solve the objective function f(sens), and obtain a vector, that is, sensall_vector, which is the general arrangement of monitoring points. The monitoring point location general arrangement sensall_vector describes the node index set of all monitoring points. Specific steps are as follows:

(3-2-1)设置一个向量sensall_init,为所有监测点的节点索引集合;(3-2-1) Set a vector sensall_init, which is the node index set of all monitoring points;

(3-2-2)将所有的节点随机排列,得到一个入点组Nin(i),并依序选择一个入点;(3-2-2) Randomly arrange all nodes to obtain an in-point group N in (i), and select an in-point in sequence;

(3-2-3)将所有初始解解向量元素随机排列,得到一个出点组Nout(j),让入点依顺序替换出点得到一个新的解sensall_new;(3-2-3) Randomly arrange all the initial solution solution vector elements to obtain an out point group N out (j), and let the in points replace the out points in order to obtain a new solution sensall_new;

(3-2-4)将原始解sensall_init和新解sensall_new代入步骤S31的目标函数,求解原始解f(sensall_init)和新解f(sensall_new),选取更优解进入下一次迭代;(3-2-4) Substitute the original solution sensall_init and the new solution sensall_new into the objective function of step S31, solve the original solution f(sensall_init) and the new solution f(sensall_new), and select a better solution to enter the next iteration;

(3-2-5)重复执行S52、S53、S54,直到无法产生更优解时终止;最终求得的解即为监测点位置总布置sensall_vector。(3-2-5) Repeat S52, S53, and S54 until a better solution cannot be generated, and terminate; the final solution obtained is the sensall_vector of the general arrangement of monitoring points.

(3-3)使用kmeans++方法根据空间位置将sensall_vector中的全部监测点进行聚类,分类组数cluster_num等于监测点数量sens_num。(3-3) Use the kmeans++ method to cluster all the monitoring points in the sensall_vector according to the spatial position, and the number of classification groups cluster_num is equal to the number of monitoring points sens_num.

(3-4)对每个分类组中的监测点依照其敏感度向量的1范数从大到小排序,得到监测点位置序列;所述敏感度向量此处是指雅克比矩阵HQ中的某一行,其中监测点i的敏感度向量为雅克比矩阵HQ的第i行;如果监测点位置序列的长度小于校核周期round_num,就用循环的方式往该序列尾部补充监测点,直至该序列的长度等于校核周期round_num;所述监测点位置序列代表了同一个压力监测传感器在每个校核周期中的不同位置。(3-4) Sort the monitoring points in each classification group according to the 1-norm of its sensitivity vector from large to small to obtain the monitoring point position sequence; the sensitivity vector here refers to the values in the Jacobian matrix HQ A certain row, in which the sensitivity vector of monitoring point i is the ith row of Jacobian matrix HQ; if the length of the monitoring point position sequence is less than the check period round_num, the monitoring points are added to the end of the sequence in a circular manner until the sequence is The length of is equal to the check cycle round_num; the monitoring point position sequence represents the different positions of the same pressure monitoring sensor in each check cycle.

(3-5)对于第一个校核周期,依次从每个分类组的监测点位置序列中选择第一个数据,得到一个维数等于监测点数量sens_num的向量,该向量即为第一个校核周期的监测点位置部署方案sens_place[1];对于第二个校核周期,依次从每个分类组的监测点位置序列中选择第二个数据,同样得到一个维数等于监测点数量sens_num的向量,该向量即为第二个校核周期的监测点位置部署方案sens_place[2];以此类推,得到所有校核周期的监测点位置部署方案,即为监测点移动方案sens_place。实施例的监测点移动过程如附图3所示。(3-5) For the first check cycle, select the first data from the monitoring point position sequence of each classification group in turn, and obtain a vector whose dimension is equal to the number of monitoring points sens_num, which is the first data The monitoring point location deployment scheme sens_place[1] of the check cycle; for the second check cycle, select the second data from the monitoring point position sequence of each classification group in turn, and also obtain a dimension equal to the number of monitoring points sens_num , which is the monitoring point position deployment scheme sens_place[2] of the second check cycle; and so on, the monitoring point position deployment scheme of all check cycles is obtained, which is the monitoring point movement scheme sens_place. The monitoring point movement process of the embodiment is shown in FIG. 3 .

S4、根据校核计划的时间顺序,选取第一个校核周期中的监测点位置部署方案sens_place[1],通过迭代法计算供水管网水力模型的节点水量,具体步骤如下:S4. According to the time sequence of the verification plan, select the monitoring point location deployment scheme sens_place[1] in the first verification cycle, and calculate the node water volume of the hydraulic model of the water supply network through an iterative method. The specific steps are as follows:

(4-1)将当前校核周期划分为M个时间段,标记为:时段t1、时段t2、…、时段tM(4-1) Divide the current calibration cycle into M time periods, marked as: period t 1 , period t 2 , ..., period t M ;

(4-2)设置一个向量Q[t],用于描述所有节点的水量布置;所述向量Q[t]的维数等于模型的节点总数,每个维度的数值分别代表对应节点的水量;(4-2) A vector Q[t] is set to describe the water volume arrangement of all nodes; the dimension of the vector Q[t] is equal to the total number of nodes of the model, and the value of each dimension represents the water volume of the corresponding node respectively;

(4-3)对于时段t1,设定Q[t]的初始值Q[t1]为模型总水量的平均值:(4-3) For the period t 1 , set the initial value Q[t 1 ] of Q[t] as the average value of the total water volume of the model:

Q[t1]=ones(1,n)*Qavg Q[t 1 ]=ones(1,n)*Q avg

Qavg=Qtotal/nQ avg =Q total /n

其中:Qtotal为模型总水量(L/s),Qavg为模型节点水量平均值(L/s),ones(1,n)为长度为节点总数n的元素均为1的行向量;Where: Q total is the total water volume of the model (L/s), Q avg is the average water volume of the model nodes (L/s), and ones(1,n) is a row vector whose length is the total number of nodes n and the elements are all 1;

(4-4)假设当前是第k个校核周期,读取其监测点位置部署方案sens_place[k],并设定目标迭代需要消除的压力误差量:(4-4) Assuming that the current is the kth calibration cycle, read the monitoring point position deployment scheme sens_place[k], and set the pressure error amount to be eliminated by the target iteration:

dH=Ho[sens]-Hs[sens]dH=H o [sens]-H s [sens]

其中:Ho为压力监测传感器测量得到的压力(m),Hs为每次迭代校正后的压力(m);Where: H o is the pressure (m) measured by the pressure monitoring sensor, and H s is the pressure (m) after each iteration correction;

(4-5)求解水量布置为Q[t1]时的管网模型的雅克比矩阵HQ;(4-5) Solve the Jacobian matrix HQ of the pipe network model when the water quantity is arranged as Q[t 1 ];

(4-6)求解方程HQ×dQ=dH,得到Q[t1]的修正量dQ;(4-6) Solve the equation HQ×dQ=dH, and obtain the correction amount dQ of Q[t 1 ];

(4-7)通过公式Q[t1]n+1=Q[t1]n+dQ算出下一次迭代的水量布置Q[t1]n+1(4-7) Calculate the water quantity arrangement Q[t 1 ] n+1 of the next iteration through the formula Q[t 1 ] n+1 =Q[t 1 ] n +dQ;

(4-8)当dH小于设定允许的误差阈值时迭代停止,此时得到的结果为时段t1的水量布置Q[t1]的最终结果;(4-8) The iteration stops when dH is less than the set allowable error threshold, and the result obtained at this time is the final result of the water quantity arrangement Q[t 1 ] in the time period t 1 ;

(4-9)将Q[t1]作为初始值,计算时段t2的水量布置Q[t2];以此类推,重复执行S45至S48,直至计算出所有时段的水量布置Q[t];(4-9) Taking Q[t 1 ] as the initial value, calculate the water quantity arrangement Q[t 2 ] of the time period t 2 ; and so on, repeat S45 to S48 until the water quantity arrangement Q[t] of all time periods is calculated ;

(4-10)将所有时段的用水量连接便可得到节点用水量模式。(4-10) The node water consumption pattern can be obtained by connecting the water consumption of all periods.

S5、计算该校核周期的供水管网水力模型的最优参数估计值,将计算结果设置为供水管网水力模型的参数;S5. Calculate the optimal parameter estimation value of the hydraulic model of the water supply pipe network in the checking period, and set the calculation result as the parameter of the hydraulic model of the water supply pipe network;

S6、选取第二个校核周期中的监测点位置部署方案sens_place[2],重复执行S4和S5,通过调整参数来逐步改进供水管网水力模型的计算精度,直至所有校核周期都处理完毕。S6. Select the monitoring point location deployment scheme sens_place[2] in the second check cycle, repeat S4 and S5, and gradually improve the calculation accuracy of the hydraulic model of the water supply network by adjusting the parameters until all check cycles are processed. .

参数校核结果采用以下指标进行评估计算:The parameter calibration results are evaluated and calculated using the following indicators:

节点压力绝对误差:Nodal pressure absolute error:

Figure BDA0003434701990000121
Figure BDA0003434701990000121

节点流量相对误差:Node flow relative error:

Figure BDA0003434701990000122
Figure BDA0003434701990000122

管段流量相对误差:Relative error of pipe flow:

Figure BDA0003434701990000123
Figure BDA0003434701990000123

其中,Htrue、Qtrue、qtrue分别为案例管网设定的真实节点压力、节点流量、管道流量值,Hs、Qs、qs分别为案例管网校核之后的模拟节点压力、节点流量、管道流量值。Among them, H true , Q true , and q true are respectively the real node pressure, node flow, and pipeline flow value set by the case pipe network, and H s , Q s , and q s are the simulated node pressure after the case pipe network is checked, Node flow, pipeline flow value.

移动监测过程参数校核评估结果如附图4~6所示。The results of checking and evaluating the parameters of the mobile monitoring process are shown in Figures 4-6.

尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用,它完全可以被适用于各种适合本发明的领域,对于熟悉本领域的人员而言,对于本领域的普通技术人员而言,在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,因此在不背离权利要求及等同范围所限定的一般概念下,本发明并不限于特定的细节。Although the embodiment of the present invention has been disclosed as above, it is not limited to the application listed in the description and the embodiment, and it can be applied to various fields suitable for the present invention. For those of ordinary skill in the art, various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principle and spirit of the present invention, and therefore without departing from the general concepts defined by the claims and equivalent scopes Below, the invention is not limited to the specific details.

Claims (6)

1.一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于,包括以下步骤:1. a pressure monitoring point moving arrangement method for water supply pipe network hydraulic model water quantity check, is characterized in that, comprises the following steps: S1、制定校核计划,分为round_num个校核周期,每个校核周期的监测点数量为sens_num,校核周期的时长为t;所述监测点为压力监测传感器的安装位置;S1, formulate a check plan, which is divided into round_num check cycles, the number of monitoring points in each check cycle is sens_num, and the length of the check cycle is t; the monitoring points are the installation positions of the pressure monitoring sensors; 校核计划的全部监测点的数量为:The total number of monitoring points in the verification plan is: length(sens)=sens_num×round_numlength(sens)=sens_num×round_num 校核计划的总时长为:The total length of the check plan is: T=t×round_numT=t×round_num S2、基于初始化管网水力模型,得到节点压力关于节点水量的雅克比矩阵HQ;S2. Based on the initialized hydraulic model of the pipe network, the Jacobian matrix HQ of the node pressure and the node water volume is obtained; S3、根据雅克比矩阵HQ和改良隐枚举优化法,求解监测点移动方案sens_place;所述监测点移动方案sens_place是指:从当前校核周期变更到下一个校核周期时,监测点需要从当前位置变更到哪个位置;S3. According to the Jacobian matrix HQ and the improved implicit enumeration optimization method, solve the monitoring point moving scheme sens_place; the monitoring point moving scheme sens_place refers to: when changing from the current check cycle to the next check cycle, the monitoring point needs to be changed from Which position to change the current position to; 监测点移动方案sens_place的数学描述方法是:将每个校核周期中的不同监测点的位置定义为一个向量,即监测点位置部署方案sens_place[k],其中k代表第k个校核周期;所有校验周期的监测点位置部署方案sens_place[k]的总和即为监测点移动方案sens_place;The mathematical description method of the monitoring point movement scheme sens_place is to define the positions of different monitoring points in each check cycle as a vector, that is, the monitoring point position deployment scheme sens_place[k], where k represents the kth check cycle; The sum of the monitoring point position deployment schemes sens_place[k] of all verification periods is the monitoring point moving scheme sens_place; S4、根据校核计划的时间顺序,选取第一个校核周期中的监测点位置部署方案sens_place[1],通过迭代法计算供水管网水力模型的节点水量;S4. According to the time sequence of the verification plan, select the monitoring point location deployment scheme sens_place[1] in the first verification cycle, and calculate the node water volume of the hydraulic model of the water supply network through an iterative method; S5、计算该校核周期的供水管网水力模型的最优参数估计值,将计算结果设置为供水管网水力模型的参数;S5. Calculate the optimal parameter estimation value of the hydraulic model of the water supply pipe network in the checking period, and set the calculation result as the parameter of the hydraulic model of the water supply pipe network; S6、选取第二个校核周期中的监测点位置部署方案sens_place[2],重复执行S4和S5,通过调整参数来逐步改进供水管网水力模型的计算精度,直至所有校核周期都处理完毕。S6. Select the monitoring point location deployment scheme sens_place[2] in the second check cycle, repeat S4 and S5, and gradually improve the calculation accuracy of the hydraulic model of the water supply network by adjusting the parameters until all check cycles are processed. . 2.根据权利要求1所述的一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于,步骤S2包括如下步骤:2. A method for moving and arranging pressure monitoring points for water supply network hydraulic model water quantity check according to claim 1, wherein step S2 comprises the following steps: S21、设定供水管网的节点关联矩阵A:S21. Set the node association matrix A of the water supply network:
Figure FDA0003434701980000021
Figure FDA0003434701980000021
S22、利用海澄-威廉方程计算水头损失对管段的偏微分:S22. Use the Haicheng-Wilhelm equation to calculate the partial differential of the head loss to the pipe section:
Figure FDA0003434701980000022
Figure FDA0003434701980000022
其中:h为水头损失,Ku为单位换算系数,d、L、q及c为管道的管径(mm)、管长(m)、水量(L/s)及海澄-威廉系数;Where: h is the head loss, Ku is the unit conversion factor, d, L, q and c are the pipe diameter (mm), pipe length (m), water volume (L/s) and Haicheng-Williams coefficient; S23、将水头损失对管段的偏微分写为对角阵的形式:S23. Write the partial differential of the head loss to the pipe section in the form of a diagonal matrix:
Figure FDA0003434701980000023
Figure FDA0003434701980000023
S24、根据以下公式计算节点压力关于节点水量的雅克比矩阵HQ:S24. Calculate the Jacobian matrix HQ of the nodal pressure with respect to the nodal water volume according to the following formula: HQ=-(ABAT)-1HQ=-(ABA T ) -1 .
3.根据权利要求1所述的一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于,步骤S3包括如下步骤:3. A method for moving and arranging pressure monitoring points for checking the water quantity of a water supply pipe network hydraulic model according to claim 1, wherein step S3 comprises the following steps: S31、依照雅克比矩阵HQ,构建目标函数:S31. According to the Jacobian matrix HQ, construct the objective function:
Figure FDA0003434701980000024
Figure FDA0003434701980000024
其中:n为供水管网的节点总数,sens为监测点位置的索引;Among them: n is the total number of nodes in the water supply network, and sens is the index of the monitoring point location; S32、使用改良隐枚举优化法求解目标函数f(sens),得到一个向量,即监测点位置总布置sensall_vector;所述监测点位置总布置sensall_vector描述的是所有监测点的节点索引集合;S32, use the improved implicit enumeration optimization method to solve the objective function f(sens), and obtain a vector, that is, the monitoring point position general arrangement sensall_vector; the monitoring point position general arrangement sensall_vector describes the node index set of all monitoring points; S33、使用kmeans++方法根据空间位置将sensall_vector中的全部监测点进行聚类,分类组数cluster_num等于监测点数量sens_num;S33. Use the kmeans++ method to cluster all the monitoring points in the sensall_vector according to the spatial position, and the number of classification groups cluster_num is equal to the number of monitoring points sens_num; S34、对每个分类组中的监测点依照其敏感度向量的1范数从大到小排序,得到监测点位置序列;所述敏感度向量是指雅克比矩阵HQ中的某一行,其中监测点i的敏感度向量为雅克比矩阵HQ的第i行;所述监测点位置序列代表了同一个压力监测传感器在每个校核周期中的不同位置;S34. Sort the monitoring points in each classification group according to the 1-norm of the sensitivity vector from large to small to obtain a monitoring point position sequence; the sensitivity vector refers to a row in the Jacobian matrix HQ, in which the monitoring point The sensitivity vector of point i is the ith row of the Jacobian matrix HQ; the monitoring point position sequence represents the different positions of the same pressure monitoring sensor in each calibration cycle; 如果监测点位置序列的长度小于校核周期round_num,就用循环的方式往该序列尾部补充监测点,直至该序列的长度等于校核周期round_num;If the length of the monitoring point position sequence is less than the check period round_num, add monitoring points to the end of the sequence in a circular manner until the length of the sequence is equal to the check period round_num; S35、对于第一个校核周期,依次从每个分类组的监测点位置序列中选择第一个数据,得到一个维数等于监测点数量sens_num的向量,该向量即为第一个校核周期的监测点位置部署方案sens_place[1];对于第二个校核周期,依次从每个分类组的监测点位置序列中选择第二个数据,同样得到一个维数等于监测点数量sens_num的向量,该向量即为第二个校核周期的监测点位置部署方案sens_place[2];以此类推,得到所有校核周期的监测点位置部署方案,即为监测点移动方案sens_place。S35. For the first check cycle, select the first data from the monitoring point position sequence of each classification group in turn, and obtain a vector whose dimension is equal to the number of monitoring points sens_num, which is the first check cycle The monitoring point location deployment scheme sens_place[1]; for the second check cycle, select the second data from the monitoring point location sequence of each classification group in turn, and also obtain a vector whose dimension is equal to the number of monitoring points sens_num, This vector is the monitoring point position deployment scheme sens_place[2] of the second check cycle; and so on, the monitoring point position deployment scheme of all check cycles is obtained, which is the monitoring point movement scheme sens_place.
4.根据权利要求1所述的一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于,步骤S4包括以下步骤:4. A method for moving and arranging pressure monitoring points for water supply network hydraulic model water quantity check according to claim 1, wherein step S4 comprises the following steps: S41、将当前校核周期划分为M个时间段,标记为:时段t1、时段t2、…、时段tMS41. Divide the current calibration cycle into M time periods, marked as: period t 1 , period t 2 , . . . , period t M ; S42、设置一个向量Q[t],用于描述所有节点的水量布置;所述向量Q[t]的维数等于模型的节点总数,每个维度的数值分别代表对应节点的水量;S42, set a vector Q[t] for describing the water quantity arrangement of all nodes; the dimension of the vector Q[t] is equal to the total number of nodes of the model, and the value of each dimension represents the water quantity of the corresponding node respectively; S43、对于时段t1,设定Q[t]的初始值Q[t1]为模型总水量的平均值:S43. For the time period t 1 , set the initial value Q[t 1 ] of Q[t] as the average value of the total water volume of the model: Q[t1]=ones(1,n)*Qavg Q[t 1 ]=ones(1,n)*Q avg Qavg=Qtotal/nQ avg =Q total /n 其中:Qtotal为模型总水量(L/s),Qavg为模型节点水量平均值(L/s),ones(1,n)为长度为节点总数n的元素均为1的行向量;Where: Q total is the total water volume of the model (L/s), Q avg is the average water volume of the model nodes (L/s), and ones(1,n) is a row vector whose length is the total number of nodes n and the elements are all 1; S44、假设当前是第k个校核周期,读取其监测点位置部署方案sens_place[k],并设定目标迭代需要消除的压力误差量:S44. Assuming that it is currently the k-th calibration cycle, read the monitoring point position deployment scheme sens_place[k], and set the pressure error amount to be eliminated by the target iteration: dH=Ho[sens]-Hs[sens]dH=H o [sens]-H s [sens] 其中:Ho为压力监测传感器测量得到的压力(m),Hs为每次迭代校正后的压力(m);Where: H o is the pressure (m) measured by the pressure monitoring sensor, and H s is the pressure (m) after each iteration correction; S45、求解水量布置为Q[t1]时的管网模型的雅克比矩阵HQ;S45, solve the Jacobian matrix HQ of the pipe network model when the water quantity is arranged as Q[t 1 ]; S46、求解方程HQ×dQ=dH,得到Q[t1]的修正量dQ;S46, solve the equation HQ×dQ=dH, and obtain the correction amount dQ of Q[t 1 ]; S47、通过公式Q[t1]n+1=Q[t1]n+dQ算出下一次迭代的水量布置Q[t1]n+1S47. Calculate the water quantity arrangement Q[t 1 ] n+1 of the next iteration by using the formula Q[t 1 ] n+1 =Q[t 1 ] n +dQ; S48、当dH小于设定允许的误差阈值时迭代停止,此时得到的结果为时段t1的水量布置Q[t1]的最终结果;S48, the iteration stops when dH is less than the set allowable error threshold, and the result obtained at this time is the final result of the water quantity arrangement Q[t 1 ] in the time period t 1 ; S49、将Q[t1]作为初始值,计算时段t2的水量布置Q[t2];以此类推,重复执行S45至S48,直至计算出所有时段的水量布置Q[t];S49, take Q[t 1 ] as the initial value, calculate the water quantity arrangement Q[t 2 ] of the time period t 2 ; and so on, repeat S45 to S48 until the water quantity arrangement Q[t] of all time periods is calculated; S410、将所有求得的单时段用水量按照时序排列便可得到节点用水量模式;所述节点用水量模式是指管网模型中用水节点的用水量随时间变化的系数。S410 , arranging all the obtained water consumption in a single period in time sequence to obtain a node water consumption pattern; the node water consumption pattern refers to the coefficient of the water consumption of the water consumption nodes in the pipe network model changing with time. 5.根据权利要求3所述的一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于:5. a kind of pressure monitoring point moving arrangement method for water supply pipe network hydraulic model water quantity check according to claim 3, is characterized in that: 步骤S32所述改良隐枚举优化法的具体步骤如下:The specific steps of improving the implicit enumeration optimization method described in step S32 are as follows: S51、设置一个向量sensall_init,为所有监测点的节点索引集合;S51. Set a vector sensall_init, which is the node index set of all monitoring points; S52、将所有的节点随机排列,得到一个入点组Nin(i),并依序选择一个入点;S52. Randomly arrange all nodes to obtain an in-point group N in (i), and select an in-point in sequence; S53、将所有初始解解向量元素随机排列,得到一个出点组Nout(j),让入点依顺序替换出点得到一个新的解sensall_new;S53. Randomly arrange all the initial solution vector elements to obtain an out point group N out (j), and replace the out points with the in points in order to obtain a new solution sensall_new; S54、将原始解sensall_init和新解sensall_new代入步骤S31的目标函数,求解原始解f(sensall_init)和新解f(sensall_new),选取更优解进入下一次迭代;S54. Substitute the original solution sensall_init and the new solution sensall_new into the objective function of step S31, solve the original solution f(sensall_init) and the new solution f(sensall_new), and select a better solution to enter the next iteration; S55、重复执行S52、S53、S54,直到无法产生更优解时终止;最终求得的解即为监测点位置总布置sensall_vector。S55. Repeat S52, S53, and S54 until a better solution cannot be generated, and terminate; the final solution obtained is the sensall_vector of the general arrangement of monitoring point positions. 6.根据权利要求4所述的一种面向供水管网水力模型水量校核的压力监测点移动布置方法,其特征在于:6. a kind of pressure monitoring point moving arrangement method for water supply pipe network hydraulic model water quantity check according to claim 4, is characterized in that: 步骤S44的具体方法如下:The specific method of step S44 is as follows: 记HQ为A,dH为b,dQ为需要求解的未知数x,则采用迭代法求解Ax=b的过程为:Denote HQ as A, dH as b, and dQ as the unknown x to be solved, then the process of solving Ax=b by iterative method is:
Figure FDA0003434701980000051
Figure FDA0003434701980000051
迭代结束后,迭代次数为N,则x的值为:After the iteration is over, the number of iterations is N, then the value of x is:
Figure FDA0003434701980000052
Figure FDA0003434701980000052
其中:sum(A,axis=0)表示为对矩阵A列加和,sum(A,axis=1)表示为对矩阵A行加和,abs(A)表示对矩阵A取绝对值,式中乘除法均为对位相乘除。Among them: sum(A, axis=0) represents the sum of the columns of the matrix A, sum(A, axis=1) represents the sum of the rows of the matrix A, and abs(A) represents the absolute value of the matrix A, where Multiplication and division are both multiplication and division of counterpoints.
CN202111610339.XA 2021-12-27 2021-12-27 Pressure monitoring point moving arrangement method for checking water quantity of water supply network hydraulic model Active CN114429034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111610339.XA CN114429034B (en) 2021-12-27 2021-12-27 Pressure monitoring point moving arrangement method for checking water quantity of water supply network hydraulic model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111610339.XA CN114429034B (en) 2021-12-27 2021-12-27 Pressure monitoring point moving arrangement method for checking water quantity of water supply network hydraulic model

Publications (2)

Publication Number Publication Date
CN114429034A true CN114429034A (en) 2022-05-03
CN114429034B CN114429034B (en) 2024-09-06

Family

ID=81310460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111610339.XA Active CN114429034B (en) 2021-12-27 2021-12-27 Pressure monitoring point moving arrangement method for checking water quantity of water supply network hydraulic model

Country Status (1)

Country Link
CN (1) CN114429034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127671A (en) * 2023-04-17 2023-05-16 四川奥凸环保科技有限公司 Water supply network parameter optimization method, system, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103839190A (en) * 2014-02-19 2014-06-04 清华大学深圳研究生院 Pipe network node flow measuring and dispatching method based on pressure monitoring
CN110986747A (en) * 2019-12-20 2020-04-10 桂林电子科技大学 Landslide displacement combined prediction method and system
CN111639838A (en) * 2020-05-08 2020-09-08 中国地质大学(武汉) Water quality monitoring point layout optimization method suitable for water supply pipe network
US20200331772A1 (en) * 2017-12-20 2020-10-22 Intellitect Water Ltd. A water network monitor, monitoring system and method
CN112182984A (en) * 2020-08-18 2021-01-05 浙江大学 Sewage pipe network real-time simulation method based on water supply Internet of things data assimilation
CN112733443A (en) * 2020-12-31 2021-04-30 北京工业大学 Water supply network model parameter optimization checking method based on virtual monitoring points
CN113139228A (en) * 2021-04-22 2021-07-20 南京智慧岩土工程技术研究院有限公司 Monitoring point arrangement optimization method for large-span foundation pit complex support system structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103839190A (en) * 2014-02-19 2014-06-04 清华大学深圳研究生院 Pipe network node flow measuring and dispatching method based on pressure monitoring
US20200331772A1 (en) * 2017-12-20 2020-10-22 Intellitect Water Ltd. A water network monitor, monitoring system and method
CN110986747A (en) * 2019-12-20 2020-04-10 桂林电子科技大学 Landslide displacement combined prediction method and system
CN111639838A (en) * 2020-05-08 2020-09-08 中国地质大学(武汉) Water quality monitoring point layout optimization method suitable for water supply pipe network
CN112182984A (en) * 2020-08-18 2021-01-05 浙江大学 Sewage pipe network real-time simulation method based on water supply Internet of things data assimilation
CN112733443A (en) * 2020-12-31 2021-04-30 北京工业大学 Water supply network model parameter optimization checking method based on virtual monitoring points
CN113139228A (en) * 2021-04-22 2021-07-20 南京智慧岩土工程技术研究院有限公司 Monitoring point arrangement optimization method for large-span foundation pit complex support system structure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郭效琛;李萌;史晓雨;杜鹏飞;李志一;: "基于在线监测的排水管网事故预警技术研究与应用", 中国给水排水, no. 19, 1 October 2018 (2018-10-01), pages 139 - 143 *
齐秀峰;: "基于量子神经网络拟合法的矿区地表变形监测", 金属矿山, no. 04, 15 April 2016 (2016-04-15), pages 159 - 162 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116127671A (en) * 2023-04-17 2023-05-16 四川奥凸环保科技有限公司 Water supply network parameter optimization method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN114429034B (en) 2024-09-06

Similar Documents

Publication Publication Date Title
CN110108328B (en) Method for acquiring water leakage amount of leakage area of water supply pipe network
CN112733443B (en) Water supply network model parameter optimization checking method based on virtual monitoring points
CN107016622B (en) Inversion method for urban water supply network node water demand containing large user water consumption information
CN112163301B (en) Distributed checking method for hydraulic model of water supply pipe network
CN110851931A (en) An optimal arrangement method of flow monitoring points in urban water supply network
CN102968529B (en) Method for quantifying computed result non-determinacy interval of water supply pipe network model
CN102419827B (en) Radial basis function (RBF) neural network-based boiling heat exchanging prediction method
CN102867090A (en) Parallel genetic algorithm steam pipe system model auto-calibration system based on TBB (threading building block)
CN113312735A (en) DMA partition method for urban water supply pipe network
CN112989535A (en) Water supply network pressure monitoring point optimal layout method based on pipe burst detection benefit
Zheng et al. Digital twin modeling for district heating network based on hydraulic resistance identification and heat load prediction
CN103258235A (en) Water supply network reorganization and expansion optimization method based on improved artificial fish school algorithm
CN116701970A (en) Drainage pipe network monitoring point optimal arrangement method based on double-layer similarity clustering
CN112632733A (en) Arrangement method of newly added flow meters of water supply network for maximizing monitoring information
CN112113146B (en) Synchronous self-adaptive check method for roughness coefficient and node water demand of water supply pipe network pipeline
CN114548680A (en) Method and system for automatically calibrating parameters of urban storm flood management model
CN114429034A (en) Pressure monitoring point moving arrangement method for water supply network hydraulic model water quantity checking
CN103617563A (en) Water supply pipeline non-monitoring node pressure determining method based on ground statistics space analysis theory
CN106600055A (en) Wind speed prediction method the basis of self excitation threshold autoregression model
CN114896891A (en) A steam simulation calculation method based on kernel extreme learning machine error correction
CN103294847B (en) Fuzzy Identification Method of Water Supply Network Model Based on Hydraulic Adjustment
CN114676887A (en) A river water quality prediction method based on graph convolution STG-LSTM
CN102567606B (en) Method for drawing equal-water-pressure surface of water supply pipeline network in real time
CN110569571A (en) Early warning method of urban water supply network pipe burst based on extreme learning machine
CN107480917A (en) A kind of probability load flow calculation method based on quasi-Monte Carlo simulation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant