1. Introduction
Hydraulic transients (water hammer) result from abrupt changes in flow conditions, such as valve closures or pump shutdowns, and can generate pressure surges that threaten the safety and reliability of pressurized water systems [
1]. Since the foundational distributed-parameter model by Wood [
2], transient flow modeling has advanced through wave-based and characteristic methods, with modern implementations available in tools such as TSNet [
3,
4,
5,
6]. When not adequately controlled, transients are commonly mitigated using devices such as air vessels, surge tanks, or relief valves, which are often designed using heuristic or single-objective approaches that overlook the trade-off between hydraulic protection and economic efficiency [
7,
8]. This trade-off naturally defines a multi-objective optimization problem.
Several multi-objective evolutionary algorithms have been proposed for engineering optimization problems, including SPEA-2, MOEA/D, NSGA-III, and multi-objective particle swarm optimization (MOPSO). Among these, NSGA-II is one of the most widely adopted due to its computational efficiency, fast non-dominated sorting, and effective diversity preservation using crowding distance [
9,
10]. Unlike weighted-sum or ε-constraint methods, NSGA-II does not require predefined objective weights and is well suited for capturing the full Pareto front in problems with conflicting objectives, with successful applications reported in hydraulic system optimization [
10].
Despite these advances, most existing studies simplify cost formulations or focus on single surge protection devices, and few integrate detailed wave-based transient simulation with multi-objective optimization to jointly address hydraulic reliability and economic efficiency. The interaction between multiple protective elements within a unified optimization framework therefore remains insufficiently explored.
To address these gaps, the present study proposes an integrated framework that couples Don Wood’s Wave Plan Method for transient simulation with the NSGA-II algorithm for multi-objective optimization. The framework seeks the optimal type, configuration, and operational parameters of surge protection devices that minimize total installation cost while maximizing hydraulic reliability. A penalty-based performance index quantifies deviations in pressure heads from allowable limits, thereby linking the transient behavior of the system directly to the optimization objectives. Through successive evolutionary generations, the NSGA-II algorithm produces a Pareto front that reveals the trade-off between economic investment and surge mitigation effectiveness.
This study contributes to the growing field of intelligent hydraulic design by providing a unified methodology for analyzing and optimizing water hammer protection, where all surge protection devices are modeled and optimized simultaneously, allowing the transient solver to capture their coupled hydraulic response during pressure wave propagation.” The approach enhances the understanding of cost–reliability relationships in transient control and offers a decision-support tool for engineers designing safer and more efficient water distribution and transmission systems.
2. Literature Review
The study of water hammer, the rapid fluctuation in pressure resulting from sudden changes in fluid velocity, has been a central topic in hydraulic engineering for more than a century. Early analytical treatments were confined to simplified geometries and boundary conditions, but the advent of digital computation revolutionized transient flow analysis. A seminal contribution was made by Wood [
2], who introduced a digital distributed-parameter model that numerically solved the governing continuity and momentum equations for unsteady flow in pipelines. This pioneering work established the computational foundation for modern transient analysis and provided the groundwork for the simulation tools used today.
Among the most influential numerical formulations that emerged from this foundation is the Method of Characteristics (MOC) [
3]. The MOC transforms the governing partial differential equations into ordinary differential equations along characteristic lines, enabling the accurate propagation of pressure and velocity waves through both time and space. Owing to its physical transparency and numerical stability, the MOC has become the benchmark for transient flow analysis in both academic research and practical engineering applications. Nevertheless, when applied to large-scale systems or optimization-driven studies, the MOC can become computationally intensive because each simulation requires numerous time steps and iterative boundary updates. To overcome these computational challenges, Don J. Wood later developed the Wave Plan Method (WPM) [
2], an efficient time-domain algorithm that models wave reflections and transmissions without the full characteristic-line integration required by the MOC. The WPM preserves the physical interpretation of wave propagation while simplifying numerical implementation, making it particularly suitable for iterative or optimization-based applications. Subsequent developments in transient modeling further expanded its capabilities, incorporating phenomena such as viscoelastic pipe-wall behavior [
3], vapor cavity collapse [
4], and wave-tracking algorithms [
1], which enhance both numerical stability and predictive accuracy under severe transient conditions.
In recent years, the field has also benefited from the introduction of open-source computational frameworks. The TSNet package [
5,
6] provides a flexible Python-based environment for transient flow simulation in water distribution networks. This framework facilitates integration with optimization and control algorithms, encouraging reproducibility and collaboration across research institutions. The shift toward open and extensible modeling environments has accelerated innovation in transient analysis and network optimization.
Parallel to advances in transient modeling, significant progress has been made in surge protection and transient control. In engineering practice, devices such as air vessels, surge tanks, and pressure relief valves are commonly employed to mitigate pressure surges. Each device operates according to distinct principles: air vessels and closed surge tanks absorb excess energy through the compressibility of trapped air, while relief valves dissipate energy by releasing flow when system pressure exceeds a specified threshold. Early design methodologies for these devices were based primarily on empirical correlations or single-objective optimization criteria focused on minimizing peak pressure. Although practical, these approaches often overlooked the essential trade-off between hydraulic safety and economic feasibility. To address this limitation, researchers began incorporating optimization algorithms into transient protection design, using the impulse response [
10] method in conjunction with a Genetic Algorithm (GA) to optimize surge tank dimensions for pressure attenuation. This approach was extended [
10] to pump–reservoir systems, optimizing surge tank volume and throttle characteristics to reduce pressure extremes. These studies demonstrated the capacity of evolutionary algorithms to handle nonlinear, multi-parameter relationships inherent in surge protection problems. Building on these efforts, Lyu et al. [
7] developed a combined protection strategy that optimized air vessel volume while considering both system performance and economic cost under multiple transient scenarios. Moreover, Zeidan and Ostfeld [
8] explored the use of transient pressures for pipeline maintenance, illustrating the expanding applications of transient analysis beyond protective measures alone. Despite these advancements, most previous studies have employed single-objective formulations, targeting either hydraulic performance or cost minimization rather than addressing both simultaneously. In real-world engineering, enhancing system reliability typically demands larger or more responsive protective devices, which inevitably increases capital and maintenance expenditures. This inherent conflict defines a multi-objective optimization (MOO) problem that requires specialized algorithms to balance competing objectives.
The Non-Dominated Sorting Genetic Algorithm II (NSGA-II) [
9] has emerged as one of the most effective tools for addressing such problems. NSGA-II employs an elitist selection mechanism and a crowding-distance metric to maintain diversity among non-dominated solutions, enabling it to approximate a well-distributed Pareto front that captures the full spectrum of trade-offs between objectives. The algorithm has been successfully applied in diverse fields, from financial portfolio management [
9,
11] to hydraulic and water system design [
4,
10]. When coupled with a transient solver such as the WPM or MOC, NSGA-II allows engineers to evaluate and optimize potential configurations of surge protection devices in terms of both hydraulic reliability and economic efficiency, ultimately yielding a set of Pareto-optimal design alternatives.
Nevertheless, important challenges remain. Many existing studies simplify cost formulations, restrict optimization to a single type of protective device, or disregard the influence of device location and network topology. These limitations highlight the need for a comprehensive framework that integrates Don Wood’s Wave Plan Method with NSGA-II to optimize the selection, configuration, and sizing of multiple surge protection devices simultaneously. Such an integrated approach enables realistic assessment of cost–reliability relationships and provides a robust, data-driven foundation for designing safer and more efficient water distribution and transmission systems under transient conditions.
3. Methodology
This study combines a detailed transient flow simulation using the WPM [
2] with a multi-objective optimization framework based on the Non-Dominated Sorting Genetic Algorithm II (NSGA-II) [
9]. The goal is to identify the optimal configuration and placement of surge protection devices that minimize system cost while maximizing hydraulic reliability.
3.1. Wave Plan Method
The WPM [
2] is a numerical technique used to simulate and analyze hydraulic transients in pressurized pipe systems. The method was originally developed by Wood et al. [
2] at the NASA Lewis Research Center to represent unsteady flow conditions in liquid-filled conduits. It is based on the concept of pressure wave propagation, which describes how rapid changes in velocity or boundary conditions generate pressure surges that travel along the pipeline at the wave speed of the fluid. In typical water systems, these pressure waves move at velocities ranging from 400 m/s in polymeric pipes to approximately 1000 m/s in metallic pipes, depending on the pipe material and wall elasticity [
8]. Each wave carries information about changes in pressure and flow, and when it encounters a discontinuity—such as a valve, junction, reservoir, or change in pipe diameter—it is partially reflected and partially transmitted. The superposition of all these reflected and transmitted waves defines the complete transient response of the system.
The WPM discretizes the pipeline into a series of short segments and tracks the propagation of waves at discrete time intervals. Each incremental disturbance in discharge or head is considered as an independent “wave plan,” traveling a distance during the time step . The total head and discharge at any node and time are obtained by summing the effects of all incident waves reaching that point.
The relationship between the change in pressure head (
) and the change in velocity (
) is given by Equation (1), also known as the Joukowsky equation:
where
is the wave speed, and
is the gravitational acceleration. This fundamental equation forms the basis of the WPM, linking the hydraulic response directly to the velocity disturbance that initiated it.
The wave speed
is defined as follows:
where
is the bulk modulus of water,
is the fluid density,
is the Young’s modulus of the pipe wall,
is the pipe diameter, and
is the wall thickness. This expression accounts for both the elastic deformation of the pipe wall and the compressibility of water, which together determine the rate at which pressure information travels through the conduit.
At each computational step, the method determines the head and discharge at every node by considering the incoming and outgoing waves from adjacent segments. Reflections and transmissions at boundaries are calculated according to the impedance of each element, allowing the method to handle multiple branches, reservoirs, valves, and surge devices within a unified framework.
At each time step, the propagation distance of a wave is defined as follows:
where
is the segment length and
is the computation time step.
This relation ensures numerical stability and physical consistency between spatial and temporal discretization.
The total hydraulic state at each node is determined from the combination of forward and backward traveling waves, expressed as characteristic variables:
where
is the characteristic constant,
is the piezometric head (m), and
is the discharge (m
3/s).
At the end of each time step, the new head and discharge are obtained by superposition of the incoming waves from the two adjacent sections:
This formulation allows for an explicit, time-marching solution without requiring global matrix inversion, which makes the Wave Plan Method both efficient and robust for transient flow modeling [
4].
When a wave encounters a discontinuity—such as a change in diameter, a junction, or a surge protection device—it is partially reflected and transmitted. The magnitude of reflection
and transmission
coefficients depends on the impedance ratio between adjacent sections:
where
is the hydraulic impedance.
This enables the WPM to simulate complex topologies and boundary interactions within a unified wave-based framework.
3.2. Device Modeling
Surge protection devices play a crucial role in controlling the magnitude and duration of hydraulic transients by either absorbing, storing, or dissipating excess hydraulic energy, and they are modeled as localized hydraulic boundary conditions with parameter-dependent pressure–discharge relationships, allowing their dynamic interaction with pressure wave propagation to be explicitly captured.
In the present work, three primary protection types are represented—relief valves, air vessels, and surge tanks—each formulated through distinct boundary condition equations within the WPM framework.
3.2.1. Relief Valve
A pressure relief valve provides rapid protection against overpressures by automatically opening when the local piezometric head
exceeds a predefined set head
. When activated, it releases water to the atmosphere, thereby converting hydraulic energy into kinetic energy and reducing the magnitude of reflected waves. The governing discharge relation is expressed as follows:
where
is the discharge coefficient and
the valve orifice area.
This nonlinear boundary is solved iteratively within the WPM time-marching scheme.
The optimal relief valve calibration can limit surge peaks by 40–60% in pumping systems [
10,
11]. Combining air-inlet valves with relief valves yields superior damping during both over- and under-pressure phases. In large pumping mains, it was confirmed through KY PIPE simulations that relief valves are particularly effective when positioned near pumps or control valves, acting as the first line of defense against abrupt stoppages [
4].
3.2.2. Air Vessel
An air vessel functions as an elastic energy reservoir that counters both over- and under-pressure by allowing water inflow and outflow to compress or expand a trapped air volume [
7].
Its behavior follows the polytropic gas law:
where
is the instantaneous air pressure,
the air volume, and
(typically 1.2) the polytropic exponent describing air compression.
Or, in terms of hydraulic head,
where
and
denote the equilibrium head and volume, respectively.
≈ 1.2 is the polytropic exponent, the instantaneous air volume, and and denote the equilibrium head and volume, respectively.
The continuity relation between the vessel and the pipeline is as follows:
where
denotes the instantaneous inflow (positive into the vessel).
When the pipeline pressure rises, water enters the vessel and compresses the air; when pressure drops, the air expands, pushing water back into the system [
12,
13,
14].
This bi-directional energy exchange smooths the transient envelope and minimizes cavitation risk. Optimizing vessel volume can reduce maximum pressures by up to 30% with moderate cost increase [
7], while other studies demonstrated that pairing air vessels with relief valves provides the most stable performance under pump-trip conditions [
4].
3.2.3. Surge Tanks
A surge tank is a hydraulic control structure that provides a local storage buffer, allowing mass exchange between the pipeline and an auxiliary chamber to moderate transient pressures. Depending on its configuration, it can be open—with a free water surface exposed to the atmosphere—or closed (also called hydropneumatics or bladder type), where an enclosed air cushion provides elastic compression. Although both types serve to attenuate pressure surges, their physical behavior and mathematical representation differ significantly.
Open Surge Tanks
In an open surge tank, the air above the free surface remains at constant atmospheric pressure, so the tank head
depends only on the elevation of the water level inside the tank
.
where
is the tank elevation.
The governing relation is expressed by the following continuity equation:
And the flow exchange with the pipe is given by the following energy equation:
where
denotes the discharge between the tank and the pipe,
is a throttling coefficient that represents the local head loss in the connecting conduit,
is the effective cross-sectional area of the tank connection,
is the gravitational acceleration,
is the instantaneous water level (hydraulic head) in the surge tank, and
is the corresponding head in the adjacent pipeline.
The function determines the direction of flow: it takes the value +1 when , indicating flow from the tank to the pipeline; −1 when , indicating inflow from the pipeline to the tank; and 0 when both heads are equal.
This formulation ensures that the discharge is always directed from the higher-head element toward the lower-head element, while the magnitude of the flow is proportional to the square root of the head difference.
Consequently, Equation (13) enables the Wave Plan Method to simulate both filling and emptying of the surge tank continuously during each time step, maintaining consistent energy balance and correct wave reflection behavior throughout the transient event.
Closed Surge Tanks
A closed surge tank, by contrast, contains a confined air pocket above the water column.
The trapped air compresses and expands as water flows in or out, producing an elastic restoring force that dampens pressure fluctuations.
This behavior is governed by the polytropic gas law in Equation (8).
The rate of change in air volume is governed by the continuity relation shown in Equation (10).
Closed tanks respond more rapidly than open tanks to sudden pressure rises, making them well suited for high-pressure systems or short transmission lines where wave reflections occur quickly. However, because their response depends on air compressibility, proper selection of precharge pressure and air-to-water ratio is critical; otherwise, the system may experience secondary surges or air entrainment [
15,
16].
3.3. Simulation–Optimization Framework
The integrated simulation–optimization framework couples the WPM transient solver with the Non-Dominated Sorting Genetic Algorithm II (NSGA-II) to search for optimal surge-control configurations. Each optimization iteration executes a full transient simulation using the WPM to evaluate the hydraulic response of the network for a candidate set of decision variables. The resulting maximum and minimum pressures along the pipeline are analyzed to compute the objective functions representing hydraulic reliability and economic cost. This closed-loop procedure continues until NSGA-II converges to a well-distributed Pareto front of non-dominated solutions.
NSGA-II Optimization
The NSGA-II algorithm [
17] is a population-based evolutionary approach designed to approximate the Pareto-optimal set for multi-objective problems. The procedure begins with an initial population of randomly generated design vectors. Each vector encodes the structural and operational characteristics of the surge protection devices, such as vessel volume, valve diameter, and tank elevation, which are passed to the WPM transient simulator.
At every generation, individuals are evaluated and ranked using non-dominated sorting. The first front contains solutions that are not dominated by any other in the population, meaning no other solution is superior in all objectives. Diversity along the Pareto front is preserved through the crowding-distance metric, which favors well-spaced solutions. Recombination and mutation operators are then applied to produce offspring that explore the design space more broadly. The combined parent and offspring populations are re-sorted, and the top N individuals are retained for the next generation, ensuring elitism and convergence toward an optimal front.
Figure 1 and
Figure 2 below are a conceptual flowchart of this proposed simulation–optimization framework.
3.4. The Multi-Objective Function
We want to minimize two objectives: total installation cost of surge protection devices and a hydraulic penalty due to pressure violations. So the problem is described in Equation (14):
Let x be the decision vector:
The definition of each variable is summarized in
Table 1. These variables describe the activation state and physical/operational characteristics of all surge protection devices considered in the optimization framework.
3.4.1. Objective 1—Total Installation Cost
Each device contributes a cost only if it is activated:
The device costs are modeled as size-dependent functions, where each cost scales with the corresponding storage or structural volume (and with nominal diameter in the case of the relief valve). Let
,
,
, and
denote the unit cost coefficients; the cost laws are written as follows:
where
and
are the air vessel and bladder tank volumes,
is the effective construction volume of the open surge tank, and
is the relief valve diameter. The coefficients
,
,
, and
were obtained from the Dekel website (
https://www.dekel.co.il, accessed on 15 December 2025) and expressed in NIS, but can be easily updated to reflect local market conditions without changing the optimization framework.
3.4.2. Objective 2—Hydraulic Penalty Function
The hydraulic penalty quantifies deviations from safe pressure limits during the full transient event simulated by the Wave Plan Method.
For node
at time step
,
The total penalty is as follows:
where
is the pressure head value at each time step which comes from the WPM transient simulation,
are allowable head limits,
are weighting coefficients, and
is the simulation time step.
The final multi-objective function is described in Equation (14).
3.5. Constraints
The optimization problem is subject to a set of hydraulic, physical, and operational constraints that ensure feasibility of both the surge protection devices and the transient hydraulic response computed by the Wave Plan Method. These constraints are classified into three categories: (i) hydraulic safety constraints, (ii) physical bounds on decision variables, and (iii) operational and logical constraints related to device behavior.
3.5.1. Hydraulic Safety Constraints
For every node
and every time step
in the WPM transient simulation, the instantaneous piezometric head must satisfy
where
is the minimum allowable head (to prevent cavitation, vapor cavity formation, and column separation) and
is the maximum allowable head (to prevent pipe rupture and overpressure damage).
Although violations are penalized through the hydraulic penalty function, the optimization must still satisfy global feasibility by keeping the system within physically meaningful bounds. For relief valves, an additional hydraulic condition, which ensures the valve opens only when the local head exceeds its set pressure, applies
3.5.2. Open Surge Tank Constraints
If the tank is active (), its cross-section area and initial water level must lie within allowable design ranges. If the tank is inactive (), the constraints collapse to zero so the variables do not influence the simulation.
When the tank is active, the water level must be physically defined. When inactive, these constraints are disabled through Big-M.
Tank water level dynamics (continuity) The tank water level changes according to inflow/outflow through the connection pipe.
This enforces the mass-balance equation as follows:
Tank junction head consistency Because the open tank is exposed to the atmosphere, the hydraulic head at the connection node must equal the water surface elevation .
Physical water level limits The water level cannot be negative and cannot exceed the tank height.
3.5.3. Bladder Tank Constraints
The bladder tank volume and initial water level must be within design limits only if the device is selected.
The compressed air volume and pressure must remain non-negative when the bladder tank is active.
The air pocket obeys the polytropic relationship shown in Equation (38) below:
Big-M deactivates this constraint when the device is not used.
The air volume cannot exceed the total internal tank volume and must remain positive.
Mass continuity at device junction A change in air volume corresponds exactly to the water entering or leaving the tank.
3.5.4. Closed Air Vessel Constraints
The vessel volume, precharge ratio, and orifice diameter must lie in feasible ranges if the vessel is installed.
Air pocket state variables Air pressure and air volume exist only when the air vessel is active.
Polytropic compression law The compressed air pocket must satisfy the polytropic equation unless the device is inactive.
Air volume physical bound The air pocket must remain within vessel limits.
Air volume changes match the water flow entering/exiting the vessel.
3.5.5. Relief Valve Constraints
Valve diameter and set pressure must lie within allowable ranges if the valve is used.
Node continuity (valve junction) Flow leaving the pipeline must equal the relief valve discharge.
Node pressure consistency The valve connects two adjacent nodes that share a hydraulic head.
Valve opening logic (binary
)
If pressure exceeds the set level, the valve must open. If not, the valve must remain closed.
When the valve is open, flow must follow the standard orifice discharge equation.
When closed, the constraint is disabled.
The valve cannot draw water into the system; it only releases excess pressure.