1 Introduction

Low rainfall and increased food production to meet consumption are exacerbated by climate-change in arid regions of the world, Iran being a case in point (Alizadeh and Kamali 2002; Fahimzadeh 2013). The current annual production of irrigated agriculture in Iran is over 57 million t. The water use productivity is approximately 0.7 kg of product per cubic meter of water which is very low compared to those of developed countries. Socioeconomic studies have estimated that the annual Iranian food production must rise to 186 million t, which would require about 266 billion m3 of water if the current water use productivity remains at 0.7 kg of product per cubic meter of water. This amount of water is not available. Rather, the water use productivity in Iran’s agriculture sector would have to be between 1.8 and 2 kg of product per cubic meter to achieve the desired increase in food production (Keshavarz and Sadeghzadeh 2000). Geologic evidence shows that the Earth’s climate has been altered by changing CO2 concentrations in the post-Industrial Revolution era. The anthropogenic emission of CO2 and other greenhouse gases is changing the modern climate and causing multiple adverse effects in water resources (Ashofteh et al. 2014). This study addresses the management of cropping patterns to adapt to a changing climate. Several studies have researched the nexus between water scarcity and agricultural production and the means to improve food security through innovation and efficient use of available resources. A few such studies are summarized next.

Singh et al. (2001) applied linear programming (LP) to determine the optimal cropping pattern in an irrigation district in India. The objective function was the maximization of agricultural revenue at different water availability levels. Benli and Kodal (2005) developed a non-linear optimization model for the determination of optimal cropping patterns under limited water supply conditions in the Gap project in the southeastern Anatolian Region of Turkey. The model yields the optimal distribution of crop areas, irrigation water needs, and the total farm profit. Eslami and Zahraii (2005) maximized revenue from agricultural production in the Varamin plain, Iran, applying the genetic algorithm (GA). They found that the production of cucumber and tomatoes must be raised and the area of cultivation devoted to wheat reduced to achieve stated goals. Nagesh-Kumar et al. (2006) presented a GA model for calculating the optimal operating policy and the optimal crop water allocations from a single-purpose irrigation reservoir in India, and the results were compared with those from the LP method. Sethi et al. (2006) examined rice crop pattern in Orissa province, eastern India, which is hindered by seawater intrusion into the coastal aquifer. They implemented deterministic linear programming (DLP) and chance-constrained linear programming (CCLP) models to allocate available land and water resources optimally on a seasonal basis so as to maximize the net annual revenue in the study area. Moradi-Jalal et al. (2007) developed a mathematical model for optimal multi-crop irrigation associated with reservoir operation policies in a reservoir–irrigation system. The objective function was to maximize the annual benefit of the system by supplying irrigation water for a proposed multi-crop pattern over the planning period. They solved the model with the LP method, which was applied to a reservoir–irrigation system in Iran. Sarker and Ray (2009) formulated a crop-planning problem as a multi-objective optimization model. Then, they solved two different versions of the problem employing three different optimization approaches including, constrained method, NSGAII algorithm, and a proposed multi-objective constrained algorithm (MCA). The results showed that the proposed algorithm delivered solutions superior to those of the non-linear version of the crop-planning model. Barikani et al. (2011) determined the optimized crop pattern over a 10-year planning horizon in the Qazvin plain, Iran, with using inter-temporal programming method relying on groundwater for irrigation. Musavi and Ghorghani (2011) tested the effect of increasing the price of water and reducing water consumption on the net income of farmers in the Bokan plain, Iran. Noory et al. (2012) reported application of mixed-integer linear (MIL) programming, continuous particle swarm optimization (CPSO), and discrete particle swarm optimization (DPSO) for optimizing irrigation water allocation and a multi-crop planning problem. Galán-Martín et al. (2015) applied a decision-support tool based on a multi-stage LP model that identifies optimal cropping plan decisions under the new Common Agricultural Policy. They applied this method in a Spanish agricultural region to maximize farmers’ net return.

