Next Article in Journal
Will Participation in Dual Value Chains Promote Manufacturing Upgrades and Green Development?
Previous Article in Journal
TeaNet: An Enhanced Attention Network for Climate-Resilient River Discharge Forecasting Under CMIP6 SSP585 Projections
Previous Article in Special Issue
Assessing the Performance of State Water Utilities in Nigeria: Towards Achieving the Sustainable Development Goal on Drinking Water
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Efficient Approach for the Sectorization of Water Distribution Systems: Integrating Graph Theory and Binary Particle Swarm Optimization

by
Sabrina da Silva Corrêa Raimundo
1,
Elizabeth Amaral Pastich
2 and
Saulo de Tarso Marques Bezerra
2,*
1
Graduate Program in Civil and Environmental Engineering, Agreste Campus, Federal University of Pernambuco, Marielle Franco Av., Km 59, Caruaru 55014-900, Brazil
2
Department of Technology, Agreste Campus, Federal University of Pernambuco, Recife 50670-901, Brazil
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(9), 4231; https://doi.org/10.3390/su17094231
Submission received: 31 October 2024 / Revised: 21 February 2025 / Accepted: 6 March 2025 / Published: 7 May 2025
(This article belongs to the Special Issue Sustainable Water Resources Management and Water Supply)

Abstract

The accelerated expansion of urban areas has significantly increased the complexity of managing water distribution systems. Network sectorization into smaller, independently controlled areas is often highlighted as an important measure to enhance operational security and reduce water losses in networks. However, identifying the optimal sectorization strategy is challenging due to the vast number of possible combinations, and existing methods still present practical limitations. This study proposes a hybrid model for the optimal design of district-metered areas in water distribution systems. The methodology combines graph theory, the Dijkstra shortest path algorithm (DSP), and the meta-heuristic binary particle swarm optimization (BPSO) algorithm. Structuring the topology of the water distribution network using graphs allows the identification of existing connections between the network components. By DSP, the shortest paths from the reservoir to the consumption points were determined, while the proposed BPSO sought the best combination of pipe conditions (open or closed) while meeting the constraint conditions. The application of the model to three real water distribution systems in João Pessoa, in northeastern Brazil, demonstrated its efficiency in sectorization projects, providing optimal solutions that meet the imposed constraints. The results highlight the model’s potential to optimize costs and enhance decision-making in water utility projects.

1. Introduction

