Next Article in Journal
The Influence of Design and Operational Factors on the Removal of Personal Care Products by Constructed Wetlands
Previous Article in Journal
10th Anniversary of Water
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Two-Stage LP-NLP Methodology for the Least-Cost Design and Operation of Water Distribution Systems

1
Faculty of Civil and Environmental Engineering, Technion—Israel Institute of Technology, Haifa 32000, Israel
2
Faculty of Management, Department of Natural Resource and Environmental Management, University of Haifa, Haifa 3498838, Israel
*
Author to whom correspondence should be addressed.
Water 2020, 12(5), 1364; https://doi.org/10.3390/w12051364
Submission received: 11 April 2020 / Revised: 30 April 2020 / Accepted: 7 May 2020 / Published: 12 May 2020
(This article belongs to the Section Urban Water Management)

Abstract

:
This paper presents a two-stage method for simultaneous least-cost design and operation of looped water distribution systems (WDSs). After partitioning the network into a chord and spanning trees, in the first stage, a reformulated linear programming (LP) method is used to find the least cost design of a WDS for a given set of flow distribution. In the second stage, a non-linear programming (NLP) method is used to find a new flow distribution that reduces the cost of the WDS operation given the WDS design obtained in stage one. The following features of the proposed two-stage method make it more appealing compared to other methods: (1) the reformulated LP stage can consistently reduce the penalty cost when designing a WDS under multiple loading conditions; (2) robustness as the number of loading conditions increases; (3) parameter tuning is not required; (4) the method reduces the computational burden significantly when compared to meta-heuristic methods; and (5) in oppose to an evolutionary “black box” based methodology such as a genetic algorithm, insights through analytical sensitivity analysis, while the algorithm progresses, are handy. The efficacy of the proposed methodology is demonstrated using two WDSs case studies.

1. Introduction

Water distribution systems (WDSs) are critical infrastructures that deliver potable water from water sources to end-users. The design and expansion of WDSs is a well-known research problem in which the planner is seeking the best design that meets the users’ needs. The least-cost design of WDSs has been an active research topic since the 1970s. In this problem, the objective is to find the minimum cost configuration for each of the hydraulic components in the system (such as the pipe diameters, tanks and pump capacities) subject to different operational (e.g., minimum pressure requirement) and physical constraints. The main physical constraints are the steady-state water mass conservation and energy conservation in the network for a given set of demands (e.g., demand-driven approach).
Initially, most research efforts of the WDSs research community focused on using the analytical (i.e., derivative-based) methods to optimize the design and operation costs of WDSs. These traditional analytical methods include dynamic programming [1], linear programming [2,3,4], and non-linear programming [5]. One important milestone is the linear programming gradient (LPG) method [2]. The LPG method is considered one of the most popular, if not the most, traditional analytical methods. The attractiveness of the LPG method is due to the “wise” decomposition of the least-cost problem that utilizes the special mathematical characteristics of the equations. More specifically, the design problem is decomposed into two stages: (1) linear programming stage, in which a WDS is designed for a given flow distribution; and (2) gradient stage, in which shadow variables of the linear programming stage is used to find a new flow distribution that can reduce the overall cost of the WDS design. The ingenious of the LPG method is that it handles the apparently nonlinear optimization problem using LP formulation, without the need to linearly approximate the different equations. This is done by observing that the nonlinear equations of the problem are nonlinear with respect to the diameters of the pipes but they are linear with respect to the pipes’ length. Utilizing this characteristic, one can consider the segmentation of a pipe into segments of given diameters with unknown lengths instead of considering the diameters as unknowns, thus the problem becomes linear for a given set of flows in the first stage of the LPG method.
Two decades later, meta-heuristic techniques, such as genetic algorithms [6,7,8,9], simulated annealing [10,11], tabu search [12], harmony search [13,14], the shuffled frog leaping algorithm [15], particle swarm optimization [16,17], ant colony optimization [18,19,20,21], memetic algorithm [22] and differential evolution [23,24,25], became the dominated tools to address the least-cost design problem. The main advantage of using meta-heuristic techniques over the traditional analytical methods is that the meta-heuristic techniques are able to deal with the nonlinear-discrete nature of the WDS design problems without the need for decomposition and/or changing the original decision variables. Moreover, it allows for seamlessly using available hydraulic simulation tools (e.g., EPANET) within a simulation-optimization framework without the need for explicit formulation of the hydraulic simulation equations. Meta-heuristic techniques are demonstrated in many studies as an effective tool to find an optimal or near-optimal WDS design. Nevertheless, recently, traditional analytical methods are regained research interest [26] for their computational efficiency and the opportunity to utilize the recent developments in analytical optimization solvers. Most of these attempts coupled/embedded traditional analytical methods with/within meta-heuristic techniques to reduce the search space and thus improve the efficiency of the meta-heuristic techniques. These include using (1) LPG method [10] and genetic algorithm [27] to replace the second gradient stage and (2) a combined non-linear programming (NLP) and differential evolution (DE) approach [28], in which NLP is used to locate the approximate region of the optimal solution while the DE is used to explore the identified region.
The least-cost design and operation problem of WDSs can be divided into two interconnected sub-problems: (1) WDS design, a discrete optimization problem, and (2) WDS operation, a continuous optimization problem. Despite the interconnectedness of the two problems (due to the obvious tradeoff between the capital and the operational cost), limited research has been conducted to solve these two problems simultaneously. The first attempt was made by using the pipes’ segmentations technique described above [2]. As such, the discrete WDS design-operation problem is projected into the continuous domain and the two interconnected sub-problems can be formulated as one continuous optimization problem in which both the design and the operation are solved simultaneously. However, there are two disadvantages that are associated with the LPG method when it is used to solve the design-operation problem: (1) the loop and quasi-loops energy equations are unlikely to be balanced when the number of loading conditions and the size of the network increase; (2) flows from the water sources must be pre-selected for each of the loading conditions. It is proposed in the LPG paper [2] that two dummy valves have to be added to each loop and quasi-loop in the system. Moreover, a high penalty cost should be assigned to each of the dummy valves such that the LP solver will try to remove these dummy valves if possible. Otherwise, a physical valve must be added to the system [2], in which it states “If, on the other hand, it is found that one of these dummy valves does appear in the optimal solution, this means that a real valve is needed at that point if the network is to operate as specified”. Using the proposed technique of adding valves, may lead to substantial number of valves added to the system when considering a large network and/or a large number of loading conditions. In addition, the requirement for pre-selecting source flows for each of the loading conditions in the LPG method will determine the tanks size and limit the design options of the pumps. Thus, leading to reduced feasible region of the problem that may result in suboptimal solutions.
In this study, a novel iterative two-stage LP-NLP method is introduced to solve the simultaneous least-cost design and operation problem of WDSs. The proposed two-stage method begins by partitioning a WDS into a spanning tree component and a chord tree component. The flows in the chord tree pipes are randomly initialized, thus the flows in the spanning tree pipes became resultant variables, which can be calculated as a function of the chord flows. The chord tree pipe flows and spanning tree pipe flows are combined to form a flow distribution of the network that will always satisfy the mass conservation equations. Given the flow distribution in the network, the first stage of the proposed two-stage method solves the design problem as an LP by utilizing the segmentation technique described earlier. This reformulated LP stage represents a significant improvement when compared to the LP stage of the LPG method as the penalty cost can be dropped consistently by carrying out the LP solver repeatedly as an inner-loop (as will be explained in Methodology Section), thereby unlike the LPG method, there is no need to add additional network elements. The WDS design obtained in the first stage is then used in an NLP stage to find a new set of chord tree pipe flows that reduce the WDS operational cost, thus unlike the LPG method, it allows for changing the sources’ flows. These updated chord tree pipe flows are then parsed to the reformulated LP stage iteratively. The iterative process will continue until a user-defined stopping criterion is met. The two-stage LP-NLP method has been applied to two case studies, the performance of which is evaluated using average cost, minimum cost, and maximum cost of all trials performed. In addition, the time required to apply the proposed methodology on both case studies is also reported.
There is a number of advantages for using the proposed two-stage method to find the least-cost design and operation of WDSs: (1) the reformulated LP stage can consistently drop the penalty cost when designing a WDS with multiple loading conditions without any inclusion of additional network elements; (2) it is robust against the increase of the number of loading conditions; (3) no parameter tuning is required; (4) the method reduces the computational burden significantly when compared to meta-heuristic methods, and (5) it can cope with a larger WDS when compared with NLP method.
This paper is organized as follows. Definitions and notations are given in the next section. The following section provides the formulation of the linear programming and non-linear programming models, followed by a description of the proposed methodology as well as a discussion about the proposed two-stage method as compared to other methods. This is followed by the applications of the proposed two-stage method on two case study networks that demonstrate the advantages of using the proposed method. These results are then discussed and conclusions are drawn in the last section.