The agricultural sector accounts for the largest share of water use in Iran, which is vulnerable to reduction of natural water sources in a changing climate. This work’s objective is to determine modifications of the cropping pattern in the Aidoghmoush basin, Iran, considering climate-change impacts to meet food production goals. The modified cropping pattern under climate-change conditions is compared to the optimal cropping pattern under baseline climatic conditions. This work develops a mathematical model for the maximization of agricultural revenue over 14-year horizon in the Aidoghmoush basin. The model’s optimization is carried out with the genetic algorithm (GA). This paper’s methodology is novel in its approach to optimizing cropping pattern under changing climatic conditions, which is demonstrated with a specific arid region condition.

2 Mathematical model development

This study’s objective is the determination of the optimal cropping patterns in the Aidoghmush basin under baseline climatic and climate-change conditions so that the total benefit from crop production is maximized during the planning horizon. Only irrigation water demands were considered. Three constraints on water availability are considered in this work: (1) the mass balance of a water-supply reservoir considering evaporative loss, (2) limited available areas for seasonal crops and orchards, and (3) limited reservoir capacity. In this paper the simulation interval is monthly.

The evaporation from the reservoir depends on its average free surface area, which in turn depends on storage. The area–storage function of the reservoir system is applied to obtain the free surface area of the reservoir in all operation months based on Eq. (1).

$$ {A}_{i, m}=\alpha \times {S}_{i, m}+\beta \kern2em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1.5em \mathrm{and}\kern1.5em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12 $$
(1)

where A i , m is the average free surface area of the reservoir in the mth month of the ith year; S i , m denotes the average storage in the mth month of the ith year; I is the number of years during the planning horizon; and α and β are constants. The volume of monthly evaporation equals the monthly evaporative depth multiplied by the average free surface area of the reservoir. If there is precipitation falling on the reservoir area during the month, then that precipitation is subtracted from the monthly evaporative depth.

The main difference between seasonal crops and orchards is that areas allocated to orchards cannot be changed as readily as those for seasonal crops during the planning horizon. In other words, the area of orchards remains constant during the planning horizon while the area of seasonal crops may change during the planning horizon.

The objective function [Eq. (2)] of this paper’s optimization scheme consists of maximizing the agricultural average annual benefit over a planning horizon of I years under baseline climatic and climate-change conditions (Moradi-Jalal et al. 2007).

$$ Z=\operatorname{Max}\kern0.5em \left[\sum_{i=1}^I\sum_{p=1}^P{C}_{i,\kern0.5em p}{X}_{i, p}+\sum_{i=1}^I\sum_{u=1}^U{C}_{i,\kern0.5em u}{X}_{i, u}\right] $$
(2)

where X denotes the area allocated to seasonal crops or orchards; C equals the unit benefit of seasonal crops and orchards; p and u denote the indices for seasonal crops and orchards, respectively; and P and U denote the number of seasonal crops and orchards, respectively.

Maximizing agricultural benefit is subject to physical and operational reservoir–irrigation constraints (Moradi-Jalal et al. 2007). The monthly storage equation is as follows

$$ \begin{array}{l}\sum_{p=1}^P{V}_{i, m,\kern0.5em p}{X}_{i,\kern0.5em p}+\sum_{u=1}^U{V}_{i,\kern0.5em m,\kern0.5em u}{X}_{i,\kern0.5em u}+{EV}_{i, m}+{S}_{i,\kern0.5em m}={S}_{i, m-1}+{Q}_{i, m}\hfill \\ {}\kern11em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1.5em \mathrm{and}\kern1.5em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12\hfill \end{array} $$
(3)

where V i ,  m ,  p is the unit rate of irrigation water demand for the pth seasonal crop in the mth month of the ith year; V i ,  m ,  u is the unit rate of irrigation water demand for the u orchard in the mth month of the ith year; Q i ,  m is the reservoir inflow in the mth month of the ith year; and EV i ,  m is the reservoir evaporation in the mth month of the ith year. Equation (3) represents the monthly mass balance equation of the reservoir–irrigation system, which involves the volumes of irrigation water and reservoir inflow.

During each year of the planning horizon, the total area allocated to seasonal crops and orchards may not exceed the maximum amount available areas (Moradi-Jalal et al. 2007).

