A Stochastic Optimization Model for Agricultural Irrigation Water Allocation Based on the Field Water Cycle

Agricultural water scarcity is a global problem and this reinforces the need for optimal allocation of irrigation water resources. However, decision makers are challenged by the complexity of fluctuating stream condition and irrigation quota as well as the dynamic changes of the field water cycle process, which make optimal allocation more complex. A two-stage chance-constrained programming model with random parameters in the leftand right-hand sides of constraints considering field water cycle process has been developed for agricultural irrigation water allocation. The model is capable of generating reasonable irrigation allocation strategies considering water transformation among crop evapotranspiration, precipitation, irrigation, soil water content, and deep percolation. Moreover, it can deal with randomness in both the right-hand side and the left-hand side of constraints to generate schemes under different flow levels and constraint-violation risk levels, which are informative for decision makers. The Yingke irrigation district in the middle reaches of the Heihe River basin, northwest China, was used to test the developed model. Tradeoffs among different crops in different time periods under different flow levels, and dynamic changes of soil moisture and deep percolation were analyzed. Scenarios with different violating probabilities were conducted to gain insight into the sensitivity of irrigation water allocation strategies on water supply and irrigation quota. The performed analysis indicated that the proposed model can efficiently optimize agricultural irrigation water for an irrigation district with water scarcity in a stochastic environment.


Introduction
Water scarcity has been a main constraint to social-economic development, underscoring the importance of efficient water resource management.Irrigated agriculture, as the largest water consumer, is being subjected to reductions in water allocation because of the expected increase in water demand for non-agricultural sectors, such as industrial, domestic, ecological, and environmental use [1].Future irrigated agriculture will face challenges to meet the growing demand of food, attributed to continuing population growth and rapid socio-economic development.Moreover, uneven spatio-temporal distribution of available water has caused significant problems of inefficient usage of irrigated water, droughts, and floods [2].Therefore, optimal allocation of agricultural irrigation water with the aim to develop and implement appropriate water resource infrastructure and management strategies is a potential way to alleviate water scarcity.
Optimal allocation of agricultural irrigation water can be determined using optimization techniques, such as linear, nonlinear or dynamic programming, artificial intelligence search methods, and simulated annealing [3][4][5].As a complex and huge system, a large amount of system elements and their intricate relationships lead to the fact that an agricultural irrigation system exhibits uncertainties [6].Many uncertain approaches have been developed for dealing with uncertainties in agricultural irrigation allocation, including stochastic, fuzzy, or interval mathematical programming and their combinations [7,8].Among them, stochastic mathematical programming (SMP) has been extensively applied in agricultural irrigation management due to its capacity for tackling the randomness of water supply, water demand, and irrigation quota, which are vital for generating irrigation strategies.One class of SMP can deal with situations in which decisions are made repeatedly in essentially the same circumstances, and thus reaches a decision which will perform well on average, such as the two-stage stochastic programming (TSP) [9].Another class of SMP is averse to risk and seeks to safeguard the obtained solution against highly undesirable outcomes, such as chance-constrained programming (CCP) [10].It is effective to integrate TSP with CCP to better handle the randomness of agricultural irrigation allocation [11].However, most CCP techniques used for agricultural irrigation allocation focus on right-hand-side randomness such as water supply, ignoring the randomness in the left-hand side of constraint.Therefore, it is necessary to integrate CCP with both left-hand-side and right-hand-side randomness of constraints into the TSP framework to adequately reflect randomness in agricultural irrigation allocation.
In several regions of the world, the conjunctive use of surface water and groundwater allows the crop water demand to cope during the critical stages of crop growth, to ensure food productivity and the consequential system benefit of irrigation district [12].This takes into consideration that the field water cycle process is necessary to efficiently allocate agricultural irrigation water, because the connection between surface water and groundwater supplies is considered dynamically.Many studies have suggested irrigation water management strategies, considering the interaction between surface water and groundwater [13,14].However, previous methods often ignore the response of crop growth on soil water, which is an important connection between surface water and groundwater.Moreover, the transformation among dynamic irrigation, precipitation, soil moisture, and deep percolation make the optimization encounter more difficulties, especially in an uncertain environment, leading to unreasonable and/or inefficient agricultural irrigation water strategies.
This study therefore aimed to optimize the allocation of irrigation water, considering the field water cycle.The model incorporates CCP with left-hand-side and right-hand-side randomness of constraints in a TSP framework, to effectively cope with randomness occurring in irrigation systems.The objective of the model is to allocate limited surface water and groundwater to different crops in different time periods under different flow levels, in order to maximize the system economic benefit.The model is then applied in a real-world case study in an irrigation district in Northwest China.Allocation results were generated, considering the adjustment of the groundwater supply, and the dynamic changes of soil moisture and deep percolation under different scenarios were analyzed in detail, which will be helpful for managers to identify a desired agricultural irrigation plan under uncertainty.

