Abstract
Renewable energies are fundamentally changing the traditional power grid. Their integration in micro grid constitutes the best way to produce clean energy in a large scale. However, classical control methods based centralized approaches are not efficient to manage and control the different operations in micro grid. In this paper, an intelligent energy management system is presented for micro grid power control based on the distributed paradigm of Multi-Agent System. Its main objective is to find the optimal control of a MG with grid-connected mode in order to control the amount of power delivered or taken from the Distribution Network so as to minimize the cost and maximize the benefit. We present also a photovoltaic and wind power prediction method using an Optimal Weighted Regularized Extreme Learning Machine algorithm in which the Particle Swarm Optimization method is used to optimize the regularization parameter. The algorithm is tested on real weather data and has shown a good generalization performance and better results than the basic Extreme Learning Machine algorithm while keeping its extremely fast training speed ability. To establish an efficient energy management strategy, a Decision Tree is used to ensure the availability of power on demand by taking a reasonable decision about charging batteries/selling electricity and discharging batteries/buying electricity in order to reduce the balance between cost and benefit.
Keywords
Introduction
Growing energy demand, atmospheric pollution, climate warming, nuclear power risks and resource limits of fossil energies are the major considerations for the modern power industry. For this reason renewable energies constitute the best alternative and many countries tend to the new concept: Micro-Grid (MG) that has the potential to play a vital role to integrate renewable sources in large scale to produce clean energy. MG is a set of single electrical power subsystems associated with a small number of distributed energy resources, both renewable and/or conventional sources together with a cluster of loads and energy storage [1].
Energy management systems (EMSs) are designed to monitor, optimize, and control the smart grid energy market. They are used to optimally schedule the power resources in MG and to smartly maintain a balance between the distributed energy resources and the demand requirement in a user friendly manner. Furthermore, their objective is to minimize MG’s operating costs in the same time regarding the environment uncertainty introduced by renewable generation. Classical control methods are not efficient to control the different operations in MG because the failure of the entire system depends on unique point presented by the central controller [2]. In fact, in order to handle the complexity of such system, EMS requires the integration of innovative solutions and intelligent soft computations. For this reason, in the past few years the paradigm of Multi-Agent System (MAS) has been invented as distributed intelligence paradigm in power engineering [3], and used in order to ensure the more powerful results, thanks to the advantages which characterize this approach. MAS overcomes the centralized system drawbacks [4] by dint of communication between agents, where each agent is in charge of specific task to accomplish common goal. In published literature, MAS was applied to deal with three main problems in electricity power management system and especially in MG [3]: maximization of economic profit [5, 6], scheduling energy [7, 8], and grid stability [9, 10].
In this paper, considering scheduling approach for MG system to minimize the cost of non-green energy consumption, an intelligent EMS for MG is proposed as MAS based sequential control. The use of MAS leads the proposed EMS to find the best-integrated solution, taking into consideration the operating scenario and the system characteristics. Indeed, the main objective of this work is to find the optimal management of a MG with grid-connected mode in order to control the amount of power delivered or taken from the Distribution Network (DN) so as to minimize the cost and maximize the benefit. To achieve this goal, the approach is decomposed into two stages: The prediction stage and the decision making stage.
Prediction stage
Optimal control of MG is challenging due to uncertainties in generation amount of renewable generators, that’s why the integration of the forecast of weather data and output power is necessary, and there are many proposed works for predicting wind and solar power. For example [11], used time series to model the characteristics and behavior of wind speed as the autoregressive moving average. Some works use the artificial intelligence techniques like support vector machine (SVM) in [12] and artificial neural network (ANN) in [13]. However, most related works that use the cited algorithms have some problems, such as the slow convergence time, the weakness to find the global optimistic results, and the difficulty of calculating the quadratic convex program modeling the real problem [14]. Besides, these techniques are unable to cope with the strong fluctuation of observations. To overcome these drawbacks, a technique to predict the power produced by renewable generators was proposed in our previous works [14, 15] based on Extreme Learning Machine algorithm (ELM) because it overcomes the shortcomings of several other machine learning techniques due to its extremely fast training speed and its good generalization performance [16]. However, despite its attractive features, there are also some limitations for its solutions. Firstly, the ELM algorithm is still based on empirical risk minimization (ERM) principle and tends to over-fitting. Additionally, since ELM doesn’t consider heteroskedasticity in realistic applications, its performance will be affected seriously when outliers exist in dataset [17]. Finally, ELM provides weak control capacity since it directly calculates the minimum norm least-squares solutions [17]. To address these issues, Deng et al. was proposed Regularized Extreme Leaning Machine algorithm (R-ELM) based on structural risk minimization (SRM) principle and weighted least square. However, the performance of this algorithm depends on the regularization parameter which can be selected by experienced workers through trial and error or by optimization methods cited in the literature. For example, the classical Cross-Validation technique and the coordinate descent approach are two old optimization method and was used to choose the optimal regularization parameter in several works [18, 19]. Other methods have been proposed to select the appropriate
Decision making stage
The optimal decision in MG when to buy or sell electricity from or to the DN, that is to say, when to charge and discharge batteries, is a complex problem of energy management. Its objective is to minimize the total energy costs with the principle of satisfying some constraint (fulfill load demands, guarantee a long lifetime of batteries and maximize the use of green energies
Certainly, decision-making process requires a special transparency, easiness to understand and explain. So, we need a way to demonstrate visually the rules under which the data are grouped into smaller, more specific parts. In the past two decades, Decision Trees (DTs) which have tremendous potential as a decision-making tool has been widely used for classification and prediction in many scientific fields due to their ability and supporting human decision-making in an easy to understand form. DTs are useful to show the routes by which the various possible outcomes are achieved. Using the DT, management can consider various courses of action with greater ease and clarity and there are several reasons behind its broad applicability. For example, its accuracy is comparable or higher than the accuracy of other classification methods [29]. In addition, due to its intuitively appealing topology, the resulting classification models become easy to comprehend [30]. Furthermore, it helps to make the best decisions on the basis of existing information and best guesses. For those attractive features, a decision support method based on DT for energy management is proposed in this paper, which aims to find an optimal decision taking into account the status of loads demands, renewable energy sources and the SOC of batteries in a MG with grid-connected mode.
The major contributions of this paper can be summarized as follows:
An intelligent EMS based on MAS is proposed. Each component of MG is treated as an autonomous agent able to interact with other agents according to its current state and specific goals. A wind and PV power prediction based on OWR-ELM algorithm is proposed to estimate the wind and solar power for the next hour from real weather data. To establish an efficient energy management strategy, decision is taken based on the status of loads, renewable sources and batteries in a MG with grid-connected mode. Decision tree is used to take a reasonable decision about charging batteries/selling electricity and discharging batteries/buying electricity in order to reduce the balance between cost and benefit.
This paper is then organized as follows: Section 2 describes the adopted MG and its MAS modeling; Section 3 explains the proposed MG control approach. Section 4 outlines the Wind and photovoltaic power prediction method adopted. Section 5 explains the proposed decision making method based DT. In Section 6 we present simulation and results. Lastly Section 7 draws the overall conclusions of this paper.
Adopted Micro-Grid
MG can be considered as the ideal way to integrate renewable energies in the electricity production in a large scale to produce clean energy. It gives the consumer the opportunity to participate in the electricity market not just like a consumer but also like a producer. MG consists in general of different generation units (renewable generation and/or not), energy storage units and local demands. In this paper, we consider a MG with grid-connected mode which is presented in Fig. 1. Taking into account the unpredictable weather conditions and to assume a continuous availability of energy, PV panels are supplied with wind turbine in the proposed MG. The system also includes a number of batteries to store the excess of energy produced by renewable generators and provide the energy demanded by load when there is low renewable power produced. Thus batteries are used as a source added to renewable generators and the DN. In this paper, we consider the following classification of the different sources according to priority order; firstly renewable energies as primary source i.e. consume green energy produced in the first place; at the second batteries as auxiliary source i.e. if the renewable power produced is not enough to fulfill the load demanded we must consume first the energy stored in batteries when they are charged; at the third DN as the last source i.e. we purchase electricity only when batteries are discharged.
Diagram overview of the adopted MG with renewable energy resources.
A wind turbine is a power generating device that uses wind to produce energy. The wind power is considered as primary source since it is renewable. The output power generated is considered as function of the wind velocity and calculated as follows [31]:
where
PV panel is a power generating device that absorbs sunlight to generate electrical energy during daylight hours. The solar power is considered as primary source in our MG. Its output power can be calculated using the following equation [31]:
where
Batteries are used to store energy during peak production when output is in over-supply for subsequent use in the event that the energy produced is insufficient (at night or when wind stops). The SOC of battery is defined as its available capacity expressed as a percentage. It can be calculated using the following equation:
where
MAS architecture of adopted MG.
MG with renewable generators is affected by the site climatic data change. That is why an intelligent EMS must exist to optimally schedule the power resources of MG in a user friendly manner. One of the main objectives of the EMS is to achieve a high level of flexibility. Thus, we are obliged to call upon a distributed intelligence paradigm, because with centralized approach the entire system depends on unique point presented by the central controller. MAS has been invented as distributed intelligence paradigm in power engineering since it overcomes the centralized system drawbacks by allowing to the different generation units the possibility to collaborate to achieve a common goal.
A MAS is an architecture composed of a set of software autonomous entities called “agents” able to interact to accomplish a global goal. Also, it can be defined as a distributed system consisting of a set of agents working together to solve problems that are beyond their individual capacities or knowledge [32]. A MAS allows a better manner to design and implement complex control systems due its flexible autonomous action, showing the following characteristics:
Autonomy: agent is able to act without the intervention of a third party (human or agent) and controls its own actions as well as his internal state; Pro-activeness: agent do not only act in response to their environment, but as it is led by its own function and goals, it must also exhibit proactive and opportunistic behavior, while being able to take the initiative at the right time; Social ability: Placed in its environment, the agent must be able to interact, when appropriate, with other agents through agent communication language to perform its tasks or help these agents to accomplish theirs; Reactivity: agent must be able to perceive its environment and develop a response in the required time [32].
The MG components are often distributed and the energy management system is tightly associated with the communications between stakeholders and entities to exchange information. The use of MAS ensures the information exchange. The integration of this technology provide a communication layer that allow the MG to exchange information among its components by sharing message between the different agents.
So to model our MG we use MAS. Each important and flexible entity in MG can be represented by an autonomous agent .The proposed distributed MAS architecture is presented in Fig. 2 with the illustrated communication between six agents as follow:
AgentPV: this agent estimates the PV power produced by solar panels at time AgentWindTurbine: it predicts the wind power produced at time AgentBatteryBank: it is the agent who is responsible for the storage of energy. Among its roles, it gives information on the SOC and provides power to the MG when a trigger request comes from the AgentController; AgentLoad: it gives information of load demand-ed in MG at time AgentMainGrid: this agent offers the different selling or purchase price of electricity over time, and provides power to the MG when a trigger request comes from the AgentController;
Proposed energy management strategy. AgentController: this agent is responsible for the coordination between the other agents and decision making.

Solar and wind energies are not available all the time, and their performance is affected by unpredictable weather changes. Therefore, optimal control of MG with renewable units is challenging and considered as a complex problem because of the uncertainties in generation amount of renewable generators. Therefore, the integration of the forecast of weather data and output power is necessary to overcome problems related to complex mathematical modeling. In this paper, considering scheduling approach for MG system to minimize the utilization of non-green energy, an intelligent EMS is proposed that is based on sequential control concepts. Its main objective is to find the optimal management for MG with grid-connected mode in order to increase the use of green energy, reduce the electricity bill and make profit by selling the surplus of power produced by renewable generators in the energy market if there is. In other words, the goal of our EMS is to control the amount of power delivered or taken from the DN so as to maximize the benefits by selling electricity to the DN, as soon as possible, after filling the local requirement of MG and charging batteries; and minimize the costs by purchasing electricity from the DN only when batteries are discharged and the load demanded is greater than the produced energy. To achieve these goals, we divide the energy management strategy into two main phases: prediction phase and decision making phase (see Fig. 3).
The prediction phase is based on the OWR-ELM algorithm for the prediction of the PV and wind power produced for the next hour. Decision making phase is based on DT classifier to take a reasonable decision about charging batteries/selling electricity in case if there is excess energy, and discharging batteries/buying electricity in case if there is necessary energy in order to reduce the balance between cost and benefit. The step-by-step procedure for carrying out the energy management strategy is summarized in the flowchart of Fig. 4.
Flowchart of proposed hierarchical operation of EMS system.
ELM
Huang et al. [33] introduced a new approach, so called ELM, for single-hidden layer feedforward network (SLFN) where only the output weights needs to be determined. Contrary to the other approaches that require either a manual or a computationally very expensive parameter setting, the hidden neuron parameters of ELM are randomly assigned and the output weights can be determined analytically by Moore – Penrose generalized inverse. Thereby the parameters in the hidden layer can be independent of the training samples [33].
Suppose that there is a training set
The structure of ELM consists of an input layer; an output layer and a single hidden layer. More specifically, its structure can be defined as:
where
Equation (4) can be written as the following compacted form:
where
Since the Eq. (5) can be viewed as a linear system, then the training of SLFN can be achieved by solving this linear system. Training the SLFN is simply equivalent to finding the unique minimum norm least square solution
where
ELM has recently increased popularity and has been successfully applied due to its extremely fast training speed and its good generalization performance but it still can be considered as empirical risk minimization theme and tends to generate over-fitting model [17]. Additionally, it might lead to less robust estimation, especially with respect to outliers on the data or when heteroskedasticity exists. Finally, ELM provides weak control capacity since it directly calculates the minimum norm least-squares solutions [17]. In order to address these drawbacks, Deng et al. was proposed a novel algorithm called R-ELM based on SRM principle and weighted least square. Generally, when we would like to train an SLFN, we should find
where
We can adjust the proportion of empirical risk and structural risk by regulating
where
Substituting the last expressions of Eq. (11) in the second expression will give an explicit expression for
By solving Eq. (11), we can obtain the solution of
where
When
In this case, the algorithm is called as unweighted Regularized ELM (UWR-ELM). In fact, the traditional ELM is just the special case of UWR-ELM when
where the constant
where IQR is the inter quartile range which is the difference between the 75th percentile and 25th percentile.
Therefore the algorithm of R-ELM can be described as [17]:
Illustration of OWR-ELM’s predictors.
The selection of regularization parameter
where
To use PSO technique, two main points have to be considered: First one is how to represent the particles and the second one is how to select the fitness function. Since we try to find an optimal weight factor value, then particles are initialized by candidate solutions of logarithmic values from the set {2-
The procedure of our proposed algorithm OWR-ELM can be summarized by the following steps:
Having regard to the fluctuation of weather data and the shortcomings mentioned above of many machine learning techniques in the prediction field of solar and wind output power, an algorithm based OWR-ELM is proposed.
Therefore, we use one predictor trained by OWR-ELM algorithm for each renewable energy source (see Fig. 5) one for PV power and another for wind power. To choose the parameters of the two networks, we are based on mathematical models of output power generated by each renewable energy source which are represented in Eqs (1) and (2). The output power produced by PV panel can be considered as a function of irradiation and temperature, when the output power produced by wind turbine can be considered as a function of wind velocity. The other parameters mentioned in Eqs (1) and (2) depend only on the characteristics of materials model installed in MG (model of PV panel and wind turbine). Therefore, for PV power, the proposed network has two inputs: irradiation and temperature and one output: the amount of PV power produced (
After that, we calculate
According to
Adopted DT for decision making.
PV and wind Power Predicted by OWR-ELM (blue), R-ELM (green), ELM (yellow) and Calculated by Mathematical Formulas (red).
Rules-based system (RBS) is a deterministic type of artificial intelligence, which use a set of IF-THEN statements (created by an expert) to make a decision. Despite it still has its place, but also it has some weaknesses. The wrong choice of rules can lead to the wrong result. In addition the system can begin quite simple and become rather unwieldy as more as changes are added. Machine learning is probabilistic and uses statistical models rather than deterministic rules. Therefore, it constitute an alternative approach which can help to address the RBS’s issues. There are many possible machine learning models out there, some algorithms are easier to explain and understand than other. DT can visualize its decision in a way not unlike RBS. The rules in RBS come from human experts, whereas the decisions in a DT are produced by the machine learning process. For this reason, we considered using DT; which has tremendous potential as decision-making tool; to make a suitable and reasonable decision about charging batteries/selling electricity and discharging batteries/buying electricity in order to reduce the balance between cost and benefit. DTs are a non-parametric supervised learning method used for classification and regression. Their goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. The elements of DT are called nodes. They are connected together by hierarchy relationships. Thus we say that the node which is superior to another in this hierarchy is his father. In addition, it possesses possibly one or more son. A node that has no father is the root of DT. A node that has no son is called a leaf. Any other node in DT will be called an internal node.
DTs are at their heart a fairly simple type of classifier for data represented by ‘attribute/value’ sets. They are easy to explain because they can be visualized, and this is one of their advantages. DTs have many other advantages. They can be useful with or without hard data, and any data requires minimal preparation. They are able to handle both numerical and categorical data. Other techniques are usually specialized in analyzing datasets that have only one type of variable. They are able to handle multi-output problems. New options can be added to existing trees. In short, they follow the same approach as humans generally follow while making decisions.
Profile of Load Power demanded of the Adopted MG for one day.
PV power predicted during one day from four different seasons.
Wind power predicted during one day from four different seasons.
Considering the adopted MG with grid-connected mode, our goal is to predict the decision that we should take at each period of time. To establish an efficient decision making strategy, decision is taken based on the status of loads, renewable energy sources and batteries. The status of loads and renewable energy sources are presented by
Skill metric in terms of the overall rmse and training time
SOC of batteries during the period test.
Comparison between benefits and costs.
Figure 6 describes the proposed DT that indicates the way for selecting the appropriate decision depending on the available data
We present in this section the obtained results to discuss the performance of the proposed EMS. The adopted MAS was developed using Java Agent Development Framework (JADE) platform [38]. Concerning the interoperation, we used Agent Communication Language (ACL) which plays a vital role in facilitating the communication amongst agents operating in a MAS.
As regard to the prediction phase, the OWR-ELM network applied for PV power prediction has two neurons in the input layer represented by irradiation and temperature, and one neuron in the output layer which is the power produced by PV panels. For the wind power, the OWR-ELM predictor applied has one input which is the wind speed and one output which is the amount of power produced by wind turbine.
To learn and test the OWR-ELM algorithm, we used real observations of irradiation, temperature, and wind speed of Tetouan city of northern Morocco. Figure 7 present four curves, in both cases PV power and wind power respectively, comparing the predicted power using OWR-ELM algorithm (blue), predicted power using R-ELM algorithm (green), predicted power using ELM algorithm (yellow) and results calculating by Eqs (1) and (2) (red).
To select the regularization parameter of R-ELM,
On the other hand, to implement OWR-ELM algorithm the regularization parameter
In order to evaluate the potential of the proposed prediction models, we compared results of OWR-ELM with other obtained by R-ELM algorithm, ELM algorithm, the conventional neural network model trained by BP (back-propagation) algorithm and the simple feed forward neural network (FFNN) in which we adjust the connection weights by iterative process. We run these algorithms on the same data sets. The performance comparison is based on training time and estimation capability using the root mean square error (RMSE) as a numerical tool for comparison. RMSE could be represented as the following equation where
It can be seen from Table 1 that OWR-ELM obtains the lower RMSE than R-ELM and the basic ELM while the training time increase very slightly, and it is significantly better than RMSE of BP and FFNN while training speed is very faster. On the basis of this analysis, the obtained results are quite acceptable, and we can resume that the proposed models can predict the power produced by PV and wind generators for the next hour with high accuracy taking into account meteorological data. This is shown also in Fig. 7 since the curve presenting the OWR-ELM results is the one closest to the curve presenting the calculated results for the overall test.
On the other hand, using DT for decision making gives more capability to control the different operations as storage or selling and allows the possibility to reduce the balance between the cost and benefit in the MG. The lifetime of batteries is taking into consideration by setting the SOC as much as possible between 20% and 80%. DT adopted allowed to obtain this level of guard. Figure 11 presents the SOC of the batteries during the period test of 1000 hours. The variation of SOC remains between 20% and 80% with only one deep discharge in all the test period.
Another simulation over the test period was performed to compare benefit and cost (Fig. 12). When we had a benefit, this appears in red; otherwise, the cost appears in blue. In the case, where the two curves are at zero, this means that we had discharged or charged the batteries and we did not need the intervention of DN. It is clear that we had managed to achieve more benefits than costs according to the test period.
A novel strategy to optimally schedule the power resources in a MG with grid-connected mode through MAS has been proposed in this paper. The components of MG are represented by a set of agents able to interact between them. The use of MAS has ensured an economic and environmental operation even though we have a randomized natural behavior of wind and solar energy sources. This is allowed thanks to the proposed intelligent EMS based sequential control which consider scheduling approach for MG system to minimize the cost of non-green energy consumption through two-stage: prediction and decision making stages.
The PV and wind power produced by renewable generators has been predicted using OWR-ELM algorithm that hade the advantages of reduced randomness, reduced computational complexity and better generalization than the basic ELM algorithm while keeping its extremely fast training speed ability. OWR-ELM compared with R-ELM, ELM, BP and FFNN algorithms was capable of predicting with high accuracy and fast convergence speed. The results of the case study confirmed that the proposed models can be applied in a very flexible way and yielded lower prediction errors.
For decision making stage, a decision based DT was taken based on the status of loads, renewable sources and batteries. DT adopted gave more capacity to take a reasonable decision about charging batteries/selling electricity in case if there is excess power produced by renewable sources, and discharging batteries/buying electricity in case if there is necessary energy so as to increase the use of the green energies and satisfy economic goals by reducing the balance between cost and benefit. The simulation results highlight the performance of the proposed DT as the SOC remains over 20% and under 80% with only one deep discharge in the overall test to ensure their proper use and their long lifetime.