2. Definitions and Notation

Consider a WDS that contains n p pipes, n j junctions, n k tank nodes, n m pumps, n r reservoir nodes, n c t chord tree pipes, n s t spanning tree pipes, n h s simulation time steps, and Δ t h s as the time step duration.
The j t h node of the network has two properties: its nodal demand d j and its elevation head z j . Let d ( t ) = d 1 ( t ) , d 2 ( t ) , , d n j ( t ) T denote the vector of nodal demands, h ( t ) = h 1 ( t ) , h 2 ( t ) , , h n j ( t ) T denote the vector of heads, and z = z 1 , z 2 , , z n j T denote the vector of elevations for junction nodes.
The p t h pipe of the network can be characterized by its diameter D p , length L p , flows q p , and Hazen-Williams resistance factor r p . Let q ( t ) = q 1 ( t ) , q 2 ( t ) , , q n p ( t ) T denote the vector of pipe flows and r = r 1 , r 2 , , r n p T denote the vector of resistance factors.
The k t h tank of the network can be characterized by its volume V k ( t ) , minimum tank volume V k m i n , maximum tank volume V k m a x , tank elevation e K k , cross-sectional area A K k , tank outflow Q K k ( t ) , and tank head h K k . Let V ( t ) = V 1 ( t ) , V 2 ( t ) , , V n k ( t ) T denote the vector of tank volumes, V m i n = V 1 m i n , V 2 m i n , , V n k m i n T denote the vector of tank minimum volumes, V m a x = V 1 m a x , V 2 m a x , , V n k m a x T denote the vector of tank maximum volumes, e K = e K 1 , e K 2 , , e K n k T denote the vector of tank elevations, A K = A K 1 , A K 2 , , A K n k T denote the vector of tank cross-sectional areas, Q K ( t ) = Q K 1 ( t ) , Q K 2 ( t ) , , Q K n k ( t ) T denote the vector of tank flows, and h K ( t ) = h K 1 ( t ) , h K 2 ( t ) , , h K n k ( t ) T denote the vector of heads for tank nodes.
The m t h pump of the network has four properties: its efficiency η m , its operating power P m ( t ) , flow q m m a x , and maximum pump power P m m a x . Let η = η 1 , η 2 , , η n m T denote the vector of pump efficiencies, P ( t ) = P 1 ( t ) , P 2 ( t ) , , P n m ( t ) T denote the vector of pumps operating power, q ^ ( t ) = q ^ 1 ( t ) , q ^ 2 ( t ) , , q ^ n m ( t ) T denote the vector of pump flows, h ^ ( t ) = h ^ 1 ( t ) , h ^ 2 ( t ) , , h ^ n m ( t ) T denote the vector of pump heads, and P m a x = P 1 m a x , P 2 m a x , , P n m m a x T denote the vector of maximum pump powers.
The r t h reservoir of the network can be charactrized by its elevation e R r . Let e R = e R 1 , e R 2 , , e R n r T denote the vector of elevations for reservoir nodes.
The matrix A 1 = A 11 A 12 R ( n p + n m ) × n j is the full column rank node-arc incidence matrix for junction-head nodes, in which A 11 R n p × n j is the full column rank node-pipe incidence matrix and A 12 R n m × n j is full column rank node-pump incidence matrix. The matrix A 2 = A 21 A 22 A 23 A 24 R ( n p + n m ) × ( n r + n k ) is the source-arc incidence matrix for fixed-head nodes, in which A 21 R n p × n r if the reservoir-pipe incidence matrix, A 22 R n p × n k is the tank-pipe incidence matrix, A 23 R n m × n r is the reservoir-pump incidence matrix, and A 24 R n m × n k is the tank-pump incidence matrix. Denote by I c , a c × c identify matrix.

3. Model Formulation

The WDS design and operation model formulation is described in this section. Section 3.1 describes the objective functions and the constraints. This is followed by a brief summary of the NLP model formulation in Section 3.2.

3.1. The Original NLP Model Formulation

The original NLP least-cost design and operation problem of looped WDSs with multiple loading conditions is presented in this section. The objective is to minimize the total cost of the system, which include capital costs of pipes, tanks and pumps and operational cost in which only pumps’ energy cost is considered. The following subsections describe the objective function, constraints, and decision variables.

3.1.1. Objective Function

The objective function is comprised of four main components: C C p i p e s is the pipes’ capital cost in the system, which is expressed as:
C C p i p e s = p = 1 n p s = 1 n s p c ( D p s ) l p s
where n s p is the number of pipe segments for pipe p, l p s is the length of the s t h segment of the p t h pipe, c ( D p s ) is the capital cost per unit length for the diameter of the s t h pipe segment.
C C t a n k s is the tanks’ capital cost in the system, which is expressed as:
C C t a n k s = k = 1 n k c K V k m a x
where c K is the tank capital cost per unit volume of the maximum tank storage and V k m a x is maximum storage volume for the k t h tank in the system.
C C p u m p s is the pumps’ capital cost in the system, which is expressed as:
C C p u m p s = m = 1 n m c P P m m a x
where c P is the pump capital cost function per unit pump power and P m m a x is maximum power for the m t h pump in the system.
O C p u m p s is the pumps’ operational cost in the system which is expressed as:
O C p u m p s = A D × A P P V × m = 1 n m t = 1 n h s c E ( t ) P m ( t ) Δ t h s
where A D is the annual duration, A P P V is the annual pump present value coefficient, c E ( t ) is the energy tariff at time t, P m ( t ) is the pump operating power for pump m at time t.

3.1.2. Constraints