Overview of the Problem
Considering a whole irrigation district as a system, the water allocation process assumes that every farmland in each time period provides its maximum (irrigation target) and minimum (fundamental water need to guarantee food security) water demand to determine agricultural irrigation water allocation strategies.The system could be irrigated with surface water, groundwater, or both together, and the optimization can therefore be conceptualized among different farmlands (different crops) during different time periods.For each farmland, the interaction among irrigation water (both surface water and groundwater), precipitation, and soil water is continuous with the changes of optimization outputs, which will directly affect the changes of groundwater level.In order to ensure that the groundwater level is within the allowance range when irrigating farmlands, integrating field water cycle processes with the optimization framework is necessary with groundwater supplies being considered as the adjustment variable.Considering the uncertainties because of nature factors and human activities, the randomness associated with the water supply and the irrigation quota is involved in order to minimize economic penalties due to any infeasibility, and provides decisions considering risk preferences with given probabilities.A detailed description of the decision-making framework is depicted in Figure 1.TSP with resources reflects a tradeoff between predefined strategies and the associated adaptive adjustments.In TSP, decision variables are divided into two categories: those that are determined before the random events occur, and those that (resource variables) are determined after the random events occur [15].The TSP model can be expressed as follows [16]: Subject to: where x j represents the first stage decision variables before the random variable is observed; y jl represents the second stage decision variables that are related to the resource actions against any infeasibilities arising due to particular realizations of the uncertainties; ξ l is the random variable with probability levels p l (∑ L l=1 p l = 1); a ij , a kj , c j , d j , and b i are parameters.

Chance-Constrained Programming
CCP is useful for dealing with random uncertainty and reflecting the information risk of violating constraints.A general CCP problem can be presented as follows [17]: This is subject to: where Pr{•} denotes the probability of a random event {•}; b i (ω) is the right-hand-side parameter of the constraints that are expressed as random variables with a certain probability distribution.
) is the given level of the probability of the constraint, i.e., violating the levels which represent the admissible risk of constraint violating.I is the number of CCP constraints.The meanings of other symbols are the same as model (1).
In order to solve model (2), the constraint (2b) should be converted into the corresponding deterministic linear equivalents with a series of predefined constraints-violation levels p i : where b i (ω) (q i ) = F −1 (q i ), representing the cumulative distribution function of b i (ω){i.e.F i [b i (ω)]}.
However, in many cases, some parameters in the left-hand-side constraints present randomness, and the above method is not capable of handling such cases.Therefore, a left-hand-side CCP constraint is formulated as follows: where a ij (ω) is the left-hand-side parameters of the constraints, which can be expressed as random variables with normal distributions for simplicity.Let µ ij be the mean value and σ ij be the standard variation of random variables a ij (ω).Because a ij (ω) ∼ N µ ij , σ 2 ij , the linear combinations of its elements also follow normal distribution.Thus, we have: Then, by transforming a ij (ω) into standard normal random variables, Formula (4) can be expressed as follows: Φ −1 (•) is the inverse function of the cumulative distribution function of a parameter that obeys the standardized normal distribution.Inequality (6d) enables the left-hand-side CCP to be dealt with by transforming the nonlinear programming into its approximated linearization form.

Model Structure of TSCCP with Left/Right-Hand-Side Randomness
The TSCCP with left/right hand-side randomness model can be formulated by integrating TSP and CCP with left and/or right-hand side randomness, and it can be expressed as follows: This is subject to: where m tj and n j are parameters.

