1. Introduction
The development of water energy systems [
1] has emerged as a response to increasing energy demands and the rapid depletion of traditional energy sources [
2]. For centuries, cities have faced significant challenges in water management [
3]. In this context, Water Distribution Networks (WDNs) play a crucial role in urban infrastructure. A primary challenge lies in optimizing WDNs to achieve an optimal balance between performance and cost [
4].
To effectively optimize WDNs, it is essential to consider various technical factors, including energy constraints, pipe characteristics, water flow rates, and pressure constraints [
5]. Once a WDN has been designed and constructed, it can transport a specified amount of water to consumers while maintaining designated pressure ranges [
6].
Various methods for optimizing WDNs and examining their configurations have been developed: Cassiolato et al. [
4] minimized the cost of looped WDNs by integrating mixed-integer nonlinear programming (MINLP) with a deterministic approach. Their model efficiently determines pressure and velocity values. Sitzenfrei et al. [
7] highlighted the lack of complex network analysis (CNA) in the literature regarding optimal WDNs and demonstrated how CNA can enhance WDN efficiency.
Winkler et al. [
8] addressed pipe failure issues in WDNs using “boosted decision trees”, showing that their model serves as a viable alternative to traditional statistical models. Ines et al. [
9] combined remote sensing with Genetic Algorithm (GA) optimization to explore water management solutions, developing a model that significantly enhanced regional crop productivity. Eusuff and Lansey [
10] optimized WDN design using the Shuffled Frog Leaping Algorithm, resulting in optimal pipe sizes and demonstrating the flexibility of their method for designing pumps or other network components. Li et al. [
2] proposed a multi-objective moth-flame algorithm model for optimizing water resource utilization in multi-reservoir systems, successfully achieving a set of Pareto solutions that balance trade-offs among various components.
Haghighi et al. [
5] combined GA with Integer-Linear Programming (ILP) to optimize WDNs, finding their model computationally efficient. Keedwell and Khu [
11] introduced a hybrid GA for designing WDNs, which provided more economically viable designs compared with non-heuristic approaches. Stefanizzi et al. [
12] identified that WDNs often suffer from water leakages and proposed replacing Pressure Reducing Valves (PRVs) with Pumps as Turbines (PaTs), selecting optimal PaT configurations through their approach. Assad et al. [
13] noted that many WDNs are in a deteriorated state, increasing vulnerability to natural and anthropogenic hazards. They introduced a new metric alongside an optimization framework aimed at enhancing the resilience of WDNs, demonstrating an increase in network resilience of nearly 20%. Creaco et al. [
14] discussed real-time control of WDNs, emphasizing objectives such as service pressure regulation and energy production.
The application of Computational Fluid Dynamics (CFD) is also crucial for optimizing WDNs. In their study, Karpenko et al. [
15] developed a CFD-based approach to analyze and enhance fluid flow characteristics in hydraulic systems, which can be adapted for WDN optimization. By employing numerical simulations grounded in Reynolds-averaged Navier–Stokes equations in three-dimensional space, the authors examined the effects of angular fitting connections on fluid dynamics, revealing complex hydrodynamic phenomena at local resistances. These phenomena are essential for accurately characterizing both linear and local resistances, significantly impacting the overall efficiency of fluid transport systems.
It is also imperative to highlight that machine learning and modern simulation approaches are revolutionizing the optimization of water distribution networks, turning traditional systems into intelligent, adaptive infrastructures. Such technologies are seen as the brains behind the operation, allowing the network to not just function but to think and respond in real time. In this context, Hajgató et al. [
16] implemented deep reinforcement learning (DRL) to control pump operations. Their DRL agent learns optimal pump speeds based on instantaneous nodal pressure data, outperforming conventional methods with over 98% efficiency while doubling the speed. It is akin to having a seasoned operator who anticipates and adjusts to system demands instantly, enhancing both efficiency and responsiveness.
On another front, Hu et al. [
17] tackled the persistent issue of leakage in urban water networks using multiscale neural networks combined with density-based clustering. By reducing complex pipe networks into manageable zones, they significantly improved leakage detection accuracy—by 78% compared with methods like SVM and KNN. This can be thought of as the transformation of a tangled web into organized neighborhoods, making it easier to pinpoint and address leaks promptly, thereby conserving water and reducing losses.
Furthermore, Nie et al. [
18] explored the incorporation of big data and IoT sensors within underwater management systems. Their method utilizes real-time data collection through IoT to proactively monitor water usage and quality, employing a SCADA system for sustainable management. This is like giving the water network a sensory system, allowing it to detect and respond to issues before they escalate, promoting operational safety and sustainability in smart cities.
Despite the advancements in optimizing water distribution networks, there remains a notable gap in existing models that study the performance of WDNs with fixed nodes and inflows—specifically those with constant consumption rates for each node. This study aims to fill this gap by proposing a novel mathematical model tailored to analyze the performance of WDNs characterized by fixed nodes and consumption rates. The model incorporates various parameters, including cost, demand, head losses, node elevations, design pressure, and water velocity, to assess their effects on optimizing these proposed WDNs.
Additionally, this research introduces an optimization model that delves into the complex interplay between pressure and velocity within the network. By scrutinizing these dynamics, the study elucidates pathways to achieving optimal configurations that enhance operational efficacy and economic viability. The insights garnered from this analysis significantly advance the understanding of WDN behavior, offering substantive and practical implications for engineers and planners in the field. Ultimately, this work aims to inform more nuanced design and management strategies for urban water distribution systems, thereby contributing to the development of resilient and efficient infrastructures.
The remaining parts of the paper are as follows. The methodology is described in
Section 2.
Section 3 discusses the results and the conclusions are pointed out in
Section 4.
2. Methodology
WDNs have been widely studied, specifically in recent times due to their complex infrastructure [
12]. Their design can be formulated as a least-cost optimization with a selection of pipe sizes as the decision parameters [
8]. The cost of a WDN is related to the pipe parameters, which include lengths and diameters. Therefore, the cost optimization model of a WDN can be defined as follows [
4]:
where
is the overall cost of the WDN, and
is the cost of pipe
with the corresponding diameter
and length
.
is the number of pipes in a proposed WDN.
The difference between the inlet node water flow rate (
) and outlet node water flow rate (
) is equal to the node demand (
) [
4]:
By considering the measurements obtained from water meters, the nodal demand can also be expressed as follows:
where
is the demand at the node
and time
,
is the demand multiplier, and
is the base demand [
19]. The multiplier takes into account any government policies regarding the investments on a larger macroeconomic scale.
Figure 1 shows the average hourly profile of residential consumers regarding the water demand according to the multiplier estimates [
19].
Figure 2 demonstrates the average daily water consumption profile in the case of different cities in the United States together with the multiplier estimates according to the statistics obtained from the American Water Works Association (AWWA) [
20].
The head losses in pipelines can be estimated according to the Hazen–Williams equation [
19]:
where
is head losses (meters of water column),
is the pipe length (meters),
is the diameter (meters),
is the flow rate in the pipe (
), and
is the pipeline roughness coefficient, which is dimensionless [
20]. In this study, according to the previous results, the
is assumed to be 130 [
4].
In addition, based on one-dimensional (1D) hydraulic models, a methodology for CFD-based pipeline network optimization in water distribution systems is developed to approximate the complex behavior of fluid flow in pipes. Equation (4), a widely adopted approach, is used to compute frictional head losses along each pipe segment. The Hazen–Williams equation is an empirical formula, which is particularly useful in design practices because it offers a balance between accuracy and computational simplicity when analyzing water distribution networks [
20]. It solves the complex physics of turbulent flow into a form that is computationally efficient for design purposes.
In optimizing a network, candidate pipe diameters are evaluated by calculating the associated friction losses and then comparing these results against performance criteria such as minimum acceptable head loss and construction cost. The optimization is typically performed by sweeping through a range of potential diameters and selecting the design that meets hydraulic constraints while minimizing cost. This deterministic approach has been validated in numerous studies on network optimization, where engineers use these methods to achieve efficient and cost-effective designs [
4].
The Reynolds number for each candidate diameter can be calculated according to the following equation:
where
is density,
is velocity,
is length,
is bulk viscosity, and
is kinematic viscosity. The flow regime is determined by comparing
Re with standard thresholds (Re < 2000: Laminar; 2000 ≤ Re < 4000: Transitional; Re ≥ 4000: Turbulent) [
21].
The calculation of local resistance in water distribution networks consists of quantifying the energy losses at specific components, such as fittings and valves, which are not captured by friction loss alone. Therefore, the following equations are used:
where the velocity
is determined by the flow rate Q, and the cross-sectional area of the pipe, and K is the loss coefficient for each type of fitting [
22].
The water speed can be estimated according to the following equation [
4]:
The pressure level in WDNs should reach a point that meets users’ demand requirements. When it falls below a considered limit, which may be a function of building height, the WDN cannot supply all users with the requested flows. As such, at nodes with low-pressure levels, the distributed flow becomes lower than the demand. On the other hand, high pressure can lead to negative impacts, such as an increase in leakage and pipe bursts and a reduction in infrastructure life. Hence, managing the pressure to maintain it close to a desired pressure threshold is essential.
The pressure at each node (
) can be calculated based on the following formula by considering the constraint in Equation (7) [
4]:
where
is the elevation at the reservoir and
is the elevation at the node,
. The minimum required pressure at all demand nodes is 25 m [
4].
where
is the pressure head at node
,
is the minimum necessary pressure, and
is the number of nodes.
Figure 3,
Figure 4 and
Figure 5 depict the proposed system’s WDN layouts. Elevation at reservoirs is assumed to be 54 m [
4]. As can be seen, the number of nodes and the overall inflow in all three structures are equal. There are fifteen pipes in the first and second WDNs and eighteen in the third WDN. The values shown in each diagram indicate water flows in m
3/h unit.
The layout in
Figure 3 features a single source distributing water through a branching network to 11 nodes. The design is simple and likely has lower installation costs than the other layouts. However, it may face challenges with pressure imbalances, especially at peripheral nodes. As demands vary across nodes, those farther from the source might receive insufficient flow during peak usage. Therefore, this layout offers less flexibility in handling sudden demand changes but could be suitable for areas with predictable usage patterns.
In the configuration shown in
Figure 4, the 11 nodes are interconnected through closed loops, enabling bidirectional flow. This design excels at balancing pressure across nodes, even when faced with fluctuating demands. The looped structure provides redundancy, ensuring uninterrupted supply if a single pipe fails. While this layout offers superior reliability and adaptability to varying nodal demands, it comes with higher construction and maintenance costs due to the increased total pipe length. This design is particularly beneficial for areas with diverse or unpredictable water usage patterns.
The layout shown in
Figure 5 combines elements of both radial and looped networks, creating a balanced approach to water distribution. It likely features localized loops in high-demand zones and radial branches in areas with lower or more stable demand. This hybrid design optimizes the trade-off between cost and reliability by strategically placing redundancies where they are most needed. It offers more flexibility than the radial layout in handling demand variations while being potentially more cost-effective than a fully looped system. However, it requires careful hydraulic modeling to ensure that critical pipes are not overloaded during peak demand periods.
The fixed total inflow (i.e., 1.15 m3/h) and nodes (i.e., 11 nodes) across all layouts provide several advantages for water distribution network design and analysis. This standardization allows designers to test how different layouts handle variable nodal demands while maintaining the same total supply, enabling a direct comparison of system performance under diverse usage scenarios. With a consistent node count, engineers can quantify each WDN’s resilience to pipe failures or contamination events, particularly highlighting the inherent risk mitigation of looped networks through flow rerouting. Additionally, this fixed framework offers insights into cost efficiency across different designs. For instance, radial systems may be more suitable for budget-constrained projects with predictable demand patterns, while hybrid systems present scalable solutions for growing urban areas with evolving water needs. Overall, this approach provides a controlled environment for evaluating how structural diversity in WDNs addresses real-world challenges such as demand variability and infrastructure resilience.
Table 1 shows the classification of different pipes that can be used for WDNs [
23]. Due to the specific features of PEX pipes (e.g., low cost, the necessary resistance, and stability), they are considered for the design of WDNs in the current study.
2.1. Flow Distribution
In this study, a heuristic approach was adopted to approximate the progressive reduction in flow along the network. Starting with the full inflow
at the source, the first pipe (with pipe ID 1) is assumed to carry the entire inflow, i.e., no reduction is applied
. For subsequent pipes, we assume a linear reduction in flow given by:
where
represents the assumed fractional reduction in the flow per successive pipe. A higher coefficient means that with each additional pipe, a larger fraction of the flow is removed or diverted (simulating higher losses or greater demand along the branch). Conversely, a lower coefficient indicates that the reduction in flow from one pipe to the next is less severe, so more of the original flow is maintained as the water is distributed through the network.
For WDN 1 (the centralized radial network) and WDN 2 (the looped network), the coefficient α is assumed to be 0.03, which implies that each additional pipe in the sequence receives 3% less of the original inflow than its predecessor, reflecting the expected cumulative effect of distributed demand and branch flow losses. For the hybrid network (WDN 3), the coefficient is reduced to 0.02:
WDN 3 is designed as a hybrid network, combining elements of both radial and looped configurations. Unlike a purely radial network—where water flows from a single source through a sequence of pipes (resulting in significant cumulative flow reductions)—or a fully looped network, the hybrid design includes localized loops in high-demand zones. These loops provide alternate paths for water to reach peripheral nodes, effectively “preserving” higher flow rates downstream. In this scenario, the flow reduction per pipe is less drastic because the loops help maintain pressure and supply. Thus, when formulating the heuristic model for WDN 3, a lower coefficient (0.02) is selected to reflect that each pipe loses a smaller percentage of the total inflow compared with the other configurations.
In practice, determining the exact value of the coefficient would involve calibrating the model against detailed hydraulic measurements. The chosen values (0.03 for the radial/looped systems and 0.02 for the hybrid system) are approximations that capture the qualitative differences in network design: networks with additional supply paths (localized loops) can maintain higher flow downstream, justifying a lower reduction factor. This approach is common in preliminary network analyses where a balance is struck to capture the dominant trends in flow distributions.
2.2. Implementation of a CRA-Based Approach
The Coral Reef Algorithm (CRA) is a metaheuristic algorithm inspired by the natural process of coral reef formation, introduced by Salcedo-Sanz et al. in 2014 [
24]. It is designed to solve complex optimization problems, such as minimizing costs or maximizing the technical efficiency, by mimicking coral reef growth, reproduction, and competition processes. The algorithm begins by initializing a population of random solutions, each represented as a “coral” in the reef, corresponding to potential configurations.
In this study, each solution’s fitness is evaluated by considering the cost as the objective function, formulated as:
where D is the network,
is the cost per unit length,
is the length of the
-th pipe, and
is the number of pipes.
The process then iteratively selects the top-performing solutions (e.g., the top half by fitness), mutates them to generate new configurations, and updates the population by combining parents and offspring. This cycle repeats until the maximum iterations are reached, making it adaptable to WDNs by tailoring the fitness function and constraints to specific needs, including flow rates and pipe diameters.
Upon completing the iterations, the CRA algorithm retrieves the best solution—the configuration with the lowest cost—and refines it using linear programming to enforce pressure constraints, ensuring hydraulic feasibility. The final cost is calculated, and the output provides optimized pipe lengths and costs, delivering a practical solution for network design. The flowchart in
Figure 6 illustrates the developed CRA-based approach to optimize the proposed WDNs, systematically detailing the process from initialization to final results.
4. Conclusions
WDNs are complicated structures consisting of various linked nodes and pipes, which transport water of suitable quality from sources to supply customers in a service area. WDNs, which play a substantial role in water supply systems, are considered as one of the major infrastructure assets of industrial society.
The optimization of WDNs supports the decision-making process by determining the optimal trade-off between costs and performance. A major challenge in WDNs is the network design. While the complex nature of WDNs has already been explored with complex network analysis (CNA), the literature is still lacking a CNA of optimal water networks when there are different WDN structures with fixed nodes and inflows.
In this study, an original approach for the optimum design of WDNs is presented. The following results are derived from the analysis:
Variations of head losses based on the pipe diameters showed that a 2-degree polynomial equation with R squared being 0.9638 can describe the trend well.
Based on a linear trend, the design inflows vary from a minimum of 0.0212 to a maximum of 0.205 m3/s in the case of a pipe diameter of 0.3 m, while they vary from a minimum of 0.0589 to a maximum of 0.5694 m3/s in the case of a pipe diameter of 0.5 m.
The design pressures according to the water velocities and pipe diameters were estimated. For this purpose, one of the nodes of the WDN was selected and examined. A pressure-velocity model was considered. It was shown that two regressions can describe the model with high accuracy: exponential and polynomial regression. Polynomial regression outperformed the exponential regression, while in the exponential regression, as the pipe diameter increased, the error calculated for each model decreased.
The findings reveal that the cost of WDNs varies significantly based on their configuration, with a single-reservoir, non-looped system demonstrating the lowest cost at USD 26,892, while a two-reservoir, looped system incurs the highest cost at USD 30,861. The analysis of head losses and design inflows indicates that larger pipe diameters contribute to reduced head losses, thereby enhancing the overall efficiency of the network. Furthermore, the study establishes that the design pressures are closely linked to water velocities and pipe diameters, with polynomial regression models providing high accuracy in predicting these relationships.
The analysis and optimization approach described in this study provides a robust framework for real-world water distribution network design. By integrating fundamental hydraulic equations—such as the Hazen–Williams equation for friction losses and additional formulations for local losses and Reynolds number calculation—with heuristic flow distribution models, engineers can quickly evaluate network performance under different configurations. This method allows for a preliminary assessment of critical factors such as pressure losses, cost efficiency, and flow regimes. The developed model facilitates choosing the best combinations of pipes, nodes, and pumps by taking into account a number of design constraints, including pressure, pipe diameters, head losses, and velocity. This helps to create durable and effective urban water distribution systems. For practical applications, engineers should calibrate the heuristic coefficients using field measurements or detailed simulations to tailor the model to the specific characteristics of their systems. It is recommended that practitioners use these models to guide initial design choices, optimize pipe sizing and layout, and identify potential areas for system improvement before committing to more resource-intensive detailed CFD analyses for critical network segments.
The study’s limitations include its examination of dynamic real-world scenarios, such as the consequences of fluctuating water demand and unforeseen failures. The study’s characteristics of fixed nodes and consumption are another aspect; as a result, other possible intricate features ought to be investigated. To further refine WDN optimization techniques and increase their adaptability, future research should also concentrate on combining real-time data as well as existing water systems with sophisticated forecasting methods.