Constraint-aware PI control of residual chlorine in a drinking water distribution network: Data-driven modeling, robustness analysis, and direct EPANET validation
Maintaining a disinfectant residual throughout a drinking water distribution network is a dynamic control problem because transport and reaction processes produce location-dependent gains and delays. This study developed a reproducible, constraint-aware workflow linking independently validated node-specific models with proportional-integral (PI) control, with the contribution lying in the systematic integration and validation framework rather than in a new PI architecture. Two independent multilevel EPANET experiments supplied seven days for identification and five days for external validation at 60 s sampling. For each of 22 nodes, 1,080 autoregressive models with exogenous input were screened using identification data only and frozen before external evaluation. PI-SIMC was compared with setpoint-weighted and Smith-predictor variants under saturation, actuation delay, and anti-windup. The primary robustness analysis comprised 13,200 paired Monte Carlo simulations; a further 4,400 matched-tuning runs isolated the effect of the Smith predictor. The 22 models achieved median external fit of 88.18% and RMSE of 0.0541 mg/L. PI-SIMC achieved median IAE of 0.682 mg·h/L, RMSE of 0.060 mg/L, and 85.4% time within ±0.05 mg/L. Setpoint weighting reduced nominal overshoot from 5.89% to 1.43% for a median IAE cost of 1.6%. With identical PI2 tuning, Smith prediction lowered median IAE at 15 of 22 nodes but increased it at seven, confirming a node-dependent effect. No-retuning direct EPANET validation was expanded to PI-SIMC at all 22 nodes: every case was finite, nondivergent, and unsaturated, with median IAE of 0.203 mg·h/L and median tracking-band time of 98.4%. One-at-a-time variations of ±20% in bulk and wall decay coefficients and ±10% in global demand left all cases finite and unsaturated; the maximum absolute node-level IAE change was 16.6%. These results support PI-SIMC as a transparent common design and direct network-resolved validation as a practical gate for node-specific extensions.
Authors
- Carlos Robles-Algarín (ORCID: https://orcid.org/0000-0002-5879-5243)
- Carlos Martínez (ORCID: https://orcid.org/0000-0003-2831-547X)
- Andersson Duarte Cárdenas
Institutions
- Universidad del Magdalena (CO)
Publication Details
- Journal
- PLoS ONE
- Published
- 2026-11-23
- DOI
- https://doi.org/10.1371/journal.pone.0359379
- Primary Topic
- Water Systems and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Universidad del Magdalena