1 Introduction

Available water resources are allocated for different needs such as urban use, agriculture, industry, and environment. Population increase and increased agricultural and environmental water needs cause imbalance between available water resources and water consumption (Bozorg-Haddad et al., 2018b), which further leads to discontent stakeholders and their conflicts. Many factors such as social, political, economic, climatic circumstances also affect the conflicts and the related consequences. Water conflicts can be categorized into international and domestic conflicts. Conflicts can also be categorized based on water quantity or quality (Oftadeh et al., 2016). Until 2012, 148 countries had created 276 transboundary river basins (De Stefano et al., 2012), which include more than 60% of the world’s rivers. The conflicts related to such transboundary rivers can even cause war (Mianabadi et al., 2015). So far, more than 400 agreements have been signed for managing transboundary water resources (Madani et al., 2014).

The most important criterion for transboundary water resources allocation is equity (Zaag et al., 2002). For this reason, a system should be established to ensure equity in water resources allocation among stakeholders. In addition, the system should consider social, economic, environmental, and other aspects for water resources allocation.

Many problems occur when available water in a basin is less than water demands (Degefu & He, 2016). One of such problems is water conflict. One of the main reasons of the conflict is the unsuitable model used for water resources allocation (Yu & Lu, 2018). Optimization for water resources allocation can be a solution for transboundary river basins.

Water resources allocation is a complex optimization problem. Evolutionary algorithms have been used to solve such complex problems (Bozorg-Haddad, 2013a, 2013b, 2015, 2016; Fallah-Mehdipour et al., 2013; Solgi et al., 2016; Farhadian et al., 2015). Although these algorithms may not achieve the global optimum, they reach a near-optimum solution (Bozorg-Haddad et al., 2016, 2017). Roozbahani et al (2015) used an optimization model to allocate water resources in the Sefidrud basin. Their multi-objective model maximized the profits for all stakeholders. The profit of a stakeholder was calculated by the allocated water for the urban, agricultural, and industrial demands of the stakeholder. Davijani et al. (2016) used the particle swarm algorithm to optimize water allocation in the Central Desert basin in Iran. Ghasemi et al. (2016) developed a farm-based cropping pattern optimization model and solved by using the piece-wise genetic algorithm (PWGA). Their results showed that using the proposed model increased the agricultural benefit in the region and demonstrated that the model had flexibility when farmers changed their decision on water use and cultivation. Yu and Lu (2018) developed a multi-objective water resources allocation model for the Songhua River basin in China to increase the economic benefits from allocating water to domestic, agricultural, and industrial sectors, and establish the equity in water resources allocation in such a transboundary basin. Their proposed model combined projection pursuit model (PPM) and Grey wolf optimization (GWO) algorithm. Mianabadi et al. (2014) applied bankruptcy games to water resources allocation. They developed bankruptcy games and applied to the Tigris and Euphrates basin. Bozorg-Haddad et al. (2018a) used the optimization form of bankruptcy games to determine allocation policies to prevent conflict in the Urmia Lake basin in Iran. Madani et al. (2014) used bankruptcy games to solve conflicts in the Sefidrud basin in Iran. Zeng et al. (2017) developed a model that combined multi-criteria decision making and bankruptcy games for equitable and reasonable water resources allocation, and the model was applied to the Guanting reservoir basin in China. Zhou et al. (2015) proposed a multi-objective model to optimize water resources allocation in the Dongjiang River basin in China. Their optimal model maximized the economic profit by considering the environmental water demand. Their results showed the proposed model balanced the water demand and supply for sustainable development. Wang et al. (2016) developed a model for optimal water resources allocation in the Haihe River basin in China under climate change conditions to address the water security issue. Iftekhar and Fogarty (2017) developed a nonlinear model for managing groundwater and allocating water resources between fields in Western Australia. Their results indicated that the model had greater and better impacts on bigger fields.