$$ \sum_{p=1}^P{X}_{i,\kern0.5em p}\le {A}_{agr}\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1.5em $$
(4)
$$ \sum_{u=1}^U{X}_{i,\kern0.5em u}\le {A}_{frt}\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1em $$
(5)

where A agr and A frt denote the maximum areas available to cultivate seasonal crops and orchards, respectively.

The reservoir–irrigation system is also constrained by the total volume of water stored in the reservoir according to Eq. (6).

$$ {S}_{\min}\le {S}_{i, m}\le {S}_{dam}\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1.5em \mathrm{and}\kern1.5em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12 $$
(6)

where S dam is the maximum reservoir storage. Equation (6) states that reservoir storage in the mth month of the ith year is less than the total volume of the reservoir.

There is a constraint on areas cultivated with orchards. Thus, Eq. (7) implies that the area allocated to orchards does not increase during the planning horizon.

$$ {X}_{i, u}\le {X}_{i+1, u}\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I-1\kern1.5em \mathrm{and}\kern1.5em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12 $$
(7)

It is assumed that the initial reservoir storage in the first month of the planning horizon is equal to the reservoir storage at the end of the planning horizon, the so-called carryover constraint

$$ {S}_{1,1}\le {S}_{I,12} $$
(8)

Penalty functions are added (under maximization) to the objective function to ensure that constraints in Eqs. (4)–(8) are satisfied. Penalty values are deducted from the objective function to account for violations of constraints as follows

Penalty on violation of constraint (4):

$$ PF{1}_{\; i}={10}^{a_1}.{\left({b}_1+\left(\sum_{p=1}^P{X}_{i,\kern0.5em p}-{A}_{a gr}\right)\right)}^2\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\dots, I\kern1.5em $$
(9)

Penalty on violation of constraint (5)

$$ PF{2}_{\; i}={10}^{a_2}.{\left({b}_2+\left(\sum_{u=1}^U{X}_{i,\kern0.5em u}-{A}_{frt}\right)\right)}^2\kern2.5em \mathrm{for}\kern2em i=1,\kern0.6em 2,\kern0.5em \dots, I\kern1.5em $$
(10)

Penalty on violation of constraint (6):

$$ PF{3}_{\; i, m}={10}^{a_3}.{\left({b}_3+\left({S}_{i,\kern0.5em m}-{S}_{\min}\;\right)\right)}^2\kern1.2em \mathrm{for}\kern1.2em i=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em I\kern1.2em \mathrm{and}\kern1.2em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12\kern1.5em $$
(11)

Penalty on violation of constraint (8):

$$ PF4={10}^{a_4}.{\left(\;{S}_{1,1}-{S}_{I,12}\right)}^2 $$
(12)

where PF1  i , PF2  i , PF3  i , and PF4 denote penalty functions resulting from the violation of constraint Eqs. (4)–(8); and a 1 , a 2 , a 3 , a 4 , b 1 , b 2, and b 3 are positive constants in penalty functions.

3 The genetic algorithm

The GA is an evolutionary algorithm which is used in many fields, particulary in engineering, as a search and optimization tool (Bozorg-Haddad 2014). This algorithm is based on random search and attempts to replicate the natural process of natural evolution. The GA provides a close estimate of the optimal solution based on a search algorithm that progressively improves the populations of iterative solutions.

The GA’s optimization flowchart is depicted in Fig. 1. In this algorithm, the basic data and decision variables are inputs to the simulation model. The state variables and the objective function corresponding to each iterative stage are calculated. The fitness function is obtained for each of the iterative answers considering the problem constraints. The decision variables are modified according to the fitness function in the optimization algorithm and re-enter the simulation model. The GA selects a number of potential answers in the present iteration to become the potential answers in the next iteration. The selected answers are superior in terms of their fitness function in comparison to other answers. The next step of the GA is to produce new answers after the selection process employing crossover and mutation processes that constitute a new generation of answers that make up the population of the next iteration. This process continues until the algorithm ends (Bozorg-Haddad 2014). The fitness function improves from the current generation to the next and the algorithm search converges towards the global solution.

Fig. 1
figure 1

Flowchart of the GA (after Bozorg-Haddad 2014)

4 The study region

