Research Article  Open Access
Forecasting Iran’s Energy Demand Using Cuckoo Optimization Algorithm
Abstract
This study deals with the modeling of the energy consumption in Iran to forecast future projections based on socioeconomic and demographic variables (GDP, population, import and export amounts, and employment) using the cuckoo optimization algorithm. For this purpose, four diverse models including different indicators were used in the analyses. Linear and power forms of equations are developed for each model. The related data between 1972 and 2013 were used, partly for installing the models. The result of the models shows that the obtained demand estimation linear models are in closer agreement with the observed data, particularly the linear model with five independent variables including GDP, population, import, export, and employment, which outperformed other linear models. Finally, the future energy demand of Iran is forecasted up to the year 2030 using these models under three scenarios.
1. Introduction
Energy is a foundation element of the modern industrial economy. Over the past few decades, energy has become a very critical element in industries and also a fundamental product and factor in the growth of the economy in different world regions. Everincreasing dependence of human life on energy has made this factor play a critically crucial role either potentially or actively in the functions of various economic sectors of countries.
In spite of the fact that Iran has the richest sources of energy, squandering and despicable utilization of them cause irrecoverable harm to the national annual financial plan. The cost is evaluated proportionally to the whole national annual development financial plan (around 5 billion $). As indicated by approximately settled raw petroleum generation, increase in the measure of domestic utilization will prompt to diminish in oil fares and therefore will diminish proceeds from the offer of oil incomes. In this manner, energy administration issue has specific significance regarding maintaining oil export capacity, diminishing energy intensity, and sporadic development in utilization, ecological insurance, and monetary limitations for interest in the energy sector.
Therefore, Iranian authorities have to forecast more exactly the energy consumption in the correct arranging and direction utilization so that to manage the way they sought energy demand and supply parameters. So energy demand expectation is vital to auspicious supply. Hence, regulations on the raised issues result in focusing on energy security.
The Ministry of Energy which assessed the amount of energy consumption in Iran during 1972–2013 also prepared the detailed breakdown of energy consumption. For example, in 2013, Iran consumed about 1320.7 million barrels of oil equivalents (Mboe) which consisted of 482.5 Mtoe of petroleum, 696.7 Mboe of natural gas, 3 Mboe of coal, 8.4 Mtoe of biofuel energy, and 130.2 Mboe of electrical energy.
Distinctive techniques acquainted with energy consumption expectation. According to the increasing demand for energy, the assessment of energy is necessary. This assessment can be done based on socioeconomic indicators using different methods of mathematical demonstration. The energy demand equations can be expressed in linear or nonlinear forms. Intelligent optimization technique entities, e.g., birds, bats, and fireflies, are appropriate to forecast these models.
This article focuses on forecasting the energy demand in Iran based on socioeconomic factors using the COA (cuckoo optimization algorithm) technique. Different models are studied to determine the best possible approach in modeling energy demand as a function of various indicators. This study examines the relationship between energy demand and diverse independent variables in four models, utilizing linear and power types of equations. Results arising from this study provide important reference information for the utility companies in assessing energy consumption patterns and selecting a more accurate approach to estimate future energy demand.
Several studies that propose several models for energy demand policy management with different techniques are introduced. Pao [1] developed linear and nonlinear statistical models, including ANN methods, to forecast Taiwan’s electricity consumption based on the national income, population, GDP, and consumer price index. For further details on employing ANN to estimate energy consumption, refer Assareh et al. [2] and Azadeh et al.'s [3] study. Bianco et al. [4] employed the Holt–Winters exponential smoothing method and the trigonometric grey model with rolling mechanism (TGMRM) to estimate electricity consumption in Italy. Ceylan et al. [5] used the harmony search (HS) technique to forecast Turkish transport energy demand in tree forms (linear, exponential, and quadratic) and based on population, GDP, and vehicle kilometers driven. Mohamed and Bodger [6] estimated the electricity demand of New Zealand based on economic indicators, including, GDP, electricity price, and population by multiple linear regression analysis. Amjadi et al. [7] presented two forms (exponential and linear) of energy demand equations to forecast the electricity demand for future projections based on PSO and GA techniques (see also Sadeghi et al. [8]). They used population, GDP, number of customer’s electricity, and average price electricity as independent variables. The energy consumption in Iran is also determined using the bees algorithm technique by Behrang et al. [9] with independent variables such as population, GDP, import, and export. Kıran et al. [10] applied artificial bee colony (ABC) and particle swarm optimization (PSO) techniques to forecast electricity energy demand in Turkey in two forms, linear and quadratic by using selected economic and demographic variables that include the gross domestic product (GDP), population, import, and export.
The paper is organized as follows: In the next section, we explain the specification of the cuckoo optimization algorithm. Section 3 presents problem definition. In Section 4, the model estimations and forecasting results are done, and finally, in Section 5, the conclusions will be stated.
2. Cuckoo Optimization Algorithm
The cuckoo algorithm has been proposed by Yang and Deb[11]. It was developed by Rajabioun [12]. This algorithm runs like other evolutionary algorithms. The cuckoos used in this modeling are considered in two forms, namely, adult cuckoos and eggs. Thus, the COA begins with an initial population of cuckoos. Each adult cuckoo lays only one egg at a time and dumps it in a randomly selected nest. Some of these eggs grow up and turn into adult birds which are more similar to the host bird’s eggs, and other eggs are recognized and thrown out by host birds. Therefore, an egg whose profit function value is smaller is removed. More profit is gained in habitats in which more eggs survive. In fact, the nests (position) in which more eggs remain will be the term that the COA is going to optimize. On the contrary, the remaining eggs grow and turn into adult cuckoos. They form some groups in all different regions of the environment. Then, they migrate to better regions where eggs have higher survival chances. Thus, the group with the best position is chosen as the goal point for all other groups to immigrate.
Therefore, it is necessary that problem values be convened as an array called “habitat” for solving an optimization problem with COA. In a N_{var} dimensional optimization problem, a habitat presents the current living place of a cuckoo and is an array of 1 × N_{var}. The array is indicated as follows:
The suitability of a habitat is estimated by the assessment of profit function f_{b} at a habitat of (), where
To begin the COA, a primary habitat matrix of size N_{pop} × N_{var} is introduced.
Due to the number of eggs each cuckoo has and the cuckoo’s distance to the best habitat (the current optimal area), an egglaying radius (ELR) is assigned to it. Then, the cuckoo begins to lay eggs randomly in several nests inside her ELR. This process reiterates until the best position is obtained.where α is an integer that adjusts the maximum value of ELR. var_{hi} and var_{low} are the upper and lower bound for the variables, respectively. Since adult cuckoos exist all over the environment, it is a problem to discover which group each cuckoo is dependent on. Grouping of birds is done by using the Kmeans clustering method to solve this problem. Now that the group’s cuckoos are determined, their mean profit value is calculated. Then, other groups migrate to the region with the greatest mean profit. All cuckoos do not migrate the entire path in the movement to the goal point; they just go across a part of the total distance.
To keep the balance between the cuckoo and other birds, the maximum number of cuckoos that may live in a region is finite (N_{max}). After iteration, all cuckoos arrive in an optimized region with the most similarity of their eggs to the eggs of the host bird. In this location, the number of the removed eggs will be minimal and will gain the greatest objective function. The repeated algorithm to more than 95% of all the cuckoos converges toward a single point. Relation (4) shows the migration function in the COA:where F is a parameter of cause deflection. The cuckoo optimization algorithm (COA) is classified as follows: Step 1: forming initial cuckoo’s habitats by using several random points Step 2: allocating several eggs to each cuckoo and giving definition ELR for each cuckoo Step 3: allowing cuckoos to lay eggs inside their corresponding ELR Step 4: allowing eggs similar to the host bird’s eggs to hatch, grow, and remove other eggs that are recognized by the host birds Step 5: evaluating the habitat of each newly grown cuckoo Step 6: limiting the maximum number of cuckoos in the environment and ignoring those who exist in the worst habitats Step 7: clustering cuckoos, determining the best group and selecting goal habitat, and then allowing new cuckoo population immigrates toward a goal habitat Step 8: checking the convergence, and then if the stop criterion is satisfied, stop. If not, go to step 2.
To check cuckoo optimization algorithm in detail, refer Mellal et al. [13], Shadkam and Bijari [14], and Mellal et al.'s [15] study.
2.1. Multiple Linear Cuckoo Optimization Algorithm (COA_{linear})
The present study uses population, GDP (gross domestic product), import, export, and employment to develop energy consumption models. For estimating the energy consumption, the models have been developed in two forms (linear and power) as follows.
Multiple linear cuckoo optimization algorithm (COA) is used for modeling the energy consumption in Iran. The four models taking different socioeconomic variables into consideration are as follows:where y represents the estimated energy consumption and ; ; ; ; ; ; ; ; and values are the algorithm coefficients. The values represent the five independent variables used as the predictors of y ( is population, is GDP, is import amount, is export amount, and is employment).
2.2. Power Cuckoo Optimization Algorithm (COA_{power})
Power cuckoo optimization algorithm (COA) for estimating energy consumption is used as follows:where ;; ; ; ; ; ; ; and are the algorithm coefficients, is population, is GDP, is import amount, is export amount, and is employment.
The fitness function for selecting candidates for optimal coefficients is defined aswhere and are the observed and predicted energy consumption, respectively, and k is the number of observations.
3. Estimation
Energy consumption in Iran from 1972 to 2013 is considered as a case in point in this paper. The available data are partly used for finding the optimal, or nearoptimal, values of the weighting parameters (1972–2008) and partly for testing the models (2009–2013).
The following steps are conducted for forecasting energy consumption in Iran between 2014 and 2030: Step 1: population, GDP, import, export, employment, and energy consumption need normalizing according to equation (8):where X_{N} is the normalized value, X_{R} is the value to be normalized, X_{min} is the minimum value in all the values for the related variable, and X_{max} is the maximum value in all the values for the related variable. The X_{min} and X_{max} values for each variable are selected between 1972 and 2008 and are shown in Table 1.

