**ABSTRACT**

**Background and Objective:**Rule curves of reservoirs are necessary guides to operate reservoir system in the long run for both flood and draught control. The main objective of each rule curve depended on the characteristics of each reservoir. This paper proposed an alternative approach of a Firefly Algorithm (FA) to connect with the simulation model for searching optimal reservoir rule curves as the flood control area.

**Materials and Methods:**Minimum average excess water and minimum frequency excess water were used as the objective functions for the searching procedure. The historic inflow, synthetic inflow data of 1,000 events and future inflow were used to evaluate efficiency of the flood control rule curves in showing situations of water shortage and excess water in term of frequency, magnitude and duration. The proposed model was applied to determine the optimal flood rule curves of the Nam Oon reservoir in the northeast region of Thailand.

**Results:**The results showed that the patterns of the obtained rule curves were similar to the current rule curves. The optimal flood control rule curves were used to simulate the Nam Oon reservoir system for evaluating the situation of flood in long term operation. The results indicated that situations of water shortage and of excess water using optimal flood control rule curves from the proposed model were smaller than with current rule curves both for the present and future situations.

**Conclusion:**The new obtained rule curves from the proposed FA model are better than the existing rule curves in decreasing flood situation.

PDF Abstract XML References Citation

**Copyright:**© 2019. This is an open access article distributed under the terms of the

*, which permits unrestricted use, distribution and reproduction in any medium, provided the original author and source are credited.*

**creative commons attribution License**####
**How to cite this article**

*Asian Journal of Scientific Research, 12: 431-439.*

**DOI:**10.3923/ajsr.2019.431.439

**URL:**https://scialert.net/abstract/?doi=ajsr.2019.431.439

**INTRODUCTION**

Now a days many countries face serious problems in management of natural resources, especially water resources which are important for the development of quality of life and human well-being. The problem of water resources is still serious and significant. In addition the problem is complex and tends to be more hazardous because of the impact of climate and land use changes^{1,2}. Essential components of good **water management** are having sufficient tools for **water management** and having suitable water organization. Tools for **water management** consist of water control structures as hardware and organization structure and non-construction as software^{3,4}.

Often, an improvement of reservoir operation is a popular tool because it can be performed quickly and is a non-construction method. Reservoir operation is a complex multi-objective optimization problem with many conflicting objectives and constraints^{5}, rule curves are necessary guidelines using in reservoir operation. The curves indicated either the interval of required water levels or desired storage volumes of each reservoir at any particular month. These rule curves consisted of upper rule curves and lower rule curves for controlling monthly stored water in long term operation. However, they needed to improve and to find optimal values when used for a long time or if any data are changed.

There are many optimization techniques that have been applied to search optimal rule curves, such as dynamic programming^{6-8}, genetic algorithm^{9,10}, particle swarm optimization^{11-13}, ant colony optimization^{14,15}and cuckoo search^{16} etc. However, these techniques are subjected to limitations in their work and are only appropriate for the specific areas of use. If available, alternative optimization technique is easy to use and suitable for the area and it is worth studying. Last decade an alternative approach of firefly algorithm (FA) is a swarm based metaheuristic algorithm inspired by the flashing behaviour of fireflies. It is an effective and easy to implement algorithm^{17-23}. Therefore, it is possible to apply the FA with reservoir **simulation model** for searching optimal rule curves.

The rationale behind the study was to achieve controlling flood situation by an alternative optimization approach. Hence, the main objective of this work was to apply the firefly algorithm in order to find the optimal reservoir rule curves for decreasing the flood situation. The proposed model was applied to determine the optimal flood rule curves of the Nam Oon reservoir in the northeast region of Thailand.

**MATERIALS AND METHODS**

**Study area: **The Nam Oon reservoir is located in Sakolnakorn province, Thailand. This work was done during 2017-2018. Location of the study area was shown in Fig. 1.

Fig. 1: | Location of the Num Oon reservoir |

^{Source: Land Development Department of Thailand, 2014} |

Fig. 2: | Schematic diagram of the Num Oon reservoir system |

Fig. 3: | Standard operating rule |

