Introduction

Optimization techniques have been used widely in water resources planning and management studies, especially in reservoir operation problems. Reservoir operation is a complex problem that involves many decision variables, multiple objectives as well as considerable risks and uncertainties (Loucks 1997). Many of optimization models are not well performed in modeling large water systems. For example, the complexity of reservoir operation problem may arise from a combination of reservoirs in series parallel. Therefore, an appropriate management with more robust modeling tools (compared to the classic optimization models) is required.

The goal of optimization is to extract predefined rule curves that guide the release of the reservoir system based on the current storage level, the hydro-meteorological conditions and the time of the year (Ngo et al. 2007). In the spite of the development and growing use of optimization techniques, the vast majority of reservoir planning and operation studies are based on simulation modeling (Lund and Guzman 1999). The operation rules are often evaluated using simulation models (Loucks 1997). Optimization models still require important simplifications of the system in order to be solvable. Therefore, simulation models remain necessary to examine the detailed performance of system operation (Lund 2006).

Simulation could be the starting point in the planning of large-scale systems, but as it requires many complex configuration options, capacity and operating policy, simulation would be very time-consuming (Rani et al. 2008). An efficient approach for identifying well predefined operating rules for such complex multi-reservoir systems is to use both optimization and simulation models together (Sigvaldason 2010; Johnson et al. 1991). Those approaches use optimization techniques to search for the best operating policies, while the simulation model is used to test and refine the rules. This process may involve many optimization and simulation runs (Lund 2006).

Simulation–optimization technique has been used in different water systems management studies. Rani et al. (2008) and Fayaed et al. (2013) have comprehensively reviewed simulation, optimization and combined simulation–optimization modeling approaches and gave an overview of utility analysis of their previous studies. According to these reviews, by comparing semi-definite programming (SDP) and SDP within simulation processes, the latter approach has better performance in terms of operation policies for a multi-reservoir system (Tejada-Guibert et al. 1993). Randall et al. (1997) used mixed integer linear programming (MILP) for water supply planning in California. Later, Karamouz et al. (2004) used simulation–optimization approach for regional water resources assessments. Wang et al. merged simulation approach and decomposition replication in order to eliminate the multi-objective semi-definite programming optimization problems for reservoirs in parallel. Suiadee and Tingsanchali (2007) developed a software called “simulation–GA model” with a reasonable graphical capability for discovering the optimal rule curves of the reservoirs. A combined simulation–optimization modeling called “robust simulation–optimization modeling system (RSOMS)” was created by Zhang et al. (2013) for controlling agricultural non-point source (NPS) to discharge trade effluent.

Due to time-taking computational problem in multi-reservoir systems as well as modeling with longer time horizon, it is suggested to use meta-models such as artificial neural network (ANNs) which is less time-consuming for finding an optimal solution in complicated operation problems. For example, Shokri et al. (2013) proposed that non-dominated sorting genetic algorithm-II (NSGA-II-ANN) is an evolutionary algorithm applied in multi-objective optimization problem in spill of pollution situations.

The so-called approach can be used in groundwater studies as well. For example, Safavi et al. (2010) generated a simulation–optimization method for both surface and groundwater usage at the scale of basin. Sedki and Ouazar (2011) used a transient simulation model with the aim of determining the optimal pumping schemes in which the groundwater flow in a coastal aquifer is characterized by a genetic algorithm.

By applying a combination of MIKE 11(1-dimensional river model) simulation and an adopted shuffled complex evolution (SCE) optimization model, Ngo et al. (2007) estimated the amount of reservoir releases considering hydropower generation and flood control. Afzali et al. (2008) used a reliability-based simulation–optimization approach for a better design of multi-reservoir systems with hydropower purposes. A hybrid particle swarm optimization-modeling and simulation (PSO-MODSIM) model was applied by Shourian et al. (2008) to find the proper sizes of water storage and transmission facilities. (Malekmohammadi et al. 2010) linked Hydrologic Engineering Centers River Analysis System (HEC-RAS) model with genetic algorithm (GA) to determine the exact hourly release of a reservoir to reduce to a minimum flood damages in the downstream of a river. Ostadrahimi et al. (2012) offered some operational rules for a three-reservoir system in Columbia River Basin with the use of both multi-swarm version of particle swarm optimization (MSPSO) and Hydrologic Engineering Center’s Prescriptive Reservoir Model (HEC-ResPRM) as a simulation model. Simulation–optimization methods have been used in several flood management studies. Eum and Simonovic (2010) and Eum et al. (2012) combined Hydrologic Engineering Center’s Hydrologic Modeling System (HEC-HMS) with the differential evolution (DE) optimization algorithm for management’s best strategy estimate of t multi-reservoir system under climate change conditions. In addition to those researches, Hassaballah et al. (2012) created a methodology and coupled two simulation (MIKE BASIN) and optimization methodologies to find the filling rules for a reservoir which has the least impact on hydropower generation. Hassanjabar et al. analyzed the impacts of applying different policies in a multi-reservoir system on surface water quality by applying a simulation–optimization model under different environmental operating conditions (2018).