In this section, COA models are coded with MATLAB 2013 software. Note that all data include 41 annual data (1972–2013). They are used for finding optimal values of weighting factors regarding actual data (1972–2008). Following COA, demand estimation models have been obtained for energy consumption in Iran. The bestobtained weighting factors by the COA for linear and power models are shown in Tables 2 and 3.


It can be seen that there is a good agreement between the results obtained from COA estimation models (COA_{linear} and COA_{power}) but COAlinear models outperformed COA_{power} models.
Figures 1–4 for the modeling and the testing data show the performance of the linear cuckoo optimization algorithm and the power cuckoo optimization algorithm for all models. The findings proved that the recommended linear models were more appropriate tools for effective energy consumption prediction in Iran. For more clarification, Table 4 reports actual and estimated values of testing data by utilizing all models.
Using the COA_{linear} models, which was determined above, the energy consumption predictions are forecasted until 2030 for Iran. For different scenarios, differently forecasted data of GDP, population, employment, and export and import volumes are considered. The following three scenarios are used for forecasting each socioeconomic indicator in the years 2014–2030: Scenario 1: it is assumed that the average growth rates of population, GDP, import, export, and employment are 2%, 5%, 3%, 3%, and 6%, respectively, during 2014–2030 Scenario 2: it is assumed that the average growth rates of population, GDP, import, export, and employment are 2.2%, 6.7%, 3.3%, 3.3%, and 6.5%, respectively, during 2014–2030 Scenario 3: it is assumed that the average growth rates of population, GDP, import, export, and employment are 2.5%, 8%, 3.5%, 3.5%, and 7.5%, respectively, during 2014–2030
 
