<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JPEE</journal-id><journal-title-group><journal-title>Journal of Power and Energy Engineering</journal-title></journal-title-group><issn pub-type="epub">2327-588X</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jpee.2017.52005</article-id><article-id pub-id-type="publisher-id">JPEE-74304</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Medium Term Load Forecasting for Jordan Electric Power System Using Particle Swarm Optimization Algorithm Based on Least Square Regression Methods
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohammed</surname><given-names>Hattab</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohammed</surname><given-names>Ma’itah</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Tha’er</surname><given-names>Sweidan</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohammed</surname><given-names>Rifai</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohammad</surname><given-names>Momani</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Electrical Power Engineering Department, Yarmouk University, Irbid, Jordan</addr-line></aff><aff id="aff2"><addr-line>Electrical Engineering Department, The Hashemite University, Zarqa, Jordan</addr-line></aff><pub-date pub-type="epub"><day>07</day><month>02</month><year>2017</year></pub-date><volume>05</volume><issue>02</issue><fpage>75</fpage><lpage>96</lpage><history><date date-type="received"><day>January</day>	<month>25,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>February</month>	<year>20,</year>	</date><date date-type="accepted"><day>February</day>	<month>23,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  This paper presents a technique for Medium Term Load Forecasting (MTLF) using Particle Swarm Optimization (PSO) algorithm based on Least Squares Regression Methods to forecast the electric loads of the Jordanian grid for year of 2015. Linear, quadratic and exponential forecast models have been examined to perform this study and compared with the Auto Regressive (AR) model. MTLF models were influenced by the weather which should be considered when predicting the future peak load demand in terms of months and weeks. The main contribution for this paper is the conduction of MTLF study for Jordan on weekly and monthly basis using real data obtained from National Electric Power Company NEPCO. This study is aimed to develop practical models and algorithm techniques for MTLF to be used by the operators of Jordan power grid. The results are compared with the actual peak load data to attain minimum percentage error. The value of the forecasted weekly and monthly peak loads obtained from these models is examined using Least Square Error (LSE). Actual reported data from NEPCO are used to analyze the performance of the proposed approach and the results are reported and compared with the results obtained from PSO algorithm and AR model.
 