In recent years, the accelerated expansion of urban areas has significantly increased the complexity of managing water distribution systems (WDS), leading to high water loss rates. To mitigate these challenges, a promising strategy involves applying a “divide and conquer” approach, in which the original complex network is subdivided into smaller subnetworks, each independently controlled, known as district-metered areas (DMA) [1].
Sectorization has been successfully implemented globally, enabling water loss assessment through flow balance comparisons between the inlet of the DMA and the total consumption within the district’s coverage area. This water balance calculation serves as the foundation for bottom-up techniques used to evaluate water losses. Additionally, it allows the control of service pressures within acceptable limits, the detection of visible and invisible leaks, the facilitation of rehabilitation works, better management of water quality, and protection against accidental or intentional contamination.
Identifying the optimal sectorization strategy for WDS is a complex task due to the vast number of combinations, even for small networks. Currently, most real-world sectorization projects are based on designers’ experience, often relying on trial and error. Thus, there is a growing need for more efficient and automated solutions for DMA design.
Sectorization design presents a significant challenge because at least three crucial requirements must be met: (1) network connectivity, ensuring that all nodes are connected to at least one water source; (2) compliance with minimum pressure requirements; and (3) minimizing the number of flowmeters and valves to reduce both costs and management complexity [2]. Normally, the process is accomplished in two main steps: clustering and dividing [3]. Clustering (or cluster analysis) involves grouping water demand nodes into areas based on their characteristics and connections, while the division step entails installing flowmeters or valves at the boundary pipes between areas to enable independent metering.
In the last decades, numerous methods have emerged for clustering water demand nodes and determining the placement of boundary pipes. The methods and concepts applied in the clustering phase include graph theory [4,5,6,7], community structure [8,9,10], modularity-based algorithms [11], multi-level partitioning [12], spectral graph algorithms [2,13], and multi-agent approaches [14]. The methods applied in the dividing phase include single-objective programming [15,16] and multiple-objective programming [17,18,19].
The principles of graph theory are widely adopted for clustering nodes and, consequently, for forming districts in WDS [20]. One of the first works on sectorization was published by Herrera et al. [13], who proposed a method using spectral clustering. The study results demonstrate that it is possible to divide the network into non-isolated districts with quantities pre-established by the designer. However, the model focuses solely on minimizing the number of pipe sections that need to be closed (valves) for partitioning, without considering other potential benefits for the system.
Another approach to sectorization found in the literature involves detecting community structures in WDS using the modularity index. This technique was first proposed by Diao et al. [8], focusing on minimizing the number of pipelines between districts. Subsequently, Ciaponi et al. [10] presented a methodology that combines a modularity-based algorithm for the automated creation of DMA boundaries.
Although there is a wide variety of methods in the literature, many have practical limitations. For instance, results from clustering-based methods tend to yield similar attributes, such as elevation, pressure, or DMA size. Community detection methods often require adjustments to key parameters, such as the number of sectors and modularity limits, to optimize outcomes. Additionally, using pipe diameters as weights frequently overlooks relevant hydraulic factors. Optimizing hydraulic performance and leakage reduction efficiency remains essential, regardless of the method used.
DMA establishment studies are multi-objective and preferred over single-objective strategies, since they explore a variety of solutions, resulting in more realistic decisions [21]. Many-objective optimization tools, such as swarm intelligence algorithms (e.g., multi-objective agent swarm optimization) and evolutionary algorithms (e.g., NSGA-II, NSGA-III, BORG algorithm), are gaining attention [22]. Zhang et al. [20] and Shekofteh et al. [23] proposed multi-objective optimization sectorization methods based on NSGA-II. Zhang et al. [20] developed a method that comprehensively considers hydraulic performance, water quality, and economic factors while incorporating human expertise into the process. Shekofteh et al. [23], in turn, utilized graphs with NSGA-II to optimize the number of flowmeters and valves while simultaneously reducing computational effort by employing a more efficient algorithmic structure. These advancements highlight the growing relevance of multi-objective approaches in addressing the complexities of water distribution system sectorization.
Santonastaso et al. [24] and Sharma et al. [21] proposed models to refine sectorization algorithms using topological matrices, enabling the reuse of pre-existing valves in the network for DMA design. Santonastaso replaced the traditional node-and-pipe-based topological description with a dual topology based on network segments and isolation valves. Sharma et al. [21] identified DMAs in three stages: cluster identification, boundary optimization or sectorization, and performance evaluation of the sectorized network.
Brentan et al. [25] proposed a performance analysis of DMA generation that considers such indicators as resilience index, demand similarity, pressure uniformity, water age (and thus water quality), solution implementation costs, and electrical consumption. Bianchofti et al. [26] compared different performance indices in multi-source sectorization design and concluded that the loss of resilience criterion performed better for each district in terms of pressure uniformity and demand similarity when compared to other specific performance criteria.
Sharma et al. [27] proposed using NSGA-III to generate a set of optimal DMA configurations, allowing the selection of the most suitable configuration based on preferences assigned to each objective. Simultaneous handling of such parameters or multiple objectives significantly increases computational complexity and may limit the practical applicability of the methodology from a network operations perspective.
Spizzo et al. [28] presented the application of an optimization approach based on complex network theory coupled with a genetic algorithm (GA). The methodology consists of a clustering phase performed with two different algorithms (Girvan–Newman and spectral clustering) and a dividing phase that determines whether a valve or a flow meter should be installed in a pipe. The final phase employs a GA to optimize the system objectives. Anchieta et al. [29] developed hybrid algorithms that combine established methods, such as the Fast–Greedy and Louvain algorithms, with PSO. The hybrid algorithms based on Louvain achieved the best results; however, Louvain produces only a limited number of solutions, some of which may not satisfy the imposed constraints [30].
Recently, Vasilic et al. [31,32] presented the DeNSE method (distribution network sectorization method), which is based on a heuristic procedure where sectorization is performed through the efficient tracking of water balance data, determining the lowest investment cost required to maintain the operational performance of the network. The methodology consists of two main stages: a clustering stage, based on the network uniformity index, and a dividing stage, in which a genetic algorithm (GA) is used to minimize implementation costs. The dividing stage also considers the presence of pre-installed valves in the WDN and water supply security criteria, providing a more accurate estimate of implementation costs and the operational efficiency of the network after sectorization.
Considering this context, this study proposes a hybrid model that integrates graph theory, using the Dijkstra algorithm (DSP), with the meta-heuristic binary particle swarm optimization (BPSO) algorithm. Among the meta-heuristic techniques applicable to the problem, particle swarm optimization (PSO) stands out as one of the most popular. Over the past two decades, PSO has been successfully applied to a wide variety of complex optimization problems in science and technology, demonstrating its versatility and effectiveness [33,34]. The model is inspired by the dynamics and behavior of socially organized populations in nature, influenced by both the individual’s personal experience and the group’s collective knowledge [35,36].
This approach was adopted considering the simplicity and effectiveness of solving complex problems by graph structures. The DSP algorithm was used to define the initial sectorization solution by identifying the shortest paths that water travels from the reservoir to the consumption points, considering both the topology and hydraulic analysis of the network. Furthermore, since the sectorization problem is characterized by structural and hydraulic requirements, BPSO was employed to obtain the optimal solution within a reasonable computational time. The algorithm determines the best combination of segment conditions (open or closed) while satisfying the established constraints.
This work also supports the Sustainable Development Goals (SDGs), particularly SDG 6, which aims to ensure the availability and sustainable management of water and sanitation for all. By proposing a model that contributes to reducing water losses and improving the operational efficiency of WDS, this study promotes the responsible use of water resources and contributes to the resilience of water supplies, which are fundamental in addressing climate change and water scarcity.

2. Materials and Methods

The proposed hybrid sectorization model was developed in the Python programming language using the free integrated development environment (IDE) PyCharm Community version 2019.3.1, with the assistance of the Epynet library, a package that allows users to utilize all functions of the EPANET 2.00.12 toolkit in Python scripts.
To obtain a solution to the proposed problem, the methodology consisted fundamentally of: (1) Definition of the main pipe; (2) Transformation of the water distribution network topology into graph structures and clustering of nodes using the DSP algorithm [37]; and (3) Determination of the DMA. Figure 1 presents the flowchart of the proposed model.
The BPSO algorithm was adopted because the problem is characterized as discrete and binary, where the configuration of a pipe can take the value 0 (closed pipe) or 1 (open pipe). This approach has stood out in optimization problems since fewer individuals and iterations are required to converge to an optimal solution. The application of this algorithm to this type of problem has not been found in the literature.

2.1. Main Pipe

The main pipe is identified by the designer based on hydraulic criteria, consisting of large-diameter pipes that transport the largest flows. It originates from the reservoir and must supply the DMA. Once this pipe was defined, the pipes that would be decision variables (branching pipes) were identified, i.e., pipes that could receive valves or flowmeters. These pipes are directly connected to the main pipe.

2.2. Node Clustering