Optimization Model for Irrigation Water Allocation
The aim of the optimization model for irrigation water allocation is to allocate limited surface water and groundwater resources to different farmlands corresponding to different crops in an irrigation district during each time period.The model structure is the TSCCP with left/right-hand-side randomness.The objective function is the maximization of system economic benefits, considering the variations of different flow levels, and it can be expressed as follows: where c denotes the crop types and the total number of crops is C, s denotes the water sources and the total number of water sources is S, t denotes the time period and the total number of time periods during the whole growth period of crops is T, l denotes the flow level and its total number is L; BC c is the benefit coefficient of crop c, in RMB/kg (RMB is the Chinese currency unit); WP c is the water productivity of crop c, in kg/m 3 , WT cst is the water target of crop c with water source s in time period t in m 3 , p l is the occurrence probability of flow level l, PC cst is the penalty coefficient of crop c with water source s in time period t in RMB/m 3 , and WS cstl (decision variable) is the water shortage of crop c with water source s in time period t under flow level l in m 3 .WT cst − WS cstl indicates the water allocation amount to crop c with water source s in time period t under flow level l in m 3 .The objective function subjects to the following constraints: (1) Surface water supply constraint The surface water allocation in each time period under each flow level should not be larger than surface water supply.As the water supply greatly depends on the runoff with a randomness characteristic, this constraint is expressed as CCP with right-hand-side randomness, and it can be described as follows: where, η c is the water use efficiency coefficient of canal water and is dimensionless, η f is the water use efficiency coefficient of the field and is dimensionless, SWS(ω) tl is the surface water supply in time period t under flow level l in m 3 , and q SWS is the violating probability of the surface water supply constraint.
(2) Groundwater supply constraint Similarly to surface water supply constraint, the groundwater allocation in each time period should not be larger than the groundwater supply.The fluctuation of groundwater is much smaller than the surface water and the changes of groundwater under different flow levels are insignificant.Therefore, this constraint is not expressed as CCP.However, it is worth noting that the groundwater supply can potentially be adjusted based on the results of the water resource transformation process in order to guarantee the rational exploitation of groundwater.This constraint can be expressed as follows: where GWS t is the groundwater supply in time period t in m 3 .
(3) Food security constraint The food demand for each crop should be satisfied to ensure people's elementary needs.Food demand is related to population, irrigation quota, yield per unit area, and food demand standard.Among them, irrigation quota is greatly affected by hydro-meteorological conditions and human elements, which lead to the randomness of the irrigation quota.Therefore, this constraint is expressed as CCP with left-hand-side randomness, and it can be described as follows: where YA c is the yield per unit area for crop c in kg/ha, IQ(ω) c is the irrigation quota of crop c in m 3 /ha, PO is the population of the whole irrigation district, FD c is the food demand of crop c in kg/capita, and q SWS is the violating probability of the food security constraint.
(4) Maximum irrigation constraint In order to avoid water waste, water allocation, including both surface water and groundwater to each crop under each flow level, should not be larger than the maximum irrigation amount during the whole crop growth period.This constraint can be expressed as follows: where IWA max,c is the maximum irrigation water amount for crop c in m 3 .
(5) Water allocation constraint Water allocation amount to each crop with each water source in each time period under each flow level should be non-negative.This constraint can be expressed as follows: (6) Non-negative constraint The decision variables of the model should be non-negative.This constraint can be expressed as follows:

Field Water Cycle Process
The transformation among surface water, precipitation, soil water, and groundwater is considered when optimizing agricultural irrigation water.The revised Thornthwaite-Mather (T-M) model which was developed by Thornthwaite and Mather [18], with a detailed study of the model done by Alley [19], is used to calculate the changes of soil water storage and deep percolation [20], and this will help to amend the irrigation water allocation results.There exists a basic assumption when using the T-M model, i.e., the evapotranspiration rate decreases linearly from a maximum value, when the soil water content corresponds to field capacity, to zero, when the soil reaches the permanent wilting point.The time step of the T-M model is usually in months.The fluctuations of the soil moisture in the unsaturated zone depend on whether the water supply including precipitation and irrigation water (results of the optimization model) of month t, i.e., EP(t) + I(t), is greater or less than the reference evapotranspiration for the month PET(t).The PET(t) in a certain time period can be calculated by the PM-ET 0 method [21] and the effective precipitation EP(t) can be estimated using the empirical formulae derived from the USDA Soil Conservation Service [22].
When EP(t) + I(t) ≤ PET(t), the soil moisture content can be described as: where S t , S t−1 represent soil moisture content in the root zone at the beginning and the end of the time period, respectively, in mm; S f c and S wp denote soil water content in the point of field capacity and permanent wilting point, respectively; S f c − S wp represents the water holding capacity in the root zone.In the above case, the deep percolation (∆DP(t)) equals 0.
When EP(t) + I(t) ≥ PET(t), the soil moisture content is updated by: The excess precipitation and irrigation water are assumed to contribute to deep percolation.In such a case, the deep percolation can be expressed as:

Solution Method
The steps for solving the optimization model for irrigation water allocation based on the TSCCP with left/right-hand-side randomness considering the field water resources transformation process, are described as follows: Step 1: Formulate the TSCCP model with left/right-hand-side randomness for irrigation water allocation (i.e., model ( 8)).
Step 2: Linearize the CCP constraints under the given violating probabilities.Specifically, for the CCP with right-hand-side randomness, the theoretical distribution curve should be fitted first, based on which, the values corresponding to each given violating probability can be determined.For the CCP with left-hand-side randomness, the normal probability distribution was assumed.Then, the CCP can be transformed into the corresponding linear form according to (6d) based on the mean value and the standard deviation value of the samples.
Step 3: Give an initial value of groundwater supply, and solve the optimization model by coding in an optimization software and recording the outputs.
Step 4: Input the outputs of the optimization into the T-M model to estimate the soil moisture and deep percolation.
Step 5: Judge whether the changes of groundwater levels in each time period can be calculated based on whether the deep percolation and irrigation area is within the range of permissible fluctuations (i.e., the range between groundwater levels that can cause overexploitation and soil salinization).If yes, output the results, if no, adjust the value of groundwater supply, and repeat steps 3 and 4.
Step 6: Give different violating probabilities corresponding to different kinds of CCP, and solve the framework by repeating steps from 2 to 5 to analyze the sensitivity of the model.

Description of the Study Area
The Yingke irrigation district (38 • 50 -38 • 58 N, 100 • 17 -100 • 34 E), located in the middle reaches of Heihe River basin, Northwest China, was chosen as the study area to test the developed model.The Yingke irrigation district is the third largest irrigation district in the middle reaches, and it belongs to a semi-arid area with a water shortage problem.The climate is typically a cold, arid continental climate with an annual average precipitation and a reference evapotranspiration of around 125 mm and 1200 mm, respectively.More than 90% of the water supply for Yingke irrigation district is used for irrigating crops.The other 10% of the water supply is used for forestry and grass irrigation, and human and livestock drinking.The major crops are corn, including grain corn and forage corn, and spring wheat, with their cropped areas accounting for 83% of the total crop area.Commercial crops such as vegetables and melons take up a 15% proportion of the area [23].The irrigation season is usually from April to September.Because of water shortage, groundwater is also exploited as supplemental water supply source.However, the poor irrigation management has led to an imbalanced distribution of various crops in different time periods, and a lower irrigation efficiency.This leads to the necessity for exploring optimal irrigation corresponding to different flow levels, considering field water resources transformation processes and allocation uncertainties to improve the present water use situations and economic benefits.