The study area is the Aidoghmoush river, in East Azerbaijan, northwestern Iran, located between 46° 52′ to 47° 45′ east longitude and 36° 43′ to 37° 26′ north latitude (Fig. 2). The catchment area covers 1802 km2. The elevation of the catchment varies from 1060 to 2500 m above sea level. The Aidoghmush river’s length equals 80 km and originates within the Ghur-Ghur heights and discharges to the Ghezel-Uzan river. The Aidoghmoush river’s average annual discharge equals 190 × 106 m3. Annual rainfall average in the basin equals 336.2 mm; the rainiest months are April and May. Average annual temperature in the catchment equals 11.6 °C. The maximum and minimum temperatures are 31.9 and −16.8 °C, respectively, the former occurring in July and the latter in February. The baseline climatic and climate-change 14-year periods employed in this study are 1987–2000 and 2026–2039 based on recommendations by Ashofteh et al. (2014).

Fig. 2
figure 2

Layout of the river basin and monitoring stations

The data for this study include meteorological variables (precipitation and evaporation), reservoir inflow, monthly irrigation demand ofseasonal crops and orchards, and the characteristics of reservoir (maximum and minimum storage and coefficients of the storage-area function).

Meteorological data from the Miyane synoptic station located downstream of the Aidoghmoush dam was used for the baseline climatic conditions (1987–2000). Having evapotranspiration and effective rainfall, net irrigation demand is determined based on Eqs. (13)–(16) (Ashofteh et al. 2014).

$$ {IR}_m={ET}_{cm}-{Ra}_{effm}\kern2.5em \mathrm{for}\kern2em m=1,\kern0.6em 2,\kern0.5em \dots, 12\kern1.5em \mathrm{and}\kern1.5em c=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em U+ P $$
(13)
$$ {ET}_{cm}={K}_{cm}\times {ET}_{om}\kern2.5em \mathrm{for}\kern2em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12\kern1.5em \mathrm{and}\kern1.5em c=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em U+ P $$
(14)
$$ \begin{array}{c}\hfill {Ra}_{effm}={Ra}_m/125\times \left(125-0.2\times {Ra}_m\right)\kern2em \mathrm{if}\kern1em {Ra}_m\le 250\kern0.5em \mathrm{mm}\hfill \\ {}\hfill {Ra}_{effm}=125+0.1\times {Ra}_m\kern7.5em \mathrm{if}\kern1em {Ra}_m\ge 250\kern0.5em \mathrm{mm}\hfill \end{array}\kern1.5em \mathrm{for}\kern1.5em m=1,\kern0.6em 2,\kern0.5em \dots, \kern0.5em 12 $$
(15)
$$ {V}_m={IR}_m\times {A}_c\kern1.5em \mathrm{for}\kern1.5em m=1,\kern0.4em 2,\kern0.4em \dots, \kern0.4em 12\kern1.5em \mathrm{and}\kern1.5em c=1,\kern0.4em 2,\kern0.4em \dots, \kern0.4em U+ P $$
(16)

where IR m denotes the net irrigation demand in the mth month; ET cm denotes evapotranspiration of the cth crop or orchard in the mth month; Ra effm is the effective rainfall in the mth month; K cm is the plant coefficient of the cth crop or orchard in the mth month; ET om represents the reference evapotranspiration or potential evapotranspiration in the mth month; Ra m denotes the rainfall in the mth month; V m equals the volume of water demand in the mth month; and A c denotes the cultivated area of the cth crop.

The FAO Penman–Monteith method was used for ET om calculation with the CROPWAT software. Net rainfall was calculated from climatological conditions in the study region using monthly rainfall statistics and the soil conservation service method for runoff generation (Smith 1992).

Forecasting of weather variables, temperature, and precipitation under climate-change conditions (2026–2039) was performed employing the HADCM3 model (IPCC 2007). The hydrological model IHACRES was employed to simulate reservoir inflow. Inputs to the IHACRES model are regional-scale temperature and precipitation from the HADCM3model. It is necessary to determine ET om to calculate the irrigation demand under climate-change conditions, which requires relative humidity, wind speed, and other data which were not available. Therefore, ET om was estimated from a function relating temperature and ET om under baseline conditions. This function is a polynomial regression equation (Ashofteh et al. 2014).