This step is based on the study by Zhang et al. [20], which proposes an innovative approach adapted from Dijkstra’s algorithm. After defining the main pipe, the topology of the network was transformed into undirected graph structures, where the vertices represent nodes, and the edges represent pipes without a defined direction. For this representation, an adjacency matrix was constructed to relate the existing connections between nodes, where
Adjacency   matrix   [ i ,   j ] = 1   if   there   is   a   pipe   between   node   i   and   node   j Adjacency   matrix   [ i ,   j ]   =   0   otherwise
In addition to the adjacency matrix, a weighted matrix was required to cluster the nodes. The weighted matrix was defined as:
Weighted   matrix   [ i ,   j ] = weight   if   there   is   a   pipe   between   node   i   and   node   j Weighted   matrix   [ i ,   j ]   =   infinity   otherwise
From the representation of the topology by matrices, the nodes were grouped to share the same branching pipe connected directly to the main pipe. For this, the DSP algorithm was used to find the optimal water path between node i and the endpoint k (reservoir). In combination with the weighted matrix and the pipe weights, the shortest path was obtained using Equation (1):
d i s t a n c e k i = w t ,             t { p a t h k i }
where w t is pipe weight t ; { p a t h k i } is the set of pipes corresponding to the shortest path between the initial node k (reservoir) and node i .
The pipe resistance coefficient, calculated using the Hazen–Williams formula, was used as the weight value for the pipe, as in Equation (2):
w t = 10.67 · C t 1.852 · d t 4.871 L t ,             t = 1,2 , , T
where C t is the Hazen–Williams roughness coefficient of the pipe t ; d t is pipe diameter in t ; L t is pipe length t , and T is the number of pipes.
The districts formed represent the set of paths (pipes) with the lowest resistances. The number of DMA generated represents the maximum number of sectors that the analyzed network could support, implying high operating costs and technical infeasibility. Therefore, an additional step was necessary to merge the districts to obtain the final solution.
It is also worth noting that the branching pipes that are part of the shortest path of any node are the decision variables, and they can indicate a district entry. Pipes not selected in any shortest path should remain closed, reducing the number of decision variables.

2.3. Optimization of District Metered Areas

Given the characteristics of the problem, the BPSO algorithm proposed by Khanesar et al. [38] was implemented to find the best combination of pipe conditions (open or closed) while satisfying the imposed constraints. For each iteration, the WDS simulation characterized by the new sectorization was performed using the Epynet library, and the new performance was investigated by calculating the objective function. The parameters of BPSO used for the sectorization were: c 1 = 1; c 2 = 1; ω = 0.5; number of particles = 4; number of iterations = 20; N 1 = 2; α = 10; and β = 5.
The particle’s position informs the condition of the branching pipes, indicating whether the pipe should remain open (1) or closed (0). In each iteration, a new network topology was formed with new connections, so the adjacency and weighted matrices were updated, and new shortest paths were calculated using the DSP algorithm, forming new districts. From the newly created districts, the boundary pipes—those connecting two DMA—were identified.
After making the necessary changes to the water distribution networks, including inserting valves in the pipes that should remain closed and flowmeters at the district entry pipes, simulations were conducted, and constraint and objective function calculations were performed for all iterations.

2.4. Binary Particle Swarm Optimization

The PSO algorithm employs two sociometric principles: G b e s t and P b e s t . G b e s t connects all members of a population and corresponds to the best position in the search space traversed by any of the particles associated with the entire swarm, while P b e s t is the best individual position each particle has visited in the search space.
In this technique, the position of each particle represents a possible solution ( x ) to the problem. Initially, this position and each velocity ( v ) are determined randomly. At each time step (iteration), the quality of each particle’s position is evaluated according to the objective function, and a new velocity is calculated using Equation (3):
v i k + 1 = ω · v i k + c 1 · r a n d 1 · ( P b e s t i k X i k ) + c 2 · r a n d 2 · ( G b e s t i k X i k )
where ω is inertia weight; c 1 and c 2 are the cognitive and social components, respectively; r a n d generates random values between 0 and 1.
Once the particle’s velocity is calculated, the particle’s position in the next iteration is updated as an additive influence of the previous position and the calculated velocity (Equation (4)). This guarantees some randomness in the search process while considering both individual and group performance, making the method fast and efficient.
X i k + 1 = X i k + v i k + 1
To limit the velocity of a particle and prevent the system from overshooting the search space, velocity limits ( v m a x ) are imposed in each dimension of the search space:
IF   v i > v m a x ,   THEN   v i = v m a x ;
IF   v i < v m a x ,   THEN   v i = v m a x .
The PSO algorithm is repeated until a termination criterion is met or the changes in particle velocities are close to zero. Additionally, the initial set of particles X i is randomly generated and spread across the search space according to Equation (5):
X i I X i X i S
where X i I   and X i S are the lower and upper bounds of the particle positions, respectively. The particle dimensions are determined by the problem to be optimized based on the number of design variables.
The inertia weight added by Shi and Eberhart [39] modifies the velocity update calculation. This parameter balances global and local exploration, resulting in fewer iterations to find a good solution. The inertia significantly impacts the algorithm’s behavior, indicating the particle’s ability to maintain its current trajectory. Shi and Eberhart demonstrated that:
IF   ω   <   0.8 ,   PSO   focuses   its   searches   on   local   exploration
IF   0.8   <   ω   <   1.2 ,   it   is   more   likely   that   PSO   will   find   the   global   optimum   after   a   moderate   number   of   iterations
IF   ω   >   1.2 ,   PSO   searches   globally   in   new   areas
The findings on the inertia led to the proposal of reducing weights as the algorithm progresses. Shi and Eberhart [40] proposed a linear variation of inertia, with an initial value of 0.9 and a final value of 0.4, as shown in Equation (6):
ω i = ω i n i ω f i m N i N + ω i n i
where ω i n i and ω f i m are the initial and final inertia weights, respectively; N is the total number of iterations; and i is the current iteration.
Cognitive and social factors also influence particle exploration in the search space and are commonly set to a value of 2 [41]. The random factor helps the particle avoid getting trapped in local minima. Additionally, Clerc [42] proposed the use of a constriction factor K to ensure PSO convergence, as demonstrated in Equation (7):
K = 2 ( c 2 + c 2 4 · c )
Eberhart and Shi [41] showed that the constriction approach outperforms the standard approach with ω if c > 4 and v m a x ( ) = x m a x · v m a x is the upper limit for each element of the velocity vector, and x m a x is the maximum initialization range for each element of the position vector. K should be multiplied by the velocity as in Equation (8):
v i k + 1 = K v i k + c 1 · r a n d 1 · P b e s t i k X i k + c 2 · r a n d 2 · G b e s t i k X i k
Since the problem under evaluation has discrete binary variables, the BPSO algorithm presented by Khanesar et al. [38] was chosen, since it has been widely used in recent studies. In this new method, the particle’s velocity is the rate at which the particle changes its bit value, as in the classical version of PSO.
Two vectors for each particle are introduced: V i 0 and V i 1 . V i 0 is the probability that the particle changes to 0, while the V i 1 is the probability that the particle changes its value to 1. Thus, the probability of changing the i-th particle bit is simply defined by Equation (9):
V i c = V i 1     IF   x i = 0
V i c = V i 0     IF   x i = 1
To guide the i-th particle’s bit to its best position, the velocity of change to 1 ( V i 1 ) for that particle increases, and the velocity of change to zero ( V i 0 ) decreases. Using this concept, the following rules can be derived by Equation (10):
IF     P b e s t = 1     THEN   d i , 1 1 = c 1 · r a n d 1     AND   d i , 1 0 = c 1 · r a n d 1 ;
IF   P b e s t = 0   THEN   d i , 1 1 = c 1 · r a n d 1   AND   d i , 1 0 = c 1 · r a n d 1 ;
IF   G b e s t = 1   THEN   d i , 2 1 = c 2 · r a n d 2   AND   d i , 2 0 = c 2 · r a n d 2 ;
IF   G b e s t = 0   THEN   d i , 2 1 = c 2 · r a n d 2   AND   d i , 2 0 = c 2 · r a n d 2 ·
where d i 0 and d i 1 store temporary values. Then, the vectors V i 0 and V i 1 can be updated by Equations (11) and (12):
V i 1 = ω · V i 1 + d i 1 1 + d i 2 1
V i 0 = ω · V i 0 + d i 1 0 + d i 2 0
Indeed, in this algorithm, if the best global variable or the best local variable is 0, the velocity V i 0 will increase, and the probability of switching to 1 will decrease at the same rate. In this approach, the previously found direction is maintained and used, meaning that the particles retain memory of the previous direction. After updating the particle velocities, the change velocity is obtained using Equation (9), and a normalization process is performed. Then, the next particle state is calculated using Equation (13):
X i k + 1 = X i k ¯       IF   r i < S i g ( v i k )
X i k + 1 = X i k   o t h e r w i s e
where X i k ¯ = 1 if X i k = 0 and X i k ¯ = 0 if X i k = 1. The meaning of the parameters used in the velocity calculation (Equation (8)) is the same as in the classic PSO. The inertia weight preserves the particle’s previous bit direction for the best personal bit or the best global bit, whether it is 1 or 0.