Data Collection
There are two pieces of data: data for the optimization model, and data for the T-M model.For the optimization model, water supply, water target, irrigation quota, and socioeconomic factors including benefit coefficient, penalty coefficient, population, food demand standard, irrigation area, and maximum irrigation amount, and engineering elements such as water use efficiency for canal and field.
Surface water supply for Yingke irrigation district is taken from Heihe river.In this study, it was assumed that the monthly variation of surface water supply for Yingke irrigation district was consistent with that of the runoff of Heihe River at Yingluoxia hydrometric station (the boundary point of the upper and the middle reaches of Heihe River basin).Therefore, if runoff from Yingluoxia hydrometric station was known, the surface water supply for Yingke irrigation district could be obtained, and it was expressed a random variable.The χ 2 hypothesis testing shows that the monthly runoff of Yingluo hydrometric station obeys normal distribution at a 0.1 significance level.Therefore, the normal distribution can be used to solve the CCP problems.Three flow levels were applied, and the category of different flow levels was based on the frequency analysis method.Let P express the frequency for dividing different flow levels, then P ≤ 25% corresponds to a high flow level, 25% < P ≤ 75% corresponds to a middle flow level and P > 75% corresponds to a low flow level.The mathematical expectation method was used to calculate P [24].The runoff data of Yingluoxia was ranked in descending order, and the ranked series was recorded as {x 1 , x 2 , • • • , x m , • • • , x n }.Then P can be expressed as P = (m/(n + 1) × 100%), with m denoting the number of "greater than" and "equal to" x m , and n denoting the total number of historical data.Using this formula, different flow levels can be divided, based on the division categories of P.Then, the occurrence probabilities of each flow level could be obtained by dividing the number of years of each flow level by the total number of years (from 1944 to 2014).The occurrence probabilities for the high, middle, and low flow levels were 0.25, 0.5, and 0.25, respectively.The annual surface water supply for Yingke irrigation district accounted for approximately 8.7% of the runoff from Yingluoxia hydrometric station.Then, the water supply during the whole crop growth period (From April to September) could be obtained.Based on the proportionality coefficient, the monthly water supply of the Yingke irrigation district could be obtained.The proportionality coefficients were 0.05, 0.09, 0.16, 0.27, 0.25, and 0.18 for April, May, June, July, August, and September, respectively.The water supply for Yingke irrigation district can be seen in Table 1.Based on the monthly observation data of runoff from Yingluoxia hydrometric station, the cumulative probability distributions of each month from April to September (the main irrigation period) were fitted, as shown in Figure 2. Based on the figure, the surface water supply under the selected violating probabilities was obtained.In this study, the violating probabilities were selected as 0.01, 0.05, 0.1, 0.15, and 0.2.The initial groundwater supply was from Annual Water Conservation Report of Zhangye City (AWC Report for short thereafter) from 2010 to 2016, and it was listed in Table 1.The proportions of agricultural irrigation water supply under high, middle, and low flow levels were 0.94, 0.92, and 0.9, respectively.The soil type of the Yingke irrigation district was silt loam and loam.According to the study of Li et al. (2015) [25], the permissible critical groundwater depth of 2 m was set to avoid salinization.If the groundwater depth is less than 2 m, the optimal water allocation results should be amended by re-calculating the optimization model with an adjustment of groundwater supply.The changes of groundwater depth for each time period can be obtained from the ratio of deep percolation amount and the irrigation area, and the deep percolation amount can be obtained by the Formula (11).Water target per unit area in this study was considered as crop demand and it was the numerical equivalent of crop evapotranspiration, which was estimated by multiplying the crop coefficient (K c ) with the reference evapotranspiration (ET 0 ).ET 0 was calculated by the PM-ET 0 method on the basis of meteorological data from 1956 to 2014, and the monthly changes of ET 0 is shown in Figure 3.The values of K c and the calculated ET 0 were listed in Table 2.The water targets corresponding to different water sources were obtained by the proportionality coefficients of the surface water supply and the groundwater supply.The proportionality coefficients were obtained based on long-term statistical information.For surface water (groundwater), the proportionality coefficients were 0.44 (0.56), 0.55 (0.45), 0.68 (0.32), 0.78 (0.22), 0.78 (0.22), and 0.72 (0.28) for April, May, June, July, August, and September, respectively.Then the irrigation area was used to transform the water target per unit area into the volume.In this study, the climate change effects were considered.According to previous studies [26], when the temperature increased by 1 • C, 2 • C, 3 • C, and 4 • C, water demand for crops increased 1.03-1.04-fold,1.06-1.07-fold,1.09-1.10-fold,and 1.13-1.14-foldover the current situation, respectively.Therefore, the calculated water target was re-defined considering this rise.A temperature rise of 2 • C was considered, based on the study of Wang and Chen (2014) [27].The water target was listed in Table 3.In this study, irrigation quota was a random variable on the left-hand side of the CCP constraint, and it was assumed to obey a normal distribution.Based on the statistical data from the AWC Report from 2000 to 2015, the mean value and the standard deviation of each crop were calculated (see Table 4).The violating probabilities of 0.01, 0.05, 0.1, 0.15, and 0.2 were also applied to the irrigation quota when transforming the CCP with left-hand-side randomness into the corresponding linear form.The values of some socioeconomic parameters in the optimization model varied with different crops, and they are listed in Table 4.The penalty coefficient was related to the degree of the water demand besides the crop types (see Table 5).The acquisition of these parameters was based on the AWC report, the year book of Zhangye City, field investigations, and relative references.Among them, the maximum irrigation amount was obtained by calculating the extremum of the quadratic water production function (WPF).The WPF for each crop was fitted by [2].The population of the Yingke irrigation district was 16.44 × 10 4 people.The average water use efficiency for the canal was 0.68 based on data from 2000 to 2015 of the AWC report, and the average water use efficiency for the field referred to [23].Data for the field water cycle process mainly included effective precipitation, reference evapotranspiration, and soil-relevant parameters.According to the empirical formulae derived from the USDA Soil Conservation Service, the effective precipitation for each month from April to September were calculated and they were 3.72 mm, 3.95 mm, 19.49 mm, 23.06 mm, 28.52 mm, and 19.9 mm respectively.The reference evapotranspiration was calculated by the PM-ET 0 method, and the results can be seen in Figure 3 and Table 2.The initial soil moisture content was set to 25%, the field capacity was 35% and the permanent wilting point was 10%.The root zone was set to 1 m with loamy soil.The average groundwater level depths for each month during the irrigation period were 3.25 m for April, 3.38 m for May, 3.48 m for June, 3.55 m for July, 3.40 m for August, and 3.21 m for September, according to observation data from 12 stations in the Yingke irrigation district.