Calculation of the plant coefficient requires having ET om , wind speed at 2 m aboveground, and relative humidity. The calculated ET om as stated above was employed for this purpose. The wind speed under climate-change conditions was considered similar to that of the baseline conditions. The relative humidity under climate-change conditions was calculated with regression equation between relative humidity and ET om under baseline conditions (Ashofteh et al. 2014).

Seasonal crops in the study region include wheat, barley, alfalfa, soybean, corn, maize, and potatoes. The orchard crop is walnut. Table 1 lists the crops produced in the Aidoghmoush irrigation network. The area of walnuts remains constant during the planning horizon. Alfalfa has an inter-annual cultivation period in the study region. The areas of seasonal crops change annually. Table 2 lists the values of the parameters appearing in Eqs. (1)–(8).

Table 1 Irrigation schedule of crops in the Aidoghmoush irrigation network
Table 2 The value of parameters employed in the mathematical model

5 Results and discussion

The average annual reservoir inflow under baseline and climate-change conditions are depicted in Fig. 3, where it is seen that the amount of reservoir inflow under climate-change conditions sometimes exceeds and sometimes is less than the inflow under baseline climatic conditions. Overall, the average annual reservoir inflow under baseline climatic conditions and climate-change conditions equals 402.65 × 106 and 399.08 × 106 m3, respectively, pointing to a slight reduction of reservoir inflow under climate-change conditions.

Fig. 3
figure 3

Average annual inflow under baseline climatic and climate-change conditions

The average annual rainfall under baseline climatic conditions and climate-change conditions are shown in Fig. 4, where it is seen that average annual rainfall equals 328.41 mm and 361.26 mm under baseline climatic and climate-change conditions, respectively.

Fig. 4
figure 4

Average annual rainfall under baseline climatic and climate-change conditions

Figure 5 illustrates the irrigation demand by crops under baseline climatic and climate-change conditions. It shows that the irrigation demand would increase during climate-change conditions. The average annual irrigation demand by different crops under baseline climatic and climate-change conditions is listed in Table 3.

Fig. 5
figure 5

Average irrigation demand of different crops under baseline climatic and climate change conditions. a Wheat. b Barley. c Alfalfa. d Soybean. e Corn. f Maize. g Potatoes. h Walnut

Table 3 Average annual irrigation water demand of different crops during the planning horizon

This study’s key objective is the determination of the optimal areas to be allocated to various crops (that is, the optimal cropping pattern) within the Aidoghmoush catchment over 14-year planning horizons under baseline climatic and climate-change conditions employing the GA. The GA in MATLAB toolbox was implemented for this purpose. The GA parameters (Table 5) were determined by sensitivity analysis (Table 4).

Table 4 Results of the sensitivity analysis

The GA was run ten times for the cases associated with baseline climatic and climate-change conditions, and the best run was determined based on the maximum objective function (maximum crop benefit) (Table 5). Figure 6 shows graphs of monthly reservoir storage and the volume of reservoir overflow during the planning horizon. Figure 7 depicts the optimal cultivated areas for seasonal crops and orchards under baseline climatic and climate-change conditions.

Table 5 Parameters employed with the GA
Fig. 6
figure 6

Charts of monthly storage e and reservoir overflow volume during the planning horizons for a baseline climatic conditions and b climate-change conditions

Fig. 7
figure 7

The optimal cultivated areas of several crops under baseline climatic climate change conditions. a Wheat. b Barley. c Alfalfa. d Soybean. e Corn. f Maize. g Potatoes. h Walnut