2.4.1. Objective Function

The objective function of the model is described by Equation (14), which aims to minimize the implementation costs of the project, considering the pressures at the consumption points and the size of the DMA. The costs ( C D ) were calculated using Equation (15), while the penalties are described by Equation (16) to (18).
F O = C D + P e n
C D = j = 1 k v C v ( D j ) + m = 1 k m C m ( D m )
P e n = P e n p r e s + P e n S i z e D M A
P e n p r e s = i = 1 N α P m i n P n
P e n S i z e D M A = j = 1 M β m a x S i z e S i z e D M A j
where F O is the objective function to be minimized; C D is the cost of the devices (valves and flowmeters); P e n corresponds to the penalty function; C v is the cost of the valve as a function of pipe diameter j ; C m is the cost of the flowmeter; k v is the total number of valves; k m is the total number of flowmeters; N is the total number of nodes; α is the penalty factor; P m i n is the minimum required pressure; P n is the pressure at node i ; M is the number of districts; β is the penalty factor; m a x S i z e is the maximum size of the districts; and S i z e D M A is the size of district j .
The penalty factors α and β were determined by verification tests. It is important that these values are significant enough for the optimization algorithm to recognize the optimal solution. Unlike other optimization algorithms that present a set of feasible solutions, the model converges to a single feasible solution. This was made possible by assigning values to the penalty factors, prioritizing the most important criterion considered by the designer.

2.4.2. Decision Variables

The optimal DMA design problem is a combination problem regarding the condition of the pipes. When defining the DMA, the boundary pipes, which are pipes whose initial and final nodes are in different districts, were identified. These pipes were closed according to Equation (19):
  p i p e J b o u n d a r y   p i p e s ,     x ( j ) ( 0 )
Meanwhile, the pipes branching from the main pipe and connecting the possible districts (branching pipes) are the decision variables of the problem. By combinations, the best solutions were identified. In this set, the pipes that remained open received flowmeters, while the others received valves. These pipes are expressed by Equation (20):
  p i p e J b r a n c h i n g   p i p e s ,     x ( j ) ( 0 ,   1 )

2.4.3. Constraint Conditions

The following constraints were imposed on the hybrid model:
  • Isolated Districts: To create independent and efficient districts, there must be no node intersections between two DMA.
  • Hydraulic Requirements: Mass and energy conservation must be ensured. The model guarantees hydraulic requirements through the calculations performed by the Epynet library integrated into the PyCharm environment.
  • Minimum Pressure: The pressure at all nodes must be greater than the required minimum pressure. The model ensured minimum pressure by the penalty function coupled with the objective function.
  • DMA Size: The minimum dimensions were considered in the technical and economic feasibility analysis of the objective function. Like the minimum pressure constraint, the district size constraint is guaranteed through the penalty function.

3. Results

The hybrid model was applied to the sectorization of three water distribution systems located in the city of João Pessoa, Northeast Brazil. The systems—Pressure Zones R1–R23, R5, and R37—were selected due to their complexity and diversity in terms of pipe lengths, diameters, and network topology. The analysis was conducted under the operational condition of maximum hourly demand. The results were compared with a project developed by Hidrainfo, a specialized company contracted by the local water utility. Table 1 summarizes the key data from each system, including the number of nodes, pipes, and the population served. Table 2 shows the costs of the flowmeters and valves.

3.1. Pressure Zone R1