Constraint C 1 is the sum of the lengths of all segments of a pipe must be equal to the length of the pipe. Constraint C 1 can be expressed as:
s = 1 n s p l p s = L p , p = 1 , 2 , , n p .
Constraint C 2 is the length for each of the segments of a pipe must be greater than zero. Constraint C 2 can be expressed as:
l p s 0 , p = 1 , 2 , , n p   &   s p = 1 , 2 , , n s p .
Constraint C 3 is the operating power in each of the pumps in the system must be greater than zero and smaller than the maximum pump power for all time steps. Constraint C 3 can be expressed as:
0 P ( t ) P m a x , t = 1 , 2 , , n h s .
Constraint C 4 is an equality constraint that is used to calculate the head of each tank based on the storage. Constraint C 4 can be expressed as:
h K ( t ) = e K + ( I n k A K ) 1 V ( t ) , t = 1 , 2 , , n h s .
Constraint C 5 is an equality constraint that is used to calculate the water mass balance in the tanks. Constraint C 5 can be expressed as:
V ( t ) = V ( t 1 ) + A 22 A 24 T q ( t ) q ^ ( t ) Δ t h s , t = 1 , 2 , , n h s .
Constraint C 6 specifies that the water volume in each tank in the system must be within minimum and maximum prescribed volumes. Constraint C 6 can be expressed as:
V m i n V ( t ) V m a x , t = 1 , 2 , , n h s .
Constraint C 7 is an equality constraint that is used to calculate the pump operating powers. Constraint C 7 can be expressed as:
P ( t ) = γ [ I n m η ] 1 [ I n m q ^ ] h ^ , t = 1 , 2 , , n h s .
Constraint C 8 specify a cyclic condition in which the water volume in each of the tanks in the system at the start of the hydraulic simulation period must be the same as that at the end of the hydraulic simulation period. Constraint C 8 can be expressed as
V ( 0 ) = V ( n h s )
Constraint C 9 is the conservation of the mass balance in the network’s nodes, which can be expressed as:
A 11 T q ( t ) A 12 T q ^ ( t ) d ( t ) = 0 , t = 1 , 2 , , n h s .
Constraints C 10 and C 11 are the pipes energy conservation equations (Equation (14)), and pump energy conservation equations (Equation (15)) for t = 1 , 2 , , n h s :
G ( q ( t ) ) q ( t ) A 11 h ( t ) A 21 e R A 22 h K ( t ) = 0
h ^ ( t ) A 12 h ( t ) A 23 e R A 24 h K ( t ) = 0
where G ( q ( t ) ) is a diagonal square matrix with diagonal elements defined in equality constraint C 12 :
G p p ( t ) = r p × q p ( t ) n 1 ,
for p = 1 , 2 , n p and t = 1 , 2 , , n h s .
The definition of the pipe resistance r p based on pipes’ segments lengths is given in Constraint C 13 :
r p = s = 1 n s p r p s × l p s , p = 1 , 2 , , n p ,
where n s p is the number of considered segments for pipe p, r p s is the Hazen-Williams resistance factor per unit length for segment s of pipe p, and l p s is the length for segment s of pipe p.
Constraint C 14 is the nodal head vector at any time must be greater than the minimum head requirement. Constraint C 14 can be expressed as:
h ( t ) h m i n , t = 1 , 2 , , n h s .

3.2. NLP Model Formulation

The NLP problem can be expressed as:
minimize C C p i p e s + C C t a n k s + C C p u m p s + O C p u m p s Subject to Constraints in Equations ( 5 ) ( 18 )
in which, the decision variable are (1) length of the pipe segments for each pipe, (2) maximum and initial storage volume for each tank, (3) maximum pump power for each pump, (4) pump operating power for each pump at each time step, (5) flows of the pipes and pumps, (6) nodal heads.
In this study, the original NLP formulation is used as a baseline for comparison to demonstrate the efficacy of the proposed two-stage method.

4. Simplification of the NLP Constraints Using Reformulated Co-Tree Flows Method (RCTM)

The reformulated co-tree flow method (RCTM) [29] is proposed to exploit the relationship between the chord-tree flows and spanning-tree flows. This is achieved by applying the Schilders’ factorization [30] to permute the A 1 matrix into a lower triangular square block matrix at the top, representing a spanning tree, and a rectangular block matrix below, representing the corresponding chord-tree.
The steady-state flows and heads in a WDS system are modelled by the demand-driven model (DDM) continuity equations (Equation (13)), the pipe energy conservation equations (Equation (14)), and pump energy conservation equations (Equation (15)), which can be expressed as:
G ( q ( t ) ) O O A 11 O O I n m A 12 O O O O A 11 T A 12 T O O q ( t ) q ^ ( t ) h ^ ( t ) h ( t ) A 21 e R + A 22 h K ( t ) A 23 e R + A 24 h K ( t ) O d ( t ) = 0 ,
It is worth noting that the third block row in Equation (19) is added to create a square 4 by 4 block matrix for the permutation operation later.
The RCTM starts by generating a permutation matrix:
P 1 T P 2 T O O O O O I n m O O O O O I n m O O O O O P 3 T T
where P 1 T P 2 T T R n p × n p is the square orthogonal permutation matrix for the edges, in which P 1 R n s t × n p is the permutation matrix that identifies the pipes in the spanning tree as distinct from those in the chord-tree and P 2 R n c t × n p is the permutation matrix for the pipes in the chord-tree edges, P 3 R n s t × n s t is the permutation matrix for the nodes to have the same sequence that are traversed by the corresponding spanning tree edges. It is assumed that the set of all pumps is a subset of chord tree edges, therefore, the spanning tree edges only includes pipes.
The permuted system equation of the RCTM is given below. Note that we omitted the dependency of G ( q ( t ) ) on q ( t ) and dependency the time index t hereinafter for ease of notation.
P 1 G P 1 T O O O P 1 A 11 P 3 T O P 2 G P 2 T O O P 2 A 11 P 3 T O O O I n m A 12 P 3 T O O O O O P 3 A 11 T P 1 T P 3 A 11 T P 2 T P 3 A 12 T O O P 1 q P 2 q q ^ h ^ P 3 h P 1 ( A 21 e R + A 22 h K ) P 2 ( A 21 e R + A 22 h K ) A 23 e R + A 24 h K O P 3 d = O
The permuted system equation in Equation (21) can be expressed as:
G s t O O O T 1 O G c t O O T 2 O O O I n m T 3 T 1 T T 2 T T 3 T O O q s t q c t q ^ h ^ h s t a 1 a 2 a 3 d ^ = O
T 1 has been shown to be a lower triangular matrix [29]. Therefore, the flows in the spanning tree pipes can be written as a function of the flows in the chord tree edges:
q s t = T 1 T ( T 2 T q c t + T 3 T q ^ ) T 1 T d ^
Moreover, nodal heads can be written as a function of the spanning tree flows:
h s t = T 1 1 ( G s t q s t a 1 )
where h s t = P 3 h is a permuted vector of h,
G s t = R s t [ I n s t T 1 T ( T 2 T q c t + T 3 T q ^ ) T 1 T d ^ n 1 ] ,
and R s t = P 1 [ I n s t r ] P 1 T is the resistance factor of the spanning tree pipes, subject to Equations (15) and (25).
G c t q c t T 2 h s t a 2 = O
where G c t = R c t [ I n s t q c t n 1 ] and R c t = P 2 [ I n c t r ] P 2 T is the resistance factor of the chord tree pipes.
Equations (23)–(25) imply that the decision variables of the spanning tree flows q s t and the nodal heads, h, could be eliminated from the optimization problem of the NLP. This could be done by eliminating the equality constraints in Equations (13)–(15), and substituting the definition of q s t (Equation (23)) and the definition of the nodal head (Equation (24)) within the optimization problem defined in the previous section. Nonetheless, the restriction in Equation (25) must be fulfilled. Noting that h s t is a function q c t and q ^ , the LHS of Equation (25) could be written as a vector of nonlinear functions (of length n p n j n m ) as follows:
f q c t , q ^ = 0
That is, the new NLP problem will have n c t pipes’ flow decision variables instead of n p pipes’ flow decision variables, and will have less equality constraints since the equality constraint in Equation (26) will replace the three equality constraints in Equations (13)–(15).
The new constraint in Equation (26) is a reformulation of the loop and quasi-loops energy balance equations of the simulation problem after defining the spanning-tree flow as a function of the chord-tree flows using the RCTM. It is possible to introduce two vector of non-negative artificial variables that are used to guarantee the mathematical feasibility of the constraint in Equation (26). Adding, these artificial variables is a key component of the two-stage approach which will be presented in the next section.
f q c t , q ^ + a r t 1 a r t 2 = 0
where a r t 1 and a r t 2 are two vector of positive artificial variables that are used to balance the loop energy balance equations and path energy balance equations. Nonetheless, the addition of the artificial variable, will require adding a penalty cost ( P C ), which is the cost associated with infeasible constraints, in the objective function of the optimization problem. The P C can be expressed as:
P C = E × p c t = 1 n c t ( a r t 1 p c t + a r t 2 p c t )
where E is the penalty multiplier, p c t is the index of a chord tree pipe.