Irrigation Water Allocation
Irrigation water allocation results (both surface water and groundwater) for each crop in each time period under each flow level were obtained by solving the optimization model, considering the different terms of the water balance.The Irrigation water for all crops in the Yingke irrigation district is shown in Figure 4.It was obvious that water allocation amount under a high flow level (9545 × 10 4 m 3 ) was larger than under a middle flow level (9023 × 10 4 m 3 ), and the last one was under a low flow level (7359 × 10 4 m 3 ), attributing to the surface water supply.June, July, and August were the months in which the peaks of water demand were concentrated.Water allocation in this period was 74% (high flow level), 70% (middle flow level), and 66% (low flow level), for the whole irrigation period.Surface water allocations for the three flow levels were 7029 × 10 4 m 3 for the high flow level, 6344 × 10 4 m 3 for the middle flow level, and 4605 × 10 4 m 3 for the low flow level.In order to alleviate water resources shortage as well as improve system economic benefits in unfavorable cases (middle and low flow levels), groundwater allocation increased from a higher flow level to a lower flow level, i.e., 2516 × 10 4 m 3 for a high flow level, 2680 × 10 4 m 3 for a middle flow level, and 2754 × 10 4 m 3 for a low flow level.It indicated that groundwater could be regarded as a regulative water source at a reasonable range to improve irrigation water allocation patterns in the Yingke irrigation district.
Figure 5 shows the total irrigation water allocation amount (the sum of surface water and groundwater irrigation amounts) for each crop in each month under the three flow levels.Corn, including grain corn and forage corn, occupied 80% of the total irrigation water allocation amount, reflecting the superiority in planting corn in the Yingke irrigation district.Corn was the major food crop in Yingke irrigation district, and the demand for corn was 376 kg per capita per year, with grain corn accounting for 53%, and forage corn accounting for 47%.The demand for wheat was only 23.3 kg per capita per year for its lower benefit and higher water consumption.It can be seen from the figure that the water demand for the vegetables was given precedence for its higher economic benefit and higher penalty coefficient.In other words, if the water shortage for vegetables was larger, then the system benefit would be decreased as the current optimal results.From the figure, water allocation law for grain corn and forage corn was different.For grain corn, water allocation from June to August was the irrigation peak, while for forage corn, water allocation from July to September was the irrigation peak.This was because of the crop coefficient K c (see Table 2), which directly affected the water demand.The results indicated that the water allocation amount was sensitive to K c , leading to the necessity of amending the parameter regularly for a specific area when optimizing irrigation water allocation.