^{a}Actual data are in million barrel oil equivalent (Mboe). 
4. Conclusion
The point of this study is to demonstrate to the authorities the significance of utilizing option estimating strategies.
Therefore, in this study, the COA (cuckoo optimization algorithm) has been successfully used to estimate Iran’s energy demand based on the structure of the Iran’s socioeconomic conditions. In the first model, energy consumption is estimated based on population and GDP. In the second model, population, GDP, import, and export are used to forecast energy consumption. In model 3, population, GDP, and employment are used to estimate energy consumption. Finally, in the fourth model, energy consumption is modeled based on population, GDP, export, import, and employment. The proposed linear models anticipated the energy demand superior to anything the power models in terms of relative errors and RMSEs. In addition, approval of models demonstrates that acquired demand estimation linear models are in great concurrence with the watched information, yet the COA_{linear} model 4 outflanked other introduced models. Thus, three scenarios are designed to estimate Iran’s energy demand during 2014–2030 using COAlinear models, and the results are shown in Figures 5–7.
In conclusion, this paper presented helpful suggestions and novel insights into experts and policy planners. It recommended a strong tool for developing energy programs. Forecasting energy demand can as well be studied by neural networks or other new metaheuristics including harmony search and simulated annealing. The results of different methods may be compared with the COA method. Further studies should concentrate on the comparison of methods explained in this study with the rest of the available tools. Forecasting energy demand may as well be investigated by using electromagnetism mechanism algorithm, krill herd optimization algorithm, and the rest of intelligent optimization techniques. The results of using different methods could be put into analogy with the COA method.
Data Availability
All data are available in the World Bank depository, Central Bank of the Islamic Republic of Iran, and Iran's Ministry of Energy.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
References
 H. Pao, “Comparing linear and nonlinear forecasts for Taiwan’s electricity consumption,” Energy, vol. 31, no. 12, pp. 2129–2141, 2006. View at: Publisher Site  Google Scholar
 E. Assareh, M. A. Behrang, and A. Ghanbarzadeh, “Integration of artificial neural network and intelligent optimization techniques on world electricity consumption estimation,” World Academy of Science, Engineering and Technology, vol. 73, pp. 690–694, 2011. View at: Google Scholar
 A. Azadeh, S. F. Ghaderi, and S. Sohrabkhani, “A simulatedbased neural network algorithm for forecasting electrical energy consumption in Iran,” Energy Policy, vol. 36, no. 7, pp. 2637–2644, 2008. View at: Publisher Site  Google Scholar
 V. Bianco, O. Manca, S. Nardini, and A. A. Minea, “Analysis and forecasting of nonresidential electricity consumption in Romania,” Applied Energy, vol. 87, no. 11, pp. 3584–3590, 2010. View at: Publisher Site  Google Scholar
 H. Ceylan, H. Ceylan, S. Haldenbilen, and O. Baskan, “Transport energy modeling with metaheuristic harmony search algorithm, an application to Turkey,” Energy Policy, vol. 36, no. 7, pp. 2527–2535, 2008. View at: Publisher Site  Google Scholar
 Z. Mohamed and P. Bodger, “Forecasting electricity consumption in New Zealand using economic and demographic variables,” Energy, vol. 30, no. 10, pp. 1833–1843, 2005. View at: Publisher Site  Google Scholar
 M. H. Amjadi, H. Nezamabadipour, and M. M. Farsangi, “Estimation of electricity demand of Iran using two heuristic algorithms,” Energy Conversion and Management, vol. 51, no. 3, pp. 493–497, 2010. View at: Publisher Site  Google Scholar
 H. Sadeghi, M. Zolfaghari, and M. Heydarizade, “Estimation of electricity demand in residential sector using genetic algorithm approach,” International Journal of Industrial Engineering, vol. 22, no. 1, 2011. View at: Google Scholar
 M. A. Behrang, E. Assareh, M. R. Assari, and A. Ghanbarzadeh, “Total energy demand estimation in Iran using bees algorithm,” Energy Sources, Part B: Economics, Planning, and Policy, vol. 6, no. 3, pp. 294–303, 2011. View at: Publisher Site  Google Scholar
 M. S. Kıran, E. Özceylan, M. Gündüz, and T. Paksoy, “Swarm intelligence approaches to estimate electricity energy demand in Turkey,” KnowledgeBased Systems, vol. 36, pp. 93–103, 2012. View at: Publisher Site  Google Scholar
 X. S. Yang and S. Deb, “Cuckoo search via Lévy flights,” in Proceedings of the World Congress on Nature & Biologically Inspired Computing, IEEE, Coimbatore, India, December 2009. View at: Google Scholar
 R. Rajabioun, “Cuckoo optimization algorithm,” Applied Soft Computing, vol. 11, no. 8, pp. 5508–5518, 2011. View at: Publisher Site  Google Scholar
 M. A. Mellal, S. Adjerida, and E. J. Williams, “Optimal selection of obsolete tools in manufacturing systems using cuckoo optimization algorithm,” Chemical Engineering, vol. 33, no. 1, pp. 355–360, 2013. View at: Google Scholar
 E. Shadkam and M. Bijari, “Evaluation the efficiency of cuckoo optimization algorithm,” 2014, http://arxiv.org/abs/1405.2168. View at: Google Scholar
 M. A. Mellal, S. Adjerid, E. J. Williams, and D. Benazzouz, “Optimal replacement policy for obsolete components using cuckoo optimization algorithm basedapproach: dependability context,” Journal of Scientific and Industrial Research, vol. 71, no. 11, pp. 715–721, 2012. View at: Google Scholar
Copyright
Copyright © 2019 Sayyed Abdolmajid Jalaee et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.