The Nam Oon reservoir is located in the Songkham Basin in the northeast region of Thailand with an irrigation area of 32,480 ha. The normal storage capacity and average annual inflow were 520 and 431.600 million m^{3}, respectively. The historic inflow data records were collected during 1992-2017 (26 years). The 19 years of future inflow data was created by the SWAT model considering land use change under scenario^{24,25} B2 from 2018-2036.

The water requirements from Nam Oon reservoir were irrigation, industrial demand, domestic water supply and environmental conservation. Schematic diagrams of the Nam Oon system were presented in Fig. 2.

**Reservoir simulation model:** A reservoir simulation was created to operate reservoir system on the basis of the water balance concept. These physical reservoir data, hydrologic data, water requirement from the reservoir and related data were required in the operating system. First, available water was calculated by using the water balance concept as presented in Eq. 1. Next, monthly release of water was estimated by considering the available water with release criteria, standard operating rule and reservoir rule curves as showed in Fig. 3.

(1) |

where, W_{τ} is the available water during month t, S_{τ}_{-1} is the stored water at the end of month τ-1 from record data which set at full reservoir capacity for the start running, I_{τ} is the inflow to the reservoir during month t from record data, P_{τ} is the precipitation during month t from record data and E_{τ} is the average value of the evaporation loss during month t from record data.

Then the monthly release of water from the reservoir (R_{τ}) was used to calculate water shortage and excess water situations, which can be expressed as the average annual excess water per year (the first objective function for searching) and the frequency excess water per year (the second objective function for searching) as shown in Eq. 2 and 4, respectively. The x_{τ} is lower rule curves during month t and y_{τ} is upper rule curves during month t.

(2) |

(3) |

(4) |

where, Avr_{i} is average excess water per year during iteration i, Sp_{v} is the excess water during year n (year in which releases are higher than the target demand), Fre_{i} is frequency excess water, Sf_{n} is the number of annual flood (year that releases higher than target demand), D_{t} is monthly target demand from the reservoir which calculated from all water demand in downstream area (this study used data from the previous study by Supakosol and Kangrang^{25}) and i is the iteration number.

**Application of firefly algorithm with reservoir simulation: **The connection of the FA and reservoir **simulation model** started with initialized parameters covering all initial necessary data such as dead storage level, normal high water level, full capacity level and monthly water requirement. Then model became generated initial population of fireflies that each firefly represents the monthly rule curves of the reservoirs which were defined as the upper rule curves and the lower rule curves.

Fig. 4: | Application of FA and reservoir simulation model for searching optimal rule curves |

Next, the first set of fireflies in the initial population (24 decision variables that consist of 12 values for upper rule curves and 12 values for lower rule curves) were sent to use in reservoir simulation model. Monthly release water was obtained from the reservoir **simulation model** considering those rule curves and standard operating rule. Next, the released water was used to determine the objective functions that were described in the previous section. Then, evaluations of the fitness from the objective function and update fitness values were done objective function. After that, the fireflies were ranked and their position updated. Next, the stopping criterion was checked. This procedure was repeated until criteria were met and the optimal rule curves were obtained. The FA and reservoir **simulation model** for searching the rule curves was described in Fig. 4.

**Evaluation of the obtained rule curves: **The obtained rule curves of the FA connecting with reservoir **simulation model** from reservoir were evaluated by using the obtained rule curves to simulate reservoir system considering each inflow case. Firstly, the 26 years of historic inflow were used in reservoir simulation model. Secondly, the 1,000 events of synthetic inflow from 26 years historic inflow were used to evaluate under the same conditions in reservoir simulation model. Finally, the 19 years of future inflow were used to evaluate again. The results of evaluation were shown by situations of water shortage and excess water in term of frequency, magnitude and duration.

**Statistical analysis: **The term of frequency was calculated from the number of annual flood or drought divide by the total considered years. The magnitude of excess water or shortage water was calculated from the total excess water or the total shortage water divide by the total considered years. Whereas, the maximum magnitude of excess water or shortage water was calculated from the yearly excess water or yearly shortage water for all considered years. The duration of excess water or shortage water was calculated from the number of adjacent annual flood or drought was divided by the total groups of adjacent annual flood or drought. Whereas, the maximum duration of excess water or shortage water was selected from the maximum number of adjacent annual flood or drought for all considered years. In addition, for the synthetic inflow case results were by mean±standard deviation.

