Research Article | Open Access
Zong Woo Geem, Jin-Hong Kim, "Wastewater Treatment Optimization for Fish Migration Using Harmony Search", Mathematical Problems in Engineering, vol. 2014, Article ID 313157, 5 pages, 2014. https://doi.org/10.1155/2014/313157
Wastewater Treatment Optimization for Fish Migration Using Harmony Search
Certain types of fish migrate between the sea and fresh water to spawn. In order for them to swim without any breathing problem, river should contain enough oxygen. If fish is passing along the river in municipal area, it needs sufficient dissolved oxygen level which is influenced by dumped amount of wastewater into the river. If existing treatment methods such as settling and biological oxidation are not enough, we have to consider additional treatment methods such as microscreening filtration and nitrification. This study constructed a wastewater treatment optimization model for migratory fish, which considers three costs (filtration cost, nitrification cost, and irrigation cost) and two environmental constraints (minimal dissolved oxygen level and maximal nitrate-nitrogen concentration). Results show that the metaheuristic technique such as harmony search could find good solutions robustly while calculus-based technique such as generalized reduced gradient method was trapped in local optima or even divergent.
Various species of fish migrate on time periods ranging from daily to annually and over long distances up to thousands of kilometers . Fish normally migrate because of reproductive or diet purposes.
In order for anadromous fishes such as salmon, which migrate from the sea into fresh water to spawn, to swim upstream without any breathing problem, the river should contain enough oxygen or the level of dissolved oxygen (DO) should be more than certain criterion.
To control the DO level in a river, wastewater dumped into the river should be well treated. Actually there are several wastewater treatment techniques such as settling, biological oxidation, microscreening filtration, and nitrification .
This study intends to find the optimal wastewater treatment portfolio which suggests overall minimal cost while satisfying minimal DO level over the river reach in order for migratory fishes to swim upstream well.
Actually optimal DO control issue for water quality while limiting wastewater load has been researched for various rivers all over the world, such as Willamette River in Oregon, USA , Schuylkill River in Pennsylvania, USA , Nitra River in Slovakia , Yasu River in Japan , and Yamuna River in India . However, real-world problems sometimes require model simplification  or experience local optima entrapment . This study tries to adopt a more realistic model considering nonlinearity of the problem and to find good results without being entrapped in premature solutions.
2. Optimization Formulation
A city (population = 100,000) dumps wastewater into a river. The wastewater (40,000 m3/day) undergoes secondary treatment which consists of settling and biological oxidation to remove organic material from the wastewater. However, this treatment is not enough to satisfy the water quality standard for migratory fishes. An environmental regulatory agency set this standard that the outflow of wastewater treatment should be more than 5 mg/liter (or 5 ppm) of DO in summertime to preserve aquatic life. Therefore, the city is now forced to consider additional treatment processes that enhance the water quality.
Because the secondary treatment (settling and biological oxidation) is not enough, the city should consider extra processes such as filtration and nitrification as shown in Figure 1. Also, certain amount of wastewater can be diverted to reduce the river discharge. This diverted one can be used for crop irrigation.
So, we can consider total five decision variables for this wastewater treatment optimization as follows:(1): wastewater dumped without additional treatment (unit: 103 m3/day),(2): wastewater undergoing additional filtration (unit: 103 m3/day),(3): wastewater undergoing additional nitrification (unit: 103 m3/day),(4): wastewater undergoing additional nitrification and filtration (unit: 103 m3/day),(5): wastewater diverted for irrigation (unit: 103 m3/day).
Also, there is one more decision variable which denotes irrigation rate (cm/week), and the relationship between and is . Here, (hectare or 104 m2) denotes irrigated area and 70 is unit conversion factor.
With the above decision variables, we can construct the objective function as follows: Here, the cost for filtration ($103/yr) is represented as follows: where the first term in right-hand side of (2) represents the capital cost of filtration treatment and the second term represents operation and maintenance cost.
The cost for nitrification ($103/yr) is represented as follows: where the first term in right-hand side of (3) represents the capital cost of nitrification treatment and the second term represents operation and maintenance cost.
The cost for irrigation ($103/yr) is represented as follows: where the first term in right-hand side of (4) represents the capital cost of transmission line; the second term represents the capital cost of storage system (lagoon); the third term represents the operation and maintenance cost of storage system; the fourth term represents the capital cost of irrigation system; the fifth term represents the operation and maintenance cost of irrigation system; and the sixth term represents the net benefit (negative cost) of cropping (crop sales minus land rent).
Constraints for this optimization problem can be Equations (8) to (11) stand for DO level constraint and (12) stands for nitrate-nitrogen level constraint. More details about these constraints are explained in the next section.
3. Mathematical Model of Water Quality
Dissolved oxygen in ppm at a distance ( km) downstream of a point wastewater discharge can be represented as the following differential equation: where is river flow velocity (7.9 km/day in this study); is reaeration rate (0.5/day in this study); is saturation DO (8.0 ppm in this study); and are remaining carbonaceous biochemical oxygen demand (CBOD) and nitrogenous biochemical oxygen demand (NBOD) (ppm) at distance ; and and are rate constants (0.35/day and 0.2/day, resp.). The first term in the right-hand side of (13) denotes oxygen increase due to reaeration and the second and third terms denote oxygen decrease due to oxidation of carbonaceous and nitrogenous material, respectively.
The above differential equation has the analytic solution as follows: Equation (14) is identical to (8), where , , and are, respectively, river DO, CBOD, and NBOD right after discharge. If river water and wastewater are completely mixed at the discharge point, initial , , and can be calculated using weighted average as expressed in (9) to (11) where river flow is 110,000 m3/day, river DO is 8.0 ppm, river CBOD is 2.0 ppm, and river NBOD is 5.0 ppm. Table 1 shows effluent water quality after wastewater treatment.
For the diverted amount , we can consider the following mass balance equation: where is irrigation duration (13 weeks in this study), is precipitation (cm) during the irrigation season, and is evapotranspiration (cm). Here, is zero in this study.
A nitrogen balance is used for estimating the nitrogen loss in percolation into groundwater. If the nitrogen concentration of is (20 ppm in this study), total nitrogen amount to the irrigation area is (kg/ha) where 0.1 is unit conversion factor. If is crop nitrogen uptake (170 kg/ha in this study), the unused nitrogen of becomes , and the nitrate-nitrogen concentration (ppm) in the percolation becomes as follows: In this study, should be less than or equal to 10 ppm for public health purpose, which makes the following constraint: Also, the nitrogen contained in should be enough to satisfy the crop’s nitrogen requirement as follows: From (17) and (18), we can obtain (12) for nitrate-nitrogen constraint.
4. Optimization Using Harmony Search
The wastewater treatment optimization model for fish migration constructed in previous sections has a complex structure which is difficult to devise a proper search strategy . So, the problem was tackled by commercial software named Microsoft Excel Solver, which uses the generalized reduced gradient (GRG2) technique .
When Solver was applied to the model with five initial solution vectors, it was trapped in local optima or even divergent instead of convergent. Table 2 shows details.
When GRG2 started with the first solution vector (0, 0, 0, 0, 0, 0), it was trapped in one of local optima (334.9) with the final solution vector (0, 0, 40, 30.33, 0, 6.54); when GRG2 started using the second solution vector (0, 0, 0, 0, 40, 10) with the cost of 345.8, it did not move any further from its starting point; when GRG2 started using the third solution vector (0, 0, 40, 25, 0, 10), it was trapped in one of local optima (334.9) with the final solution vector (0, 0, 40, 30.33, 0, 10) which is identical to the final solution vector of the first case in terms of cost but the value of is different. Because is zero, different values do not affect the objective function value; when GRG2 started using the fourth solution vector (8, 0, 0, 0, 32, 10), it was even divergent and disabled to compute any further. Although the fourth vector has a good cost (303.8), it also slightly violated minimal DO condition at the distance of 20 km downstream; and when GRG2 started using the fifth solution vector (10, 10, 10, 5, 10, 10) with the cost of 314.9, it was also divergent.
On top of those five trials, additional trials with different starting vectors have been tried. But mostly it reached divergence instead of convergence because the model structure is complicated. Thus, a metaheuristic approach, instead of calculus-based approach, using the harmony search algorithm was introduced to this study.
The harmony search (HS) algorithm was inspired by music improvisation  and applied to various optimization problems . It has its own unique human-experience-based derivative . For this DO control problem, the following optimization formulation for HS was used: subject to For the above optimization model, HS found the optimal solution using the following steps.
Step 1. HS constructs initial memory place named harmony memory (HM) as in (25) and fills HM with initial solution vectors as many as harmony memory size (HMS; this is 10 in this study). The initial vectors should satisfy the problem constraints in (20) to (24):
Step 2. A new harmony is generated using the following equation: where HMCR is harmony memory considering rate (0.95 in this study) and PAR is pitch adjustment rate (0.3 in this study).
Step 3. If the generated vector is better than the worst one in HM in terms of objective function value, the latter is replaced with the former as follows:
Step 4. If termination criterion is satisfied, the computation is ended. Otherwise, Step 2 is performed again with updated HM.
When the HS approach was applied to the DO control optimization model, it could successfully find good results without any divergence. When ten different runs were performed, HS found solutions ranging from 303.0 to 311.7 with the average of 307.5. Table 3 shows more details about the computation results.
Furthermore, this study tackled the above optimization model using genetic algorithm (GA) which is another popular metaheuristic algorithm. When GA was applied to this model, it could find solutions without any divergence. When ten different runs were performed, GA found solutions ranging from 303.3 to 341.3 with the average of 335.7. Although GA found good solution (303.3) only once, mostly it found premature solutions.
The wastewater treatment optimization model for fish migration was constructed and solved using HS. The optimization model considered three costs such as filtration cost, nitrification cost, and irrigation cost and two environmental constraints such as minimal DO requirement over river reach and maximal nitrate-nitrogen concentration for public health.
While the existing mathematical approach such as GRG2 had hard time to identify solutions, HS could find better solutions without divergence. Also, HS did not require initial solution vectors which are very sensitive to final solution quality. When compared with GA, HS could find better solutions in terms of minimal and average costs.
For future study, more realistic problems in wastewater treatment field are expected to be considered, and more updated techniques for these problems are expected to be developed.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
This research was supported by a grant (12-TI-C02) from Advanced Water Management Research Program funded by Ministry of Land, Infrastructure and Transport of Korean government.
- D. A. Haith, Environmental Systems Optimization, Wiley, New York, NY, USA, 1982.
- D. H. Burn and B. J. Lence, “Comparison of optimization formulations for waste-load allocations,” Journal of Environmental Engineering, vol. 118, no. 4, pp. 597–613, 1992.
- H. Cardwell and H. Ellis, “Stochastic dynamic programming models for water quality management,” Water Resources Research, vol. 29, no. 4, pp. 803–813, 1993.
- L. Somlyody, M. Kularathna, and I. Masliev, “Development of least-cost water quality control policies for the Nitra River Basin in Slovakia,” Water Science and Technology, vol. 30, no. 5, pp. 69–78, 1994.
- T. Kawachi and S. Maeda, “Diagnostic appraisal of water quality and pollution control realities in Yasu River using GIS-aided epsilon robust optimization model,” Proceedings of the Japan Academy Series B: Physical and Biological Sciences, vol. 80, no. 8, pp. 399–405, 2004.
- A. P. Singh, S. K. Ghosh, and P. Sharma, “Water quality management of a stretch of river Yamuna: an interactive fuzzy multi-objective approach,” Water Resources Management, vol. 21, no. 2, pp. 515–532, 2007.
- D. P. Loucks, C. S. ReVelle, and W. R. Lynn, “Linear programming for water pollution control,” Management Science, vol. 14, no. 4, pp. B166–B181, 1967.
- Z. W. Geem, J. H. Kim, and G. V. Loganathan, “A new heuristic optimization algorithm: harmony search,” Simulation, vol. 76, no. 2, pp. 60–68, 2001.
- Z. W. Geem, Music-Inspired Harmony Search Algorithms: Theory and Applications, Springer, Berlin, Germany, 2009.
- Z. W. Geem, “Novel derivative of harmony search algorithm for discrete design variables,” Applied Mathematics and Computation, vol. 199, no. 1, pp. 223–230, 2008.
Copyright © 2014 Zong Woo Geem and Jin-Hong Kim. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.