5. The Two-Stage Solution Method

The steps of the proposed methodology are shown in Figure 1. The proposed method decomposes the optimization problem into two stages: (1) an iterative linear programming stage that finds the optimal length for each pipe segment of each pipe, tanks size, pumps capacity, and pump operating point. This stage is performed for given flow distribution in the system for each of the loading conditions; (2) a nonlinear programming stage that finds a new set of flow distributions that reduces the WDS operational cost, tank cost, and pump cost. The following subsections describe both of the above stages.

5.1. Stage 0—The Identification of the Chord Tree and Spanning Tree of a WDS

The graph component that is associated with a WDS can be described as G = ( V , E ) where V is the set of all nodes of the graph G and E is the set of all pipes of the graph G. For any connected graph G, there must exist at least one subgraph of the graph G that spans G, such a subgraph is called a spanning tree of the graph G. The relative complement of the spanning tree with respect to the graph G is called chord tree. A spanning tree is an acyclic graph which traverses every node in a graph, such that the addition of any chord-tree element creates a loop. A WDS can be partitioned into two subgraphs: a spanning tree G s t = V s t , E s t , and a co-tree G c t = V c t , E c t , so that E s t E c t = E , E s t E c t = . The flows in the spanning tree can be found directly from the co-tree flows. Stage 0 of the proposed methodology is a pre-processing step, in which a spanning tree and chord tree combinations are identified. A spanning tree search algorithm in [31] is used to identify a spanning tree and chord tree combination.

5.2. Stage 1—Iterative LP Design Stage

The first stage of the proposed methodology is to solve the design problem for a given flow distribution. The purpose of this stage is to identify the optimal decision variables for a given flow distribution (i.e., length of the pipe segments for each pipe, maximum and initial storage volume for each tank, maximum pump power for each pump, pump operating power for each pump at each time step). In this stage, the chord tree flows are taken as random initial guesses for the first iteration and as the output from Stage 2 for the subsequent iterations. Then, the flows in the spanning tree pipes can be calculated using Equation (23). By generating flow distribution in this way, the mass balance equation will be always satisfied. The LP model for the first stage of the proposed methodology can be described as:
minimize C C p i p e s + C C t a n k s + C C p u m p s + O C p u m p s + P C subject to Constraints in Equations ( 5 ) ( 11 ) , ( 16 ) ( 18 ) and ( 27 )

Penalty Reduction

As discussed previously, one drawback of using LPG method is that the set of flow distributions that is parsed to the network design stage of the problem is often infeasible. In the original LPG paper [2], two artificial variables, which behave as valves, are introduced for each loop and quasi-loop to balance the energy equations. These two variables are given a large penalty in the objective function so that the optimization process will try to nullify them if possible.
However, the elimination of the penalty is often impossible as the number of loops and the number of loading conditions increases. To demonstrate this, let us consider the 10-link loop shown in Figure 2 which has four superlinks. In this case, if there are more than four loading conditions, the subsystem of the loop energy equations is overdetermined for a given set of flows that represent the loading conditions. This overdetermined subsystem, in most cases, will cause infeasibility in the linear program, which is solved to determine the lengths of the segments in the design problem. This situation will be even exacerbated if there exists shared superlinks between different loops. This is because, in case of a shared link, the degree of freedom in the linear system of equations is reduced by one.
As a result of the above observation, the penalty of the final design in the first (i.e., small two-loop) example of [2] dropped to zero, whereas the final design in the second example (17 loops and 2 loading conditions) has a nonzero penalty of 1.5 billion cost unit which is 250 times the unpenalized network cost (6 million cost units).
In this paper, an iterative method to reduce the penalty cost when designing a network with multiple loading conditions is proposed. The efficient penalty reduction is achieved by using the constraint in Equation (27) to replace the loop and quasi-loops energy equations in the original LPG Equations (13)–(15).
Unlike the LPG method, the constraint in Equation (27) involves the chord flows only. That is, only the flows of chord tree pipes in a WDS network are parsed to the network design stage, as opposed to the LPG in which the flows of all pipes are parsed to the design stage. The flows of the spanning tree pipes are calculated using the chord tree pipe flows using Equation (23). The nodal heads can then be calculated from the spanning tree pipe flows using Equation (24). Moreover, we also modify the objective function to include high penalty cost coefficients for the artificial variables in Equation (26) ( 10 8 times the typical values of the objective function). Constraint C 10 at i t h iteration and time t of the inner penalty-reduction iteration becomes:
R c t I n c t q c t ( i , t ) n 1 q c t ( i , t ) T 2 h ( i , t ) a 2 + a r t 1 ( i , t ) a r t 2 ( i , t ) = O
These artificial variables can be directly applied to the chord tree pipe flows at ( i + 1 ) t h iteration and time t of the inner penalty-reduction iteration by:
R c t I n c t q c t ( i + 1 , t ) n 1 q c t ( i + 1 , t ) = R c t I n c t q c t ( i , t ) n 1 q c t ( i , t ) + a r t 1 ( i , t ) a r t 2 ( i , t ) ,
which can be simplified to:
q c t ( i + 1 , t ) = q c t ( i , t ) + R c t ( i , t ) 1 ( a r t 1 ( i , t ) a r t 2 ( i , t ) ) ( ( 1 / n ) 1 ) R c t ( i , t ) 1 ( a r t 1 ( i , t ) a r t 2 ( i , t ) ) .
The above operation can be used to move the current flow distributions towards the direction of the feasible region. This is because, by updating the chord tree flows using Equation (30), the resulting q c t ( i + 1 ) and q s t ( i ) must satisfy C 1 ) . A new set of spanning tree flows, q s t ( i + 1 ) , can be generated based on the q c t ( i + 1 ) using Equation (23). This spanning tree flows generation process will disperse the values of the two vectors of artificial variables from the chord tree pipes to the spanning tree pipes. Therefore, repeating the Stage 1 using the new chord tree flows, q c t ( i + 1 ) , results in a smaller value of a r t 1 ( i + 1 ) a r t 2 ( i + 1 ) compared to the value of a r t 1 ( i ) a r t 2 ( i ) . Note that, only one of a r t 1 and a r t 2 can have a non-zero value in the optimal solution of the LP solver.
The updated chord tree pipe flows are then used again to generate a set of flow distributions to use in the network design stage, using Equation (23), until the penalties are less than the pre-defined stopping tolerance, after which the network design is parsed to the NLP operational cost optimization stage.

5.3. Stage 2—NLP Descending Stage