Pressure Zone R1 covers an area of 878 km2 and has 2029 nodes and 2380 pipes, totaling 1207 km of pipes with diameters ranging from DN 50 to DN 400 (PVC, asbestos cement, and cast iron). Figure 2 shows the network’s layout, highlighting the reservoir at the origin (R1), the network pipes (colored lines), and their georeferenced nodes. The piezometric head of the elevated reservoir R1 is 70.12 mca. The colored points correspond to the network nodes with their respective elevations. The lines in dark blue represent PVC/PBA DN 50 pipes; in light blue, PVC/PBA DN 75; in green, PVC/PBA DN 100 mm; in yellow, PVC DEFoFo DN 150 mm; and in red, PVC DEFoFo and asbestos cement pipes varying from DN 200 to DN 400 mm.
The main network was defined with 41 pipes, while the decision variables included 31 pipes. Network data were processed using the input file (.INP) generated in EPANET. After processing, matrices were created to represent the network topology as a graph, and 27 DMAs were defined through node clustering (Figure 3a). Consequently, this sectorization option would require 27 flowmeters and 59 valves. At all stages of the model, the flows and pressures of the network were obtained by hydraulic simulation using the EPANET 2.2 software.
The DMA defined by the DSP algorithm was merged to find an economically and technically viable solution. It is noteworthy that four pipes connected to the main pipe were not part of the shortest path set of any network node and were thus excluded from the set of decision variables. The problem then had 27 decision variables, resulting in a search space with 227 = 134,217,728 combinations. To ensure the model converged to the optimal solution, particles were initialized in pre-selected positions. The pipes feeding the larger districts were initialized in position 1, while the pipes feeding the smaller districts were initialized in position 0.
The model converged to the optimal solution, as shown in Figure 3b. The application of BPSO resulted in the creation of seven districts with lengths of 7.68 km, 30.47 km, 26.30 km, 5.97 km, 28.32 km, 26.02 km, and 11.05 km. The solution closely resembles the sectorization designed by Hidrainfo, a company contracted by the local water utility (Figure 3c). The total cost for implementation was $311,854.13, with $184,786.00 allocated for valve installation and $160,160.52 for flowmeter costs.

3.2. Pressure Zone R5

Pressure Zone R5 covers an area of 6 km2 and contains 1154 nodes and 1417 pipes, totaling 794 km of pipes with diameters ranging from DN 50 to DN 350 (PVC and asbestos cement). Figure 4 shows the network’s layout, highlighting the reservoir (R5), the network pipes (colored lines), and their georeferenced nodes. The piezometric head of the elevated reservoir R5 is 82.94 mca. The colored points correspond to the network nodes with their respective elevations. The dark blue lines represent PVC/PBA DN 50 pipes, the light blue represent PVC/PBA DN 75, the green represent PVC/PBA DN 100 mm, the yellow represent PVC DEFoFo DN 150 mm, and the red represent PVC DEFoFo and asbestos cement pipes ranging from DN 200 to DN 350 mm.
The main pipe was defined with 33 pipes, and the decision variables of the problem were 23 pipes. After reading the input file, matrices were created to represent the topology as a graph, and then 23 DMA were defined by clustering nodes (Figure 5a). Therefore, 23 flowmeters and 79 valves would be required for this sectorization option. Based on the solution provided by the DSP algorithm, the optimization problem resulted in a search space with 223 = 8,388,608 combinations.
The model converged to the optimal solution, as shown in Figure 5b. This solution consists of five DMAs with lengths of 29.19 km, 12.49 km, 18.74 km, 14.69 km, and 11.73 km. The model’s results closely resemble the sectorization designed by Hidrainfo (Figure 5c). The total cost of implementing this sectorization was $311,854.13, with $184,786.00 for valve installation and $160,160.52 for flowmeters. This cost analysis highlights the economic feasibility of the model, especially when considering the potential reduction in water losses and the operational improvements facilitated by the new sectorization.

3.3. Pressure Zone R37

Pressure Zone R37 covers an area of 17 km2 and contains 1043 nodes and 1249 pipes, totaling 1149 km of pipes with diameters ranging from DN 50 to DN 600 (PVC and cast iron). Figure 6 shows the network’s layout, highlighting the reservoir (R37), the network pipes (colored lines), and their georeferenced nodes. The piezometric head of the elevated reservoir R37 is 75.15 mca. The colored points correspond to the network nodes with their respective elevations. The lines in dark blue are PVC/PBA DN 50 mm; in light blue, PVC/PBA DN 75 mm; in green, PVC/PBA DN 100 mm; in yellow, PVC DEFoFo DN 150 mm; and in red, PVC DEFoFo and cast-iron pipes, ranging from DN 200 mm to DN 600 mm.
The main pipeline consisted of 18 pipes, and the decision variables for the problem involved 10 pipes. Figure 7a shows the solution obtained using the DSP algorithm, which includes ten DMAs isolated by 16 valves. The hybrid model converged to the optimal solution, as shown in Figure 7b, resulting in five DMAs with lengths of 24.89 km, 17.56 km, 25.08 km, 16.45 km, and 29.97 km. The model’s results closely resemble the sectorization designed by Hidrainfo (Figure 5c). The total cost was R$ 147,934.99, with $38,923.90 allocated for valve installation and $109,011.09 for flowmeters.
The pre-selection of particles in the BPSO algorithm proved to be an effective strategy for accelerating convergence. This allowed the algorithm to quickly identify the most promising configurations, reducing computational time while ensuring high-quality solutions.

3.4. Discussion of the Results