System Benefit under Different Scenarios
The above results were obtained without considering the CCP constraints.However, two types of CCP constraints (Equations (8b) and (8d)) were incorporated into the optimization model, and the violating probabilities for each CCP constraint were 0.01, 0.05, 0.1, 0.15, and 0.2.Therefore, three scenarios were generated: Scenario 1, where the violating probabilities of the surface water supply constraint (surface water supply was the random variable in the right-hand side of the CCP constraint) were changed from 0.01 to 0.2, while the violating probability of the food security constraint (irrigation quota was the random variable in the left-hand side of the CCP constraint) was fixed at 0; Scenario 2, where the violating probabilities of the food security constraint were changed from 0.01 to 0.2, while the violating probability of the water supply constraint was fixed at 0; Scenario 3, where the violating probabilities of both the two constraints were changed from 0.01 to 0.2 simultaneously.Different violating probabilities affected the decision strategies for irrigation, and thus affected the system economic benefit, as illustrated in Figure 6.In Scenario 1, the system benefit increased as the violating probabilities increased.This was because a larger violating probability indicated a larger water supply that would contribute to a higher system benefit, because the objective function was linear.However, due to the uncertainty associated with the probability of occurrence of a certain water supply, a risk would be generated.Larger probabilities meant larger risks.Therefore, whether the violating probabilities should be considered and which one could be selected were largely dependent on the preference of the decision makers.In Scenario 2, the system benefit decreased as the violating probabilities increased, but the reduction was not dramatic.This was related to the property of the CCP constraints.Scenario 2 focused on the CCP with the left-hand-side randomness, i.e., the irrigation quota.According to the transformation method for solving such a kind of CCP, the inverse function of the cumulative distribution function of a parameter that obeys the standardized normal distribution should be calculated first.Larger violating probabilities corresponded to lower inverse function values.As the reciprocal of irrigation quota was used in the left-hand-side of food security constraint, larger violating probabilities led to larger reciprocal values, resulting in a lower water allocation amount in the case of the fixed right-hand-side values.Hence, the system benefit values under different violation probabilities showed a decreased trend.Because there was little changes of the annual variation of irrigation quota, the decline range of the system benefit was slight.Scenario 3 was the combined effect of Scenario 1 and Scenario 2, and it was obvious that the changing trend of system benefit in Scenario 3 was the same as Scenario 1 with different change extents.Compared with the two constraints, the results indicated that the optimization model was sensitive to surface water supply.Therefore, broadening water sources might be more efficient than reducing the water use in terms of decreasing irrigation quota to improve system benefits.

Soil Moisture and Deep Percolation
The field water cycle process was considered for adjusting the irrigation water allocation results.The outputs of the optimization model were input into the T-M model, and the average soil moisture and deep percolation were obtained, with the changes of groundwater level being considered as the correction condition.Taking Scenario 3 as an example, which could represent the combined effect of Scenario 1 and Scenario 2, the changes of soil water content and the ratio of deep percolation to the total irrigation amount was shown in Figure 7.It can be seen that soil moisture content presented an increase trend with an increase in violating probabilities.The reason was that larger violating probability corresponded to a larger irrigation water amount, and then this would lead to a larger soil moisture content until the value of the soil moisture content achieved the maximum soil moisture holding capacity, i.e., equal to the difference of soil water content between the field capacity and the permanent wilting point.If the soil moisture content exceeded the holding capacity, the deep percolation would be generated.For this study, the soil water content ranged from 23.78% to 27.71%, and the deep percolation rate ranged from 20.81% to 31.54%, with an increase in the violating probabilities.It should be noted that although a larger irrigation water amount would result in a higher system benefit based on the above results analysis, the irrigation water allocation amount would be restricted by two aspects, even if the water supply was sufficient.One restriction was the maximum irrigation amount, which was the upper threshold of the optimization model.If water allocation to a certain crop exceeded this threshold, a waste of water would be generated.This was attributed to the quadratic WPF (a convex quadratic function) for the whole growth period.The maximum irrigation amount corresponded to the maximum yield; in other words, if water continued to be allocated when the amount exceeded this value, the yield was expected to shrink, and the consequent system benefit would decrease.Another restriction was the groundwater level.Larger irrigation water amounts caused greater deep percolation.As the groundwater level depth in the Yinke district was fairly shallow, larger irrigation amounts might cause the groundwater level to rise, then give rise to soil salinization.This would affect crop growth, which is disadvantageous for improving the system economic benefit.Therefore, considering the field water resources transformation process was significant for adjusting the optimal irrigation water patterns.