</p></abstract><kwd-group><kwd>Medium Term Load Forecasting</kwd><kwd> Particle Swarm Optimization</kwd><kwd> Least Square Regression Methods</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>MTLF is extremely important for energy suppliers and other participants in electric energy generation, transmission, distribution and markets. It helps make decisions, including decisions on purchasing and generating electric power system utilities. The main role of electric load forecasting in the electric system is to help the energy companies to plant the purchasing and generating of electric power needed. Load forecasting studies can be categorized based on forecasting period into three categories: short term load forecast (STLF) from one hour to a week, medium term load forecast (MTLF) from one week to a year and long term load forecast (LTLF) longer than one year [<xref ref-type="bibr" rid="scirp.74304-ref1">1</xref>] . These categories of forecasts are different as well, for example for a particular region it is possible to predict the next three days peak load with accuracy (1% - 2%), but it is impossible to predict the next year peak load with similar accuracy because we do not have weather observations [<xref ref-type="bibr" rid="scirp.74304-ref2">2</xref>] . MTLF is one of the most difficult problems in distribution power system planning and analysis [<xref ref-type="bibr" rid="scirp.74304-ref3">3</xref>] . There are many factors affecting the load forecasting such as historical load data, population growth and economic development. MTLF is not easy due to: firstly, because the load series is complex and shows vacillating behavior [<xref ref-type="bibr" rid="scirp.74304-ref4">4</xref>] ; secondly, there are many important variables that must be considered, including weather data. To determine the accuracy of MTLF, a comparison between the actual load taken by NEPCO and the approximation load calculated by LSRM and PSO algorithm must be achieved. To achieve a good forecasting prediction many approaches have to deal with programmed power network [<xref ref-type="bibr" rid="scirp.74304-ref5">5</xref>] . Accurate tracking of weekly demand and monthly peak demands is very important for the operation of any power system. MTLF is basically used to decide whether an extra power generation should be provided to meet the demand or not. The demand can be met by either increasing the generation, installing new generation units into service or by power exchange from neighboring countries. On the other hand, MTLF can also be used to decide whether the output of the running generation units should be decreased or stopped. In order to predict the electric load demand of a power system, it is important to investigate the load pattern, its response and the factors effect on the demand [<xref ref-type="bibr" rid="scirp.74304-ref4">4</xref>] . Two main challenges have a direct impact on the Jordan power operator center, the first one: obtaining optimal economic dispatch for electrical utilities and the second one is determining medium term unit commitment in order to maintain the system reliability. Therefore, there is a necessity to make a robust MTLF models as a first step for power system operation and planning based on LSRM and PSO optimization. The existing forecasting predictions of MTLF employed by National Electric Power Company (NEPCO) in Jordan are based on the educated guess assumptions which depend on gathering the electricity consumption of domestic, commercial, industrial, and public lighting sectors. The average error obtained by NEPCO was in the range from 8.2% to 12.8% in 2015, which is high. Therefore, it is necessary to have reliable model to predict the load for medium term periods [<xref ref-type="bibr" rid="scirp.74304-ref5">5</xref>] .</p></sec><sec id="s2"><title>2. Forecasting Procedure</title><p>The MTLF procedure for the models can be viewed in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><sec id="s2_1"><title>2.1. Data Source</title><p>Input variable selection, including: month type, peak load, average electrical de- mand, humidity and temperature data, and weather influences of previous time.</p></sec><sec id="s2_2"><title>2.2. Historical Data</title><p>The monthly or weekly peak load demand data recorded from NEPCO for the years (2008-2014) taking into account external variables like holidays, weather and population growth.</p></sec><sec id="s2_3"><title>2.3. Data Pre-Processing</title><p>It may be inevitable to have improperly recorded data and observation error.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> MTLF procedure</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x2.png"/></fig><p>Therefore the monthly and weekly reported data from NEPCO used to initialize the simulation results.</p></sec><sec id="s2_4"><title>2.4. Simulation</title><p>In this part, the peak load forecasting output is simulated using Matlab.</p></sec><sec id="s2_5"><title>2.5. Convergence Criteria</title><p>The stopping criterion is met when the parameters of PSO are achieving a global forecasting error within an efficient computation time. The convergence error must be less than 0.01% to make a sufficiently good fitness value.</p></sec><sec id="s2_6"><title>2.6. Post Processing</title><p>The LSRM and PSO coefficients require calculations to prompt the desired forecasted load results.</p></sec><sec id="s2_7"><title>2.7. Error Analysis</title><p>As characteristics of load changes, error observations become more significant for the forecasting process. LSE is used to improve the accuracy of these models.</p></sec></sec><sec id="s3"><title>3. Forecasting Methodology</title><p>Regression analysis is widely used in the analysis of data for any design. Regression models one of the most commonly used statistical analysis techniques in any research [<xref ref-type="bibr" rid="scirp.74304-ref6">6</xref>] . Typically, regression analysis is used to discover the relationships between a dependent variable and a set of independent variables based on a sample from input data [<xref ref-type="bibr" rid="scirp.74304-ref7">7</xref>] . We will study the method in the context of a regression problem, where the variation in one variable, called the response variable Y, can be partly explained by the variation in the other variables, called co-variables X. For example, variation in exam results Y are mainly caused by variation in abilities X of the students [<xref ref-type="bibr" rid="scirp.74304-ref8">8</xref>] . The least squares estimates used to minimize the error sum of squares:</p><disp-formula id="scirp.74304-formula634"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x3.png"  xlink:type="simple"/></disp-formula><p>where:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x4.png" xlink:type="simple"/></inline-formula>: Actual load value in MW for week or month,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x5.png" xlink:type="simple"/></inline-formula>: Predicted load value in MW for week or month,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x6.png" xlink:type="simple"/></inline-formula>: Number of samples (weeks or months).</p><sec id="s3_1"><title>3.1. Least Square Regression Methods</title><p>Regression analysis is the study of the action of the time series or process in the past and it is mathematical model, therefore the future behavior can be expected from it. In the forecasting process of medium term peak load, least squares regression methods are used by different relations between the input and output [<xref ref-type="bibr" rid="scirp.74304-ref9">9</xref>] .</p><sec id="s3_1_1"><title>3.1.1. Linear Regression</title><p>The medium term load forecasting of many business series such as, sales exports and production usually approximates a straight line. The simple linear regression method LRM model is designed to study the relationship between a pair of variables that appear in a data set. It is a model based on the linear relationship between the total demand y and month <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x7.png" xlink:type="simple"/></inline-formula> as shown in Equations (2)-(4) [<xref ref-type="bibr" rid="scirp.74304-ref10">10</xref>] .</p><disp-formula id="scirp.74304-formula635"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x8.png"  xlink:type="simple"/></disp-formula><p>where:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x9.png" xlink:type="simple"/></inline-formula>: The slope,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x10.png" xlink:type="simple"/></inline-formula>: The interception point at <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x11.png" xlink:type="simple"/></inline-formula> axis.</p><p>The least squares criterion is used to generate the line <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x12.png" xlink:type="simple"/></inline-formula> that fits a set of n data points.</p><p>By using the least square error approach [<xref ref-type="bibr" rid="scirp.74304-ref10">10</xref>] , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x13.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x14.png" xlink:type="simple"/></inline-formula> coefficients can be given by:</p><disp-formula id="scirp.74304-formula636"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x15.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74304-formula637"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x16.png"  xlink:type="simple"/></disp-formula><p>where:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x17.png" xlink:type="simple"/></inline-formula>: The number of months which the forecasting is based on,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x18.png" xlink:type="simple"/></inline-formula>: The total load demand for all period for forecasting,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x19.png" xlink:type="simple"/></inline-formula>: The total sum of months.</p><p>When <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x20.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x21.png" xlink:type="simple"/></inline-formula> coefficients are obtained, the load forecasting is performed by Equation (2.2).</p></sec><sec id="s3_1_2"><title>3.1.2. Quadratic Regression</title><p>In this approach the parabolic function which is given in Equation (5) is used</p><disp-formula id="scirp.74304-formula638"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x22.png"  xlink:type="simple"/></disp-formula><p>After applying least square error we can find<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x23.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x24.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x25.png" xlink:type="simple"/></inline-formula> parameters in matrix form [<xref ref-type="bibr" rid="scirp.74304-ref10">10</xref>] .</p><disp-formula id="scirp.74304-formula639"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x26.png"  xlink:type="simple"/></disp-formula><p>When<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x27.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x28.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x29.png" xlink:type="simple"/></inline-formula> coefficients obtained the load forecasting is performed by Equation (5).</p></sec><sec id="s3_1_3"><title>3.1.3. Exponential Regression</title><p>In this method the exponential function is obtained through Equations (8)-(15) to get Equation (7).</p><disp-formula id="scirp.74304-formula640"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x30.png"  xlink:type="simple"/></disp-formula><p>By writing the equation in logarithmic form, the equation becomes:</p><disp-formula id="scirp.74304-formula641"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x31.png"  xlink:type="simple"/></disp-formula><p>The properties of algorithms give</p><disp-formula id="scirp.74304-formula642"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x32.png"  xlink:type="simple"/></disp-formula><p>This expresses <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x33.png" xlink:type="simple"/></inline-formula> as a linear function of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x34.png" xlink:type="simple"/></inline-formula> with slope.</p><disp-formula id="scirp.74304-formula643"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x35.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74304-formula644"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x36.png"  xlink:type="simple"/></disp-formula><p>Therefore, if we find the best line using <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x37.png" xlink:type="simple"/></inline-formula> as A function the slope and intercept will be gives as linear regression, so that the coefficients <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x38.png" xlink:type="simple"/></inline-formula> and A derives as linear equation.</p><disp-formula id="scirp.74304-formula645"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x39.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74304-formula646"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x40.png"  xlink:type="simple"/></disp-formula><p>After linearization, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x41.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x42.png" xlink:type="simple"/></inline-formula> coefficients are shown in Equations (12) and (13).</p><disp-formula id="scirp.74304-formula647"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x43.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74304-formula648"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x44.png"  xlink:type="simple"/></disp-formula><p>When <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x45.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x46.png" xlink:type="simple"/></inline-formula> coefficients are obtained the load forecasting is performed by Equation (7) [<xref ref-type="bibr" rid="scirp.74304-ref10">10</xref>] .</p></sec></sec><sec id="s3_2"><title>3.2. Particle Swarm Optimization</title><p>A Particle swarm optimization PSO technique is used to find the optimal parameters for different forecasting methods. This algorithm is used to solve a wide class of complex optimization problems in engineering and science. Both linear and nonlinear models will be used in the system and the results will be obtained using PSO. Through the implementation of PSO all particles are kept as members of the population. The basic idea of the PSO is the mathematical modeling and simulation of the food searching activities of a swarm of birds in the multi- dimensional space where the optimal solution is sought. Each particle in the swarm is moved towards a point where it obtains optimal solution by the influence of its velocity. The velocity of a particle is affected by three factors; inertial momentum, cognitive and social [<xref ref-type="bibr" rid="scirp.74304-ref11">11</xref>] . The goal of PSO is to find the optimal variable values for a certain function. Each particle knows its optimal value (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x47.png" xlink:type="simple"/></inline-formula>) and its velocity and position. Also, each particle knows the optimal value in the group (<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x48.png" xlink:type="simple"/></inline-formula>) among pbests. Each particle seeks to adjust its position using the current velocity and the distance obtained from the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x49.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x47.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x50.png" xlink:type="simple"/></inline-formula>. Based on the above discussion, the mathematical model for PSO is represented as velocity update equation given by Equations (16)-(18).</p><disp-formula id="scirp.74304-formula649"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x51.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.74304-formula650"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x52.png"  xlink:type="simple"/></disp-formula><p>where:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x53.png" xlink:type="simple"/></inline-formula>: The velocity of particle.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x54.png" xlink:type="simple"/></inline-formula>: The current position of particle.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x55.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x56.png" xlink:type="simple"/></inline-formula> are positive constants, used to pull each particle to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x57.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x56.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x58.png" xlink:type="simple"/></inline-formula>.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x59.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x60.png" xlink:type="simple"/></inline-formula> are two randomly generated numbers with a range [0 1].</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x61.png" xlink:type="simple"/></inline-formula>is the inertia weight and it keeps balance between exploration and exploitation.</p><disp-formula id="scirp.74304-formula651"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x62.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x63.png" xlink:type="simple"/></inline-formula>: The initial weight.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x64.png" xlink:type="simple"/></inline-formula>: The final weight.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x65.png" xlink:type="simple"/></inline-formula>: The best particle position i achieved.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x66.png" xlink:type="simple"/></inline-formula>: The best position of all particles achieved.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x67.png" xlink:type="simple"/></inline-formula>: The iteration index.</p><p>In this work, PSO is employed to minimize the LSE between the real values and prediction values. To evaluate the forecasting process for each model, LSE error can be used.</p></sec><sec id="s3_3"><title>3.3. Auto Regressive (AR) Model</title><p>The AR model was developed by Box and Jenkins in 1970 to analyze historical data that had relations within it. In this study, the parameters were obtained from NEPCO. The AR process utilizes the least squares (LS) method, and it is an analogous way to fit a model by minimizing the sum of square errors for estimating parameters. The LSE uses the normal equations to implement the polynomial system. The parameters can be solved by Matlab. The purpose of this study was to implement the discounted least squares method with direct smoothing for estimating autoregressive model parameters [<xref ref-type="bibr" rid="scirp.74304-ref12">12</xref>] .</p><p>The AR model structure is given by Equation (19)</p><disp-formula id="scirp.74304-formula652"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x68.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x69.png" xlink:type="simple"/></inline-formula>: The parameters that are estimated using variants of the least-squares method.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x70.png" xlink:type="simple"/></inline-formula>: iddata object that contains the time-series data (one output channel).</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x71.png" xlink:type="simple"/></inline-formula>: Random Error.</p><p>The parameters of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x72.png" xlink:type="simple"/></inline-formula> can be estimated by Equation (20).</p><disp-formula id="scirp.74304-formula653"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x73.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x74.png" xlink:type="simple"/></inline-formula>: The coefficients for each order.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x75.png" xlink:type="simple"/></inline-formula>: Scalar that specifies the order of the model you want to estimate (the number of A parameters in the AR model).</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x76.png" xlink:type="simple"/></inline-formula>: Random error.</p></sec></sec><sec id="s4"><title>4. Results and Discussions</title><p>Real peak loads are used in this study, so the electric peak loads in the years [2008-2014] have been founded for Jordan country. The data used are monthly and weekly peak loads recorded in the years [2008-2014]. This system of equation is solved using the proposed PSO algorithm to find the optimal coefficients for different forecasting models. Linear, quadratic, exponential and AR models are used in the system and the results obtained using PSO are compared with those of LSRM. A Matlab code was generated to execute the PSO Algorithm and LSRM Using the peak data of NEPCO grid. For PSO, all particles start at a random position in the range [0, 1] for each dimensions. The swarm size was limited to 250 particles. The selections of some parameters to carry out the procedures of the work successfully has great effect on the model, these parameters are maximum speed, inertia weight and acceleration constants. The most suitable values for maximum speed is set to be 2, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x77.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1770317x78.png" xlink:type="simple"/></inline-formula> are 0.9 and 0.4, C<sub>1</sub> and C<sub>2</sub> are 2.</p><p>Key parameters of PSO algorithm used in this paper are presented in <xref ref-type="table" rid="table1">Table 1</xref>.</p><sec id="s4_1"><title>4.1. Case One: MTLF Based on Peak Load Data</title><p>Peak Loads of NEPCO recorded in the years [2008-2014] are used to estimate the coefficients of linear, quadratic and exponential models for MTLF. The inputs of these models are the number of weeks or months and the peak loads recorded in the years [2008-2014], whereas the output is the monthly or weekly peak loads predicted for the year 2015.</p><sec id="s4_1_1"><title>4.1.1. Monthly Forecasting</title><p>PSO and LSRM techniques are used to estimate models parameters. Horizon and the computed parameters are tabulated in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>Since the forecasting in this work is carried out on monthly bases, monthly least square error is performed and calculated by Equation (21). The equation used is given by:</p><disp-formula id="scirp.74304-formula654"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x79.png"  xlink:type="simple"/></disp-formula><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> PSO parameters</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Parameter</th><th align="center" valign="middle" >Value</th></tr></thead><tr><td align="center" valign="middle" >Population</td><td align="center" valign="middle" >250 particles</td></tr><tr><td align="center" valign="middle" >Stop criterion</td><td align="center" valign="middle" >500 iterations</td></tr><tr><td align="center" valign="middle" >Velocity</td><td align="center" valign="middle" >V<sub>max</sub> = 2, V<sub>min</sub> = 0</td></tr><tr><td align="center" valign="middle" >Acceleration constants</td><td align="center" valign="middle" >C<sub>1</sub> = 2, C<sub>2</sub> = 2</td></tr><tr><td align="center" valign="middle" >Inertia weight</td><td align="center" valign="middle" >w<sub>max</sub> = 0.9, w<sub>min</sub> = 0.4</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Monthly estimated coefficients based on LSRM and PSO</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Coefficients</th><th align="center" valign="middle"  colspan="2"  >Linear model</th><th align="center" valign="middle"  colspan="2"  >Quadratic model</th><th align="center" valign="middle"  colspan="2"  >Exponential model</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >a</td><td align="center" valign="middle" >1.9406</td><td align="center" valign="middle" >1.947</td><td align="center" valign="middle" >9.96</td><td align="center" valign="middle" >9.91</td><td align="center" valign="middle" >2654.3</td><td align="center" valign="middle" >2662.5</td></tr><tr><td align="center" valign="middle" >b</td><td align="center" valign="middle" >2685.6</td><td align="center" valign="middle" >2695.82</td><td align="center" valign="middle" >−121.43</td><td align="center" valign="middle" >−121.58</td><td align="center" valign="middle" >1.0006</td><td align="center" valign="middle" >1.0008</td></tr><tr><td align="center" valign="middle" >c</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >2978.2</td><td align="center" valign="middle" >2990.2</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td></tr></tbody></table></table-wrap><p>The monthly forecasted peak loads based on the parameters of linear, quadratic and exponential models and monthly least square error are shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>It can be concluded from the tables that the results computed by PSO are more close to the peak load and have less error. In both approaches, the monthly peak load is increased continuously from January till December when using linear or exponential models. In quadratic model, the peak load is decreased continuously from January till June and increased from June till December. The forecasted monthly peak load using different models are shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>It can be seen from the figure that the PSO and LSRM are close to each other. In each model the difference between LSRM and PSO is arranged from [<xref ref-type="bibr" rid="scirp.74304-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.74304-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.74304-ref12">12</xref>] MW. This difference make LSRM very close to the real peak load in April, May and October, otherwise the PSO achieves better estimation for the predicted peak load. The results show that the PSO model is more accurate than LSRM and moreover, it is closer to the real peak load data for the year 2015. The monthly error performed by LSRM and PSO algorithm is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>From <xref ref-type="fig" rid="fig3">Figure 3</xref>, it can be observed that the Error for 2015 with LSRM and PSO is arranged from 0.04% to 16.85%. The Error less than 10% for nine months in LSRM and PSO approaches. The average error in LSRM for linear model is 6.64%, for quadratic model is 6.40%, and for exponential is 7.41%. So it can be seen that the best represented model between the months and peak load in LSRM is the quadratic regression model. The average error in PSO for linear model is 6.47%, for quadratic model is 6.18%, and for exponential is 7.09%.</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Monthly morning peak loads for the year 2015 compared with the actual readings</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Month</th><th align="center" valign="middle"  rowspan="2"  >Peak load (MW)</th><th align="center" valign="middle"  colspan="4"  >Linear model</th><th align="center" valign="middle"  colspan="4"  >Quadratic model</th><th align="center" valign="middle"  colspan="4"  >Exponential model</th></tr></thead><tr><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td></tr><tr><td align="center" valign="middle" >Jan.</td><td align="center" valign="middle" >3160</td><td align="center" valign="middle" >2687.54</td><td align="center" valign="middle" >2697.77</td><td align="center" valign="middle" >14.95</td><td align="center" valign="middle" >14.63</td><td align="center" valign="middle" >2866.73</td><td align="center" valign="middle" >2878.53</td><td align="center" valign="middle" >9.28</td><td align="center" valign="middle" >8.91</td><td align="center" valign="middle" >2655.89</td><td align="center" valign="middle" >2664.63</td><td align="center" valign="middle" >15.95</td><td align="center" valign="middle" >15.68</td></tr><tr><td align="center" valign="middle" >Feb.</td><td align="center" valign="middle" >2950</td><td align="center" valign="middle" >2689.48</td><td align="center" valign="middle" >2699.71</td><td align="center" valign="middle" >8.83</td><td align="center" valign="middle" >8.48</td><td align="center" valign="middle" >2775.18</td><td align="center" valign="middle" >2786.68</td><td align="center" valign="middle" >5.93</td><td align="center" valign="middle" >5.54</td><td align="center" valign="middle" >2657.49</td><td align="center" valign="middle" >2666.76</td><td align="center" valign="middle" >9.92</td><td align="center" valign="middle" >9.60</td></tr><tr><td align="center" valign="middle" >Mar.</td><td align="center" valign="middle" >2760</td><td align="center" valign="middle" >2691.42</td><td align="center" valign="middle" >2701.66</td><td align="center" valign="middle" >2.48</td><td align="center" valign="middle" >2.11</td><td align="center" valign="middle" >2703.55</td><td align="center" valign="middle" >2714.65</td><td align="center" valign="middle" >2.05</td><td align="center" valign="middle" >1.64</td><td align="center" valign="middle" >2659.08</td><td align="center" valign="middle" >2668.90</td><td align="center" valign="middle" >3.66</td><td align="center" valign="middle" >3.30</td></tr><tr><td align="center" valign="middle" >Apr.</td><td align="center" valign="middle" >2670</td><td align="center" valign="middle" >2693.36</td><td align="center" valign="middle" >2703.61</td><td align="center" valign="middle" >−0.87</td><td align="center" valign="middle" >−1.26</td><td align="center" valign="middle" >2651.84</td><td align="center" valign="middle" >2662.44</td><td align="center" valign="middle" >0.68</td><td align="center" valign="middle" >0.28</td><td align="center" valign="middle" >2660.68</td><td align="center" valign="middle" >2671.03</td><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >−0.04</td></tr><tr><td align="center" valign="middle" >May</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2695.30</td><td align="center" valign="middle" >2705.56</td><td align="center" valign="middle" >−0.20</td><td align="center" valign="middle" >−0.58</td><td align="center" valign="middle" >2620.05</td><td align="center" valign="middle" >2630.05</td><td align="center" valign="middle" >2.60</td><td align="center" valign="middle" >2.23</td><td align="center" valign="middle" >2662.27</td><td align="center" valign="middle" >2673.17</td><td align="center" valign="middle" >1.03</td><td align="center" valign="middle" >0.63</td></tr><tr><td align="center" valign="middle" >Jun.</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2697.24</td><td align="center" valign="middle" >2707.50</td><td align="center" valign="middle" >4.35</td><td align="center" valign="middle" >3.99</td><td align="center" valign="middle" >2608.18</td><td align="center" valign="middle" >2617.48</td><td align="center" valign="middle" >7.51</td><td align="center" valign="middle" >7.18</td><td align="center" valign="middle" >2663.87</td><td align="center" valign="middle" >2675.31</td><td align="center" valign="middle" >5.54</td><td align="center" valign="middle" >5.13</td></tr><tr><td align="center" valign="middle" >Jul.</td><td align="center" valign="middle" >2940</td><td align="center" valign="middle" >2699.18</td><td align="center" valign="middle" >2709.45</td><td align="center" valign="middle" >8.19</td><td align="center" valign="middle" >7.84</td><td align="center" valign="middle" >2616.23</td><td align="center" valign="middle" >2624.73</td><td align="center" valign="middle" >11.01</td><td align="center" valign="middle" >10.72</td><td align="center" valign="middle" >2665.47</td><td align="center" valign="middle" >2677.45</td><td align="center" valign="middle" >9.34</td><td align="center" valign="middle" >8.93</td></tr><tr><td align="center" valign="middle" >Aug.</td><td align="center" valign="middle" >3180</td><td align="center" valign="middle" >2701.12</td><td align="center" valign="middle" >2711.40</td><td align="center" valign="middle" >15.06</td><td align="center" valign="middle" >14.74</td><td align="center" valign="middle" >2644.20</td><td align="center" valign="middle" >2651.8</td><td align="center" valign="middle" >16.85</td><td align="center" valign="middle" >16.61</td><td align="center" valign="middle" >2667.07</td><td align="center" valign="middle" >2679.59</td><td align="center" valign="middle" >16.13</td><td align="center" valign="middle" >15.74</td></tr><tr><td align="center" valign="middle" >Sep.</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >2703.07</td><td align="center" valign="middle" >2713.34</td><td align="center" valign="middle" >10.20</td><td align="center" valign="middle" >9.86</td><td align="center" valign="middle" >2692.09</td><td align="center" valign="middle" >2698.69</td><td align="center" valign="middle" >10.56</td><td align="center" valign="middle" >10.34</td><td align="center" valign="middle" >2668.67</td><td align="center" valign="middle" >2681.73</td><td align="center" valign="middle" >11.34</td><td align="center" valign="middle" >10.91</td></tr><tr><td align="center" valign="middle" >Oct.</td><td align="center" valign="middle" >2587</td><td align="center" valign="middle" >2705.01</td><td align="center" valign="middle" >2715.29</td><td align="center" valign="middle" >−4.56</td><td align="center" valign="middle" >−4.96</td><td align="center" valign="middle" >2759.90</td><td align="center" valign="middle" >2765.4</td><td align="center" valign="middle" >−6.68</td><td align="center" valign="middle" >−6.90</td><td align="center" valign="middle" >2670.27</td><td align="center" valign="middle" >2683.88</td><td align="center" valign="middle" >−3.22</td><td align="center" valign="middle" >−3.74</td></tr><tr><td align="center" valign="middle" >Nov.</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2706.95</td><td align="center" valign="middle" >2717.24</td><td align="center" valign="middle" >3.67</td><td align="center" valign="middle" >3.30</td><td align="center" valign="middle" >2847.63</td><td align="center" valign="middle" >2851.93</td><td align="center" valign="middle" >−1.34</td><td align="center" valign="middle" >−1.49</td><td align="center" valign="middle" >2671.87</td><td align="center" valign="middle" >2686.02</td><td align="center" valign="middle" >4.92</td><td align="center" valign="middle" >4.41</td></tr><tr><td align="center" valign="middle" >Dec.</td><td align="center" valign="middle" >2890</td><td align="center" valign="middle" >2708.89</td><td align="center" valign="middle" >2719.18</td><td align="center" valign="middle" >6.27</td><td align="center" valign="middle" >5.91</td><td align="center" valign="middle" >2955.28</td><td align="center" valign="middle" >2958.28</td><td align="center" valign="middle" >−2.26</td><td align="center" valign="middle" >−2.36</td><td align="center" valign="middle" >2673.47</td><td align="center" valign="middle" >2688.17</td><td align="center" valign="middle" >7.49</td><td align="center" valign="middle" >6.98</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Average error (%)</td><td align="center" valign="middle" >6.64</td><td align="center" valign="middle" >6.47</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >6.40</td><td align="center" valign="middle" >6.18</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >7.41</td><td align="center" valign="middle" >7.09</td></tr></tbody></table></table-wrap><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Monthly forecasted peak load using LSRM and PSO</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x80.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Monthly error associated with LSRM and PSO</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x81.png"/></fig><p>Therefore the best represented model between the months and peak load in PSO is the quadratic regression model.</p></sec><sec id="s4_1_2"><title>4.1.2. Weekly Forecasting</title><p>Weekly real peak demands recorded in the years [2008-2014] are used in this section. The data set is used to establish an over determined system of equations. This system of equations is LSRM and PSO technique. The weekly real peak loads are used to find the coefficients for linear, quadratic and exponential models. PSO and LSRM techniques are used to estimate models parameters for the same time horizon and the computed parameters are tabulated in <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>The forecasted loads based on the parameters of linear, quadratic and exponential models and weekly least square error are shown in <xref ref-type="table" rid="table5">Table 5</xref>.</p><p>It can be concluded from the tables that the error computed by PSO are less than LSRM. In linear and exponential models, the weekly prediction load is increased from the first week till last week of the year 2015. In quadratic model, the weekly prediction load has vertex point [minimum peak value] occurs at week number 26. The peak load demand expected using LSRM and PSO shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Weekly estimated coefficients based on PSO and LSRM</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Coefficients</th><th align="center" valign="middle"  colspan="2"  >Linear model</th><th align="center" valign="middle"  colspan="2"  >Quadratic model</th><th align="center" valign="middle"  colspan="2"  >Exponential model</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >a</td><td align="center" valign="middle" >0.8704</td><td align="center" valign="middle" >0.931</td><td align="center" valign="middle" >0.523</td><td align="center" valign="middle" >0.551</td><td align="center" valign="middle" >2524.8</td><td align="center" valign="middle" >2532.4</td></tr><tr><td align="center" valign="middle" >b</td><td align="center" valign="middle" >2531</td><td align="center" valign="middle" >2652.3</td><td align="center" valign="middle" >−26.8491</td><td align="center" valign="middle" >−26.95</td><td align="center" valign="middle" >1.0003</td><td align="center" valign="middle" >1.0005</td></tr><tr><td align="center" valign="middle" >c</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >2780.4</td><td align="center" valign="middle" >2794.6</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Weekly peak loads for the year 2015 compared with the actual readings</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Week</th><th align="center" valign="middle"  rowspan="2"  >Peak load (MW)</th><th align="center" valign="middle"  colspan="4"  >Linear model</th><th align="center" valign="middle"  colspan="4"  >Quadratic model</th><th align="center" valign="middle"  colspan="4"  >Exponential model</th></tr></thead><tr><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td><td align="center" valign="middle" >LSRM (MW)</td><td align="center" valign="middle" >PSO (MW)</td><td align="center" valign="middle"  colspan="2"  >Error (%)</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >2830</td><td align="center" valign="middle" >2532.71</td><td align="center" valign="middle" >2654.16</td><td align="center" valign="middle" >10.50</td><td align="center" valign="middle" >6.21</td><td align="center" valign="middle" >2728.84</td><td align="center" valign="middle" >2742.90</td><td align="center" valign="middle" >3.57</td><td align="center" valign="middle" >3.08</td><td align="center" valign="middle" >2526.51</td><td align="center" valign="middle" >2534.93</td><td align="center" valign="middle" >10.72</td><td align="center" valign="middle" >10.43</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >2740</td><td align="center" valign="middle" >2537.94</td><td align="center" valign="middle" >2659.75</td><td align="center" valign="middle" >7.37</td><td align="center" valign="middle" >2.93</td><td align="center" valign="middle" >2599.13</td><td align="center" valign="middle" >2614.26</td><td align="center" valign="middle" >5.14</td><td align="center" valign="middle" >4.59</td><td align="center" valign="middle" >2531.62</td><td align="center" valign="middle" >2542.55</td><td align="center" valign="middle" >7.60</td><td align="center" valign="middle" >7.21</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >2530</td><td align="center" valign="middle" >2541.42</td><td align="center" valign="middle" >2663.47</td><td align="center" valign="middle" >−0.45</td><td align="center" valign="middle" >−5.28</td><td align="center" valign="middle" >2533.57</td><td align="center" valign="middle" >2550.54</td><td align="center" valign="middle" >−0.14</td><td align="center" valign="middle" >−0.81</td><td align="center" valign="middle" >2535.04</td><td align="center" valign="middle" >2547.64</td><td align="center" valign="middle" >−0.20</td><td align="center" valign="middle" >0.70</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >2420</td><td align="center" valign="middle" >2544.90</td><td align="center" valign="middle" >2667.20</td><td align="center" valign="middle" >−5.16</td><td align="center" valign="middle" >−10.21</td><td align="center" valign="middle" >2484.75</td><td align="center" valign="middle" >2504.46</td><td align="center" valign="middle" >−2.68</td><td align="center" valign="middle" >−3.49</td><td align="center" valign="middle" >2538.45</td><td align="center" valign="middle" >2552.74</td><td align="center" valign="middle" >−4.89</td><td align="center" valign="middle" >5.48</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >2520</td><td align="center" valign="middle" >2549.25</td><td align="center" valign="middle" >2671.85</td><td align="center" valign="middle" >−1.16</td><td align="center" valign="middle" >−6.03</td><td align="center" valign="middle" >2447.26</td><td align="center" valign="middle" >2471.64</td><td align="center" valign="middle" >2.89</td><td align="center" valign="middle" >1.92</td><td align="center" valign="middle" >2542.73</td><td align="center" valign="middle" >2559.12</td><td align="center" valign="middle" >−0.90</td><td align="center" valign="middle" >1.55</td></tr><tr><td align="center" valign="middle" >24</td><td align="center" valign="middle" >2552</td><td align="center" valign="middle" >2552.73</td><td align="center" valign="middle" >2675.58</td><td align="center" valign="middle" >−0.03</td><td align="center" valign="middle" >−4.84</td><td align="center" valign="middle" >2436.10</td><td align="center" valign="middle" >2465.23</td><td align="center" valign="middle" >4.54</td><td align="center" valign="middle" >3.40</td><td align="center" valign="middle" >2546.16</td><td align="center" valign="middle" >2564.25</td><td align="center" valign="middle" >0.23</td><td align="center" valign="middle" >0.48</td></tr><tr><td align="center" valign="middle" >28</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2556.21</td><td align="center" valign="middle" >2679.30</td><td align="center" valign="middle" >4.97</td><td align="center" valign="middle" >0.40</td><td align="center" valign="middle" >2441.68</td><td align="center" valign="middle" >2476.44</td><td align="center" valign="middle" >9.32</td><td align="center" valign="middle" >7.94</td><td align="center" valign="middle" >2549.59</td><td align="center" valign="middle" >2569.38</td><td align="center" valign="middle" >5.22</td><td align="center" valign="middle" >5.22</td></tr><tr><td align="center" valign="middle" >32</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2560.57</td><td align="center" valign="middle" >2683.95</td><td align="center" valign="middle" >8.88</td><td align="center" valign="middle" >4.49</td><td align="center" valign="middle" >2472.18</td><td align="center" valign="middle" >2515.26</td><td align="center" valign="middle" >12.02</td><td align="center" valign="middle" >10.49</td><td align="center" valign="middle" >2553.89</td><td align="center" valign="middle" >2575.81</td><td align="center" valign="middle" >9.11</td><td align="center" valign="middle" >8.33</td></tr><tr><td align="center" valign="middle" >36</td><td align="center" valign="middle" >2900</td><td align="center" valign="middle" >2563.18</td><td align="center" valign="middle" >2686.75</td><td align="center" valign="middle" >11.61</td><td align="center" valign="middle" >7.35</td><td align="center" valign="middle" >2503.03</td><td align="center" valign="middle" >2551.77</td><td align="center" valign="middle" >13.69</td><td align="center" valign="middle" >12.01</td><td align="center" valign="middle" >2556.47</td><td align="center" valign="middle" >2579.67</td><td align="center" valign="middle" >11.85</td><td align="center" valign="middle" >11.05</td></tr><tr><td align="center" valign="middle" >40</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >2564.92</td><td align="center" valign="middle" >2688.61</td><td align="center" valign="middle" >14.79</td><td align="center" valign="middle" >10.68</td><td align="center" valign="middle" >2528.83</td><td align="center" valign="middle" >2581.62</td><td align="center" valign="middle" >15.99</td><td align="center" valign="middle" >14.23</td><td align="center" valign="middle" >2558.19</td><td align="center" valign="middle" >2582.25</td><td align="center" valign="middle" >15.01</td><td align="center" valign="middle" >14.21</td></tr><tr><td align="center" valign="middle" >44</td><td align="center" valign="middle" >2540</td><td align="center" valign="middle" >2569.27</td><td align="center" valign="middle" >2693.26</td><td align="center" valign="middle" >−1.15</td><td align="center" valign="middle" >−6.03</td><td align="center" valign="middle" >2611.63</td><td align="center" valign="middle" >2675.54</td><td align="center" valign="middle" >−2.82</td><td align="center" valign="middle" >−5.34</td><td align="center" valign="middle" >2562.50</td><td align="center" valign="middle" >2588.72</td><td align="center" valign="middle" >−0.89</td><td align="center" valign="middle" >1.92</td></tr><tr><td align="center" valign="middle" >48</td><td align="center" valign="middle" >2660</td><td align="center" valign="middle" >2571.88</td><td align="center" valign="middle" >2696.06</td><td align="center" valign="middle" >3.31</td><td align="center" valign="middle" >−1.36</td><td align="center" valign="middle" >2673.87</td><td align="center" valign="middle" >2745.11</td><td align="center" valign="middle" >−0.52</td><td align="center" valign="middle" >−3.20</td><td align="center" valign="middle" >2565.09</td><td align="center" valign="middle" >2592.60</td><td align="center" valign="middle" >3.57</td><td align="center" valign="middle" >2.53</td></tr><tr><td align="center" valign="middle" >52</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2576.23</td><td align="center" valign="middle" >2700.71</td><td align="center" valign="middle" >8.64</td><td align="center" valign="middle" >4.23</td><td align="center" valign="middle" >2798.51</td><td align="center" valign="middle" >2883.10</td><td align="center" valign="middle" >0.76</td><td align="center" valign="middle" >−2.24</td><td align="center" valign="middle" >2569.41</td><td align="center" valign="middle" >2599.09</td><td align="center" valign="middle" >8.89</td><td align="center" valign="middle" >7.83</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Average error (%)</td><td align="center" valign="middle" >6.62</td><td align="center" valign="middle" >5.49</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >6.36</td><td align="center" valign="middle" >5.12</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >6.71</td><td align="center" valign="middle" >6.46</td></tr></tbody></table></table-wrap><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Weekly forecasted peak load using LSRM and PSO</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x82.png"/></fig><p>From <xref ref-type="fig" rid="fig4">Figure 4</xref>, it can be concluded that the PSO technique gives more accurate results than LSRM. In LSRM model, the prediction of the weekly peak load data gives results close to the real value in the weeks number 20, 24 and 44, otherwise the PSO technique represent the best model for all weeks in the year 2015. The weekly error performed by LSRM and PSO algorithm is shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>From <xref ref-type="fig" rid="fig5">Figure 5</xref>, it can be seen that the error has minimum values for 20 weeks and maximum values for 10 weeks arranged from 0.0% to 15.99%. From average error point of view it is found that PSO method has produced better estimates than the LSRM and the quadratic model has the least error. Therefore, the best represented model between the weeks and peak load in LSRM and PSO is the quadratic regression model.</p></sec></sec><sec id="s4_2"><title>4.2. Case Two: MTLF Based on Weather Effect</title><p>Weather is the most important independent variable for MTLF. In this section, MTLF models used weather influence to predict the future peak load demand in terms of month and week. Various weather variables could be considered for MTLF. Temperature is the most commonly used for load predictors. The result of the previous section shows that there is a high positive correlation between temperature and peak load during summer and there is a negative correlation between temperature and peak load during winter. For these positive and negative correlations, LSRM used to predict the peak load in the hot and cold days. Because the relation between temperature and peak load is very complicated in nature and cannot be analyzed with ordinary mathematical models, the quadratic model used for data obtained in summer and winter seasons.</p><sec id="s4_2_1"><title>4.2.1. Monthly Forecasting</title><p>Peak loads of NEPCO are used to estimate the coefficients of quadratic model for MTLF in summer and winter season. Summer season extends from June till September; winter season extends from December till March. Long studies investigated that the changing of the temperature affects the peak load. The researches focused on the effect of the higher and lower temperatures on electricity</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Weekly error associated with LSRM and PSO</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x83.png"/></fig><p>consumption using peak load data and temperature influence. The studies indicate that the impact of a one-degree in temperature higher than 25˚C, the peak load predicted will increase by 8 MW and a one-degree in temperature lower than 15˚C, the peak load predicted will increase by 6 MW [<xref ref-type="bibr" rid="scirp.74304-ref13">13</xref>] .</p><p>The inputs of this model is the number of months per each season and the peak loads recorded in the years [2008-2014], whereas the output is the monthly peak loads predicted for the year 2015 after taking the temperature effect by each season. PSO and LSRM techniques are used to estimate quadratic model parameters for winter and summer season. The quadratic parameters are tabulated in <xref ref-type="table" rid="table6">Table 6</xref>.</p><p><xref ref-type="table" rid="table7">Table 7</xref> represents the adjusted forecasted loads based on the parameters of quadratic model after taking the temperature effect by each season and monthly least square error.</p><p>It can be concluded from the table that in summer season, the peak load is increased continuously from June till August and decreased from August till</p><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Monthly estimated coefficients for LSRM and PSO based on temperature effect</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Coefficients</th><th align="center" valign="middle"  colspan="2"  >Summer</th><th align="center" valign="middle"  colspan="2"  >Winter</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >a</td><td align="center" valign="middle" >1.439</td><td align="center" valign="middle" >1.428</td><td align="center" valign="middle" >−55.07</td><td align="center" valign="middle" >−56.07</td></tr><tr><td align="center" valign="middle" >b</td><td align="center" valign="middle" >93.82</td><td align="center" valign="middle" >93.71</td><td align="center" valign="middle" >447.28</td><td align="center" valign="middle" >446.21</td></tr><tr><td align="center" valign="middle" >c</td><td align="center" valign="middle" >2536.2</td><td align="center" valign="middle" >2532</td><td align="center" valign="middle" >2144</td><td align="center" valign="middle" >2142</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Monthly forecasted peak load by quadratic model based on temperature effect</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Month</th><th align="center" valign="middle"  rowspan="2"  >Peak load (MW)</th><th align="center" valign="middle"  colspan="2"  >Quadratic MODEL</th><th align="center" valign="middle"  colspan="2"   rowspan="2"  >Error (%)</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >Jan.</td><td align="center" valign="middle" >3160</td><td align="center" valign="middle" >3118</td><td align="center" valign="middle" >3095.7</td><td align="center" valign="middle" >1.33</td><td align="center" valign="middle" >2.03</td></tr><tr><td align="center" valign="middle" >Feb.</td><td align="center" valign="middle" >2950</td><td align="center" valign="middle" >3019.65</td><td align="center" valign="middle" >2989.3</td><td align="center" valign="middle" >−2.36</td><td align="center" valign="middle" >−1.33</td></tr><tr><td align="center" valign="middle" >Mar.</td><td align="center" valign="middle" >2760</td><td align="center" valign="middle" >2845.16</td><td align="center" valign="middle" >2800</td><td align="center" valign="middle" >−3.09</td><td align="center" valign="middle" >−1.45</td></tr><tr><td align="center" valign="middle" >Apr.</td><td align="center" valign="middle" >2670</td><td align="center" valign="middle" >2631.46</td><td align="center" valign="middle" >2627.14</td><td align="center" valign="middle" >1.44</td><td align="center" valign="middle" >1.61</td></tr><tr><td align="center" valign="middle" >May</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2729.6</td><td align="center" valign="middle" >2725.13</td><td align="center" valign="middle" >−1.85</td><td align="center" valign="middle" >−1.68</td></tr><tr><td align="center" valign="middle" >Jun.</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2830.61</td><td align="center" valign="middle" >2825.98</td><td align="center" valign="middle" >−0.38</td><td align="center" valign="middle" >−0.21</td></tr><tr><td align="center" valign="middle" >Jul.</td><td align="center" valign="middle" >2940</td><td align="center" valign="middle" >2950.5</td><td align="center" valign="middle" >2945.68</td><td align="center" valign="middle" >−0.36</td><td align="center" valign="middle" >−0.19</td></tr><tr><td align="center" valign="middle" >Aug.</td><td align="center" valign="middle" >3180</td><td align="center" valign="middle" >3260</td><td align="center" valign="middle" >3116</td><td align="center" valign="middle" >−2.52</td><td align="center" valign="middle" >2.01</td></tr><tr><td align="center" valign="middle" >Sep.</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >3150.92</td><td align="center" valign="middle" >3145.67</td><td align="center" valign="middle" >−4.68</td><td align="center" valign="middle" >−4.51</td></tr><tr><td align="center" valign="middle" >Oct.</td><td align="center" valign="middle" >2587</td><td align="center" valign="middle" >2536.21</td><td align="center" valign="middle" >2532.14</td><td align="center" valign="middle" >1.96</td><td align="center" valign="middle" >2.12</td></tr><tr><td align="center" valign="middle" >Nov.</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2818.28</td><td align="center" valign="middle" >2810.14</td><td align="center" valign="middle" >−0.29</td><td align="center" valign="middle" >0.00</td></tr><tr><td align="center" valign="middle" >Dec.</td><td align="center" valign="middle" >2890</td><td align="center" valign="middle" >3008.21</td><td align="center" valign="middle" >2994</td><td align="center" valign="middle" >−4.09</td><td align="center" valign="middle" >−3.60</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Average error (%)</td><td align="center" valign="middle" >2.02</td><td align="center" valign="middle" >1.73</td></tr></tbody></table></table-wrap><p>September, while in winter season the peak load is increased continuously from December till January and decreased continuously from January till March. The forecasted monthly peak load using quadratic model and PSO algorithm based on temperature effect is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>It can be observed from <xref ref-type="fig" rid="fig6">Figure 6</xref> that the results obtained by the PSO are very close to the real values and more accurate than the results obtained by LSRM. The prediction load obtained by LSRM is very close to the real peak load in January, April and October, otherwise the PSO made better estimation for the predicted peak load. <xref ref-type="fig" rid="fig7">Figure 7</xref> is shown the monthly least square error based on temperature effect.</p><p>From <xref ref-type="fig" rid="fig7">Figure 7</xref>, it can be noticed that the error for 2015 with quadratic model and PSO algorithm is less than 5% for every month. The minimum error 0.0% is happened in November, while the maximum error 4.68% is happened in September. The average error in Quadratic model is 2.02% and in PSO algorithm is 1.73%. Therefore, the PSO approach gives the best represented model between the months and peak load based on temperature effect.</p></sec><sec id="s4_2_2"><title>4.2.2. Weekly Forecasting</title><p>The historical and weather data for the period [2008-2014] are used for estimation the models parameters for winter and summer seasons. Data for the year</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Monthly peak load using quadratic model based on temperature effect</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x84.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Monthly forecasting error using quadratic model based on temperature effect</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x85.png"/></fig><p>2015 are used for testing LSRM and PSO models. The inputs of this model is the number of weeks per each season, whereas the output is weekly peak loads predicted for the year 2015 after taking the temperature effect by each season. The quadratic parameters are tabulated in <xref ref-type="table" rid="table8">Table 8</xref>.</p><p>The weekly forecasted peak load using quadratic model and PSO algorithm based on temperature effect is shown in <xref ref-type="fig" rid="fig8">Figure 8</xref>.</p><p>From <xref ref-type="fig" rid="fig8">Figure 8</xref>, it can be noticed that the PSO results are very close to the real peak load data for the most weeks in the year 2015. The maximum peak loads in 2015 are happened in the weeks representing the summer and winter seasons, therefore the difference in values between real and prediction load data has the maximum in these weeks. The adjusted forecasted loads based on the parameters of quadratic model and weekly least square error are shown in <xref ref-type="table" rid="table9">Table 9</xref>.</p><p>It can be concluded from the table that in summer season, the peak load is increased continuously from the 22<sup>nd</sup> week till the 35<sup>th</sup> week and decreased from the 36<sup>th</sup> week till the 39<sup>th</sup> week (the weeks representing summer semester), while in winter season the peak load is increased continuously from the 48<sup>th</sup> week till the 3<sup>rd</sup> week and decreased continuously from the 4<sup>th</sup> week till the 12<sup>th</sup> week (the weeks representing the winter semester). The weekly least square error depends on the temperature effect is shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p><p>From <xref ref-type="fig" rid="fig9">Figure 9</xref>, it can be observed that the error has minimum values for 45 weeks and maximum values for 7 weeks arranged from 0.02% to 2.25%. The average error in Quadratic model is 2.20% and in PSO algorithm is 1.55%. From</p><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> Weekly estimated coefficients for LSRM and PSO based on temperature effect</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Coefficients</th><th align="center" valign="middle"  colspan="2"  >Summer</th><th align="center" valign="middle"  colspan="2"  >Winter</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >a</td><td align="center" valign="middle" >0.343</td><td align="center" valign="middle" >0.3326</td><td align="center" valign="middle" >−1.95</td><td align="center" valign="middle" >−1.8028</td></tr><tr><td align="center" valign="middle" >b</td><td align="center" valign="middle" >10.8</td><td align="center" valign="middle" >10.787</td><td align="center" valign="middle" >58.189</td><td align="center" valign="middle" >56.175</td></tr><tr><td align="center" valign="middle" >c</td><td align="center" valign="middle" >2412.8</td><td align="center" valign="middle" >2410.3</td><td align="center" valign="middle" >2317.2</td><td align="center" valign="middle" >2313</td></tr></tbody></table></table-wrap><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Weekly peak load using quadratic model based on temperature effect</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x86.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Weekly forecasting error using quadratic model based on temperature effect</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x87.png"/></fig><table-wrap id="table9" ><label><xref ref-type="table" rid="table9">Table 9</xref></label><caption><title> Weekly forecasted peak load by quadratic model based on temperature effect</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Week</th><th align="center" valign="middle"  rowspan="2"  >Peak load (MW)</th><th align="center" valign="middle"  colspan="2"  >Quadratic model</th><th align="center" valign="middle"  colspan="2"   rowspan="2"  >Error (%)</th></tr></thead><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >2830</td><td align="center" valign="middle" >2817.29</td><td align="center" valign="middle" >2816.02</td><td align="center" valign="middle" >0.45</td><td align="center" valign="middle" >0.49</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >2740</td><td align="center" valign="middle" >2697.22</td><td align="center" valign="middle" >2715.67</td><td align="center" valign="middle" >1.56</td><td align="center" valign="middle" >0.89</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >2530</td><td align="center" valign="middle" >2553.18</td><td align="center" valign="middle" >2590.65</td><td align="center" valign="middle" >−0.92</td><td align="center" valign="middle" >−2.40</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >2420</td><td align="center" valign="middle" >2448.29</td><td align="center" valign="middle" >2445.67</td><td align="center" valign="middle" >−1.17</td><td align="center" valign="middle" >−1.06</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >2520</td><td align="center" valign="middle" >2521.15</td><td align="center" valign="middle" >2517.90</td><td align="center" valign="middle" >−0.05</td><td align="center" valign="middle" >0.08</td></tr><tr><td align="center" valign="middle" >24</td><td align="center" valign="middle" >2552</td><td align="center" valign="middle" >2591.79</td><td align="center" valign="middle" >2587.66</td><td align="center" valign="middle" >−1.56</td><td align="center" valign="middle" >−1.40</td></tr><tr><td align="center" valign="middle" >28</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2689.41</td><td align="center" valign="middle" >2684.06</td><td align="center" valign="middle" >0.02</td><td align="center" valign="middle" >0.22</td></tr><tr><td align="center" valign="middle" >32</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2870.86</td><td align="center" valign="middle" >2863.52</td><td align="center" valign="middle" >−2.17</td><td align="center" valign="middle" >−1.90</td></tr><tr><td align="center" valign="middle" >36</td><td align="center" valign="middle" >2900</td><td align="center" valign="middle" >2949.57</td><td align="center" valign="middle" >2940.79</td><td align="center" valign="middle" >−1.71</td><td align="center" valign="middle" >−1.41</td></tr><tr><td align="center" valign="middle" >40</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >3005.47</td><td align="center" valign="middle" >2995.62</td><td align="center" valign="middle" >0.15</td><td align="center" valign="middle" >0.48</td></tr><tr><td align="center" valign="middle" >44</td><td align="center" valign="middle" >2540</td><td align="center" valign="middle" >2559.40</td><td align="center" valign="middle" >2548.84</td><td align="center" valign="middle" >−0.76</td><td align="center" valign="middle" >−0.35</td></tr><tr><td align="center" valign="middle" >48</td><td align="center" valign="middle" >2660</td><td align="center" valign="middle" >2657.91</td><td align="center" valign="middle" >2647.05</td><td align="center" valign="middle" >0.08</td><td align="center" valign="middle" >0.49</td></tr><tr><td align="center" valign="middle" >52</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2762.11</td><td align="center" valign="middle" >2756.63</td><td align="center" valign="middle" >2.05</td><td align="center" valign="middle" >2.25</td></tr><tr><td align="center" valign="middle"  colspan="4"  >Average error (%)</td><td align="center" valign="middle" >2.20</td><td align="center" valign="middle" >1.55</td></tr></tbody></table></table-wrap><p>average error point of view it is found that PSO method has produced better estimation than the LSRM.</p></sec></sec><sec id="s4_3"><title>4.3. MTLF Using AR Model</title><p>In this paper, the autoregressive data were generated with order equal 13. Therefore, AR (13) was investigated and the forecasts of this model were started from the month [84 - 95] for monthly prediction and from the week [313 - 364] for weekly prediction (The months and weeks which are represented the year 2015. A Matlab code was used to generate the data and check the AR property. The results were evaluated by LSE to compare computing peak loads and accuracy of the two forecast basis, respectively.</p><sec id="s4_3_1"><title>4.3.1. Monthly Forecasting Using AR Model</title><p>Monthly real peak demands recorded in the years [2008-2014] are used to implement AR model and the real data for 2015 is used to test this model. The monthly AR model parameters which are estimated using variants of the least- squares method are given by the following equation.</p><disp-formula id="scirp.74304-formula655"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x88.png"  xlink:type="simple"/></disp-formula><p>The monthly forecasted loads based on the parameters of AR model and monthly least square error are shown in <xref ref-type="table" rid="table1">Table 1</xref>0.</p><p>It can be concluded from the table that the error computed by AR model is high compared with other techniques. In February, March and May the AR model gives good results, otherwise the results gives unacceptable prediction of peak load data. By using Equation (19) in Matlab, The monthly forecasted peak load using AR model can be shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0.</p><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>0, it can be observed that the difference between the results obtained by AR model for monthly peak load and the real data is relatively high. This difference makes an average error high compared with the LSRM and PSO techniques used in previous section. The monthly least square error using AR model is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1.</p><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>1, it can be observed that the error is very high shown in 6 months for the year 2015. The AR model gives the maximum error 17.96% in January while gives the minimum error 2.35% in March with an average error equal to 8.88% for this model.</p><table-wrap id="table10" ><label><xref ref-type="table" rid="table1">Table 1</xref>0</label><caption><title> Monthly forecasted peak load using AR model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Month</th><th align="center" valign="middle" >Peak load (MW)</th><th align="center" valign="middle" >AR (MW)</th><th align="center" valign="middle" >Error (%)</th></tr></thead><tr><td align="center" valign="middle" >Jan.</td><td align="center" valign="middle" >3160</td><td align="center" valign="middle" >2592.40</td><td align="center" valign="middle" >17.96</td></tr><tr><td align="center" valign="middle" >Feb.</td><td align="center" valign="middle" >2950</td><td align="center" valign="middle" >2858.26</td><td align="center" valign="middle" >3.11</td></tr><tr><td align="center" valign="middle" >Mar.</td><td align="center" valign="middle" >2760</td><td align="center" valign="middle" >2695.13</td><td align="center" valign="middle" >2.35</td></tr><tr><td align="center" valign="middle" >Apr.</td><td align="center" valign="middle" >2670</td><td align="center" valign="middle" >2852.50</td><td align="center" valign="middle" >−6.84</td></tr><tr><td align="center" valign="middle" >May</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2758.84</td><td align="center" valign="middle" >−2.56</td></tr><tr><td align="center" valign="middle" >Jun.</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2442.88</td><td align="center" valign="middle" >13.37</td></tr><tr><td align="center" valign="middle" >Jul.</td><td align="center" valign="middle" >2940</td><td align="center" valign="middle" >2645.44</td><td align="center" valign="middle" >10.02</td></tr><tr><td align="center" valign="middle" >Aug.</td><td align="center" valign="middle" >3180</td><td align="center" valign="middle" >2784.94</td><td align="center" valign="middle" >12.42</td></tr><tr><td align="center" valign="middle" >Sep.</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >2811.21</td><td align="center" valign="middle" >6.60</td></tr><tr><td align="center" valign="middle" >Oct.</td><td align="center" valign="middle" >2587</td><td align="center" valign="middle" >2957.33</td><td align="center" valign="middle" >−14.32</td></tr><tr><td align="center" valign="middle" >Nov.</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2666.22</td><td align="center" valign="middle" >5.12</td></tr><tr><td align="center" valign="middle" >Dec.</td><td align="center" valign="middle" >2890</td><td align="center" valign="middle" >2547.89</td><td align="center" valign="middle" >11.84</td></tr><tr><td align="center" valign="middle"  colspan="2"  >Average error (%)</td><td align="center" valign="middle"  colspan="2"  >8.88</td></tr></tbody></table></table-wrap><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Monthly peak load using AR model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x89.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Monthly forecasting error using AR model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x90.png"/></fig></sec><sec id="s4_3_2"><title>4.3.2. Weekly Forecasting Using AR Model</title><p>Weekly real peak demands recorded in the years [2008-2014] are used in this section. The data set is used to establish AR model. The weekly AR model parameters which are estimated using variants of the least-squares method are given by the following equation.</p><disp-formula id="scirp.74304-formula656"><label>(23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1770317x91.png"  xlink:type="simple"/></disp-formula><p>The weekly forecasted loads using AR model and weekly least square error are shown in <xref ref-type="table" rid="table1">Table 1</xref>1.</p><p>It can be seen from the table that the results computed by AR have the least accuracy compared with LSRM and PSO. In AR model, the weekly prediction load has maximum value in the week number 6 for the year 2015, but it still has a big difference compared with real value shown in many weeks for this year. By using Equation (19) in Matlab, The weekly forecasted peak load using AR model can be shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2.</p><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>2, it can be noticed that the results obtained by AR have a big difference with the real peak load data for the most weeks in the year 2015, therefore the difference in values between real and prediction load data has maximum for this model. The weekly least square error using AR model is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>3.</p><table-wrap id="table11" ><label><xref ref-type="table" rid="table1">Table 1</xref>1</label><caption><title> Weekly forecasted peak load using AR model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Week</th><th align="center" valign="middle" >Peak load (MW)</th><th align="center" valign="middle" >AR (MW)</th><th align="center" valign="middle" >Error (%)</th></tr></thead><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" >2830</td><td align="center" valign="middle" >2659.93</td><td align="center" valign="middle" >6.01</td></tr><tr><td align="center" valign="middle" >8</td><td align="center" valign="middle" >2740</td><td align="center" valign="middle" >2692.87</td><td align="center" valign="middle" >1.72</td></tr><tr><td align="center" valign="middle" >12</td><td align="center" valign="middle" >2530</td><td align="center" valign="middle" >2691.63</td><td align="center" valign="middle" >−6.39</td></tr><tr><td align="center" valign="middle" >16</td><td align="center" valign="middle" >2420</td><td align="center" valign="middle" >2686.27</td><td align="center" valign="middle" >−11.00</td></tr><tr><td align="center" valign="middle" >20</td><td align="center" valign="middle" >2520</td><td align="center" valign="middle" >2686.21</td><td align="center" valign="middle" >−6.60</td></tr><tr><td align="center" valign="middle" >24</td><td align="center" valign="middle" >2552</td><td align="center" valign="middle" >2684.31</td><td align="center" valign="middle" >−5.18</td></tr><tr><td align="center" valign="middle" >28</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >2684.72</td><td align="center" valign="middle" >0.20</td></tr><tr><td align="center" valign="middle" >32</td><td align="center" valign="middle" >2810</td><td align="center" valign="middle" >2683.94</td><td align="center" valign="middle" >4.49</td></tr><tr><td align="center" valign="middle" >36</td><td align="center" valign="middle" >2900</td><td align="center" valign="middle" >2683.42</td><td align="center" valign="middle" >7.47</td></tr><tr><td align="center" valign="middle" >40</td><td align="center" valign="middle" >3010</td><td align="center" valign="middle" >2683.23</td><td align="center" valign="middle" >10.86</td></tr><tr><td align="center" valign="middle" >44</td><td align="center" valign="middle" >2540</td><td align="center" valign="middle" >2682.58</td><td align="center" valign="middle" >−5.61</td></tr><tr><td align="center" valign="middle" >48</td><td align="center" valign="middle" >2660</td><td align="center" valign="middle" >2682.15</td><td align="center" valign="middle" >−0.83</td></tr><tr><td align="center" valign="middle" >52</td><td align="center" valign="middle" >2820</td><td align="center" valign="middle" >2681.49</td><td align="center" valign="middle" >4.91</td></tr><tr><td align="center" valign="middle"  colspan="2"  >Average error (%)</td><td align="center" valign="middle"  colspan="2"  >8.12</td></tr></tbody></table></table-wrap><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> Weekly peak load using AR model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x92.png"/></fig><fig id="fig13"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> Weekly forecasting error using AR model</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1770317x93.png"/></fig><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>3, it can be observed that the error has minimum values for 10 weeks and maximum values for 25 weeks arranged from 0.2% to 18.99%. From average error point of view it is found that AR model has produced least estimates than the LSRM and PSO with an average error equal to 8.12%.</p></sec></sec></sec><sec id="s5"><title>5. Conclusion</title><p>The particle swarm optimization PSO, least square regressive LSR and auto regressive AR methods are presented as MTLF techniques for Jordan electric power systems. This paper has presented approaches used for MTLF of electric loads: LSRM and PSO algorithm. The prediction is made either weekly or monthly based on historical peak load data and weather influence. Least square error (LSE) is introduced to evaluate the performance of the two models then compared these models with AR model and the educated guess assumptions currently used in NEPCO. The comparison between LSRM, PSO and AR models is made by using an average error and depicted by using tables and figures. A PSO algorithm is presented for optimal parameter estimation of MTLF in power system. The solution is implemented and tested using actual recorded data obtained from NEPCO. Real peak load data from NEPCO are used to validate the performance of these approaches; three different models for LSRM and PSO algorithm based on the peak load data and weather influence are used; the quadratic model provides the least errors for both monthly and weekly peak load compared with the linear and exponential models. The forecasted peak load resulted by using the PSO algorithm has been compared with that obtained with LSRM and AR models. From average error point of view, it is found that LSRM and PSO algorithm have produced better estimation than the AR model and current prediction assumptions used in NEPCO. The results are shown the average error for each model used. Two cases were obtained; forecasting depends on peak load data and forecasting depends on peak load data influenced by the weather</p><table-wrap id="table12" ><label><xref ref-type="table" rid="table1">Table 1</xref>2</label><caption><title> The monthly and weekly average error for each model covered in this work (%)</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="3"  >Forecasting type</th><th align="center" valign="middle"  colspan="6"  >Forecasting depends on peak load</th><th align="center" valign="middle"  colspan="2"  >Forecasting depends on peak load adjusted considering weather effects</th><th align="center" valign="middle"  rowspan="3"  >Forecasting by using AR model</th></tr></thead><tr><td align="center" valign="middle"  colspan="2"  >Linear model</td><td align="center" valign="middle"  colspan="2"  >Quadratic model</td><td align="center" valign="middle"  colspan="2"  >Exponential model</td><td align="center" valign="middle"  colspan="2"  >Quadratic model</td></tr><tr><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td><td align="center" valign="middle" >LSRM</td><td align="center" valign="middle" >PSO</td></tr><tr><td align="center" valign="middle" >Monthly</td><td align="center" valign="middle" >6.64</td><td align="center" valign="middle" >6.47</td><td align="center" valign="middle" >6.40</td><td align="center" valign="middle" >6.18</td><td align="center" valign="middle" >7.41</td><td align="center" valign="middle" >7.09</td><td align="center" valign="middle" >2.02</td><td align="center" valign="middle" >1.73</td><td align="center" valign="middle" >8.88</td></tr><tr><td align="center" valign="middle" >Weekly</td><td align="center" valign="middle" >6.62</td><td align="center" valign="middle" >5.49</td><td align="center" valign="middle" >6.36</td><td align="center" valign="middle" >5.12</td><td align="center" valign="middle" >6.71</td><td align="center" valign="middle" >6.46</td><td align="center" valign="middle" >2.20</td><td align="center" valign="middle" >1.55</td><td align="center" valign="middle" >8.12</td></tr></tbody></table></table-wrap><p>effects. The average error for LSRM and PSO for the three models and forecasting using AR model are represented in <xref ref-type="table" rid="table1">Table 1</xref>2.</p></sec><sec id="s6"><title>Cite this paper</title><p>Hattab, M., Ma’itah, M., Sweidan, T., Rifai, M. and Momani, M. (2017) Medium Term Load Forecasting for Jordan Electric Power System Using Particle Swarm Optimization Algorithm Based on Least Square Regression Methods. Jour- nal of Power and Energy Engineering, 5, 75-96. https://doi.org/10.4236/jpee.2017.52005</p></sec></body><back><ref-list><title>References</title><ref id="scirp.74304-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Alfares, H. and Nazeeruddin, M. (2002) Electric Load Forecasting: Literature Survey and Classification of Methods. International Journal of Systems Science, 33, 23-34.  
https://doi.org/10.1080/00207720110067421</mixed-citation></ref><ref id="scirp.74304-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Chow, J., Wu, F. and Momoh, J. (2005) Applied Mathematics for Restructured Electric Power Systems. Springer, New York.</mixed-citation></ref><ref id="scirp.74304-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Hahn, H., Meyer-Nieberg, S. and Pickl, S. (2009) Electric Load Forecasting Methods: Tools for Decision Making. European Journal of Operational Research, 199, 902-907. https://doi.org/10.1016/j.ejor.2009.01.062</mixed-citation></ref><ref id="scirp.74304-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Espinoza, M., Suykens, J., Belmans, R. and De Moor, B. (2007) Electric Load Forecasting-Using Kernel Based Modeling for Nonlinear System Identification. IEEE Control Systems Magazine Special Issue on Applications of System Identification, 27, 43-57.</mixed-citation></ref><ref id="scirp.74304-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">NEPCO (2016) Private Communication.  
http://www.nepco.com.jo/en/Default_en.aspx</mixed-citation></ref><ref id="scirp.74304-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Schachter, J. and Mancarella, P. (2014) A Short-Term Load Forecasting Model for Demand Response Applications. 11th International Conference on the European Energy Market, Krakow, 28-30 May 2014, 1-5.  
https://doi.org/10.1109/EEM.2014.6861220</mixed-citation></ref><ref id="scirp.74304-ref7"><label>7</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ding</surname><given-names> C.S. </given-names></name>,<etal>et al</etal>. (<year>2006</year>)<article-title>Using Regression Mixture Analysis in Educational Research</article-title><source> Practical Assessment Research &amp; Evaluation</source><volume> 11</volume>,<fpage> 1</fpage>-<lpage>11</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.74304-ref8"><label>8</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Van De Geer</surname><given-names> S.A. </given-names></name>,<etal>et al</etal>. (<year>2005</year>)<article-title>Least Squares Estimation</article-title><source> Encyclopedia of Statistics in Behavioral Science</source><volume> 2</volume>,<fpage> 1041</fpage>-<lpage>1045</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.74304-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Willis, H. and Northcote-Green, J.D. (1984) Comparison Tests of Fourteen Distribution Load Forecasting Methods. IEEE Transactions on Power Apparatus and Systems, 103, 1190-1197. https://doi.org/10.1109/TPAS.1984.318448</mixed-citation></ref><ref id="scirp.74304-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Canale, P. (2006) Numerical Methods for Engineers. 6th Edition, McGraw-Hill Science, New York, 451-484.</mixed-citation></ref><ref id="scirp.74304-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Tomar, S.K. and Prasad, R. (2009) Conventional and PSO Based Approaches for Model Order Reduction of SISO Discrete Systems. International Journal of Electrical and Electronics Engineering, 2, 45-50.</mixed-citation></ref><ref id="scirp.74304-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Jantana, P. and Sudasna-Na-Ayudthya, P. (2002) Least Squares and Discounted Least Squares in Autoregressive Process. Silpakorn University Open Journal Systems, 2, 122-135.</mixed-citation></ref><ref id="scirp.74304-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Momani, M., Yatim, B. and Ali, M. (2009) The Impact of the Daylight Saving Time on Electricity Consumption—A Case Study from Jordan. Energy Policy, 37, 2042-2051. https://doi.org/10.1016/j.enpol.2009.02.009</mixed-citation></ref></ref-list></back></article>