The hybrid model demonstrated significant potential for optimizing water distribution networks, effectively balancing economic and technical aspects of DMA design. The solution presented can streamline decision-making for water utilities since the model provides an economically viable and technically sound solution.
The decision to formulate the problem as a single-objective optimization was motivated by the intended application of the methodology as a practical tool for professionals in the sector. In many cases, utilities and engineers seek actionable, direct solutions rather than a range of possibilities that require further interpretation. However, we acknowledge that exploring trade-offs in decision-making is crucial for understanding different system configurations. In this context, future extensions of the model could incorporate multi-objective optimization strategies to offer decision-makers additional flexibility in defining DMA sizes while balancing cost considerations.
Unlike the approach adopted in some countries, where utilities aim to have multiple connection points to ensure resilience, the practice in Brazil typically prioritizes having a single entry point for each DMA. This preference is driven by operational and management concerns. When implementing DMAs, the segments that need to be closed are often physically cut to prevent unauthorized openings in the future. This approach ensures the effective isolation of the DMA, as multiple possible entries could compromise the isolation. While this strategy reduces operational flexibility, it addresses specific management challenges present in the local context.
The cost analysis of the three water distribution systems revealed that the model’s solutions were not only technically feasible but also cost-effective. The ability to reduce the number of required flowmeters and valves while maintaining system performance highlights the practical applicability of the hybrid model for real-world sectorization projects. The integration of existing valves can further reduce intervention costs. When a valve is already installed in a proposed section, the algorithm assigns a zero cost for its closure. However, this possibility was not considered in the case studies due to the lack of detailed information regarding valve locations in the utility database.
The consistency of the results across different large-scale systems—each with distinct topological and hydraulic characteristics—demonstrates the robustness and versatility of the model. Although the similarity between the solutions generated by the model and those obtained by a specialized sectorization company (Hidrainfo) validates the approach, it raises the question of the additional value that this automation provides. The model’s main advantage lies in its ability to streamline and automate the design process, making it accessible to professionals with varying levels of experience. For less experienced technicians, the model provides a structured framework for creating viable sectorization designs, reducing reliance on intuition and the tacit knowledge of specialists. For experienced professionals, the tool represents a significant advancement in terms of time savings and efficiency, particularly for large and highly complex networks, where manual trial-and-error approaches are impractical. Moreover, the integration of PSO-based economic optimization helps minimize intervention costs, reinforcing the model’s cost-effectiveness and extending its applicability beyond merely replicating solutions previously conceived by experts.
In the analysis of the case studies, two key constraints were imposed to ensure the feasibility of the proposed solutions. First, the minimum network pressure was set at 10 m to guarantee adequate service levels for all consumers (Figure 8), with the minimum pressures observed in pressure zones R1, R5, and R37 being 10.7 m, 10.16 m, and 10.01 m, respectively. Second, the maximum allowable extension for each DMA was limited to 30 km. These constraints were incorporated into the optimization process, ensuring that the proposed solutions adhered to technical requirements.
This model provides a practical solution to the immediate needs of water utilities. The proposed approach offers a valuable tool for increasing the efficiency and reliability of water supply systems in cities facing rapid growth and increasing demand.

4. Conclusions

This study presented a hybrid model for the optimized sectorization of water distribution systems, combining graph theory with the BPSO algorithm. The application of the model to three real water distribution systems in the city of João Pessoa, Northeast Brazil, demonstrated its effectiveness in identifying economically viable solutions that meet imposed hydraulic and operational constraints.
In practical terms, the model demonstrated significant potential for application in sectorization projects, particularly in medium- and large-scale water distribution systems. The solutions obtained were consistent with the expected results from specialists, reinforcing the robustness of the method.
Therefore, the presented methodology offers an efficient and practical tool for the sectorization design, contributing to water loss reduction and operational cost optimization. It also aligns with the Sustainable Development Goals (SDG), particularly SDG 6, promoting sustainable management of water resources and reinforcing water supply resilience in the face of climate change and water scarcity.
As a proposal for future work, it is suggested to include network rehabilitation actions in the methodology. In this context, the hybrid model, in addition to defining the districts, would identify the actions necessary to technically enable sectorization. These actions may involve the cleaning, replacement, and duplication of pipes. Consequently, the objective function should be reformulated to incorporate the costs associated with the rehabilitation actions.

Author Contributions