Although single-objective models have been widely used for water resources optimization (Bozorg-Haddad, et al., 2009), including cultivation (Bozorg-Haddad, et al., 2009), reservoir operation (Akbari-Alashti et al., 2014; Asgari et al. 2016), water distribution networks (Fallah-Mehdipour et al., 2011; Sabbaghpour et al., 2012; Soltanjalili et al., 2011), and water project management (Orouji et al., 2014), multi-objective optimization approaches have received relatively less attention and had fewer applications in the related fields (Shokri et al., 2013). Moreover, Solgi et al. (2015) developed an optimization model using the honeybee mating optimization (HBMO) algorithm to find the optimal scheduling of intermittent supply, which reached the maximum number of network nodes with the desired pressure under various conditions of water shortage with consideration of the principles of equanimity and justice in a water distribution network. Bozorg Haddad et al. (2016) linked the HBMO algorithm to a hydraulic simulator and the performance of the linked model was tested with several water shortage scenarios in two different water distribution networks. Solgi et al. (2020) proposed a multi-objective optimization model to address the negative consequences of intermittent water shortages by maximizing the quantitative and qualitative reliability and fairness in water supply and minimizing the frequency of water supply interruption. In this study, a multi-objective model is proposed for optimal water resources allocation. The non-dominated sorting genetic algorithm is used for optimization. The objective functions include maximizing the profit from water resources allocation and the equity of water resources allocation. The Gini coefficient is used for the second objective function. Since the Sefidrud River basin is a transboundary basin, attention to the hydropolitical condition is very important.

2 Methodology

Managing the allocation of water resources is one of the recommended strategies to prevent further water loss and further prevent tensions and conflicts. Water allocation is an important part of water resources management at a basin level, which has a significant impact on water supply and demand. Thus, it is of importance to allocate water to stakeholders and satisfy their water demands. For the first time in the selected basin, the Gini coefficient was used to measure the satisfaction of stakeholders in the allocation of water resources, with consideration of the social and political issues of the basin. In particular, the level of the stakeholder satisfaction and justice were considered in the allocation of water resources, in addition to the profits from economic activities. That is, for the first time, the hydropolitical conditions were taken into account in the allocation of water resources of the basin.

2.1 Objective functions and constraints

The ultimate goal of the optimization problem is to achieve an optimal condition expressed by the objective function(s). The objective function is a direct or indirect mathematical function of all decision variables. In this research, a multi-objective model is proposed to maximize the profit of the stakeholders and establish equity in water resources allocation in the Sefidrud basin.

The goal of equity is full and equal participation: to meet the needs of all groups in a society that is mutually formed. Equity includes the vision of a society, in which the distribution of resources is correct and all members are mentally and physically safe. Also, equity is the solution to arbitrary equity so that the Gini coefficient is minimized (Helpman and Cooter, 1974). According to the definition, justice in water allocation means the equitable allocation of water resources based on the needs, available resources, and other factors. Sustainability advocates the environmentally sustainable use of land and water resources, implying that today’s use of water resources should not expand to such an extent that water resources may not be available in the future (Wang et al., 2003).

It is necessary for sustainability to supply essential water demands and protect the environment. Also, the water right issue related to the Caspian Sea is important according to the transboundary nature. Providing essential water demands for the communities along with maximizing the profit of each stakeholder and establishing equity in water allocation can prevent social conflict. In addition, ensuring the minimum environmental requirement and preventing aquifer depletion can ensure the health of the ecosystem and sustainability. In this study, all domestic water demands and the environmental requirements were first assigned. The remaining available water was allocated between agriculture and industry according to the objective functions and constraints. Figure 1 shows the flowchart of water allocation in this research.

Fig. 1
figure 1

Flowchart of modeling steps

The first objective function in this research is to maximize the profit for all stakeholders of water resources allocation. The mathematical equation of this objective can be expressed as:

$$\begin{aligned} & {\text{Maximize}}{:} \\ & F_{1} = \mathop \sum \limits_{t = 1}^{i} \mathop \sum \limits_{p = 1}^{m} \mathop \sum \limits_{c = 1}^{np} q_{p,c}^{t} \times AEB_{p,c} \\ & t = 1, \ldots ,i;p = 1, \ldots ,m;c = 1, \ldots ,np \\ \end{aligned}$$
(1)

where i is the total number of time steps, m is the total number of stakeholders (provinces), np is the total number of water users (e.g., agriculture and industry) for stakeholder p, \(q_{p,c}^{t}\) is the amount of water received by stakeholder p for consumption c at time step t, and \(AEB_{p,c}\) is the average economic profit of consumption c for stakeholder p (Rial (Iran’s currency)/m3).

Establishing equity in water resources allocation is an essential condition for stakeholders’ satisfaction. If any stakeholders are not satisfied, a conflict can be created. Creating equity is always one of the important concerns for the managers. In this study, the Gini coefficient (Gini, 1921) determined by the Lorenz curve (Fig. 2) is used to calculate equity in water resources allocation (Dai et al., 2018). The Gini coefficient was originally proposed to calculate the inequity for income distributions of a society.

Fig. 2
figure 2

Schematic of the Lorenz curve (Dai et al., 2018)

The Gini coefficient criteria, according to the principle of the organization related to the United Nations, are shown in Table 1 (Liu et al., 2015). A lower Gini coefficient indicates higher equity in the society. The second objective function obtained from the Gini coefficient can be expressed as:

$$\begin{aligned} & {\text{Minimize}}{:} \\ & F_{2} = \frac{1}{{2m\mathop \sum \nolimits_{p = 1}^{m} {\raise0.7ex\hbox{${Q_{p} }$} \!\mathord{\left/ {\vphantom {{Q_{p} } {EB_{p} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${EB_{p} }$}}}} \times \mathop \sum \limits_{p = 1}^{m} \mathop \sum \limits_{k = 1}^{o} \left| {\frac{{Q_{p} }}{{EB_{p} }} - \frac{{Q_{k} }}{{EB_{k} }}} \right| \\ \end{aligned}$$
(2)
Table 1 Gini coefficient and assessment criteria

where \(Q_{p}\) is the total amount of water received by stakeholder p and \(EB_{p}\) is the economic profit from water consumption for stakeholder p [million Rial (Rial is the currency of Iran.)].

The constraints of this optimization problem include:

$$\sum\limits_{p = 1}^{m} {Q_{p} } \le \text{AW}$$
(3)
$$\text{AW} = \text{TSW} + \text{AG} - \text{ED} - \text{DD}$$
(4)
$$\sum\limits_{c = 1}^{n} {q_{c}^{p} } \le Q_{p} + {\text{AG}}$$
(5)
$$WA_{c}^{p,t} \le De_{c}^{p,t} \quad \forall p,c,t$$
(6)
$$WA_{c}^{p,t} \ge 0\quad \forall p,c,t$$
(7)

where \(AW\) is the available water, \(TSW\) is the total surface water, \(AG\) is the available groundwater, \(ED\) is the environment demand, \(DD\) is the domestic demand, \(WA_{c}^{p,t}\) is the amount of allocated water to stakeholder p for consumption c at time t, and \(De_{c}^{p,t}\) is the water demand of stakeholder p for consumption c at time t.

2.2 Multi-objective optimization and non-dominated sorting genetic algorithm

The NSGA-II algorithm (Aboutalebi et al., 2015; Deb et al., 2002) has been widely used for solving multi-optimization problems (Fallah-Mehdipour et al., 2018). This algorithm was based on non-dominated sorting and elitist selection. In the NSGAII, the initial population is generated randomly and the corresponding objective functions are calculated and evaluated. After crossover and mutation, the children population is produced and the objective functions are reevaluated. By combining the initial and children populations, new population is created, ranked and classified into fronts. The crowding distance is then calculated for each front and the associated members. If the stop criterion is satisfied, the process is stopped. Otherwise, the algorithm will be back to evaluating the objective function values for the selected parent population and such a process continues.

2.3 Computing water demands

2.3.1 Domestic demand

Growing population has increased the domestic (urban) water demand. Based on per capita consumption of water and the population of each province in the basin (Table 2), the amount of domestic water demand for each province (i.e., stakeholder) was calculated. It should be noted that the services for water demand are considered.

Table 2 Population and crop areas of the eight provinces

2.3.2 Agricultural demand

The agricultural sector is the largest water user in the basin. For this reason, determining the exact amount of water for this demand will help resolve this optimization problem. According to the crop patterns of each province and the water consumption per unit area in each province, the agricultural water demand was calculated based on the Mahab Ghodss Company report (MGC, 2011).

2.3.3 Industry demand

The MGC (2011) report was used to calculate the industrial demand in each province in this basin.

2.3.4 Environment demand

There are many methods for determining the environment demand. One of the most important and practical methods is the modified Montana method (Tennant, 1976), in which the minimum amount of river environment demand is calculated as a percentage of the average annual discharge of the river. In this research, the modified Montana method is used for estimating the environment demand of rivers. Specifically, the monthly average discharge is calculated and the environmental water demand is then estimated based on a coefficient of 0.3 for the spring and summer months and a coefficient of 0.1 for the fall and winter months. This method does not consider the annual, seasonal, and daily changes in river discharge. Note that the environmental demand is calculated only for the Sefidrud River that flows into the Caspian Sea.

2.4 Case study

The Sefidrud basin, located at the intersection of Alborz and Zagros mountains in Iran (Fig. 3), has an area of 59.44 km2. The basin ranges from 46°37ʹ to 51°13ʹ E and from 35°00ʹ to 38°00ʹ N (MGC, 2011). This basin covers the country divisions of eight provinces including Kurdistan, Hamadan, Ghazvin, Zanjan, East Azerbaijan, Ardebil, Alborz, and Guilan. The Sefidrud River finally flows into the Caspian Sea. According to Fig. 3, the Sefidrud River and the Shahrood River flow from south to north and from east to west, respectively.

Fig. 3
figure 3

Study area and the Sefidrud River basin

The eight stakeholders (i.e., provinces) have different political powers, different levels of utilization, varying degrees of dependence on the river water in the basin, and dissimilar geographic locations, which tend to lead to conflicts. Therefore, there is a need for a comprehensive water resources allocation model and conflict resolution among the stakeholders for this important area of the country.

This basin consists of two main rivers: Ghezlouzan and Shahrood, which are connected to the Sefidrud dam in the City of Manjil. The Ghezlouzan River is 660 km long and has an annual average discharge of 150 m3/s. It is originated from Kurdistan and passes Zanjan, East Azerbaijan, and Ardebil Provinces. The Shahrood River is 80 km long and has an annual average discharge of 33 m3/s. It is originated from Taleghan and passes Ghazvin Province. The rainfall in this basin varies from 245 mm in Zanjan Province to 1250 mm in Guilan Province. Until now, 82 dams have been constructed in the Sefidrud basin. In this basin, there are about 30,000 wells, 30,000 springs, and about 950 aqueducts (MGC, 2011).

2.5 Causes of water conflicts in the Sefidrud basin

In recent years, many water conflicts occurred in this basin. The large number of stakeholders and the construction of many dams are the main cause of these conflicts. The eight provinces and the Caspian Sea are the stakeholders in this basin. The hydropolitical importance of the Caspian Sea also makes the water allocation more complicated. The eight provinces in the basin try to access more water resources. The Sefidrud River flows into the Caspian Sea. Due to the transboundary nature, the Caspian Sea water right is very important. Population growth and the limited water resources have caused water conflicts in this basin. Thus, optimal water resources allocation based on equity is essential.

So many dams in the Sefidrud basin have reduced water quantity and altered the water quality in the downstream areas. A long-term plan has been proposed by MGC (2011), in which 166 dams will be operated in this basin up to 2041. This factor can cause more water conflicts among stakeholders. Figure 4 shows the number of dams in the eight provinces in this basin by 2041.

Fig. 4
figure 4

Number of dams in the eight provinces in Iran

2.6 Rainfall and runoff trends

The precipitation and runoff data at some stations in the basin indicate that runoff has a negative trend with an increase in rainfall. This can be attributed to more water use and land use change. The trends of rainfall and runoff are shown in Figs. 5 and 6.

Fig. 5
figure 5

Rainfall, and its average and trend at a Givan station and b Loshan station

Fig. 6
figure 6

Runoff, and its average and trend at a Givan station and b Loshan station

As aforementioned, the environmental demand in this study was estimated by using the modified Montana method for dams and shown in Fig. 7. In addition, the environment demand for the Caspian Sea was also calculated, indicating that the water entering the Sea through the Sefidrud River (Fig. 8) was more than the demand for the Caspian Sea ecosystem (Fig. 9).

Fig. 7
figure 7

Environmental demands for a Taleghan dam, b Sefidrud dam, c Golbolagh dam, and d Aydoghmoush dam

Fig. 8
figure 8

Temporal distribution of the total water released to the Caspian Sea

Fig. 9
figure 9

Temporal distribution of the environmental demands for the Caspian Sea

3 Results and discussion

One of the goals of this study was to establish justice (using the Gini index) and maximize economic benefits. Using NSGA-II in the study area, justice was achieved in allocating water resources to an acceptable level. The use of optimization modeling effectively reduced the current water stress. In addition, the model also optimized the economic profit. Therefore, by allocating water resources in the study basin using NSGA-II, the objectives of this study were successfully achieved, which improved the existing conditions.

3.1 NSGA-II model result

In this study, the essential water demands such as domestic and environmental demands have the first priority. The reason for this prioritization is to satisfy the stability criteria of the region, as one of the most important hydropolitical parts. To have favorable conditions in terms of sustainability in the basin, a higher priority was given to the environmental need than the needs of agriculture and industry.

The amount of groundwater used for consumption was subtracted from the available water resources and demands because groundwater was used locally and was not transferable from one province to another. The remaining available water was optimized with the two objective functions: maximizing the economic benefit and the equity of water resources allocation between agriculture and industry. The amount of available surface water for the allocation between stakeholders is 3201 × 106 m3. Figure 10 shows the amount of water received by each province. Guilan having good groundwater resources, sufficient water rights, and the exploitation of Sefidrud dams, received the highest amount of water in the basin. Zanjan Province with a large number of dams in operation (34 dams, Fig. 4) and more use of groundwater resources received the most water. East Azerbaijan Province, located in the branches of the Ghezlouzan River, sought operation of more surface water resources, as indicated by the number of dams currently in operation (37 dams, Fig. 4). Due to the dams on the branches of the Ghezlouzan River, Kurdistan also received more water than Ardebil, Hamadan, Qazvin, and Tehran. Hamadan Province had the lowest amount of water in the basin due to the lack of dams it small area in the basin. Because of more political power, Tehran Province with a smaller area received more water than Hamadan and Ardebil.

Fig. 10
figure 10

Amounts of water allocated to the eight provinces

The Pareto front obtained from the NSGA-II algorithm of the multi-objective optimization model, as the best result from the model runs, is shown in Fig. 11. After the simulation–optimization model was run for 10 times, the Pareto front was determined.

Fig. 11
figure 11

Pareto front of water allocation (Objective 1 vs. Objective 2)

According to Fig. 11, with increasing the profit, equity decreased. To increase the profit in the basin, more water should be allocated to the stakeholders that provide more profit for the area. As a result, the water resources allocation is out of equity, which potentially causes conflicts. According to Table 1, when the value of the Gini coefficient is between 0.0 and 0.2, full equity is reached in the allocation of water resources in the basin and when this coefficient value is between 0.2 and 0.3, relative equity is achieved in the basin. According to the Gini coefficient values and the data in Table 1, most of the solutions are established in the range of full equity and a few of the answers are in the range of relative equity.

In the real condition, the Ministry of Energy, with the participation of regional water organizations in each province, proposed macro-policies at the catchment level. These policies were determined according to the characteristics of different provinces, including their population, type of industry, and agriculture areas. But the important point is that the implementation of such policies is only based on the conditions of the current period of operation. Thus, if there is enough water in an operational period, the operation will be done and different water demands will be supplied. Otherwise, water shortage will occur in the system. However, according to the optimal operating condition, it is possible to apply a comprehensive approach that takes into account the water demands of all stakeholders in different places at different times and tries to determine different optimal objectives simultaneously.

The agriculture used the most water resources in the basin. Figure 12 shows the amount of water received by each province for agriculture under the real and optimal conditions. Zanjan has the highest amount of water, while Hamadan has the lowest amount of water used for agriculture in the basin, which indicates the direct relationship with the area and the profit from the allocated water for each province. Zanjan Province has arid and semiarid climate, which requires more water for agriculture than other provinces. Guilan has a better profit from agriculture, resulting in higher agricultural water use. The order of agricultural water use for the remaining provinces follows (from high to low): Kurdistan, Ghazvin, East Azerbaijan, Tehran, Ardebil and Hamadan.

Fig. 12
figure 12

Optimal and real water amounts allocated to agriculture for the eight provinces

The water allocated to the agriculture and industry of each province under the real and optimal conditions is shown in Figs. 12 and 13. The water allocation was based on the profit and equity. Zanjan Province has the most dams and the largest area in the Sefidrud basin, and hence has more surface water.

Fig. 13
figure 13

Optimal and real water amounts allocated to industry for the eight provinces

Figures 14 and 15, respectively, show the profits of agriculture and industry under the real and optimal conditions. The profits were calculated based on the AEB and the amount of water received by each user of a province. Thus, provinces that receive more water or have a higher AEB have more profits from agriculture and industry. Zanjan Province with a larger crop area (Table 2) and more control of surface water by dams (Fig. 4) and Guilan Province with the highest AEB have the most benefits from the allocation of water resources to agriculture. According to Table 2, although Ghazvin Province has a smaller crop area than the East Azerbaijan and Kurdistan Provinces, it has more agricultural benefits than those provinces due to its higher AEB. The provinces of Kurdistan, East Azerbaijan, Ardebil, Hamadan, and Tehran have more agricultural profits. Since Zanjan Province has the largest industry in the basin, it has the highest profit from this water consumption. The profits of other provinces in the industry are shown in Fig. 15.

Fig. 14
figure 14

Profits of agriculture for the optimal and real conditions of the eight provinces

Fig. 15
figure 15

Profits of industry for the optimal and real conditions of the eight provinces

4 Conclusions

The increase in water demand induced by climate change, population growth, agricultural expansion, industrial development, and urbanization has raised sustainability concerns, which emphasizes the necessity for effective management of the limited water resources. In this study, a multi-objective model was developed for water allocation in the Sefidrud River basin to resolve water conflicts associated with transboundary water resources by maximizing the economic profits of the water resources system for all stakeholders and minimizing the Gini coefficient, which accounted for the socioeconomic aspect of water allocation. The optimum solutions were determined by NSGA-II. Results showed that Zanjan Province received the most water allocated to both agriculture and industry. Guilan Province with a high AEB and Zanjan Province with the largest crop area had the highest profits from the water allocation for agriculture and industry in the basin. This study demonstrated that optimizing water allocation, especially for the three major provinces (including Zanjan, Guilan, and East Azerbaijan) in the basin, helped to protect the environment and ecosystem and resolve the hydropolitical issues for this transboundary river basin.