The pipe diameters obtained in Stage 1 is now used as the input for Stage 2. The purpose of this stage is to find a new set of flows in the chord tree pipes that reduces the WDS operational cost and the pumps and tanks capital costs. The NLP model for the second stage of the proposed methodology can be described as:
minimize C C t a n k s + C C p u m p s + O C p u m p s subject to Constraints in Equations ( 7 ) ( 12 ) , ( 16 ) ( 18 ) and ( 27 )
in which, the model decision variables are: (1) flows in the chord tree pipes, (2) the initial and maximum storage volume of each tank, (3) the pump operating power at each time step for each of the pumps in the system, and (4) maximum pump power for each pump.

6. Relation of the Proposed Method to Other LP Methods

The proposed algorithm is an iterative method that optimizes the operation and design of a WDS simultaneously. It consists of two stages: (1) an iterative LP design stage and (2) an NLP stage as shown in Figure 1.
In the first stage of the proposed methodology, the flows in the chord tree pipes are required to be initialized instead of having to initialize for the flows in all pipes, which reduces the number of decision variables by n j when compared to the existing LPG. In addition, the corresponding spanning tree flows that are calculated from the chord tree flow will satisfy the continuity equations automatically. Moreover, a penalty reduction mechanism is introduced using the new initialization method of the chord tree flows. This is because the penalty cost that is associated with each of the loops and independent paths has to be represented by adding two valves in the original LPG method, whereas the chord tree flows in the proposed method can be corrected within the inner iterations of Stage 1 using Equation (30). As a result, the penalty cost of output from Stage 1 of the proposed methodology will always be minimal.
In the second stage of the proposed methodology, the resistance factors in all pipes are used as the input for this stage and updated chord tree pipe flows are generated by solving NLP problem. This stage is used to replace the search technique used in the LPG method. The LPG method focuses the search of its second stage on the minimization of the pipe and pump capital cost. This can be seen from each of the two case studies in [2] that the initial guesses of the sources’ flow are the same as the optimal sources’ flow (i.e., the sources’ flow and as a result the tanks volumes, remained the same during the iteration process). As a result, LPG method cannot change the amount of water supplied from each of the sources of a WDS, thereby (1) restricting the LPG’s ability to design the tanks in a WDS ( C C t a n k s ) and (2) limiting the LPG’s ability to design and operate the pumps ( C C p u m p s + O C p u m p s ) by fixing the pump flows. Contrarily, the proposed methodology focuses the search of its second stage in the minimization of C C t a n k s + C C p u m p s + O C p u m p s while using the basic design of the network from the result of the first stage.
Comparing the NLP in the second stage of the proposed method with the original NLP formulation shows that the energy balance constraint is a nonlinear function of the flows in the chord tree pipes q c t and flows in the pumps q ^ , which has significantly less nonlinearity both in nature and in number compared to the energy balance constraint in original NLP. More specifically the NLP in the second stage is advantageous, because: (1) the number of independent decision variables in flow vector is reduced from the number of pipes to the number of chord tree pipes; (2) the vector of nodal heads is an independent decision variables in NLP formulation whereas it becomes a dependent (and thus it could be eliminated) decision variables in the proposed two-stage formulation; (3) smaller number of constraints is required in the second NLP stage of the proposed two-stage method because of the equality constraint in Equations (13)–(15) are eliminated; (4) because the resistance is a parameter in the second stage NLP, the value of which has been determined in the LP stage, the number of nonlinear terms and the degree of nonlinearity in the second stage NLP of the proposed method offers a lower degree of complexity when compared to the original NLP formulation.

7. Applications

The proposed methodology described in the previous section has been applied to two WDSs, which include a simple network first presented in [21] and a modification of the real-life network first presented in [2]. The Hazen-William formula is used to model the head-loss in both cases studies. The results from nonlinear programming are used as the baseline for comparison to demonstrate the efficacy of the proposed methodology. YALMIP toolbox [32] is used to formulate the optimization problems, lpsolve solver [33] is used to solve the LP problems and ipopt solver [34] is used to solve the NLP problems. The case studies were programmed in Matlab R2018a on an Intel Core i7-7700 running at 3.6 GHz with four cores. The details of both case studies are described in the following subsections. It is important to note that the value for A D and A P P V for both case studies are used from [21].

7.1. Case Study 1

This case study network consists of eight nodes, 11 pipes, three reservoirs, one tank, two pumps, two loops and three independent paths. The layout of this case study network is given in Figure 3. The available pipes’ diameters for both case studies and the corresponding unit costs are shown in Table 1. The nodes’ data and pipes’ data are summarized in [21] (an EPANET input file can be found in supplementary data). The base run optimization is performed for a typical day starting at 00:00 and ending at 24:00 with four loading condition (i.e., hydraulic time step of six hours). The demand multiplier and electricity tariff for each of the the four loading conditions are shown in second column and fifth column of Table 2 respectively. The minimum nodal pressure requirement for the unknown head nodes is 30m. The identified spanning tree and chord tree combination is shown in Figure 3. In addition to the base run optimization, the impact of 6 and 12 loading conditions on the solution of the proposed two-stage method and the NLP method have been investigated (data is given in Table 2).
The minimum, maximum, mean and median for all cost components and the total cost of 50 repeated runs with random initial guesses for the chord tree flows were collected. The tolerance value for the inner penalty-reduction iteration (the sum of all artificial variables) is 10 and for the outer cost-reduction iteration is 10 5 . Table 3 presents the detailed statistics of the proposed two-stage method (Table 3a) and NLP method (Table 3b) applied to the two-loop network with four loading conditions (base run). Figure 4 presents the histograms for the proposed two-stage formulation and the NLP formulation applied to each of the three loading cases: (1) two-stage method applied to the four, six, and 12 loading conditions in Figure 4a,c,e, respectively and (2) NLP method applied to the four, six, and 12 loading conditions in Figure 4b,d,f, respectively.
The mean CPU solver time for each of the optimization runs using the proposed two-stage method with the three different loading cases is 1.3, 2.61, 6.29 sec for four, six and 12 loading conditions, respectively. For the original NLP method, the CPU solver time with the three different loading cases is 4.83, 10.04, 17.81 sec for four, six and 12 loading conditions. For the purpose of illustration, the pipe diameters, pump configuration for each of the four loading conditions, and the tank storage of the best base run solution obtained are shown in Figure 5. Figure 6a shows the water level trajectory in the tank over the time of a typical day and Figure 6b shows the pressure profile of the most pressure critical node, Node C, in the system using the network design shown in Figure 5.
As shown in Figure 4a,c,e, the penalty cost in all runs was nullified, indicating that feasible solutions were obtained in all runs when using the two-stage method. This represents a significant improvement when compared to the linear programming stage in the original LPG method. As explained previously, in the LPG, optimizing a WDS with more than one loading condition will often incur penalty costs in the final solution. This penalty costs are handled by the use of dummy valves. These dummy valves, if cannot be eliminated, must be included in the final design as physical valves that should be installed [2]. It is evident from Figure 4 that a smaller minimum cost is obtained by solving the NLP formulation than that by solving the proposed two-stage formulation for the two-loop network (the relative differences between the two-stage method and the NLP method are 3%, 2.5% and 3.5% for the four, six and 12 loading conditions, respectively). However, the mean, standard deviation, and the worst case of the solutions that are found by solving the proposed two-stage formulation are smaller than that are found by solving the NLP formulation (Table 3), which means using the proposed two-stage formulation is able to find a better solution than using the NLP formulation on average and more frequently. In addition, each of the 50 trials performed using the proposed two-stage formulation has successfully yielded a feasible solution for four, six, and 12 loading conditions whereas only 36, 31, and 27 trials out of 50 trails performed using the NLP formulation have successfully found feasible solutions for four, six, and 12 loading conditions respectively. As a result, the proposed two-stage method is more robust in terms of the number of loading conditions when compared to the original NLP method. This robustness will be further fortified in large-scale networks as demonstrated in the next section. In fact, examining large network is the true exam for the developed algorithm since it is expected that NLP methods can handle small problem, but it will be challenged in real-life networks (even mid-size).
Moreover, the optimal solutions obtained using the proposed two-stage method reached an average of 2 . 237 × 10 6 with standard deviation of 0 . 028 × 10 6 and best solution found is 2 . 178 × 10 6 compared to an average of 6 . 382 × 10 6 with standard deviation of 1 . 21 × 10 6 and best solution found is 3 . 885 × 10 6 reported in [21] which used ant colony method. Thus, indicating that the results of the two-stage method outperforms ant-colony in all measures.

