Water-network decisions share one hydraulic gradient, and it can now be computed exactly
Tianwei Mu, Yue Wang, Mingzhe Yuan, Wenhong Wang, Qing Luo, Min Xiao, Jun Li, Hui Yang, Manhong Huang
Abstract
Calibration, leak localisation and sensor placement on water distribution networks (WDNs) are decisions about continuous parameters, yet the hydraulic engine that defines the physics returns a solution and no derivatives, so practice falls back on derivative-free search or on surrogates whose error the answer inherits. We make the global gradient algorithm itself exactly differentiable: the forward pass reproduces the reference engine's discrete devices, status switching and low-flow linearisation included, and the backward pass solves the implicit adjoint by reusing the forward pass's terminal factorisation, so one extra sparse solve returns every parameter's gradient at once, batched over scenarios on one graphics processor. Across 52 public, synthetic and operational networks and 8,140 simulation frames, every network meets the acceptance criterion, the largest head deviation from EPANET 2.2 is 1.137e-13 ft and 25 agree exactly. One adjoint solve replaces the 906 simulations a finite-difference roughness Jacobian costs on the 905-pipe L-TOWN benchmark, and a leak-inversion training loop runs at 463-470 ms per optimiser step for 256 scenarios, 191 times the prior pipeline. Gradient calibration reaches its endpoint within a median 595 model calls, where the strongest of five tuned metaheuristics needs 8,060 to match it on the training loss and two never do within 20,000. On a 554-link operating network, one adjoint pass audits, pipe by pipe, which roughness parameters the installed sensors can constrain and which sensors to add, on the model the utility already operates.
Create a lesson
Metadata
- Comments
- 56 pages including Supplementary Information; 6 figures, 2 tables, 1 supplementary figure, 16 supplementary tables. Code and data: https://github.com/mutianwei521/wdsgpu
Related papers
GreenDirector: carbon- and water-aware workload placement for sustainable computing
Shared title terminologycs.DCJaime Iglesias Blanco, Ignacio Heredia, María Castrillo et al.
HPC Navigator: A Researcher's App for Using Shared GPU Clusters with AI Agents
Shared title terminologycs.DCSebastian Haan
Copula: Sound Sharing of Stochastic Nodes Across Runs of Agentic Systems
Shared title terminologycs.DCBowen Sun, Haizhong Zheng, Beidi Chen et al.
SplitVerify: CPU-GPU Speculative Verification for Exact Long-Context Decoding
Shared title terminologycs.DCAswin Raj R
DMG-MIS: A Multi-GPU Algorithm for Maximal Independent Set Computation on Dynamic Graphs
Shared title terminologycs.DCLoganath Murugan, Asaduddin Ahmed, Unnikrishnan Cheramangalath et al.
RTWM: Real-Trace World Models for Multi-UAV Edge Computing Networks
Shared title terminologycs.DCShengjie Zhong, Zhongliang Zhao, Jingxuan Chen et al.