Discussion
The aim of this paper is to develop a stochastic optimization method for irrigation water allocation, in which the field water cycle process (including the transformation of crop evapotranspiration, precipitation, irrigation, soil water content, deep percolation) was considered.By integrating a water balance model, the developed stochastic optimization method is capable of obtaining more accurate water allocation plans because the connection between surface water irrigation and groundwater irrigation was reflected, rather than dealing with the surface water and groundwater supplies as two individual components.In fact, there are several hydrological models that are able to describe field water cycle processes, such as the T-M model, the Belgium model, the Xin'anjiang model, the Guo model, the WatBal model, and the Schaake model.Each model has its own characteristics.However, this paper only took the T-M model as an example to examine the feasibility of integrating the field water balance model into the stochastic optimization framework, without comparing and demonstrating which model is appropriate and how different models affect water allocation strategies.This may become a major limit of the developed method, and requires future study.
For water-deficient regions, water-saving methods such as regulated deficit irrigation (RDI) or partial root zone drying (PRZD) are popular for reducing crop water consumption, and thus increasing irrigation efficiency.Considering different water-saving methods in the developed method is interesting, and alternative irrigation water allocation schemes in time-space under different scenarios can be provided.These methods directly affect the irrigation quota for each crop and soil water content, which are the main components of the optimization model, and thus they change the allocation strategies.However, how the RDI and PRZD affect the irrigation quota and soil water content is worth discussing with regards to field trials, and this was not discussed in this paper.

Conclusions
A TSCCP model with left/right-hand-side randomness, considering water resources transformation, has been developed for irrigation water allocation.The model is advantageous in: (1) effectively allocating limited surface water and groundwater supplies with consideration for field water resource transformations among irrigation water, precipitation, soil water, and groundwater to avoid unreasonable allocation schemes, with obtaining the maximum system economic benefit as the final aim; (2) dealing with randomness both in the right-hand side and left-hand side of constraints, which will help to generate irrigation water allocation schemes under different levels of water supply and different levels of constraint-violation risks.
The approach was applied to a real case study in an irrigation district in Northwest China, to demonstrate its feasibility.The results of irrigation water allocation for different crops in different months during the crops' whole growth period under different flow levels, considering different violating probabilities, were obtained.The results gained insight into the tradeoffs between system benefit and economic penalties, with soil moisture content and deep percolation under different scenarios changing in an appropriate range, which are informative for decision makers.The approach is applicable for any irrigation district with water shortage issues.Future work will focus on improving the agro-hydrological model to acquire more accurate data on the field water cycle (actual evapotranspiration, soil water content, and deep percolation), and thus improving the practicality and applicability of the model.

Figure 3 .
Figure 3. Monthly changes of ET 0 .Note: 0.25P represents the upper quartile and 0.75P represents the lower quartile.

Figure 4 .
Figure 4. Total irrigation water allocation under different flow levels.

Figure 5 .
Figure 5. Irrigation water allocation for each crop.(Note: WA-H, WA-M, and WA-L indicate water allocation in high flow level, middle flow level, and low flow level, respectively.)

Figure 6 .
Figure 6.System benefit under different scenarios.

Figure 7 .
Figure 7. Changes of soil water content and deep percolation under different violating probabilities.

Author
Contributions: M.L. designed the study, formulated the optimization model, and gave comments and helped to revise the paper; Z.Y. solved the model, analyzed data and results, and wrote the paper with the co-author.Funding: This research was funded by the China Postdoctoral Science Foundation, grant number [2018M630332 and 2018T110264], this research was funded by the Natural Science Foundation of Heilongjiang Province of China, grant number [E2018004].

Table 2 .
K c and ET 0 .

Table 4 .
Parameters for crops.