7.2. Case Study 2

This case study network consists of 50 nodes, 65 pipes, two reservoirs, one tank, two pumps, 14 loops and two independent paths. The layout of this case study network is given in Figure 7. The network used here was derived from [2] with some slight modifications (the reservoir connects to node 45 has been replaced by a tank). This modification introduces a tank into the original system so that the problem can be considered within simultaneous design-operation settings, which is the focus of the paper. The nodes’ data and pipes’ data of this case study network are summarized in [2] (an EPANET input file can be found in supplementary data). The available pipe diameters and their unit cost, demand multiplier and energy tariff for each of the four loading conditions are the same as that of the Case Study 1, which are shown in Table 1 and second and fifth columns in Table 2. The minimum nodal pressure requirement for the unknown head nodes is 30 m. The identified spanning tree and chord tree combination are shown in Figure 7. In addition to the base run optimization, the impact of different reservoir elevation head on the solution of the proposed two-stage method and the NLP method have been investigated. As discussed in the previous section, the second stage of the proposed method focuses on minimizing the total cost using the predetermined pipe configuration from Stage 1. As a result, changing the source node elevations and fixing the demand node elevations can provide additional information on the applicability of the proposed two-stage method. The elevation heads for the reservoirs R1 and R2 are 406 m in the base run optimization, where five additional runs have been performed for different source elevation configurations: (370-320), (320-320), (320-280), (270-240), and (200-200). Note that the first number is the reservoir elevation for R1 and the second number is the reservoir elevation for R2. The total cost of 20 repeated runs with different initial guesses for the chord tree flows were collected. Figure 8 shows the histograms of the proposed two-stage method and NLP method applied to the real-life network with different source elevation configurations. A summary of the best result obtained can be found in the supplementary information.
It is evident from Figure 8 that a smaller minimum cost is obtained by solving the proposed two-stage formulation than that by solving the proposed NLP formulation for the real-life network (the relative differences between the two-stage method and the NLP method are ranging from 2.6% to 6.9%). In addition, all of the 20 trials performed using the proposed two-stage formulation has successfully yielded a feasible solution for two source elevation configurations (200-200) and (320-320). Whereas in the remaining configurations (270-240), (320-280) and (320-320) only two trials out of the 20 trials has failed to converge. In contrast, the NLP method failed to converge in the vast majority of the runs. More specifically, 19 trails out of the 20 trails performed using the NLP method has failed to converge for three source configurations: (270,240), (320,280), and (320,320), whereas none of the 20 trials performed using the NLP formulation has reached a feasible solution for the source elevation configurations (200-200) and (370-320). More trials have been carried out for these two source elevation configurations in order to determine the required number of trails for reaching a feasible solution. In configuration (200,200) a feasible solution has been reached at 39 trails while in configuration (370,320) a feasible solution has been reached at 29 trails. In all configurations, the best result obtained by the two-stage algorithm outperforms the result of the NLP method.
Results from the two case studies demonstrate that the proposed two-stage method (1) can consistently drop the penalty cost in the LP stage, (2) exhibit high robustness when compared to the NLP method that is used as the baseline, (3) produce comparable results for smaller network when compared to the NLP formulation, such as Case Study 1, and produce better solution for a bigger network when compared to the NLP formulation, such as Case Study 2. These advantages are more pronounced as the size and complexity of case study network increase. Furthermore, the solution found by proposed two-stage method ( 2 . 237 × 10 6 ± 0 . 04 × 10 6 ) compared favorably with those found in the previous studies. This improvement can be partly attributed to the fact that the proposed two-stage method allows the segmentation of the candidate pipe between two nodes. In addition, the proposed two-stage method is not only more reliable find a feasible solution than meta-heuristics algorithms, but also it does not require any parameter tuning and sensitivity analysis.

8. Conclusions

This paper presents an efficient iterative two-stage LP-NLP method for finding the least-cost operation and design of a water distribution system. In the proposed method, the graph that is associated with a WDS is first decomposed into a spanning tree graph and chord tree graph. Then, a set of initial chord tree pipe flows is used to find a feasible network design. Finally, the feasible network design found in the previous step is used to find a new set of chord tree pipe flows that reduces the WDS operation cost.
The main features of the proposed two-stage LP-NLP method include:
  • the iterative LP stage can consistently find a feasible design for a WDS with multiple loading conditions without the need to add additional network elements (such as valves) to the network;
  • it exhibits a higher robustness to the increase of the number of loading conditions and the change of the elevations of the reservoir nodes when compared to the NLP formulation and meta-heuristics algorithms (ant colony optimization);
  • its performance is not affected by the parameters used so that no parameter tuning is required;
  • it is significantly less computational-intensive when compared to evolutionary algorithms, such as genetic algorithm, differential evolution, ant colony optimization, and particle swarm optimization.
It is important to note that the NLP stage of the proposed method uses the network design found in the LP stage of the proposed method. Therefore, the chord tree pipe flows generated by the NLP stage minimize the tank capital cost, pump capital cost, and energy cost subject to the network design found in the LP stage. However, the behavior of the resultant pipe cost that is associated with new chord tree flows is unknown. In addition, this research focused on developing a single objective optimization algorithm, other reliability and resiliency-based objectives could be incorporated in the model by using the epsilon or the weights methods [35] for solving the multi-objective problem as a series of single objective problems. Mechanisms that can be used for solving the multi-objective problem as a series of single objective problems will be an interesting avenue for future research.

Author Contributions

Conceptualization, M.Q., M.H. and A.O.; Data curation, M.Q.; Formal analysis, M.Q.; Funding acquisition, A.O.; Methodology, M.Q. and M.H.; Project administration, A.O.; Supervision, A.O.; Validation, M.H.; Visualization, M.Q. and M.H.; Writing—original draft, M.Q.; Writing—review and editing, M.Q., M.H., and A.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Israel Science Foundation (grant No. 555/18) and the Israeli Water Authority grant number 4501687498.

Acknowledgments