According to the literature discussed above, simulation–optimization approach has been tried out to overcome the complexities in water systems problems. That is the most important reason why a simulation–optimization model is proposed in this study in order to determine the appropriate monthly operation of a multi-reservoir system in Karun River Basin, Iran. Water Evaluation and Planning System (WEAP), which is developed by the Stockholm Institute (Yates et al. 2005), has been used as the simulation model in combination with GANetXL software as the multi-objective optimization tool. Reservoir operation policies are set up in WEAP to determine water allocation amounts with regards to the demands.

Study area

The Great Karun River’s watershed with the area of almost 65,000 square kilometers is considered as the largest river by discharge in Iran. The river is 950 km long. Over 280,000 hectares is irrigated by Karun water. In recent years, nearly 100,000 ha is planned to receive water from this river (Khuzestan Water and Power Authority 2010).

There are a number of dams on the Karun River called Gotvand Dam, Dez dam, Masjed Soleyman Dam, Karun-1, Karun-3, Karun-4 (Fig. 1), etc. These dams have specific purpose such as controlling floods, irrigation water storage and hydropower generation.

Fig. 1
figure 1

Study area

Methodology and modeling approach

Simulation model

WEAP is used as a comprehensive software for integrated water resources management and policy analysis (Yates et al. 2005). Data for the model are provided at monthly time steps for the period from October 1981 to September 2013 (396 time steps). As shown in the schematic view of Karun system in Fig. 2, the system consists of six reservoirs, three agricultural demand sites (20% return flow) and two environmental flow demands. Table 1 summarizes the general characteristics of dams in the study area. Among them, Masjed Soleyman is a run-of-river (ROR) hydroplant with 226 MCM storage capacity where water used in this manner is only for power generation. This reservoir is always operated at a constant volume between 222 to 226 MCM.

Fig. 2
figure 2

Schematic view of reservoirs and demands sites in WEAP model

Table 1 General characteristics of reservoirs

As Iranian national grid system requires, the reservoirs, studied in this paper, are designed to provide electricity during peak time. Energy demand from each reservoir is determined according to the analysis of their electricity generation in the last 5 years. In addition, each reservoir must supply a minimum amount of the energy demand which is defined by multiplying peak operating hours and installed capacity.

In this study, hydropower energy demands are categorized by two scenarios in WEAP:

  1. 1.

    Individual energy demands for each reservoir.

  2. 2.

    An aggregate energy demand at the system level.

Environmental flow requirements and hydropower energy and agricultural demands assign explicit priority positions (first and second priorities, respectively). The main problem of WEAP as a simulation model cannot store water for the next time steps. In other words, WEAP does not have intra-seasonal allocation scheme in its algorithm. To solve this issue, top of buffer levels in reservoirs shall be increased. Moreover, in complex reservoir systems (series and parallels), the performance will vary by changing priorities. Lund and Guzman (1999) suggested some set of rules for systems with one objective. For the systems with multiple objectives, it is a time-consuming approach to find the monthly priorities. Therefore, the main purpose of optimization model is to find the best monthly values in order to maximize agricultural and hydropower energy demands.

The optimization model

GANetXL, which is an optimization add-in for Microsoft Excel® (Deb et al. 2002), was used to minimize the unmet demand. This software can solve the problem using genetic algorithms based on NSGA-II optimization algorithm. It offers a user-friendly interface to set up the optimization problem and configure the algorithm (Savić et al. 2011). NSGA-II is a fast sorting and elite multi-objective genetic algorithm. Process parameters such as cutting speed, feed rate and rotational speed are the considerable conditions in order to optimize the machining operations in minimizing or maximizing the machining performances.

In order to link WEAP simulation model and optimization model, a code was written in Excel VBA so that it can be executed by GANetXL. To evaluate the objective function, the code calculates objective functions and passes it to the GANetXL.

Equations (1)–(3) represent the objective functions for both scenarios, and Eqs. (4)–(6) show the constraints.

$${\text{Objective}}\,1 \to \,\hbox{min}\, Z_{1} = \sum\limits_{j = 1}^{m} {\sum\limits_{i = 1}^{n} {(UnmetAgriDemand_{ij} )^{2} } }$$
(1)
$${\text{Objective}}\,2\,({\text{scenario}}\,1) \to \hbox{min} Z_{2} = \sum\limits_{j = 1}^{l} {\sum\limits_{i = 1}^{n} {(UnmetEnergyDemand_{ij} )^{2} } }$$
(2)
$${\text{Objective}}\,2\,({\text{scenario}}\,2) \to \hbox{min} Z_{2} = \sum\limits_{i = 1}^{n} {(UnmetSystemEnergyDemand_{i} )^{2} }$$
(3)
$$S_{t,i} = S_{t - 1,i} + I_{t,i} - R_{t,i}^{{\text{Re} q}} - L_{t,i}$$
(4)
$$S_{t,i} \leq K_{i}$$
(5)
$$P_{i,t} = {\text{MIN}}\left( {K \cdot Q_{i,\,t} \cdot \bar{H}_{i,\,t} \cdot e_{i} \left( {Q_{i,\,t} ,\bar{H}_{i,\,t} } \right),P_{i,{\rm max} } } \right)$$
(6)