Five scenarios were defined and analyzed to assess the water shortage for irrigation, including (1) simulation of the reservoir–irrigation system with the irrigation demand under baseline climatic conditions and present cultivated area, (2) simulation of the system with the irrigation demand under baseline climatic conditions and optimal cultivated area associated with the baseline climatic conditions, (3) simulation of the system with the irrigation demand under climate-change conditions and cultivated area associated with climate-change conditions, (4) simulation of the system with the irrigation demand under climate-change conditions and with present cultivated area, and (5) simulation of the system with the irrigation demand under climate-change conditions and the cultivated area associated with optimal baseline climatic conditions. Each of these scenarios corresponds to present baseline climatic conditions, optimal baseline climatic conditions, optimal climate-change conditions, combination of climate-change and present baseline climatic conditions, and combination of climate-change and optimal baseline climatic conditions, respectively. The reservoir–irrigation system was simulated under each of the scenarios using a standard reservoir operation policy (SOP) rule, and the amount of water shortage was calculated. The results are listed in Table 6. Table 6 also lists the average area cultivated with each crop and the total benefit from crop production that occurs during the planning horizon corresponding to the five scenarios. The results corresponding to the scenarios establish that the largest water shortage is associated with scenario 1 which represents the baseline climatic conditions. The water shortage equals zero in scenarios 2 and 3. This implies that proper management and selection of the optimal cropping pattern avoids water shortage while crop production yields net revenue. The results in Table 6 indicate that there is a water shortage in scenario 4. In other words, the simulations predict a water shortage if the cultivated area under climate-change conditions remains equal to the present one under baseline climatic conditions. Also, the amount of water shortage equals zero for scenario 5. Therefore, if the cultivated area under climate-change conditions equals the optimal area under baseline climatic conditions, there would not be water shortage but the benefit from crop production would be reduced relative to optimal climate-change conditions.

Table 6 Comparison of the average optimal area under cultivation of various crops, total benefit, and the water shortage calculate within the planning horizon for five scenarios

The calculated total benefits during the planning horizons corresponding to the five scenarios shown in Table 6 indicate that by choosing optimal crop patterns associated with scenarios 2 and 3, the amount of crop benefit increases 14 and 17%, respectively. The unit benefits from cultivation of the various crops were considered equal under baseline climatic and climate-change conditions. This explains why the total benefits corresponding to scenarios 4 and 5 are similar to those of scenarios 1 and 2, respectively. Also, the results listed in Table 6 establish that the average area cultivated with alfalfa under climate-change conditions would decrease significantly compared to baseline climatic conditions during the planning horizons. This is caused by the alfalfa irrigation demand which is the largest under climate-change conditions, and, therefore, its cultivated area is reduced by optimization.

6 Concluding remarks

This paper’s results have shown that under climate-change conditions, the average reservoir inflow would decrease slightly compared to the reservoir inflow under baseline climatic conditions, and the average rainfall and the average irrigation water demand of various crops would increase. Yet, it appears possible to increase the cultivated areas under climate-change conditions by proper management and modification of the cropping pattern and to achieve maximized benefits in the planning horizons. Moreover, this work’s findings indicate that optimization of the cultivated areas with various crops would increase under climate-change conditions compared to baseline climatic conditions, except for alfalfa.

A i , m , average free surface area of the reservoir in the mth month of the ith year; S i , m , average storage in the mth month of the ith year; α, constant in area–storage function of the reservoir; β, constant in area–storage function of the reservoir; Z, objective function; X, area allocated to seasonal crops and orchards; C, unit benefit of seasonal crops and orchards; p, indices for seasonal crops; u, indices for orchards; P, number of seasonal crops; U, number of orchards; V i ,  m ,  p , unit rate of irrigation water demand for seasonal crop pin the mth month of the ith year; V i ,  m ,  u , unit rate of irrigation water demand for orchard u in the mth month of the ith year; Q i ,  m , reservoir inflow in the mth month of the ith year; EV i ,  m , reservoir evaporation in the mth month of the ith year; A agr , maximum area available to cultivated seasonal crops; A frt , maximum area available to cultivated orchards; S dam , maximum reservoir storage; a 1 ,  …  , a 4, positive constants in the penalty functions; b 1 , b 2 , b 3, positive constants in the penalty functions; PF, penalty function; IR m , net irrigation demand in the mth month; ET cm , evapotranspiration of the cth crop or orchard in the mth month; Ra effm , effective rainfall in the mth month; K cm , plant coefficient of the cth crop or orchard in the mth month; ET om , reference evapotranspiration or potential evapotranspiration in the mth month; Ra m , rainfall in the mth month; V m , volume of water demand in the mth month; A c , cultivated area of the cth crop