2.3.1. Objective Function
In this study, the minimum annual cost is used as the comprehensive objective function to reflect the prioritization of cost-efficiency, a key concern identified by local water authorities in the coastal areas of Zhejiang Province, China. This decision was guided by direct feedback from stakeholders, who highlighted minimizing the financial burden of water infrastructure development as their most urgent priority. The adoption of a single-objective optimization approach not only directly addresses these practical needs but also provides a focused and efficient framework for resource allocation.
While multi-objective optimization methods could consider broader factors, such as ecological impacts, system resilience, and social acceptance, these aspects were deemed secondary within the specific context of this study, where economic considerations dominate decision-making processes. By narrowing the scope to cost-efficiency, this study ensures its findings are both practical and actionable for local authorities. Future research will aim to expand the framework to incorporate multi-objective optimization, balancing cost-efficiency with environmental sustainability and system adaptability, thereby enhancing its flexibility and broader applicability to urban water management scenarios.
The minimum annual cost is used as the comprehensive objective function, as shown in the following equation:
In the equation above, i represents the number of water supply nodes, while j represents the number of water demand nodes. xij indicates the volume of water supplied from the i-th water plant to the j-th subdistrict. Additionally, A represents the average annual payment, F is the sum of principal and interest, and C is the present value coefficient of the annuity. X corresponds to the water demand in subdistricts (10,000 m3/d). F(X) denotes the total annual cost (10,000 yuan), while F1(X), F2(X), F3(X), F4(X), F5(X), and F6(X) represent the costs of water production, water lifting, water supply network construction, pumping station construction, water treatment plant construction, and water intake, respectively (10,000 yuan). The model assumes a 30-year repayment term with an annual interest rate of 7%.
- 2.
Water Production Cost
The magnitude of water production costs is influenced by the quality of raw water and a range of other contributing factors. To facilitate a simplified estimation of water production costs, the following equation, represented as
F1, is employed for cost calculation.
In the equation above, “Water Production Cost” represents the unit cost of water production per unit of supply capacity for the water plant (10,000 yuan (10,000 m3/d)−1). “Water Plant Capacity” represents the daily water supply capacity of the water plant (10,000 m3/d). When calculating the water production cost for the water plant in the planning year, reference can be made to the total annual water production cost of the base year and the estimated capacity of the water plant.
- 3.
Water Lifting Cost
The cost of water lifting, represented as
F2, is calculated using the following equation:
In the equation above, η1 represents the efficiency of the pumping station for water lifting, assumed to be 1.05. η2 represents the unit conversion coefficient for the water lifting head at the waterworks (m). J indicates the electricity price (yuan/kwh), “Height” represents the elevation head for water lifting (m), and “Q-pump” denotes the flow rate matrix for the pumping station’s lifting operation (m3/s).
- 4.
Water Supply Network Construction Cost
Using the available data on pipe diameters and estimated unit costs within the network, the Pendershue formula is applied in reverse to calculate the flow rate. This approach establishes a relationship between actual flow and cost, which is illustrated through scatter plots and curve fitting. Additionally, upper and lower boundary points are identified from the scatter plot data. The resulting equation describing this relationship is shown below:
In the equation above,
D represents the diameter of the pipe network (m),
H denotes the maximum design head, typically estimated at 30 m for main pressure pipelines, and
Q indicates the flow rate (m
3/s). The detailed fitting process is illustrated in
Figure 2.
Based on the scatter plot data, the relationship between flow and cost within the water supply network was analyzed and modeled using an exponential function fitted through the least squares method. This approach resulted in the following equation to describe the flow-cost relationship:
The index ‘
K-hard’ is introduced to evaluate the complexity level of constructing the pipe network, with values ranging from 0 to 1. The cost of water supply network construction, represented as
F3, is determined using the following equation:
In the equation above, d represents the length of the pipeline network (in kilometers), q represents the pipeline flow rate (m3/s), j represents the number of water demand nodes, and Route represents the shortest water supply path.
- 5.
Pumping Station Construction Cost
The data on pumping station construction costs indicate that these expenses are roughly proportional to the station’s capacity, with an estimated cost of 2 million yuan for every 10,000 m
3 per day of lifting capacity. This implies that building a new pumping station with a capacity of 10,000 m
3 per day would involve an investment of approximately 2 million yuan. Accordingly, the pumping station construction cost, represented as
F4, can be calculated using the following equation:
- 6.
Water Treatment Plant Construction Cost
The existing project report on water treatment plant construction costs reveals that expenses are roughly proportional to the plant’s capacity, with an estimated cost of 10 million yuan for every 10,000 m
3 per day of capacity. This means that building a new water treatment plant with a daily capacity of 10,000 m
3 would require an investment of about 10 million yuan. Therefore, the construction cost of the water treatment plant, represented as
F5, can be calculated using the following equation:
- 7.
Water Intake Cost
Water intake costs encompass expenses for constructing intake structures and raw water transmission pipelines. Using unit cost data from multiple water intake projects reported in existing studies, a relationship between the scale of water intake and its associated costs has been identified. This relationship is depicted in a scatter plot and analyzed through a fitting process to derive a clear correlation. Furthermore, the upper and lower bounds of the scatter points have been determined, as shown in
Figure 3.
Using the scatter plot data, the relationship between water intake and cost was modeled as a linear function, employing the least squares method for fitting analysis. The resulting water-intake-cost relationship is expressed by the following equation:
Based on the fitting results, the construction difficulty matrix for the extraction project, represented as
Provide-hard, and the distance matrix for the extraction project, represented as
Provide-dist, are introduced as the two key parameters defining the construction of the extraction project. The values of
Provide-hard range between 0 and 1. The extraction cost, represented as
F6, can be calculated using the following equation:
In the equation above, Provide-hard represents the construction difficulty matrix for the water intake project, while Provide-dist represents the distance matrix for the water intake project (km).
2.3.2. Constraint Conditions
The water supply source is subject to an upper limit on its available supply capacity, constrained to be non-negative, with a lower bound of zero. This constraint on water supply capacity is represented by the following equation:
In the equation above, Cwater represents the matrix for water supply node quantity constraints; Lb-c represents the lower limit of the water supply node quantity constraint; Ub-c represents the upper limit of the water supply node quantity constraint; Ability pertains to the water supply capacity from the water plant (or water demand); Ewater corresponds to the water supply capacity provided by the water conservancy project; and Nwater refers to the incoming water conditions.
In this study, only a lower limit is defined, while no upper limit is specified. The lower limit is determined based on water demand forecasting, which considers the requirements within the water supply system. By applying the quota method for calculating water demand, the constraints on water demand are represented by the following equation:
In the equation above, Dwater represents the matrix for water demand constraints at demand nodes; Lb-d represents the lower limit of the water demand constraints at demand nodes; pop represents the projected population for the planning year; and R-pop represents the water demand quota, set at 500 L per person per day.
- 2.
Water Quality Constraint
According to Chinese government regulations, the initial chlorine concentration in water leaving the treatment plant must exceed 0.3 mg/L, while the residual chlorine concentration at the endpoints of the pipeline network should remain above 0.05 mg/L. As water is transmitted through the pipeline network, the residual chlorine concentration gradually diminishes, serving as a critical indicator of water quality within the network. This decay is influenced by factors such as time, temperature, turbidity, and pH. Extensive studies have addressed this issue, leading to the development of numerous models for predicting residual chlorine decay [
47]. In this study, the optimization of chlorine decay processes is tailored to the characteristics of the allocation model. It involves fitting a simplified relationship between chlorine concentration and transmission distance, derived from measured data on chlorine decay along the transmission route, as illustrated in
Figure 4.
The chlorine decay process is managed according to the following steps:
Initial Calculation: Determine the residual chlorine concentration along the route from the water supply node to the water demand node. If the concentration exceeds 0.05 mg/L, normal water supply continues.
Secondary Pressurization: If the residual chlorine concentration drops below 0.05 mg/L, apply secondary pressurization at the pumping station node. Update the transmission distance from the pumping station node to the water demand node to account for chlorine attenuation along the route. Recalculate the residual chlorine concentration. If the adjusted concentration exceeds 0.05 mg/L, water supply continues as planned.
Supply Infeasibility: If the recalculated concentration still does not meet the 0.05 mg/L threshold, the water supply node is considered unable to provide water to the water demand node (i.e., xij = 0).
Network-Wide Assessment: Repeat these steps for all combinations of water supply and water demand nodes to calculate the residual chlorine concentration throughout the entire network.
- 3.
Water Pressure Constraint
In addition to maintaining water quality and quantity, the water supply system must also meet specific pressure requirements to ensure consistent access for users. To address this, the water supply model includes constraints related to water pressure. Low-pressure pipelines cannot pass through pumping station nodes or water treatment plants for pressurization, nor can they directly supply water to elevated areas. Alternatively, higher-elevation areas can supply water directly to lower-elevation areas. In practical calculations, these pressure constraints primarily impact the Route matrix, which defines the water supply paths, and the Dist matrix, which represents the supply distances. These constraints are handled using the graph theory methodology described in Step 1 of
Section 2.2.
In summary, the optimization process incorporates nonlinear constraints inherent in multi-source urban water supply systems, including flow balance equations, pipeline losses, and water quality attenuation. These constraints are formulated within the graph-theoretic framework to ensure realistic simulation and optimization. For instance, the nonlinear relationship between flow rate and pipeline cost is addressed using the Pendershue formula, while flow balance constraints ensure that the inflow and outflow at each node remain consistent. These formulations are embedded into the optimization algorithm, enabling the model to handle the complexities of multi-source allocations effectively.
2.3.3. Model Solution
This model involves numerous variables during the optimization process, resulting in a complex discrete multivariate nonlinear optimization problem. To address these challenges, the model adopts the standard Genetic Algorithm (GA). However, due to the unique characteristics of this model and the inherent limitations of standard GA, several iterations and refinements were introduced to improve its performance. Consequently, an enhanced hybrid approach was developed, integrating Simulated Annealing (SA) and the Chaos Optimization Algorithm (COA), leveraging principles from previous research.
The GA process involves collective operations within the population, including selection, crossover, and mutation, which form the foundation of the iterative process [
48]. All individuals in the population undergo parallel iterations. By intergrating SA and COA, an annealing strategy and a chaotic local fine search mechanism are applied simultaneously to all individuals [
49,
50]. During updates, suboptimal results are excluded, ensuring the progressive refinement of solutions and convergence.
The GA employs floating-point encoding for individuals, with random selection used as the selection operator and a default tournament size of 100. The population size is set to 100, and initial solutions are generated randomly and filtered to ensure feasibility. Too few random solutions may result in insufficient diversity, while too many may prolong computation time or produce suboptimal results. Debugging revealed that the optimal range of initial solutions was determined to be between 5000 and 200,000, depending on the number of variables. The default configuration is set at 20,000 solutions. The model executes 400 genetic iterations by default, using single-point crossover and real-number mutation operators. For the SA operator, the annealing and current temperatures correspond to the generations in GA, with adjustments made to the annealing function. Key parameters are pre-determined, including an initial acceptance probability of 0.4, a termination acceptance probability of 0.08, and an acceleration factor of 1. A larger acceleration factor leads to faster acceptance probability. Regarding COA, the adjustment parameter τ is set at 0.2 in this model. The overall solution process is depicted in
Figure 5, with specific input file formats detailed in
Section 4.2.
The optimization algorithm integrates Genetic Algorithm (GA), Chaos Optimization Algorithm (COA), and Simulated Annealing (SA) to achieve both high accuracy and efficiency in solving complex, multi-constraint optimization problems. GA serves as the foundational framework for exploring the solution space through selection, crossover, and mutation. However, GA alone is prone to premature convergence and may struggle with local optima in highly nonlinear scenarios. To address these limitations, COA introduces a chaotic mapping mechanism, enabling finer adjustments in local search areas and improving convergence precision. Meanwhile, SA incorporates a probabilistic annealing strategy to prevent premature convergence, allowing for the exploration of diverse solution paths and escaping local optima. This hybrid GA-COA-SA algorithm combines the strengths of global exploration and local refinement, accelerating convergence while delivering high-quality solutions that effectively handle the nonlinear constraints and complexities inherent in multi-source urban water supply systems.