The authors appreciate the significant efforts made by all reviewers and the editorial board of Water in providing excellent and well thought out comments which greatly helped in improving the quality of this paper.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Zessler, U.; Shamir, U. Optimal operation of water distribution systems. J. Water Resour. Plan. Manag. 1989, 115, 735–752. [Google Scholar] [CrossRef]
  2. Alperovits, E.; Shamir, U. Design of optimal water distribution systems. Water Resour. Res. 1977, 13, 885–900. [Google Scholar] [CrossRef]
  3. Kessler, A.; Shamir, U. Analysis of the linear programming gradient method for optimal design of water supply networks. Water Resour. Res. 1989, 25, 1469–1480. [Google Scholar] [CrossRef]
  4. Quindry, G.E.; Liebman, J.C.; Brill, E.D. Optimization of looped water distribution systems. J. Environ. Eng. Div. 1981, 107, 665–679. [Google Scholar]
  5. Shamir, U. Optimal design and operation of water distribution systems. Water Resour. Res. 1974, 10, 27–36. [Google Scholar] [CrossRef]
  6. Murphy, L.; Simpson, A.; Dandy, G. Pipe Network Optimization Using an Improved Genetic Algorithm; Department of Civil and Environmental Engineering, University of Adelaide: Adelaide, Australia, 1993. [Google Scholar]
  7. Simpson, A.; Dandy, G.; Murphy, L. Genetic algorithms compared to other techniques for pipe optimization. J. Water Resour. Plan. Manag. 1994, 120, 423–443. [Google Scholar] [CrossRef] [Green Version]
  8. Dandy, G.; Simpson, A.; Murphy, L. An improved genetic algorithm for pipe network optimization. Water Resour. Res. 1996, 32, 449–458. [Google Scholar] [CrossRef] [Green Version]
  9. Savic, D.; Walters, G. Genetic algorithms for least-cost design of water distribution networks. J. Water Resour. Plan. Manag. 1997, 123, 67–77. [Google Scholar] [CrossRef]
  10. Loganathan, G.; Greene, J.; Ahn, T. Design heuristic for globally minimum cost water-distribution systems. J. Water Resour. Plan. Manag. 1995, 121, 182–192. [Google Scholar] [CrossRef]
  11. Cunha, M.; Sousa, J. Water distribution network design optimization: Simulated annealing approach. J. Water Resour. Plan. Manag. 1999, 125, 215–221. [Google Scholar] [CrossRef]
  12. Lippai, I.; Heaney, J.; Laguna, M. Robust water system design with commercial intelligent search optimizers. J. Comput. Civ. Eng. 1999, 13, 135–143. [Google Scholar] [CrossRef]
  13. Geem, Z.; Kim, J.; Loganathan, G. Harmony search optimization: Application to pipe network design. Int. J. Model. Simul. 2002, 22, 125–133. [Google Scholar] [CrossRef]
  14. Geem, Z. Optimal cost design of water distribution networks using harmony search. Eng. Optim. 2006, 38, 259–277. [Google Scholar] [CrossRef]
  15. Eusuff, M.; Lansey, K. Optimization of water distribution network design using the shuffled frog leaping algorithm. J. Water Resour. Plan. Manag. 2003, 129, 210–225. [Google Scholar] [CrossRef]
  16. Suribabu, C.; Neelakantan, T. Design of water distribution networks using particle swarm optimization. Urban Water J. 2006, 3, 111–120. [Google Scholar] [CrossRef]
  17. Montalvo, I.; Izquierdo, J.; Pérez, R.; Tung, M. Particle swarm optimization applied to the design of water supply systems. Comput. Math. Appl. 2008, 56, 769–776. [Google Scholar] [CrossRef] [Green Version]
  18. Maier, H.; Simpson, A.; Zecchin, A.; Foong, W.; Phang, K.; Seah, H.; Tan, C. Ant colony optimization for design of water distribution systems. J. Water Resour. Plan. Manag. 2003, 129, 200–209. [Google Scholar] [CrossRef] [Green Version]
  19. Zecchin, A.; Simpson, A.; Maier, H.; Leonard, M.; Roberts, A.; Berrisford, M. Application of two ant colony optimisation algorithms to water distribution system optimisation. Math. Comput. Model. 2006, 44, 451–468. [Google Scholar] [CrossRef] [Green Version]
  20. Zecchin, A.; Maier, H.; Simpson, A.; Leonard, M.; Nixon, J. Ant colony optimization applied to water distribution system design: Comparative study of five algorithms. J. Water Resour. Plan. Manag. 2007, 133, 87–92. [Google Scholar] [CrossRef] [Green Version]
  21. Ostfeld, A.; Tubaltzev, A. Ant colony optimization for least-cost design and operation of pumping water distribution systems. J. Water Resour. Plan. Manag. 2008, 134, 107–118. [Google Scholar] [CrossRef]
  22. Baños, R.; Gil, C.; Agulleiro, J.; Reca, J. A memetic algorithm for water distribution network design. In Soft Computing in Industrial Applications; Springer: Berlin/Heidelberg, Germany, 2007; pp. 279–289. [Google Scholar]
  23. Suribabu, C. Differential evolution algorithm for optimal design of water distribution networks. J. Hydroinformatics 2010, 12, 66–82. [Google Scholar] [CrossRef]
  24. Vasan, A.; Simonovic, S. Optimization of water distribution network design using differential evolution. J. Water Resour. Plan. Manag. 2010, 136, 279–287. [Google Scholar] [CrossRef]
  25. Zheng, F.; Zecchin, A.; Simpson, A. Self-adaptive differential evolution algorithm applied to water distribution system optimization. J. Comput. Civ. Eng. 2012, 27, 148–158. [Google Scholar] [CrossRef] [Green Version]
  26. Mala-Jetmarova, H.; Sultanova, N.; Savic, D. Lost in optimisation of water distribution systems? A literature review of system operation. Environ. Model. Softw. 2017, 93, 209–254. [Google Scholar] [CrossRef] [Green Version]
  27. Krapivka, A.; Ostfeld, A. Coupled genetic algorithm—Linear programming scheme for least-cost pipe sizing of water-distribution systems. J. Water Resour. Plan. Manag. 2009, 135, 298–302. [Google Scholar] [CrossRef]
  28. Zheng, F.; Simpson, A.R.; Zecchin, A.C. A combined NLP-differential evolution algorithm approach for the optimization of looped water distribution systems. Water Resour. Res. 2011, 47. [Google Scholar] [CrossRef] [Green Version]
  29. Elhay, S.; Simpson, A.R.; Deuerlein, J.; Alexander, B.; Schilders, W.H. Reformulated co-tree flows method competitive with the global gradient algorithm for solving water distribution system equations. J. Water Resour. Plan. Manag. 2014, 140, 04014040. [Google Scholar] [CrossRef] [Green Version]
  30. Schilders, W. Solution of indefinite linear systems using an LQ decomposition for the linear constraints. Linear Algebra Its Appl. 2009, 431, 381–395. [Google Scholar] [CrossRef] [Green Version]
  31. Qiu, M.; Alexander, B.; Simpson, A.; Elhay, S. WDSLib: A Water Distribution System Simulation Test Bed. Environ. Model. Softw. submitted.
  32. Löfberg, J. YALMIP: A toolbox for modeling and optimization in MATLAB. In Proceedings of the CACSD Conference, Taipei, Taiwan, 2–4 September 2004; Volume 3. [Google Scholar]
  33. Berkelaar, M.; Eikland, K.; Notebaert, P. Lpsolve: Open Source (Mixed-Integer) Linear Programming System; Eindhoven University of Technology: Eindhoven, The Netherlands, 2004; Volume 63. [Google Scholar]
  34. Wächter, A.; Biegler, L.T. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Program. 2006, 106, 25–57. [Google Scholar] [CrossRef]
  35. Cohon, J.L. Multiobjective Programming and Planning; Courier Corporation: Chelmsford, MA, USA, 2004; Volume 140. [Google Scholar]