Conceptualization, S.d.S.C.R. and S.d.T.M.B.; methodology, S.d.S.C.R. and S.d.T.M.B.; software, S.d.S.C.R.; validation, S.d.S.C.R.; formal analysis, S.d.S.C.R., E.A.P., and S.d.T.M.B.; investigation, S.d.S.C.R.; writing—original draft preparation, S.d.S.C.R.; writing—review and editing, S.d.T.M.B. and E.A.P.; supervision, S.d.T.M.B.; project administration, S.d.T.M.B.; funding acquisition, S.d.T.M.B. and E.A.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Coordination for the Improvement of Higher Education Personnel (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—CAPES) (Brazil) (Finance Code 001, grant number 88882.380441/2019-01), and the National Council for Scientific and Technological Development (Conselho Nacional de Desenvolvimento Científico e Tecnológico—CNPq) (Brazil) (grant number 420012/2021-4 and 308202/2022-8).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available upon request to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Khoa Bui, X.; Marlim, M.S.; Kang, D. Water network partitioning into district metered areas: A state-of-the-art review. Water 2020, 12, 1002. [Google Scholar] [CrossRef]
  2. Di Nardo, A.; Di Natale, M.; Gargano, R.; Giudicianni, C.; Greco, R.; Santonastaso, G.F. Performance of partitioned water distribution networks under spatial-temporal variability of water demand. Environ. Model. Softw. 2018, 101, 128–136. [Google Scholar] [CrossRef]
  3. Fu, M.; Rong, K.; Huang, Y.; Zhang, M.; Zheng, L.; Zheng, J.; Falah, M.W.; Yaseen, Z.M. Graph neural network for integrated water network partitioning and dynamic district metered areas. Sci. Rep. 2022, 12, 19466. [Google Scholar] [CrossRef]
  4. Giustolisi, O.; Savic, D. Identification of segments and optimal isolation valve system design in water distribution networks. Urban Water J. 2010, 7, 1–15. [Google Scholar] [CrossRef]
  5. Campbell, E.; Izquierdo, J.; Montalvo, I.; Pérez-García, R. A novel water supply network sectorization methodology based on a complete economic analysis, including uncertainties. Water 2016, 8, 179. [Google Scholar] [CrossRef]
  6. Zhang, T.; Yao, H.; Chu, S.; Yu, T.; Shao, Y. Optimized DMA partition to reduce background leakage rate in water distribution networks. J. Water Resour. Plan. Manag. 2021, 147, 04021071. [Google Scholar] [CrossRef]
  7. Rong, K.; Fu, M.; Huang, Y.; Zhang, M.; Zheng, L.; Zheng, J.; Scholz, M.; Yaseen, Z.M. Graph attention neural network for water network partitioning. Appl. Water Sci. 2023, 13, 3. [Google Scholar] [CrossRef]
  8. Diao, K.; Zhou, Y.; Rauch, W. Automated creation of district metered area boundaries in water distribution systems. J. Water Resour. Plan. Manag. 2013, 139, 184–190. [Google Scholar] [CrossRef]
  9. Campbell, E.; Ayala-Cabrera, D.; Izquierdo, J.; Pérez-García, R.; Tavera, M. Water supply network sectorization based on social networks community detection algorithms. Procedia Eng. 2014, 89, 1208–1215. [Google Scholar] [CrossRef]
  10. Ciaponi, C.; Murari, E.; Todeschini, S. Modularity-based procedure for partitioning water distribution systems into independent districts. Water Resour. Manag. 2016, 30, 2021–2036. [Google Scholar] [CrossRef]
  11. Giustolisi, O.; Ridolfi, L. A novel infrastructure modularity index for the segmentation of water distribution networks. Water Resour. Manag. 2014, 50, 7648–7661. [Google Scholar] [CrossRef]
  12. Alvisi, S. A new procedure for optimal design of district metered areas based on the multilevel balancing and refinement algorithm. Water Resour. Manag. 2015, 29, 4397–4409. [Google Scholar] [CrossRef]
  13. Herrera, M.; Izquierdo, J.; Pérez-García, R.; Montalvo, I. Multi-agent adaptive boosting on semi-supervised water supply clusters. Adv. Eng. Softw. 2012, 50, 131–136. [Google Scholar] [CrossRef]
  14. Hajebi, S.; Barrett, S.; Clarke, A.; Clarke, S. Multi-agent simulation to support water distribution network partitioning. In Proceedings of the 27th European Simulation and Modelling Conference, ESM’2013, Lancaster, UK, 23–25 October 2013. [Google Scholar]
  15. Ferrari, G.; Savic, D.; Becciu, G. Graph-theoretic approach and sound engineering principles for design of district metered areas. J. Water Resour. Plan. Manag. 2014, 140, 04014036. [Google Scholar] [CrossRef]
  16. Gilbert, D.; Abraham, E.; Montalvo, I.; Piller, O. Iterative multistage method for a large water network sectorization into DMAs under multiple design objectives. J. Water Resour. Plan. Manag. 2017, 143, 04017067. [Google Scholar] [CrossRef]
  17. Zhang, Q. Automatic partitioning of water distribution networks using multiscale community detection and multiobjective optimization. J. Water Resour. Plan. Manag. 2017, 143, 04017057. [Google Scholar] [CrossRef]
  18. Brentan, B.M.; Campbell, E.; Meirelles, G.L.; Luvizotto, E.; Izquierdo, J. Social network community detection for DMA creation: Criteria analysis through multilevel optimization. Math. Probl. Eng. 2017, 2017, 9053238. [Google Scholar] [CrossRef]
  19. Giudicianni, C.; Herrena, M.; Di Nardo, A.; Adeyeye, K. Automatic multiscale approach for water networks partitioning into dynamic district metered areas. Water Resour. Manag. 2020, 34, 835–848. [Google Scholar] [CrossRef]
  20. Zhang, K.; Yan, H.; Zeng, H.; Xin, K.; Tao, T. A practical multi-objective optimization sectorization method for water distribution network. Sci. Total Environ. 2019, 656, 1401–1412. [Google Scholar] [CrossRef]
  21. Sharma, A.N.; Dongre, S.R.; Gupta, R.; Pandey, P.; Bokde, N.D. Partitioning of water distribution network into district metered areas using existing valves. Comput. Model. Eng. Sci. 2022, 131, 1515–1537. [Google Scholar] [CrossRef]
  22. Liu, J.; Lansey, K.E. Multiphase DMA design methodology based on graph theory and many-objective optimization. J. Water Resour. Plan. Manag. 2020, 146, 04020068. [Google Scholar] [CrossRef]
  23. Shekofteh, M.R.; Yousefi-Khoshqalb, E.; Piratla, K.R. An efficient approach for partitioning water distribution networks using multi-objective optimization and graph theory. Water Resour. Manag. 2023, 37, 5007–5022. [Google Scholar] [CrossRef]
  24. Santonastaso, G.F.; Di Nardo, A.; Creaco, E. Dual topology for partitioning of water distribution networks considering actual valve locations. Urban Water J. 2019, 16, 469–479. [Google Scholar] [CrossRef]
  25. Brentan, B.; Carpitella, S.; Izquierdo, J.; Luvizotto, E.; Meirelles, G. District metered area design through multicriteria and multiobjective optimization. Math. Methods Appl. Sci. 2022, 45, 3254–3271. [Google Scholar] [CrossRef]
  26. Bianchofti, J.D.; Denardi, M.; Castro-Gama, M.; Puccini, G.D. Sectorization for Water Distribution Systems with Multiple Sources: A Performance Indices Comparison. Water 2021, 13, 131. [Google Scholar] [CrossRef]
  27. Sharma, A.N.; Dongre, S.R.; Gupta, R.; Ormsbee, L. Multiphase procedure for identifying district metered areas in water distribution networks using community detection, NSGA-III optimization, and multiple attribute decision making. J. Water Resour. Plan. Manag. 2022, 148, 04022040. [Google Scholar] [CrossRef]
  28. Spizzo, F.; Venaruzzo, G.; Nicolini, M.; Goi, D. Water distribution network partitioning based on complex network theory: The Udine case study. Water 2023, 15, 1621. [Google Scholar] [CrossRef]
  29. Anchieta, T.F.F.; Meirelles, G.; Brentan, B.M. Optimal district metered areas design of water distribution systems: A comparative analysis among hybrid algorithms. J. Water Process Eng. 2024, 63, 105472. [Google Scholar] [CrossRef]
  30. Shao, Y.; Liu, J.; Yao, H.; Zhang, T.; Lima Neto, I.E.; Yu, T.; Chu, S. An improved hybrid community detection algorithm for partitioning of water distribution networks. Eng. Optim. 2024, 56, 430–446. [Google Scholar] [CrossRef]
  31. Vasilic, Ž.; Stanic, M.; Kapelan, Z.; Prodanovic, D.; Babic, B. Uniformity and heuristics-based DeNSE method for sectorization of water distribution networks. J. Water Resour. Plan. Manag. 2020, 146, 04019079. [Google Scholar] [CrossRef]
  32. Vasilic, Z.; Babic, B.; Ivetic, D.; Kapelan, Z.; Stanic, M. An improved DeNSE methodology for optimal sectorization of water distribution networks. Water 2024, 16, 1463. [Google Scholar] [CrossRef]
  33. Houssein, E.H.; Gad, A.G.; Hussain, K.; Suganthan, P.N. Major advances in particle swarm optimization: Theory, analysis, and application. Swarm Evol. Comput. 2021, 63, 100868. [Google Scholar] [CrossRef]
  34. Macedo, J.E.S.; Azevedo, J.R.G.; Bezerra, S.T.M. Hybrid Particle Swarm Optimization and Tabu Search for the design of large-scale water distribution networks. Braz. J. Water Resour. 2021, 26, e11. [Google Scholar] [CrossRef]
  35. Cirilo, J.A.; Ribeiro Neto, A.; Ramos, N.M.R.; Souza, J.D.S.; Bezerra, S.T.M. Management of water supply systems from interbasin transfers: Case study in the Brazilian semiarid region. Urban Water J. 2021, 18, 660–671. [Google Scholar] [CrossRef]
  36. Souza, J.D.S.; Cirilo, J.A.; Bezerra, S.T.M.; Oliveira, G.A.; Freire, G.D.; Coutinho, A.P.; Cabral, J.J.D.S.P. Decision Support System for the Integrated Management of Multiple Supply Systems in the Brazilian Semiarid Region. Water 2023, 15, 223. [Google Scholar] [CrossRef]
  37. Dijkstra, E.W. A note on two problems in connexion with graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef]
  38. Khanesar, M.A.; Teshnehlab, M.; Shoorehdeli, M.A. A novel binary particle swarm optimization. In Proceedings of the 2007 Mediterranean Conference on Control Automation, Athens, Greece, 27–29 June 2007. [Google Scholar] [CrossRef]
  39. Shi, Y.; Eberhart, R.C. A modified particle swarm optimizer. In Proceedings of the 1998 IEEE International Conference on Evolutionary Computation Proceedings. IEEE World Congress on Computational Intelligence (Cat. No.98TH8360), Anchorage, AK, USA, 4–9 May 1998. [Google Scholar] [CrossRef]
  40. Shi, Y.; Eberhart, R.C. Empirical study of particle swarm optimization. In Proceedings of the 1999 Congress on Evolutionary Computation-CEC99 (Cat. No. 99TH8406), Washington, DC, USA, 6–9 July 1999. [Google Scholar] [CrossRef]
  41. Eberhart, R.C.; Shi, Y. Comparing inertia weights and constriction factors in particle swarm optimization. In Proceedings of the 2000 Congress on Evolutionary Computation. CEC00 (Cat. No.00TH8512), La Jolla, CA, USA, 16–19 July 2000. [Google Scholar] [CrossRef]
  42. Clerc, M. The swarm and the queen: Towards a deterministic and adaptive particle swarm optimization. In Proceedings of the 1999 Congress on Evolutionary Computation-CEC99 (Cat. No. 99TH8406), Washington, DC, USA, 6–9 July 1999. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the proposed model.