**RESULTS**

**Optimal rule curves: **The optimal rule curves producing the proposed FA model were shown in Fig. 5. These optimal rule curves were searched by using minimized excess water per year as the objective function of the search procedure considering both historic inflow and future inflow. The RC2-Avr spill-historic, the RC3-Avr spill-future and the current rule curves (RC1-current) were similar pattern. They also indicated that lower rule curves of using historic and future inflow were higher than current rule curves during March-July. Whereas, the upper rule curves of the new obtained rule curves during June-September were higher than current rule curves. However, the obtained upper rule curves (RC3-Avr spill-future) were lower than the current upper rule curves during October-November.

The optimal rule curves of the Nam Oon reservoir using minimized frequency excess water as the objective function of the search procedure considering historic inflow and future inflow were shown in Fig. 6. The pattern of RC4-Fre spill-historic, RC5-Fre spill-future and current rule curves were similar. They also indicated that lower rule curves of using historic and future inflow (RC4-Fre spill-historic and RC5-Fre spill-future) were higher than current rule curves during January-June. Whereas, the upper rule curves of the new obtained rule curves in July were lower than current rule curves.

**Efficiency of the obtained rule curves:** The efficiency of the newly obtained rule curves from all cases of searching were evaluated by the operating reservoir simulation considering each historic inflow data.

Fig. 5: | Optimal rule curves of the Num Oon reservoir using minimum average excess spill water as the objective function of the search procedure |

Fig. 6: | Optimal rule curves of the Num Oon reservoir using minimum frequency excess water as the objective function of the search procedure |

Table 1: | Situations of water shortage and excess water of the Nam Oon reservoir considering historic inflow 26 years |

Table 2: | Situations of water shortage and excess water of the Nam Oon reservoir considering synthetic inflow 1,000 samples |

μ: Mean, σ: Standard deviation |

About 26 years of monthly inflow data for Nam Oon reservoir were considered in reservoir operation. Table 1 showed the situations of water shortage and excess water of the Nam Oon reservoir considering historic inflow 26 years in operating reservoir simulation. They indicated that the situations of water shortage (0.462 times/year, 20.846 million m^{3}/year and 1.714 years for frequency, magnitude and duration, respectively) and excess water (0.692 times/year, 88.723 million m^{3}/year and 3.00 years for frequency, magnitude and duration, respectively) using FA rule curves from considering the minimized average excess water as the objective function (RC2-Avr spill-historic) were the least as compared with other rule curves, because they were created from using historic inflow in searching process. They also showed that the newly obtained rule curves were better at decreasing the situation of water shortage and excess release than the current rule curves under historic scenario.

Furthermore, the 1,000 samples of synthetic inflow of each reservoir were generated from their historic inflow data. Table 2 showed the situations of water shortage and excess water of the Nam Oon reservoir considering synthetic inflow comprising 1,000 events in operating reservoir simulation. They indicated that the situations of water shortage (18.080±7.848 million m^{3}/year) and excess water (67.278±18.270 million m^{3}/year) using FA rule curves from considering minimize average excess water as the objective function (RC2-Avr spill-historic) were the least as compared with other rule curves. Whereas, the results of using current rule curves for evaluation gave the highest value.

Table 3: | Situations of water shortage and excess water of the Nam Oon reservoir considering future inflow 19 years |

Moreover, the efficiency of the newly obtained rule curves of Nam Oon reservoir were evaluated by the operating reservoir simulation considering 19 years of future inflow under land use change and **climate change** of B2 scenario. Table 3 showed the situations of water shortage and excess water of the Num Oon reservoir considering future inflow 19 years (2018-2036). They indicated that the average magnitudes of the water shortage (3.865 million m^{3}/year) and excess water (217.089 million m^{3}/year) using the future rule curves (RC3-Avr spill-future) were the least as compared to the other rule curves. Furthermore, the frequencies and duration times of the water shortage and excess water of using the future rule curves (RC3-Avr spill-future) were the lowest too.

**DISCUSSION**

