Simulation of Electricity Demand Function in Agricultural Sector: An Application of Genetic Algorithm (Case Study: Electricity-Fed Wells of Iran)
Hossein Sadeghi1 * , Samaneh Khaksar Astaneh1 , Mohammadhadi Hajian2 and Shahdokht Azadi1
1
TarbiatModares University,
Tehran
Iran
2
Economics Department,
TarbiatModares University,
Tehran
Iran
DOI: http://dx.doi.org/10.12944/CWE.9.3.10
Due to several problems arisen from consumption of gas oil, it is necessary to electricity substitute fossil fuels in agriculture wells in Iran. Problems such as lack of opportune and adequate supply of fuel, air and soil pollution, noise pollution and huge costs of installation, operation and maintenance imply the necessity of replacing gas oil systems by electricity-consuming ones in agriculture sector of Iran.However, it is essential to study on the demand of electricity, nowadays, substituting other energy sources.As water wells are the main electricity consumersin agriculture sector, the estimation of energy demand function would be beneficial for policy makers to achieve their goals. The present paper investigates on energy demand function in agriculture sector of Iran.Genetic algorithm techniques are appliedto estimate electricity demand in agricultural sector in three forms: linear, quadratic and exponential equations. Based on the conventional criteria, the exponential model is selected as the best model for estimation. Furthermore, electricity demand of agricultural sector is forecasted under three scenarios for years next three years.
Copy the following to cite this article:
Sadeghi H, Astaneh S. K, Hajian M, Azadi S. Simulation of Electricity Demand Function in Agricultural Sector: An Application of Genetic Algorithm (Case Study: Electricity-Fed Wells of Iran). Curr World Environ 2014;9 (3) DOI:http://dx.doi.org/10.12944/CWE.9.3.10
Copy the following to cite this URL:
Sadeghi H, Astaneh S. K, Hajian M, Azadi S. Simulation of Electricity Demand Function in Agricultural Sector: An Application of Genetic Algorithm (Case Study: Electricity-Fed Wells of Iran). Curr World Environ 2014;9(3). Available from: http://cwejournal.org?p=542/
Download article (pdf) Citation Manager Publish History
Select type of program for download
Endnote EndNote format (Mac & Win) | |
Reference Manager Ris format (Win only) | |
Procite Ris format (Win only) | |
Medlars Format | |
RefWorks Format RefWorks format (Mac & Win) | |
BibTex Format BibTex format (Mac & Win) |
Article Publishing History
Received: | 2014-08-18 |
---|---|
Accepted: | 2014-09-15 |
Introduction
Mechanization is the essential prerequisite for transition from traditional to modern agriculture. Obviously, the traditional methods can not guarantee the food security for growing 70-million-people population. Nowadays, the key role of mechanization in agriculture production motivates policy makers to accelerate the mechanization process in agriculture sector. Hence, mechanization is constantly addressed by planners of agricultural sector in their strategic plans.
In order to provide water for growing population, it is vital to optimize the exploitation of surface and underground water sources. Human beings have been preoccupied by inventing devices enabling them to bring water to the ground surface. In this regard, they took the first steps towards mechanized agriculture by making manual pump and, finally, modern pumps. One of the most important applications of the pumps is in agricultural sector for pumping water from groundwater aquifers (Nikue, 2000).
The energy consumed in Iranian agricultural sector is mainly supplied by the petroleum products such as oil, gas, and, kerosene. The share of petroleum products which are consumed in agriculture sector on the first decade after Irans Revolution was 94.6% of the total energy consumed in agriculture sector. In the recent years, despite the increase of energy prices, the share of electrical power used in agricultural activities has been significantly raised, as it has shifted from 6.73% in 1991 to 29.04% in 2009. One of the major consumption fields of electrical power in agricultural sector, which shares a considerable part of total electricity used in this sector, is agricultural wells. A significant share of energy consumed in this sector is allocated for the electro-pumps used for pumping water in these wells.
One of the major goals pursued by electrical power industry is to optimize the consumption of the generated electricity, as generation of energy requires huge investment in long run. Applying a proper and systematic consumption management in the energy sector not only offer a great economic contribution to the country, it also provides a stable power supply for its subscribers.
Consumption of electrical energy has been increased over recent years. On the other hand, by the available technology it is not possible yet to store the generated energy in huge scales. Thus, it is important to optimize the consumption of energy. In this way, this is necessary to make a precise prediction of the energy consumption, in order to economize electrical energy consumption (KhademiZare&Akhavan, 2009).
Although,no explicit domestic work has been conducted in agricultural sector for predicting electrical energy consumption using the artificial intelligent techniques such as genetic algorithm (GA), Musavi et al (2010) predicted consumption of energy carriers in Iranian agriculture based ARCH and ARIMA models using the annual data of 1968 to 2005. The results of this work indicated that a slight increase would be observed in consumption of energy carriers in the agricultural sector. In the following lines, some studies conducted on prediction and estimation of demand function in different fields using the different techniques are introduced:
Sadeghi et al (2009) estimated demand function for gas consumed in transportation sector of Iran. Through this work, they applied GA technique to estimate demand function of gas and then predicted gas demand in transportation sector until 2025. Ghanbari et al (2008) estimated demand function of gas and super gas in transportation sector of Iran using GA technique. The results of their work revealed that the second order form of demand function for gas and exponential from of demand function for super gas in land transportation sector yield efficient results for predicting energy demand in land transportation sector of Iran. BorimNezhad (2007) extracted water demand function in in agricultural sector using the polynomial production function. Tahamipour et al (2006) determined water demand function in agricultural sector using the linear programming method. Azerbaijani et al (2005) applied ARDL method for estimation of demand function of electrical energy in industIRR sector. Their result showed that electrical energy in industIRR sectors is an approximate inelastic input and, therefore, price policies have no considerable effect on its demand. Forouzanfar et al (2010) predicted consumption rate of electrical energy carriers through their study, “modeling and estimation of consumption rate of natural gas in domestic and industIRR sectors of Iran”, using nonlinear programming technique and GA. Their results imply high accuracy of these two techniques for predicting natural gas consumption. To predict energy consumption by particle swamp optimization (PSO) for estimation of future value of energy in Turkey until 2025, Unler (2008) proposed linear and second order functions for energy demand of Turkey. The results of this work indicated that the second order function with lower SSE provides a better solution of the data observation. Thomas et al (2008) predicted housing demand in Hong Kong using GA and linear regression techniques. To estimate future value of oil demand by genetic algorithm optimization, Canyurt&Ozturk proposed three nonlinear models for oil demand in Turkey. Ozturk et al (2005) predicted Electricity consumption in Turkey within time range of 2002-2025 using GA technique.
This paper consists of 7 parts: After general overview of the study in part 1, wells electrification is discussed in energy economic in part 2. Part 3 deals with theoretical basics of GA. Then, in part 4, the model is introduced. In parts 5 and 6, the result analysis and prediction of electrical energy demand in Iranian agriculture are discussed, respectively. Finally, conclusion is offered in part 7.
Electrification of Wells: A necessity for energy economization
Nowadays, human encounters two major crises, which are interrelated more than they appear. On one hand, industrial cities deal with environmental pollutions and, on the other, the raw materials and fuel resources are shrinking for the fossil fuel resources are among non-renewable energies.
One of 15 biggest consumers of petroleum products in the world is Iran, whose consumption of petroleum products tripled during less than two decades. In comparison, Western countries have strictly controlled and lowered their consumption by applying appropriate energy optimization policies. One of the policies applied by the government for proper optimization of fossil fuel consumption and, consequently, pollution reduction is to find a proper alternate for fossil fuel used in pumps of agricultural wells and moving towards installing electrical pumps and expansion of electricity networks to agriculture wells.
Problems such as lack of opportune and adequate supply of fuel, air and soil pollution, noise pollution and huge costs of installation, operation and maintenance imply the necessity of replacing gas oil systems by electricity-consuming ones in agriculture sector of Iran.
In regard to arid climate of Iran and water crisis coupled with unpermitted water withdrawal and considering the fact a big share of unauthorized water withdrawal is in these wells, it is required to define a strict program for controlling these extractions, as in electrical wells it is easier as compared to diesel or other non-electrified wells.
Another advantage for electrification of the agricultural wells is to detecting and preventing activities of non-permitted wells. In this way, by correcting fees of agricultural electricity, increasing the energy fine and fine for energy demand excess to the limit defined in the permit, it is possible to easily control water withdrawal from underground aquifers and also optimize water and electricity consumption in this sector.
Because of the national interests concerning the electrification of the agricultural wells, since 1999 government has allocated a considerable budget in subsidiary and non-return forms to farmers to motivate them towards electrifying their wells. To extract water from wells, generally fossil fuels (gasoil) are used which have high costs as compared to the natural fuel gas as well as harmful environmental consequences. Electrification of the agricultural wells would also result in a considerable economic save in national economy considering the price difference between oil and gas oil.
In Iran, the rule for facilitation of electrifying the agricultural wells was passed in Islamic Consultative Assembly in 2001. Based on this rule, towards facilitating the electrification of the agricultural wells and optimum usage of energy sources and national capitals, the government is obliged to provide maximum facilities and equipment for farmers; also, Ministry of Energy is obliged to provide energy needs of the demanders and subscribers of agricultural sector 24-27 round the year. By passing this rule, the farmers demand for electrification of their wells indicated a multifold increase. Furthermore, based on the agreement between Ministries of Energy and Petroleum, and the rule passed in High Economic Council towards providing special facilities, a large number of diesel engines were converted to electrical engines.
At the beginning of Iranian Islamic Revolution, there were only 2000 electrified wells in the country. Ever since, 4,275 wells have been electrified each year. By end of 2011, the total number of wells in Iran is 357,218 where 189,893 of them is electrified and the rest 167,325 are diesel (Electricity Statistics book, 2011). These electrified wells, with average demand of 36 kW, consume 21,390 million Kwh per year.
Basics of Genetic Algorithm (GA)
GAs are among the members of computation models expired from evolution theory. These algorithms codify potential solutions of a problem in the form of simple chromosomes and then apply combinational operators on these structures. GAs are typically recognized as optimization functions. However, their application domain is wider than being merely applied for optimization problem.
GAs have essential differences with traditional searching and optimization methods. Goldberg (1989) lists this difference as follows:
- GAs work based on codifying a set of solutions, not by the solutions
- GAs search the solution among a population of solutions not a single solution
- GAs use the information of target function, not derivations or other axillary information; and
- GAs apply probabilistic transfer functions, not common deterministic and mathematical rules.
Implantation of GAs is initiated by creating an initial (typically random) population of chromosomes. Then, these initial structures are evaluated and are allowed to breed based on their merits.
GA, for the first time, was introduced by Holland (1975). In these algorithms each solution is represented by a set of gens called as chromosomes. A selected population of chromosomes is called as “community”, while each community is called as a “generation” for a specific long period. After defining the target function, initial community is generated. This population is evaluated and each chromosome is assigned a ranking based on its fitness. If the defined criterion of problem is not satisfied, regeneration cycle is iterated for improving the solutions. This cycle includes selection, crossover, and mutation steps. Chromosomes are selected based on their assigned ranking and introduced to crossover step where the selected chromosomes (parents) produce child chromosomes. These solutions are entered to mutation step for completing regeneration step and create new community. Thus, based on the mentioned points, each GA should necessarily cover the following points (Goldberg, 1989)
- Chromosome representation of possible solutions;
- Initialization of the initial population
- Evaluation function for ranking the solutions on basis of their fitness;
- Genetic operators for crossing over and changing the structure of chromosomes; and
- Other required operators such as population, mutation probability, crossover probability, etc.
In general, a genetic algorithm has a cycle similar to the one presented in Figure 1. The first step is to produce initial random population of chromosomes. Next, fitness level of each member (chromosome) in the population is evaluated and defined and then selection step is preformed based on the fitness of members. In this way, a number of chromosomes with highest fitness are selected for regeneration. Ultimately, genetic (cross over and mutation) algorithms evaluate the selected members by modifying or combining their genetic codes. Each run of this cycle is called as one generation. This process is iterated until satisfying stop criterion of the cycle.
Figure 1: Algorithm cycle |
In the present research, the parameters of the chromosomes are modeled in binary form. Here, each parameter of the bits is determined based on modeling precision in the decimal system using Eq. (1):
Where, Δ is the desired accuracy; k is number of bits; and l is high and low boundary of each parameter. To decode the chromosomes of this algorithm, first value of each parameter in binary chromosome was converted to the one in decimal system and then normalized between 0 and 1 using Eq. (2)
Where, k and d represent number of bits and corresponding decimal value of each parameter. Next, the normalized value was mapped to value between high and low boundary and the average of obtained values was recorded for the given generation. To develop next generation, first the selected chromosomes are placed in breeding pool. Then, by determining crossover probability, which is pc = 0.9 in this work, the chromosomes were randomly selected and crossover process is performed. A chromosome might be transferred to the next generation with probability of 1 – pc, which indicates lack of crossover. In some cases, value of a given bit is probable to change due to the crossover effect, while in its previous state it was more valuable. Then, to avoid this phenomenon, it is required to apply another operator called as mutation with pm considered as – 0.06 in this work. Similar to crossover operators, also this operator runs in a random basis. As a result, the mutation of a given bit varies in the range of 0 to 1. By determining the number of iterations and stop criterion. After defining number of iteration for a generation and stop criterion, the average and optimum solutions are recorded until the given generation.
Target function, and, more accurately, the model proposed for estimation of electricity demand in agricultural sector in the future years is calculated using Eq. (3)
Where, the value of fitness function equals to sum of square error (SSE); Eobs, and Eest are observed and estimated electricity demands, respectively; m is number of observations; and si is weighting factor. Table 1 presents the parameters using GA for estimation of mentioned equations.
Table 1: Parameters used in GA
18 |
Initial population |
50 |
Number of generations |
0.9 |
Probability of crossover operator |
0.06 |
Probability of mutation operator |
Model representation
In this research, to simulate demand function of electricity in the agricultural sector, the 6-month data from 2003 to 2010 were used. Statistic and information related to the average electricity price (P) in agricultural sector (in IRRs per hour) were extracted from energy balance sheet of Ministry of Energy.Statistics of the electricity consumption rate of the electrified wells in agricultural sector (E) in kwh, number of electrified wells (CH), and allocated budget for electrification of these wells (M) in million IRRs are extracted from Rural Electricity Statistics of Ministry of Energy.
Considering the gathered information, electricity demand function in agricultural sector is computed using Eq. (4)
E = f (CH,P,M) ......(4)
Where, E is electricity consumption in electrified wells of agricultural sector; CH is number of electrified wells; P is average price of electricity in agricultural sector; and M is the budget allocated for construction and reinforcement of electricity networks in agricultural sector.
Based on the characteristics mentioned for GA, in this research three equations were utilized for estimation of electricity demand in agriculture: Linear equation in the form of Eq. (5)
In Eq. (5), (6), and (7), x1, x2, and x3 are the number of electrified wells, average price of electricity in, and M is the budget allocated for construction and reinforcement of electricity networks in agricultural sector, respectively. Besides, wi and αI are weight coefficient and exponent of each variable.
Analysis of the results Estimation of the demand models
After performing the procedure mentioned in part 3 (basics of genetic algorithm), the linear, second order, and exponential equations were obtained using MATLAB 2009 as follows:
Linear demand function simulated for electricity obtained using the GA method (Eq. 8)
|
Figure 2: represents electricity estimation demand |
Evaluation criterion of the simulation process
For a more accurate evaluation of the performance of simulated functions, three other criteria beside fitness function were applied to assess other simulation (prediction) performances. These criteria are as follows:
Mean Square Error (MSE)
indicated the difference between the observed and simulated values of electricity consumption in Iranian agricultural sector. MSE is computed using the equation (11)
Root Mean Square Error (RMSE) is the root of MSE. Mean Absolute Percentage Error (MAPE),as the difference between the observed and simulated values of electricity demand in agricultural sector of Iran, is an important criterion for calculating percentage of predicted error. Calculating prediction error in terms of MAPE yields better results (Equation 12)
Where, n represents number of observations. These criteria are computed for the simulated functions of electricity demand and the results are listed in Table. 2.
Table 2: A comparison among linear, second order, and exponential models using the evaluation criteria
MAPE |
RMSE |
MSE |
Model |
2.62 |
23822 |
1077292497 |
linear |
1.12 |
14075 |
198127472 |
quadratic |
0.71 |
8117 |
65893667 |
exponential |
As shown in table 2, all criteria emphasize superiority of exponential model over linear and second order models. Based on the obtained results, it can be stated that exponential model indicates better and more accurate prediction results for estimation of electricity demand in agricultural sector as compared to linear and second order models.
Prediction of electricity demand in agricultural sector
After estimation and evaluation of linear, second order, and exponential models of the electricity demand in agricultural sector, in this part electricity consumption in agricultural wells are predicted using exponential models in the form of three scenarios for a time range of 2012 to 2014:
Scenario 1 (optimistic) Assumptions:
- Growth rate of allocated funds to wells electrification is 40.75%;
- The real price of electricity is constant in agricultural sector; and
- Growth rate of electrified wells is 11.56%.
Scenario 2 (intermediate) Assumptions
- Growth rate of allocated funds to wells electrification is 21.98%;
- The real price of electricity is constant in agricultural sector; and
- Growth rate of electrified wells is 7.48%.
Scenario 3 (pessimistic) Assumptions
- Growth rate of allocated funds to wells electrification is 0.16%;
- The real price of electricity is constant in agricultural sector but it has a 15% raise in 2014; and
- Growth rate of electrified wells is 1.61%.
The values predicted using these scenarios for electricity consumption in agricultural sector are presented in Table 3 based on which, electricity demand in agricultural sector would have a rising trend.
Table 3: Values predicted for electricity consumption using exponential model (in million kWh)
Scenario 3 |
Scenario 2 |
Scenario 1 |
Year |
17341 |
21437 |
25044 |
2012 |
17378 |
23909 |
30251 |
2013 |
17416 |
26682 |
36602 |
2014 |
Furthermore, Table 4 shows average growth rate of electricity demand in agricultural sector within 2012 to 2014 based on the introduced scenarios and exponential model.
Table 4: Average growth rate predicted for electricity demand in agricultural sector
Scenario 3 |
Scenario 2 |
Scenario 1 |
Period |
0.002 |
0.12 |
0.23 |
2012-2014 |
For all scenarios, the average growth rate of electricity demand in agricultural sector indicates an ascending trend in exponential model. However, as electricity price is assumed as constant, growth rate of allocated funds in scenarios 1 and 2 and growth rate of electricity demand indicate a sharper increasing trend as compared to scenario 3.
Conclusion
Iran is among the 15 countries of the world with highest usage of petroleum products as the registered statistics show that the consumption of petroleum products in this country has had a three time increase in less than two decades. In comparison, Western countries have strictly controlled and lowered their consumption by applying appropriate energy optimization policies. One of the policies applied by the government for proper optimization of fossil fuel consumption and, consequently, pollution reduction is to find a proper alternate for fossil fuel used in pumps of agricultural wells and moving towards installing electrical pumps and expansion of electricity networks near to these wells.
The problems induced by lack of proper and on time fuel supply, contaminations generated by pouring the petroleum products, air pollutions caused by burning the oil products, noise pollution, as well as costs concerning the installation and commissioning, exploitation and maintenance, and fuel supply have made finding alternative systems for diesel and gas pumps as a top rank priority for the authorities of the agricultural sector.
Hence, studying the effective factors on electricity demand for accurate and proper recognition of behavior structure of the consumption pattern is a critical need for careful planning towards meeting the desired goals. In this research, first electricity demand function was introduced and then factors effective on electricity demand of agricultural wells were discussed. The variables used for estimation of electricity demand in agricultural sector include annual number of electrified wells, average electricity price in agricultural sector, and allocations for constructing and reinforcement of electricity networks in agricultural wells.
The results of this work indicated that exponential model produces better results for estimation of electricity demand function as compared to linear and second order models. Moreover, in this research, electricity demand of agricultural wells was predicted by exponential function using 3 different scenarios for time period of 2012 to 2014.
References
-
Azarbayejani, K., Sharifi, A., &Satee, M. (2005).Estimation of electrical energy demand in industrial sector of Iran. Economic Research journal, 73, 133-166 (in Farsi).
-
BorimNezhad, V. (2007).Extraction of water demand function by polynomial product function in agricultural sector.Scientific Journal of Agriculture, 30 (2) (in Farsi).
-
Behruzi Lar, M. (1984). What is agricultural mechanization?Olive Journal, 43 (in Farsi).
-
Tahami Pur, M., Karbasi, A., &DaneshvarKakhki, M. (2006).Water demand in agricultural sector (case study: pistachio farmers of Zarand City). Agricultural Science and Technology Journal, 20, 116-122 (in Farsi).
-
Canyurt, O., Oz Turk., H. (2006). Three Different Applications of Genetic Algorithm (GA) Search Techniques on Oil Demand Estimation. Energy Conversion and Management,47: 3138-3148.
-
Forouzanfar, M., Doustmohammadi, A., Menhaj, B., &Hasanzade, S. (2010). Modeling and Estimation of the Natural Gas Consumption for Residential and Commercial Sectors in Iran. Applied Energy, 87: 268-274.
-
Ghabari, A., Khezri, M., &Azami, A. (2008).Simulation of demand for gasoline and gas oil in the ground transportation of Iran, using a Genetic Algorithm. Quarterly Journal of Economics some (former economic studies), 5(4), 157-177 (in Farsi).
-
Goldberg, D (1989).Genetic Algorithms in Search, Optimization and Machine learning. Addison-Wesley, Harlow, England.
-
Holland, J. (1975). Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control and Artificial Intelligence. Ann Arbor, MI: University of Michigan Press.
-
khademi zare, H., Akhavan, A. (2009). Provide an integrated model to predict the peak load and electrical energy supply and demand balance multiple objectives. Twenty-Fourth international Conference on Electricity (in Farsi).
-
Musavi, N., Mokhtari, Z., &Farajzade, Z. (2010).Prediction of energy consumption in Irans agricultural sector with ARCH and ARIMA models. Energy Economics Studies, 27, 181-195(in Farsi).
-
Nikuee, A., Torkamani, J. (2000).Economic evaluation of converting diesel engines to electric pumps.Journal of Agricultural and Development Economics, 32, 135-156 (in Farsi)
-
Ozturk, H., Ceylan, H., Canyurt, O., &Hepbasli, A. (2005). Electricity Estimation using Genetic Algorithm Approach: a case study of Turkey. Energy, 30, 1003-1012.
-
Sadeghi, H., Zolfaghari, M., &Heydarzade, M. (2009). Estimates of gasoline demand in the transportation sector by using Genetic Algorithm.Energy Economics Studies. 21, 1-27 (in Farsi).
-
Toksari, M. (2007). Ant Colony Optimization Approach to Estimate Energy Demand in Turkey. Energy Policy, 35, 3984-3990.
-
Thomas, N.,Skitmore, M., & Fai Wong, K. (2008). Using Genetic Algorithms and Linear Regression analysis for Private Housing Demand Forecast. Building and Environment, 43, 1171-1184.
-
Unler, A. (2008). Improvement of Energy Demand Forecasts Using Swarm Intelligence: The Case of turkey with Projections to 2025. Energy Policy, 36, 1937-1944.