where m is the number of agricultural demand sites (three demand sites), n is total number of time steps (396 months), and i is total number of reservoirs (6 reservoirs). And also, \({\text{S}}_{\text{t,i}}^{{}}\) is the storage during period t and site i; \({\text{I}}_{\text{t,i}}^{{}}\) is amount of runoff during period t; \(R_{t,i}^{{\text{Req}}}\) is amount of demand during period t and site i; \({\text{L}}_{\text{t,i}}^{{}}\) is amount of loss during period t and site i; and \(K_{i}\) is maximum volume of reservoir i. And, Pi, t is the power output; Qi,t is the water flowing through the turbine (release rate); \(\bar{H}_{i,\,t}\) is the mean effective head; ei (Qi, t, Hi,t) is the plant efficiency as a function of Qi, t and \(\bar{H}_{i,\,t}\); K is a water to electricity conversion ratio; and Pi,max is the maximum generation capacity of the power plant.

Results

Multi-objective optimization for decision making (Pareto front)

As shown in Fig. 3, the convergence of the objective function is increased as the number of generations rise. However, in both scenarios, there is no considerable change in the objective function during the last generations. Also distribution of Pareto front is even in the last generations. Therefore, it can be concluded that the optimization is converged. The system performance is explored in two extreme points of Pareto front (the best point for agricultural water coverage and best point for hydropower), and then, the two scenarios are compared.

Fig. 3
figure 3

Convergence of objective function in scenario 1 (a) and scenario 2 (b)

Extreme points in scenario 1

According to the reliability indices shown in Table 2, it can be concluded that there is no significant difference in the reliabilities of the demands in the optimal points. However, in general, reliabilities of energy and environmental flow demand are higher in hydropower optimum points. The whole system reliability for energy demand is almost 86%.

Table 2 Reliability of the system in two extreme points of scenario 1

Extreme points in scenario 2

From the results in Table 3, it can be seen that the system has a better performance in terms of hydropower generation and hydropower optimum point, while the reliability of agricultural and environmental demands is higher in (Table 3).

Table 3 Reliability of the system in two extreme points of scenario 2

Comparing two scenarios

The system reliabilities in power production are 85.9% (scenario 1) and 91.4% (scenario 2). Similarly, for agriculture demand, scenario 2 has a better performance. However, there is not much difference between the two scenarios concerning the environmental flow supply. Therefore, of the two different scenarios considered, only scenario 2 is properly demonstrated. Figure 4 shows average monthly coverage of agricultural demands in scenario 2. D2 has the least coverage especially in August to December. That is due to low annual flow that enters into only one reservoir locating on Dez River which makes the system performance relatively low compared to Karun Tributary. According to Tables 2 and 3, scenario 2 is more efficient than scenario 1.

Fig. 4
figure 4

Average agricultural demand (%) by scenario 2

Time duration curves for power generation and unmet energy demand in both scenarios are shown in Figs. 5 and 6, respectively. Also shortages of energy supply are much smaller in scenario 2. From these figures, it can be generally concluded that scenario 2 has a better performance in water supply and energy production.

Fig. 5
figure 5

Energy duration curves for both scenarios

Fig. 6
figure 6

Unmet energy demand loads the simulation time steps in both scenarios

Average monthly hydropower generations and energy demand for scenario 2 are illustrated in Table 4.

Table 4 Average monthly hydropower generation for scenario 2 (GWH)

The share of electricity in the total final energy production from March to July is more than 2000 GWH. The system has least power production (nearly 1000 GWH) between September and November leading to an impending power supply shortage. In addition, in Karun tributary moving from upstream to downstream, power production in reservoirs is increased due to more regulated regime for downstream reservoirs and difference between installed capacities.

Conclusion

In this study, a simulation–optimization model is developed by using WEAP and GANetXL optimization tool for Karun multi-reservoir system. The model uses two-objective NSGA-II algorithm in order to minimize water shortages in agricultural and energy demand supply. Two scenarios for energy demands are defined: a separate energy demand for each reservoir (scenario 1) and total energy demand for the total system power (scenario 2). Results showed that the scenario 2 has better performance in terms of reliability (91.4% compared to 89.6%) and efficiency of centralized approach in which all reservoirs are operated in an integrated management scheme. The reason is that in the second scenario, reservoirs cooperate and use integrated rules to supply system demand, while in the first scenario, they act individually to cover the energy demand defined for them. Currently three different organizations have the authority to operate these reservoirs. This research confirms that benefits from the system can be risen if the authorities cooperate.

Developed simulation–optimization approach is having great capacity in long-term systemic planning and operation studies of multi-reservoir systems. It also has the ability to be used in midterm and short-term operation studies ranging with weekly or daily time steps. In this regard, they can benefit from the foresight achieved from long-term simulations.