The patterns of obtained rule curves from all searching cases and the patterns current rule curves (Fig. 5, 6) were similar because of the seasonal inflow effect and the same conditional effect like the other studies in Thailand^{7,10,13,14}. In addition, these effects of searching were important to control the shape of the optimal rule curves as described in many previous studies^{3,6,9}. The new obtained lower rule curves were higher than current lower rule curves during dry season, these conditions can control among of release water by decreasing the water release in order to save more water during dry season like the previous studies by Hormwichian *et al*.^{10}, Kangrang *et al*.^{13} and Kangrang and Lokham^{14}. Whereas, the new obtained upper rule curves during June-September were higher than the current upper rule curves, these conditions can save more water by decreasing the excess water and keeping high water level. Moreover, the new obtained upper rule curves were lower than the current upper rule curves during October-November, hence these new obtained rule curves can alleviate flood situation better than the current rule curves due to the increasing water release can make more reserve volume in the reservoir.

The results of evaluation the efficiency of the new obtained rule curves (Table 1-3) indicated that the situations of water shortage excess water using FA rule curves from considering the historic in flow were the least as compared with other rule curves. Because the rule curves were created from using historic inflow in searching process can alleviate flood situation in historic scenarios better than the other rule curves like the other studies by Hormwichian *et al*.^{10}, Kangrang *et al*.^{13} and Kangrang and Lokham^{14}. Moreover, results of the evaluation also indicated that the situations of water shortage excess water using FA rule curves from considering the future inflow were the least as compared with other rule curves because they were created from using future inflow in searching process like the other studies by Chang *et al*.^{9}, Hormwichian *et al*.^{10}, Kangrang *et al*.^{13} and Kangrang and Lokham^{14}. Comparison the results of the proposed FA with their results of the other optimization techniques should be considered.

**CONCLUSION**

This study applied Firefly Algorithm (FA) with a reservoir **simulation model** for searching optimal rule curves. The results indicated that the proposed model with two objective functions provided the new rule curves. The patterns of these rule curves were similar due to seasonal inflow effect and the same searching conditions. However, there were some different points especially during the rainy season. Furthermore, the results also revealed that the rule curves from using minimum average excess water and considering historic inflow in searching process can alleviate excess water situation less than other rule curves in both historic inflow and synthetic inflow situations. In addition, the obtained rule curves from using minimum average excess water and considering future inflow in searching process can alleviate situations of flood more than the current rule curves in future inflow situation.

**SIGNIFICANCE STATEMENT**

This study discovered the Firefly Algorithm (FA) connecting with the **simulation model** for searching optimal flood control rule curves that can be beneficial for finding optimal rule curves. The new obtained rule curves from the proposed FA model were better than the existing rule curves in decreasing flood situation. This study will help the researchers to search the optimal flood control rule cures of the reservoir in flooding area.

**ACKNOWLEDGMENT**

This research was financially supported by Mahasarakham University Grant Year 2018 No. 6105018; the authors would like to acknowledge Mahasarakham University.

####
**REFERENCES**

- Chen, Y., N.D.J. Gupta and J. Zhang, 2013. A framework to protect vulnerable groups in water resource conflicts. J. Applied Sci., 13: 1149-1154.

CrossRefDirect Link - Huong, T.T.L., N.T. Le, D.A. Duc and N.X. Long, 2017. Prioritization of factors impacting on water security using analytic hierarchy process method. Asian J. Scient. Res., 10: 236-243.

CrossRefDirect Link - Hashemi, M.S., G.A. Barani and H. Ebrahimi, 2008. Optimization of reservoir operation by genetic algorithm considering inflow probabilities (Case study: The Jiroft dam reservoir). J. Applied Sci., 8: 2173-2177.

CrossRefDirect Link - Adeyemo, J.A. and F.A.O. Otieno, 2009. Multi-objective differential evolution algorithm for solving engineering problems. J. Applied Sci., 9: 3652-3661.

CrossRefDirect Link - Adeyemo, J.A., 2011. Reservoir operation using multi-objective evolutionary algorithms-a review. Asian J. Scient. Res., 4: 16-27.

CrossRefDirect Link - Jain, S.K., M.K. Goel and P.K. Agarwal, 1998. Reservoir operation studies of Sabarmati system, India. J. Water Resour. Plann. Manage., 124: 31-37.

CrossRefDirect Link - Chaleeraktrakoon, C. and A. Kangrang, 2007. Dynamic programming with the principle of progressive optimality for searching rule curves. Can. J. Civil Eng., 34: 170-176.

CrossRefDirect Link - Ji, C., Z. Jiang, P. Sun, Y. Zhang and L. Wang, 2014. Research and application of multidimensional dynamic programming in cascade reservoirs based on multilayer nested structure. J. Water Resour. Plann. Manage., Vol. 141, No. 7.

CrossRefDirect Link - Chang, J.F., L. Chen and C.L. Chang, 2005. Optimizing the reservoir operating rule curves by genetic algorithms. Hydrol. Process., 19: 2277-2289.

CrossRefDirect Link - Hormwichian, R., A. Kangrang and A. Lamom, 2009. A conditional genetic algorithm model for searching optimal reservoir rule curves. J. Applied Sci., 9: 3575-3580.

CrossRefDirect Link - Suribabu, C.R., 2006. Particle swarm optimisation techniques for deriving operation policies for maximum hydropower generation: A case study. Int. J. Ecol. Dev., 4: 68-85.

Direct Link - Afshar, M.H., 2013. Extension of the constrained particle swarm optimization algorithm to optimal operation of multi-reservoirs system. Int. J. Electr. Power Energy Syst., 51: 71-81.

CrossRefDirect Link - Kangrang, A., W. Pakoktom, W. Nuannukul and C. Chaleeraktrakoon, 2016. Adaptive reservoir rule curves by optimisation and simulation. Proc. Inst. Civil Eng.-Water Manage., 170: 219-230.

CrossRefDirect Link - Kangrang, A. and C. Lokham, 2013. Optimal reservoir rule curves considering conditional ant colony optimization with simulation model. J. Applied Sci., 13: 154-160.

CrossRefDirect Link - Afshar, A., F. Massoumi, A. Afshar and M.A. Marino, 2015. State of the art review of ant colony optimization applications in water resource management. Water Resour. Manage., 29: 3891-3904.

CrossRefDirect Link - Ming, B., J.X. Chang, Q. Huang, Y.M. Wang and S.Z. Huang, 2015. Optimal operation of multi-reservoir system based-on cuckoo search algorithm. Water Resour. Manage., 29: 5671-5687.

CrossRefDirect Link - Yang, X.S., 2009. Firefly algorithms for multimodal optimization. Proceedings of the International Symposium on Algorithms Stochastic Algorithms: Foundations and Applications, October 26-28, 2009, Sapporo, Japan, pp: 169-178.

CrossRefDirect Link - Yang, X.S., 2010. Firefly Algorithm, Levy Flights and Global Optimization. In: Research and Development in Intelligent Systems XXVI: Incorporating Applications and Innovations in Intelligent Systems XVII, Bramer, M., R. Ellis and M. Petridis (Eds.). Springer, London, UK., ISBN: 978-1-84882-983-1, pp: 209-218.
- Raja, S.B., N.S. Narayanan, C.V.S. Pramod, A. Ragunathan, S.R. Vinesh and K.V. Krishna, 2012. Optimization of constrained machining parameters in turning operation using firefly algorithm. J. Applied Sci., 12: 1038-1042.

CrossRefDirect Link - Udaiyakumar, K.C. and M. Chandrasekaran, 2014. Application of firefly algorithm in job shop scheduling problem for minimization of makespan. Procedia Eng., 97: 1798-1807.

CrossRefDirect Link - Yu, J., S. Yin and H. Li, 2017. An improved particle filter based on firefly algorithm used for indoor localization. J. Software Eng., 11: 224-229.

CrossRefDirect Link - Qin, Z., Z. Li, X. Zhou, B. Wen and C. Zhang, 2017. Hybrid algorithm of gene clustering based on GPU. J. Software Eng., 11: 183-193.

CrossRefDirect Link - Yelghi, A. and C. Kose, 2018. A modified firefly algorithm for global minimum optimization. Applied Soft Comput., 62: 29-44.

CrossRefDirect Link - Supakosol, J. and A. Kangrang, 2017. Assessment of soil loss and nutrient depletion due to climate change impact in the SongKhram Basin, Thailand. Int. J. Ecol. Dev., 32: 53-66.

Direct Link