Figure 1. Flowchart of the proposed model.
Sustainability 17 04231 g001
Figure 2. Water distribution system of Pressure Zone R1.
Figure 2. Water distribution system of Pressure Zone R1.
Sustainability 17 04231 g002
Figure 3. Sectorization of Pressure Zone R1: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Figure 3. Sectorization of Pressure Zone R1: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Sustainability 17 04231 g003
Figure 4. Water distribution system of Pressure Zone R5.
Figure 4. Water distribution system of Pressure Zone R5.
Sustainability 17 04231 g004
Figure 5. Sectorization of Pressure Zone R5: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Figure 5. Sectorization of Pressure Zone R5: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Sustainability 17 04231 g005
Figure 6. Water distribution system of Pressure Zone R37.
Figure 6. Water distribution system of Pressure Zone R37.
Sustainability 17 04231 g006
Figure 7. Sectorization of Pressure Zone R37: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Figure 7. Sectorization of Pressure Zone R37: (a) DSP algorithm, (b) proposed hybrid model, and (c) Hidrainfo.
Sustainability 17 04231 g007
Figure 8. Pressure map of the sectorized pressure zones: (a) R1, (b) R5, and (c) R37.
Figure 8. Pressure map of the sectorized pressure zones: (a) R1, (b) R5, and (c) R37.
Sustainability 17 04231 g008
Table 1. Data from the water distribution systems.
Table 1. Data from the water distribution systems.
SystemNumber of NodesNumber of PipesPopulation
Pressure Zone R1–R232029238020,466 inhabitants
Pressure Zone R51154141762,362 inhabitants
Pressure Zone R371045125132,021 inhabitants
Table 2. Costs of the flowmeters and valves.
Table 2. Costs of the flowmeters and valves.
Nominal Diameter
(mm)
Costs of Flowmeters
($)
Costs of Valves
($)
5010,660.002328.80
7511,644.002669.10
10012,628.003009.40
15014,596.003690.00
20016,564.004370.60
25018,614.004879.00
30020,582.005453.00
35022,550.006133.60
40027,224.005920.40
50035,096.0010,660.00
60039,032.0015,662.00
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Raimundo, S.d.S.C.; Amaral Pastich, E.; Bezerra, S.d.T.M. Efficient Approach for the Sectorization of Water Distribution Systems: Integrating Graph Theory and Binary Particle Swarm Optimization. Sustainability 2025, 17, 4231. https://doi.org/10.3390/su17094231

AMA Style

Raimundo SdSC, Amaral Pastich E, Bezerra SdTM. Efficient Approach for the Sectorization of Water Distribution Systems: Integrating Graph Theory and Binary Particle Swarm Optimization. Sustainability. 2025; 17(9):4231. https://doi.org/10.3390/su17094231

Chicago/Turabian Style

Raimundo, Sabrina da Silva Corrêa, Elizabeth Amaral Pastich, and Saulo de Tarso Marques Bezerra. 2025. "Efficient Approach for the Sectorization of Water Distribution Systems: Integrating Graph Theory and Binary Particle Swarm Optimization" Sustainability 17, no. 9: 4231. https://doi.org/10.3390/su17094231

APA Style

Raimundo, S. d. S. C., Amaral Pastich, E., & Bezerra, S. d. T. M. (2025). Efficient Approach for the Sectorization of Water Distribution Systems: Integrating Graph Theory and Binary Particle Swarm Optimization. Sustainability, 17(9), 4231. https://doi.org/10.3390/su17094231

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