Figure 1. Flowchart of the proposed methodology.
Figure 1. Flowchart of the proposed methodology.
Water 12 01364 g001
Figure 2. A small example of the superlinks for the pipes in a looped WDS (dotted lines are superlinks).
Figure 2. A small example of the superlinks for the pipes in a looped WDS (dotted lines are superlinks).
Water 12 01364 g002
Figure 3. Layout of a two-loop network (the chord tree pipes are highlighted in red).
Figure 3. Layout of a two-loop network (the chord tree pipes are highlighted in red).
Water 12 01364 g003
Figure 4. Histogram of the total cost after applying the proposed two-stage formulation and the NLP formulation to the two-loop network with different number of loading cases (50 runs for each of the loading cases). (a) Two-stage method applied to case study 1 with 4 loading conditions; (b) NLP method applied to case study 1 with 4 loading condition; (c) Two-stage method applied to case study 1 with 6 loading condition; (d) NLP method applied to case study 1 with 6 loading condition; (e) Two-stage method applied to case study 1 with 12 loading condition; (f) NLP method applied to case study 1 with 12 loading condition.
Figure 4. Histogram of the total cost after applying the proposed two-stage formulation and the NLP formulation to the two-loop network with different number of loading cases (50 runs for each of the loading cases). (a) Two-stage method applied to case study 1 with 4 loading conditions; (b) NLP method applied to case study 1 with 4 loading condition; (c) Two-stage method applied to case study 1 with 6 loading condition; (d) NLP method applied to case study 1 with 6 loading condition; (e) Two-stage method applied to case study 1 with 12 loading condition; (f) NLP method applied to case study 1 with 12 loading condition.
Water 12 01364 g004aWater 12 01364 g004b
Figure 5. The detailed solution of the two-loop network with four loading conditions using the proposed two-stage LP-NLP method.
Figure 5. The detailed solution of the two-loop network with four loading conditions using the proposed two-stage LP-NLP method.
Water 12 01364 g005
Figure 6. The tank levels and pressure profile of the base run solution obtained for the two-loop network. (a) The change of tank water level over time of a typical day of the best solution obtained for the two-loop network; (b) The change of pressure in the pressure critical node over time of a typical day of the best solution obtained for the two-loop network.
Figure 6. The tank levels and pressure profile of the base run solution obtained for the two-loop network. (a) The change of tank water level over time of a typical day of the best solution obtained for the two-loop network; (b) The change of pressure in the pressure critical node over time of a typical day of the best solution obtained for the two-loop network.
Water 12 01364 g006
Figure 7. Layout of a real-life network (the chord tree pipes are highlighted in red).
Figure 7. Layout of a real-life network (the chord tree pipes are highlighted in red).
Water 12 01364 g007
Figure 8. Histogram of the total cost after applying the proposed two-stage formulation and the NLP formulation to the real-life WDS with different reservoir elevations (20 runs for each of the reservoir configurations). (a) Two-stage method applied to case study 2 with reservoir configuration (200-200); (b) Two-stage method applied to case study 2 with reservoir configuration (270-240); (c) Two-stage method applied to case study 2 with reservoir configuration (320-280); (d) Two-stage method applied to case study 2 with reservoir configuration (320-320); (e) Two-stage method applied to case study 2 with reservoir configuration (370-320); (f) NLP method applied to case study 2 with reservoir configuration (200-200); (g) NLP method applied to case study 2 with reservoir configuration (270-240); (h) NLP method applied to case study 2 with reservoir configuration (320-280); (i) NLP method applied to case study 2 with reservoir configuration (320-320); (j) NLP method applied to case study 2 with reservoir configuration (370-320).
Figure 8. Histogram of the total cost after applying the proposed two-stage formulation and the NLP formulation to the real-life WDS with different reservoir elevations (20 runs for each of the reservoir configurations). (a) Two-stage method applied to case study 2 with reservoir configuration (200-200); (b) Two-stage method applied to case study 2 with reservoir configuration (270-240); (c) Two-stage method applied to case study 2 with reservoir configuration (320-280); (d) Two-stage method applied to case study 2 with reservoir configuration (320-320); (e) Two-stage method applied to case study 2 with reservoir configuration (370-320); (f) NLP method applied to case study 2 with reservoir configuration (200-200); (g) NLP method applied to case study 2 with reservoir configuration (270-240); (h) NLP method applied to case study 2 with reservoir configuration (320-280); (i) NLP method applied to case study 2 with reservoir configuration (320-320); (j) NLP method applied to case study 2 with reservoir configuration (370-320).
Water 12 01364 g008
Table 1. Commercially available pipe diameters and unit cost for both case studies.
Table 1. Commercially available pipe diameters and unit cost for both case studies.
Pipe Diameter
(mm)
Cost
($/m)
252
515
768
10211
15216
20323
25432
30550
35660
40690
457130
508170
559300
610550
Table 2. Demand multipliers and energy tariffs for a typical day divided into four, six, and 12 loading conditions.
Table 2. Demand multipliers and energy tariffs for a typical day divided into four, six, and 12 loading conditions.
Time of DayDemand Multiplier
-
Energy Tariff
($/kWh)
00:00–02:00--0.2--0.02
02:00–04:00-0.150.1-0.0150.01
04:00–06:000.2-0.30.02-0.03
06:00–08:00-0.71.1-0.070.11
08:00–10:00--0.9--0.09
10:00–12:000.80.650.40.0640.0650.04
12:00–14:00--0.8--0.08
14:00–16:00-1.01.2-0.10.12
16:00–18:001.2-1.60.12-0.16
18:00–20:00-1.20.8-0.120.08
20:00–22:00--0.7--0.07
22:00–24:000.60.50.30.0480.050.03
Table 3. Detailed statistics of the cost of each component of the 50 runs with different initial guesses of the flows in the chord tree pipes of the proposed two-stage method and NLP method applied to the two-loop network with four loading conditions (base run). (a) The proposed two-stage method. (b) The original NLP method.
Table 3. Detailed statistics of the cost of each component of the 50 runs with different initial guesses of the flows in the chord tree pipes of the proposed two-stage method and NLP method applied to the two-loop network with four loading conditions (base run). (a) The proposed two-stage method. (b) The original NLP method.
(a)
Statistical Properties ($ × 105)
MinMaxMean (%)MedianStd. DevStd. Err
Pipe Cost3.524.153.82 (17%)3.800.190.03
Tank Cost1.261.721.46 (7%)1.450.100.01
Pump Cost5.185.945.4 (24%)5.380.190.03
Energy Cost10.8512.1811.68 (52%)11.760.360.05
Total Cost21.7822.9122.3722.420.280.04
(b)
Statistical Properties ($ × 105)
MinMaxMean(%)MedianStd. DevStd. Err
Pipe Cost2.634.433.23 (14%)3.190.310.05
Tank Cost0.651.401.10 (5%)1.250.300.05
Pump Cost5.106.725.88 (26%)5.660.420.07
Energy Cost11.4013.3912.25 (55%)12.100.550.09
Total Cost21.1424.6522.4621.870.900.15
(a) (Note: 50 runs, all of which are completed with feasible solutions); (b) (Note: 50 runs, 36 of which are completed with feasible solutions).

Share and Cite

MDPI and ACS Style

Qiu, M.; Housh, M.; Ostfeld, A. A Two-Stage LP-NLP Methodology for the Least-Cost Design and Operation of Water Distribution Systems. Water 2020, 12, 1364. https://doi.org/10.3390/w12051364

AMA Style

Qiu M, Housh M, Ostfeld A. A Two-Stage LP-NLP Methodology for the Least-Cost Design and Operation of Water Distribution Systems. Water. 2020; 12(5):1364. https://doi.org/10.3390/w12051364

Chicago/Turabian Style

Qiu, Mengning, Mashor Housh, and Avi Ostfeld. 2020. "A Two-Stage LP-NLP Methodology for the Least-Cost Design and Operation of Water Distribution Systems" Water 12, no. 5: 1364. https://doi.org/10.3390/w12051364

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop