Skip to content
BY 4.0 license Open Access Published by De Gruyter September 12, 2018

Multi-Agent System Based on the Extreme Learning Machine and Fuzzy Control for Intelligent Energy Management in Microgrid

  • Dounia El Bourakadi ORCID logo EMAIL logo , Ali Yahyaouy and Jaouad Boumhidi

Abstract

Renewable energies constitute an alternative to fossil energies for several reasons. The microgrid can be assumed as the ideal way to integrate a renewable energy source in the production of electricity and give the consumer the opportunity to participate in the electricity market not just like a consumer but also like a producer. In this paper, we present a multi-agent system based on wind and photovoltaic power prediction using the extreme learning machine algorithm. This algorithm was tested on real weather data taken from the region of Tetouan City in Morocco. The process aimed to implement a microgrid located in Tetouan City and composed of different generation units (solar and wind energies were combined together to increase the efficiency of the system) and storage units (batteries were used to ensure the availability of power on demand as much as possible). In the proposed architecture, the microgrid can exchange electricity with the main grid; therefore, it can buy or sell electricity. Thus, the goal of our multi-agent system is to control the amount of power delivered or taken from the main grid in order to reduce the cost and maximize the benefit. To address uncertainties in the system, we use fuzzy logic control to manage the flow of energy, to ensure the availability of power on demand, and to make a reasonable decision about storing or selling electricity.

1 Introduction

Since the 1970s, energy production risks were demonstrated to rest on the fossil resource exploitation following successive crises on the production of oil [8, 45], whose reserves are badly distributed and exhaustible. Atmospheric pollution, climate warming, nuclear power risks, and resource limitations push awareness of the need for economic development that is respectful of the environment in which we live.

Renewable energies constitute an alternative to fossil energies for several reasons: they generally disturb the environment to a lesser extent, do not emit gas with greenhouse effect, do not produce waste, are inexhaustible, and enable a decentralized production adapted at the same time to resources and the local needs [14]. For these reasons, many countries tend to adapt the new concept of microgrids (MGs). The term MG refers to the concept of single electrical power subsystems associated with a small number of distributed energy resources, both renewable and/or conventional sources, including photovoltaic (PV) power, wind power, internal combustion engine, gas turbine, and micro-turbine together with a cluster of loads [26, 27]. MG combines multiple local and diffuse production facilities, consumer facilities, storage facilities, and monitoring and demand management tools. It can be connected directly to the distribution network (DN) or operate in an isolated mode. This type of system is affected by changes in site climatic data, that is why the different sources must be controlled by an intelligent energy management system (EMS). One of its main objectives is to achieve a high level of flexibility, not only during operation but also during outages and throughout its life cycle; that is, the system must be able to adapt to most changes. Classical control methods are not efficient for the management and control of the different operations for such systems. For this reason, in the past few years, the paradigm of multi-agent system (MAS) has been invented and used in power systems in order to ensure more powerful results, thanks to the advantages that characterize this approach.

There are many proposed works based on the concept of MAS for the control of MG. Previous studies [12, 15, 34] presented the innovation of different strategies for buying and selling electricity depending on the price. Le and Ilic [29] proposed the predictive dispatch model to minimize the total production cost. Logenthiran and others [31, 32, 47] were interested in the efficient method for energy resource scheduling of integrated MG with various distributed generators and storage devices. Arai et al. [1] used MAS for power generation control or to restore the power system after a fault. Elamine and Boumhidi [9] focused on finding the optimal coalitions between the different MGs by proposing a MAS based on the law of gravity and fuzzy logic for a multi-MG environment. In Ref. [4], MAS was used in EMS in order to fulfill the load demand of the network and adjust power along with its surplus and shortage information. Some papers also addressed the reliability of MG by distributing power control for distributed energy resources, based on MAS, with communication delay technologies having effective skills for distributed demand management [24, 28]. Elamine et al. [10] proposed a MAS based on wind power prediction using artificial neural network (ANN) trained by the hybrid of particle swarm optimization algorithm and back-propagation (BP) algorithm. Khatibzadeh et al. [25] developed a hierarchical MAS (HMAS) and a distributed algorithm for HMAS to increase the speed of decision making in a hybrid MG.

In the MG, the main energy sources are the renewable energy sources like wind and solar energy. 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. In general, there are two approaches to predict power. The first approach is based on the direct prediction of energy, and this was chosen for this work; the second approach relies on the estimation of energy using predicted weather data and some power curves. Some works used time series to model the characteristics and behavior of wind speed as the autoregressive moving average [20, 44]. Vico et al. [46] applied deep neural networks into two problems: wind energy and daily solar radiation prediction. Gensler et al. [13] used combinations of different deep learning and ANN algorithms, such as deep belief networks, AutoEncoder, and long short-term memory, to show their forecast strength compared to a standard multilayer perceptron and a physical forecasting model.

Most related works that used the ANN algorithm for prediction have some problems, such as the slow convergence time, the weakness in finding global optimistic results, and the difficulty of calculating the quadratic convex program modeling the real problem. Besides, these techniques are unable to cope with the strong fluctuation of observations. Taking into account these problems mentioned above, we opted to use the extreme learning machine (ELM) algorithm for the prediction of power produced by renewable sources, because it overcomes the shortcomings of several other machine learning techniques. This has been verified in the latest works [18, 30, 43, 48, 49]. It has shown good generalization ability on benchmark tasks, both in classification and in function regression [19]. Moreover, it requires less human interference and can run faster than the conventional methods, due to the random choice of hidden nodes and the analytical determination of the output weights.

ELM was used in several applications. In Ref. [21], an approach of ensemble ELM for data classification based on the dropout technique, to address the problem of architecture selection and improve the prediction stability, was proposed. In Ref. [22], the authors focused on the framework of two-class imbalanced problems and proposed a novel algorithm that consists of four stages based on MapReduce and an ensemble of ELM classifiers. In Ref. [23], based on a voting mechanism, the authors proposed a large data set instance selection algorithm with MapReduce and random weight networks. In Ref. [2], an enhanced optimization-based ELM was proposed in its primal form, whose solution is obtained by solving an absolute value equation using a simple functional iterative method. In Ref. [40], the authors proposed two adaptive neural control schemes for a class of affine multi-input multi-output non-linear systems with the ELM algorithm, which is utilized to determine the parameters of hidden nodes in single hidden layer feedforward neural networks (SLFNs) by assigning random values to them. In Ref. [36], the learning ability of the batch version of online sequential-fuzzy-ELM, called fuzzy-ELM, was further evaluated to train a class of fuzzy inference systems that cannot be represented by the radial basis function networks. In Refs. [35, 37], the authors were interested in direct and indirect adaptive neural controller for a class of non-linear systems when the neural controller was constructed based on SLFN while its hidden node parameters were modified using ELM.

In this paper, we propose a MAS scheduling energy system based on the ELM algorithm for the prediction of power produced by renewable sources for the next hour and the fuzzy logic control (FLC) while respecting MG constraints. In our study, the system attempts to supply its costumers locally. In case the total power generated by the MG is not enough to cover the supplying load, the energy is bought from the DN.

The remainder of this paper is organized as follows. In Section 2, we provide a brief glance at the used methodologies. In Section 3, we present the adopted MG and its components. Then, a detailed multi-agent architecture that involves ELM and fuzzy logic unit control is proposed in Section 4. In Section 5, we present the simulation and discuss the results. We conclude the paper in Section 6.

2 Used Methodologies

As described before, a consistent combination of MAS based on prediction and reliable decision will allow an improved energy scheduling through the MG. In the following section, we give a brief presentation of the MAS technology, ELM algorithm, and FLC.

2.1 MAS

MAS is a distributed system consisting of a set of agents. Unlike artificial intelligence systems that simulate human reasoning capabilities, MAS is ideally designed and implemented as a set of interacting agents, most often according to modes of cooperation, competition, or coexistence [6].

The main advantages of MAS are robustness, velocity, and scalability [5]. Robustness refers to the ability of the system to tolerate failures of one or more agents, if control and responsibilities are sufficiently shared among agents within a MAS. Velocity is mainly due to the parallelism because many agents can work together to solve a problem. The scalability of MAS originates from its modularity, which makes programming easier. It should be easier to add new agents to MAS than to add new capabilities to a monolithic system.

2.2 ELM

Huang et al. [17] introduced a new approach, so called ELM, which overcomes the shortcomings of several other machine learning techniques. Besides its flexibility, the approach has also shown good generalization ability on benchmark tasks, both in classification and in function regression [19]. It requires less human interference and can run thousands of times faster than the conventional methods.

Usually, the parameters of the applied machine learning algorithms are selected depending on the input and target example data. Determining the parameters of the algorithms is often performed iteratively, by using genetic algorithms or by hyperparameter optimization [3]. Contrary to the mentioned approaches, which require either a manual or a computationally very expensive parameter setting, all of the parameters of the ELM hidden nodes are not dependent on the target function or the training dataset [19]. Hidden nodes are chosen randomly and the output weights are determined analytically by determining the optimal combination of the output signals of the hidden layer [19]. Therefore, there is no need to set the parameters manually and to fine tune them iteratively. Therefore, the parameters in the hidden layer can be independent of the training samples [16].

2.2.1 Technical Background of ELM

The theoretical concepts and the computational algorithms were derived from Ref. [5]. Suppose that there is a training set {(xi,ti)}i=1N with N distinct instances, where xi=[xi1;xi2;;xin]T contains n inputs (attributes) and ti=[ti1;ti2;;tim]T contains m outputs (classes). Assume that we have an SLFN with l hidden neurons. In SLFN, the input layer and the hidden layer are interconnected by an l × n input weight matrix ϖ, where the ith row vector is ϖj=[ϖj1;ϖj2;;ϖjn]T, b is an l × 1 hidden bias vector for each hidden neuron, and the output layer and the hidden layer are interconnected by an l × m output weight matrix β, where the ith row vector is βj=[βj1;βj2;;βjm]T.

The structure of ELM consists of an input layer, an output layer, and a single hidden layer. It is shown in Figure 1.

Figure 1: Illustration of the ELM Structure [42].
Figure 1:

Illustration of the ELM Structure [42].

More specifically, the ELM network structure can be defined as follows:

(1) ti=j=1lβjg(ϖjxi+bj),

where i ∈ 1; 2; …; N, j ∈ 1; 2; …; l, ϖjxi indicates the inner product of ϖj and xi, and g(x) is an activation function. According to the universal approximation capability theorems of ELM [19], various activation functions can be used (step function, sigmoid function, etc.). Equation (1) can be written as the following compacted form:

(2) Hβ=T,

where H is called the hidden layer output matrix of the network, T is the output matrix, and T = [t1; t2; …; tN]T.

(3) H=[g(ω1x1+b1)g(ωlx1+bl)g(ω1xN+b1)g(ωlxN+bl)]N×1.

The output weights are calculated analytically as

(4) β=H+T,

where H+ is the MoorePenrose generalized inverse of matrix H [38].

2.3 Fuzzy Logic

Fuzzy logic arose from a desire to incorporate logical reasoning and the intuitive decision making of an expert operator into an automated system [39]. The tools provided by fuzzy logic allow a modeling of the phenomena that can, in a certain sense, approach human reasoning. It provides solutions to complicated or difficult-to-model problems, and it does not have general methods of synthesis; thus, it is necessary to vary at the entrance and do tests until the set point. The aim is to make a decision based on a number of learned or predefined rules, rather than numerical calculations. However, before the rule base can be used, the input data should be represented in such a way as to retain meaning while still allowing for manipulation. The fuzzy rule representation is based on linguistics [39]. In FLC, the term “linguistic variable” refers to whatever state variables the system designer is interested in [39]. The fuzzy variable is perhaps better described as a fuzzy linguistic qualifier. Once the linguistic and fuzzy variables have been specified, the complete inference system can be defined as developing a fuzzy inference system, and applying it to a control problem involves several steps (see Figure 2).

Figure 2: General Structure of FLC.
Figure 2:

General Structure of FLC.

A. Fuzzification: Fuzzification is the action to process the input variables with membership functions (MFs) and determine the degree to which the input variables belong to each of the appropriate fuzzy sets via MFs. MFs are usually decided based upon the user’s requirement, although there is no restriction on the number of MFs. However, the setting of the interval and number of MFs are very important, and many evolving fuzzy logic systems have been proposed in the discussion of parameters [41, 42].

B. Inference system: In the fuzzy inference block, the fuzzified input variables are processed with fuzzy operators and the IF-THEN rule implementation. The output fuzzy sets for each rule are then aggregated into a single output fuzzy set.

C. Defuzzification: Defuzzification is a process that converts a fuzzy set or fuzzy number into a crisp value. There are different methods of defuzzification, the most common are centroid and mean of maxima.

3 Adopted MG

MG consists, in general, of distributed generators (e.g. diesel generators, fuel cells), renewable generators (e.g. wind turbines and PV panels), energy storage, and local demands. Figure 3 presents the adopted MG located in Tetouan, a city in northern Morocco. It is composed of eight PV panels with 36 cells each. Taking into account the unpredictable weather conditions and to assume a continuous availability of energy, the PV panels are supplied with one wind turbine. The system also includes a number of batteries to either store the excess of energy generated by the sources or provide the energy demanded by the load when there is low renewable energy produced. We note that the MG is on connected mode.

Figure 3: Diagram Overview of the Adopted MG with Renewable Energy Resources.
Figure 3:

Diagram Overview of the Adopted MG with Renewable Energy Resources.

In this paper, we classify the sources of the MG according to the following priority order:

  1. First: renewable energies as primary source;

  2. Second: batteries as auxiliary source;

  3. Third: DN as the last source.

3.1 Wind Turbine

The wind turbine produces electricity from wind. It is considered a primary source in our MG. The output power generated by the wind turbine can be considered as a function of the wind velocity [7] and can be calculated as follows:

(5) Pw={0if Vac<VciaVac2+bVac+cif VciVac<VrPwrif VrVac>Vco

where Pwr, Vci, and Vco are the rated power, cut-in wind speed, and cut-out wind speed, respectively. Furthermore, Vr and Vac are the rated and actual wind speed, respectively. Constants a, b, and c depend on the type of the wind turbine.

We assume AIR403 wind turbine model is used in this paper (AIR 403, Southwest Windpower, Flagstaff, AZ, USA). According to the data from the manufacturer, their characteristics are as follows [11]:

a=3.4;b=12;c=9.2;Pwr=130W;Vci=3.5m/s;Vco=18m/s;Vr=17.5m/s.

3.2 PV Module

The PV modules ensure the production of electrical energy during daylight hours. It is considered as the main source of energy. The output power of the module can be calculated using the following equation [11]:

(6) PPV=PSTC×GINGGSTC×[1+k(TcTr)],

where PPV is the output power of the module at irradiance GING, PSTC is the module maximum power at standard test condition (STC), GINC is the incident irradiance, GSTC is the irradiance at STC (1000 W/m2), k is the temperature coefficient of power, Tc is the cell temperature, and Tr is the reference temperature.

We assume that Solarex, MSX-83 is used in this paper (Solarex, Frederick, MD, USA). Their output characteristics are as follows: peak power = 83 W, voltage at peak power = 17.1 V, current at peak power = 4.84 A, short circuit current = 5.27 A, and open circuit voltage = 21.2 V at STC.

3.3 Energy Storage

Batteries are used to store excess energy, after filling the energy requirement, for subsequent use in the event that the energy produced by the PV panels and wind field is insufficient. The state of charge (SOC) of a battery is defined as its available capacity expressed as a percentage. It can be calculated using the following equation:

(7) SOC=C×100/CRef,

where C is the capacity of battery and CRef is the reference capacity of battery.

4 Proposed EMS

The energy management in flexible structures such as MG is a complex problem. This complexity comes from the uncertainty of the environment and its variations. Energy management should consider these constraints and attempt several objectives at the same time. In this paper, we present an energy management supervision for the MG. Its goal is to control the amount of power delivered or taken from the DN in order to reduce the cost and maximize the benefit. Therefore, the main goals of this paper are to

  1. Maximize the benefits by selling electricity to the DN, as soon as possible, after filling the local demand of MG and charging the batteries;

  2. Minimize the costs by purchasing electricity from the DN only if the load demand is greater than the produced energy and batteries are discharged.

To achieve these goals, we divide the energy management strategy into two main phases: prediction phase and decision making phase (see Figure 4).

Figure 4: Proposed Energy Management Diagram.
Where PL is the load demanded.
Figure 4:

Proposed Energy Management Diagram.

Where PL is the load demanded.

A. Prediction phase: Given the advantages of learning speed and selection parameters of ELM quoted above, we choose the ELM algorithm to predict the amount of PV and wind energy produced for the next hour.

B. Decision making phase: The decision making with FLC is adopted to determine which auxiliary energy source (batteries or DN) will fill the needed energy, and to make a reasonable decision about storing or selling electricity.

4.1 MAS Architecture of the Adopted MG

The renewable energy system is affected by the site climatic data change, that is why the different sources must be controlled by an intelligent EMS. One of the main objectives of the EMS is to achieve a high level of flexibility. Thus, we are obliged to call upon one artificial intelligence approach, which is MAS, in order to ensure more powerful results, thanks to the advantages that characterize this approach. This concept allows the possibility of the different generation units of smart MG to collaborate in order to achieve the optimal strategy to deal with the problem of economical exchange with the DN. In this work, six agents are established in the entire system, as mentioned in Figure 5:

Figure 5: MAS Architecture of the Adopted MG.
Figure 5:

MAS Architecture of the Adopted MG.

  1. AgentPV: This agent estimates the PV power produced by solar panels at time t. It uses the ELM algorithm to predict the PV power for the next hour.

  2. AgentWindTurbine: It predicts the wind power produced at time t by the wind turbine. It uses the ELM algorithm to predict the wind power for the next hour.

  3. AgentBatteryBank: It is the agent who is responsible for the storage of energy. Among its roles, it gives information on the state of storage and provides power to the MG when a trigger request comes from the AgentController.

  4. AgentLoad: It gives information of load demand in MG at time t.

  5. 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.

  6. AgentController: This agent is responsible for the coordination between the other agents. It uses FLC for decision making.

Figure 6 shows an example of interaction between agents when the DN is not needed either for purchasing or for selling. The different steps of interaction are summarised in Table 1.

Figure 6: Interactions between Agents for Energy Management.
Figure 6:

Interactions between Agents for Energy Management.

Table 1:

Communications List for Energy Management.

Communication number Description of communication
1 “AgentLoad” informs “AgentController” on charge
2 “AgentController” demand energy information produced by PV and wind power generators and energy stored in batteries (PPV, PW and SOC)
3 The three agents, “AgentPV”, “AgentWindTurbine” and “AgentBatteryBank” respond to “AgentController”
4 “AgentController” makes decision using FLC and send messages to the “AgentLoad” and “AgentBatteryBank” to update its SOC
R Representing the agent’s reasoning

4.2 Adopted Prediction Method

A neural network trained by ELM is proposed to predict the PV and the wind power for the next hour. We use two predictors. The first takes as input the irradiation and the temperature and gives as result the amount of PV energy produced (PPV). The second predictor takes as input the wind speed and gives as result the amount of wind energy produced (PW). Then, we sum PPV and PW to get the total energy produced (PT) by renewable energy sources in the MG at each period of time t.

(8) PT(t)=PPV(t)+PW(t).

The system power delivered by the renewable sources of energy PT was determined. We can now calculate ΔP, the difference between PT and PL (load demand).

(9) ΔP(t)=PT(t)PL(t),

where ΔP can be positive (when the renewable energy produced is bigger than the load) or negative (when the load is bigger than the renewable energy produced). If ΔP is negative, we must complete the need from batteries or DN when batteries are discharged. To make this last decision, we use FLC. To sum up, the energy management strategy is presented by the flowchart in Figure 7, which describes the different stages of treating the problem.

Figure 7: Proposed Flowchart Representing the EMS.
Figure 7:

Proposed Flowchart Representing the EMS.

4.3 Fuzzy Logic Controller Structure

An energy management controller is proposed in this paper based on FLC to make a decision about selling/purchasing electricity from DN and about charging/discharging batteries. It is necessary to properly manage the flow of energy, in order to satisfy the demanded load while trying to keep the battery SOC level between certain target margins (20% and 80%), and to control the amount of power delivered or taken from DN in order to reduce the electricity bill and make profit by selling the surplus in the energy market.

The adopted fuzzy controller takes into account the battery SOC and the difference between the power generated by renewable resources and the load demanded: ΔP. Thus, the inputs are ΔP and the battery SOC. The output is the decision that we should make among four choices: take the needed power from DN, discharge batteries, charge batteries, and inject excess power in DN.

MFs in Figure 8 are chosen as below and were designed taking into account the previous knowledge of the MG and load power demand.

Figure 8: MF for the Input and the Output Variables.
Figure 8:

MF for the Input and the Output Variables.

  1. Four functions to represent ΔP: “LargeNegative”; “SmallNegative”; “SmallPositive”; “LargePositive.”

  2. Five functions to represent the variable SOC:

    1. “Low” from 0% to 30%;

    2. “SmallMedium” from 25% to 35%;

    3. “Medium” from 30% to 70%;

    4. “LargeMedium” from 65% to 75%;

    5. “High” from 75% to 100%.

  3. Four functions to represent the output decision: take from main grid, “TMG”; discharge batteries, “DB”; charge batteries, “ChB”; and inject in main grid, “IMG.”

Linguistic control rules derived from the flowchart of Figure 7, respecting the MG constraint and the ranking according to the priority of resources, were written based on the inputs ΔP and SOC, and summarized in Table 2. The number of rules is 20 because we have four functions to represent ΔP and five to represent the SOC. Decisions for each combination has been chosen to allow good use of batteries by ensuring that they will not be discharged to <20% or charged to >80%.

4.3.1 Interpretation of Rules

If ΔP is LargeNegative, we need an important amount of energy to fill the energy needed. Thus, we discharge batteries when SOC is Medium, LargeMedium, or High. However, in case where SOC is Low, we fill the need by purchasing electricity. Even when SOC is SmallMedium (i.e. SOC is between 25% and 35%), we must choose the purchase to avoid deep discharge and damage of batteries.

If ΔP is SmallNegative, we need a small amount of energy to fill the energy requirement. Thus, we discharge batteries whatever the value of SOC, except when it is Low, because in this case we must purchase the quantity needed to avoid battery discharge to <20%.

If ΔP is SmallPositive, we have a small amount of excess power. Consequently, we must charge the batteries without any constraint that they can be charged to >80% in the case where SOC is Low, SmallMedium, Medium, or LargeMedium. Nevertheless, we have to sell the excess power when SOC is High to avoid an entire charging of batteries and obtain important benefits.

Table 2:

Inference Rules Used in Fuzzy Logic Block.

RULE 1 IF ΔP IS LargeN AND SOC is Low THEN decision IS TMG;
RULE 2 IF ΔP IS LargeN AND SOC is SmallMedium THEN decision IS TMG;
RULE 3 IF ΔP IS LargeN AND SOC is Medium THEN decision IS DB;
RULE 4 IF ΔP IS LargeN AND SOC is LargeMedium THEN decision IS DB;
RULE 5 IF ΔP IS LargeN AND SOC is High THEN decision IS DB;
RULE 6 IF ΔP IS SmallN AND SOC is Low THEN decision IS TMG;
RULE 7 IF ΔP IS SmallN AND SOC is SmallMedium THEN decision IS DB;
RULE 8 IF ΔP IS SmallN AND SOC is Medium THEN decision IS DB;
RULE 9 IF ΔP IS SmallN AND SOC is LargeMedium THEN decision IS DB;
RULE 10 IF ΔP IS SmallN AND SOC is High THEN decision IS DB;
RULE 11 IF ΔP IS SmallP AND SOC is Low THEN decision IS ChB;
RULE 12 IF ΔP IS SmallP AND SOC is SmallMedium THEN decision IS ChB;
RULE 13 IF ΔP IS SmallP AND SOC is Medium THEN decision IS ChB;
RULE 14 IF ΔP IS SmallP AND SOC is LargeMedium THEN decision IS ChB;
RULE 15 IF ΔP IS SmallP AND SOC is High THEN decision IS IMG;
RULE 16 IF ΔP IS LargeP AND SOC is Low THEN decision IS ChB;
RULE 17 IF ΔP IS LargeP AND SOC is SmallMedium THEN decision IS ChB;
RULE 18 IF ΔP IS LargeP AND SOC is Medium THEN decision IS ChB;
RULE 19 IF ΔP IS LargeP AND SOC is LargeMedium THEN decision IS IMG;
RULE 20 IF ΔP IS LargeP AND SOC is High THEN decision IS IMG;

If ΔP is LargePositive, we have an important amount of excess power. Therefore, we must charge the batteries when SOC is Low, SmallMedium, or Medium. However, when SOC is LargeMedium (e.g SOC is between 65% and 75%), we prefer to sell excess power because if we charge batteries, we can go beyond the limit (>80%). Finally, if SOC is High, the decision is to inject excess power in DN.

5 Simulation and Results

In this section, we present the results and discussion of the numerical analyses. First, we present the numerical results, and later we discuss the performance of the EMS proposed.

MAS can be implemented based on a number of open-source agent platforms that can aid developers in building a complex agent system in a simplified fashion [33]. Our MAS was developed in Java Agent Development Framework, an open-source FIPA (Foundation for Intelligent Physical Agents of the Institute of Electrical and Electronics Engineers)-compliant platform. This MAS is employed to perform some simulations.

The ELM applied in this case study is a feedforward network with one neuron in the input layer for the wind power (two neurons for the solar power) and one neuron in the output layer. It was tested by using different numbers of hidden layer neurons. Then, we chose the number that gives results closest to those calculated. Finally, we opted for five neurons for the PV network and four neurons for the wind network. The algorithm was trained and simulated using Java.

To learn and test the ELM algorithm, we used real observations of irradiation, temperature, and wind speed of Tetouan City. To test the robustness of the algorithm, the following profiles are chosen: the power of load (Figure 9), solar irradiance (Figure 10), temperature (Figure 11), and wind speed (Figure 12) of two different days (1 day of summer and 1 day of winter).

Figure 9: Profile of the Load Power of the Adopted MG.
Figure 9:

Profile of the Load Power of the Adopted MG.

Figure 10: Profile of the Solar Irradiation.
Figure 10:

Profile of the Solar Irradiation.

Figure 11: Profile of the Temperature.
Figure 11:

Profile of the Temperature.

Figures 13 and 14 present curves, in both cases PV power and wind power, comparing the results predicted using the ELM algorithm and the results obtained using mathematical formulas [Eqs. (5) and (6) cited in Section 3].

Figure 12: Profile of the Wind Speed.
Figure 12:

Profile of the Wind Speed.

Figure 13: PV Power Predicted by ELM and Calculated by Mathematical Formula.
Figure 13:

PV Power Predicted by ELM and Calculated by Mathematical Formula.

Figure 14: Wind Power Predicted by ELM and Calculated by Mathematical Formula.
Figure 14:

Wind Power Predicted by ELM and Calculated by Mathematical Formula.

To show the potential of the ELM prediction model, a performance comparison in terms of the estimation capability and training time was made between ELM and the conventional feedforward ANN model run with the BP algorithm. The estimation capability was statistically evaluated using the root mean square error (RMSE) as a numerical tool for comparing the measurement and predicted values by ANN. In this case, RMSE could be represented as

(10) RMSE=i=1N(yixi)2/N,

where yi is a predicted value, xi is a measured value, and N is equal to the number of observations.

From Table 3, it may be inferred that the performance of ELM is substantially promising in terms of response time as compared to the feedforward BP neural network. The training time, which is still an issue in a feedforward BP network, is simply bypassed in ELM. The comparison results also showed that the ELM model gave better estimation than the ANN model for the overall test. ELM was expeditiously efficient and yielded lower prediction errors than the ANN model. In fact, the best RMSE value was obtained with ELM.

On the other hand, using FLC for decision making gives more capability to control the different operations as storage or selling, in order to have the maximum benefit and the minimum cost. A simulation over a period of 100 days was performed to compare the curve of benefit and the curve of cost. When we had a benefit, this appears in red; otherwise, the cost appears in blue (Figure 15). 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 DN. It is clear that we had managed to achieve more benefits than costs according to the test period.

Table 3:

Skill Metric in Terms of the Overall RMSE and Training Time.

Skill metric ELM BP
PV power
 RMSE 0.1054 0.8679
 Training time(s) 1.011 6.182
Wind power
 RMSE 0.1351 0.912
 Training time(s) 0.904 7.996
Figure 15: Comparison between Benefits and Costs.
Figure 15:

Comparison between Benefits and Costs.

In order to ensure a long lifetime for the battery, its SOC should be, as much as possible, between 20% and 80%. The FLC adopted allowed obtaining this level of guard.

Figure 16 presents the SOC of batteries during the test period. As we can notice, the variation of SOC is always between 20% and 80%. From these results, it can be said that the objective of the FLC-based energy management method of the proposed MG is achieved.

Figure 16: SOC of Batteries during the Period Test.
Figure 16:

SOC of Batteries during the Period Test.

6 Conclusion

The MG presented in this paper depended on two important and very useful renewable energies combined together to increase the efficiency of the system. Using batteries as a storage unit is suggested for this system. A MAS was proposed as EMS. Each component of MG is represented by an autonomous agent able to interact with other agents according to its current state and specific goals.

The power generated from renewable sources was predicted using the ELM algorithm to overcome problems related to complex mathematical modeling. After consumption of renewable energy, the FLC technique was used to make a decision among four choices in order to satisfy the economic goals and reduce the balance between cost and benefit.

After the test and simulation, the obtained results were very satisfactory. First, they demonstrated that the proposed MAS is able to control different energy flows in MG. Second, the results of the case study confirmed that ELM can be applied in a very flexible way and shows several advantages. It is a powerful, very fast, and efficient learning algorithm, especially compared to approaches with gradient-based learning algorithms. Third, using FLC for decision making gave more capability to control the different operations in order to have the maximum benefit and minimum cost. The maximal discharge rate and maximal SOC of the batteries were taken into account to ensure their proper use.

Bibliography

[1] J. Arai, M. Ishikawa, S. Yamazaki and T. Ito, Application of mobile agent technology to power generation control in microgrid power system, in: Asia-Pacific Power and Energy Engineering Conference, pp. 1–5, Japan, 2009.10.1109/APPEEC.2009.4918184Search in Google Scholar

[2] S. Balasundaram and D. Gupta, On optimization based extreme learning machine in primal for regression and classification by functional iterative method, Int. J. Mach. Learn. Cybernet. 7 (2016), 707–728.10.1007/s13042-014-0283-8Search in Google Scholar

[3] Y. Bengio, Gradient-based optimization of hyperparameters, Neural Comput. 12 (2000), 1889–1900.10.1162/089976600300015187Search in Google Scholar PubMed

[4] V. Bui, A. Hussain and H. Kim, A multiagent-based hierarchical energy management strategy for multi-microgrids considering adjustable power and demand response, IEEE Trans. Smart Grid 9 (2016), 1323–1333.10.1109/TSG.2016.2585671Search in Google Scholar

[5] B. Chaib-draa, I. Jarras and B. Moulin, Systémes multiagents: principes généraux et applications, in: Agent et systèmes multiagents, J. P. Briot and Y. Demazeau, Eds., Hermés, Canada, 2001.Search in Google Scholar

[6] B. Chaib-draa, A. Ken, J. Williams, C. Hall and R. Kent, Distributed artificial intelligence: an overview, Encycl. Comput. Sci. Technol. 31 (1994), 215–243.Search in Google Scholar

[7] R. Chedid, H. Akiki and S. Rahman, A decision support technique for the design of hybrid solar-wind power systems, IEEE Trans. Energy Convers. 13 (1998), 76–83.10.1109/60.658207Search in Google Scholar

[8] P. Cremonez, M. Feroldi, W. Nadaleti, E. Rossi, A. Feiden, M. Camargo, F. Cremonez and F. Klajn, Biodiesel production in Brazil: current scenario and perspectives, Renew. Sustain. Energy Rev. 42 (2014), 415–428.10.1016/j.rser.2014.10.004Search in Google Scholar

[9] D. Elamine and J. Boumhidi, Multi agent system based on law of gravity and fuzzy logic for coalition formation in multi micro-grids environment, J. Amb. Intell. Human. Comput. 9 (2016), 337–349.10.1007/s12652-016-0414-zSearch in Google Scholar

[10] D. Elamine, M. Serraji, E. Nfaoui and J. Boumhidi, Multi-agent architecture for optimal energy management of a smart micro-grid using a weighted hybrid BP-PSO algorithm for wind power prediction, Int. J. Technol. Intell. Plann. 11 (2016), 20–35.10.1504/IJTIP.2016.074228Search in Google Scholar

[11] M. Faisal and H. Koivo, Modelling and environmental/economic power dispatch of microgrid using multiobjective genetic algorithm optimization, Fundam. Adv. Topics Wind Power, 2011, ISBN 978-953-307-508-2, pp. 361–378.Search in Google Scholar

[12] L. Fu-Dong, W. Min, H. Yong and C. Xin, Optimal control in microgrid using multi-agent reinforcement learning, ISA Trans. 51 (2012), 743–751.10.1016/j.isatra.2012.06.010Search in Google Scholar PubMed

[13] A. Gensler, J. Henze, B. Sick and N. Raabe, Deep learning for solar power forecasting – an approach using AutoEncoder and LSTM neural networks, in: 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC), pp. 002858–002865, Germany, 2016.10.1109/SMC.2016.7844673Search in Google Scholar

[14] N. Ghaffour, J. Bundschuh, H. Mahmoudi and M. Goosen, Renewable energy-driven desalination technologies: a comprehensive review on challenges and potential applications of integrated systems, Desalination 356 (2015), 94–114.10.1016/j.desal.2014.10.024Search in Google Scholar

[15] M. Hommelberg, C. Warmer, I. Kamphuis, J. Kok and G. Schaeffer, Distributed control concepts using multi-agent technology and automatic markets: an indispensable feature of smart power grids, in: Power Engineering Society General Meeting, IEEE, USA, pp. 1–7, 2007.10.1109/PES.2007.385969Search in Google Scholar

[16] G. Huang, D. Wang and Y. Lan, Extreme learning machines: a survey, Int. J. Mach. Learn. Cybernet. 2 (2011), 107–122.10.1007/s13042-011-0019-ySearch in Google Scholar

[17] G. Huang, Q. Zhu and C. Siew, Extreme learning machine: a new learning scheme of feedforward neural networks, in: Proceedings of the 2004 IEEE International Joint Conference on Neural Networks, 2004, 2, pp. 985–990, Singapore, 2004.Search in Google Scholar

[18] G. Huang, Q. Zhu and C. Siew, Real-time learning capability of neural networks, IEEE Trans. Neural Netw. 17 (2006), 863–878.10.1109/TNN.2006.875974Search in Google Scholar PubMed

[19] G. Huang, Q. Zhu and C. Siew, Extreme learning machine: theory and applications, Neurocomputing 70 (2006), 489–501.10.1016/j.neucom.2005.12.126Search in Google Scholar

[20] M. Juan, L. Jos, D. Rodolfo and A. Jos, Forecast of hourly average wind speed using ARMA model with discrete probability transformation, Electr. Eng. Control 98 (2011), 1003–1010.10.1007/978-3-642-21765-4_125Search in Google Scholar

[21] Z. Junhai, Z. Liguang and Z. Zhaoyi, Ensemble dropout extreme learning machine via fuzzy integral for data classification, Neurocomputing 275 (2017), 1043–1052.10.1016/j.neucom.2017.09.047Search in Google Scholar

[22] Z. Junhai, Z. Sufang and W. Chenxi, The classification of imbalanced large data sets based on MapReduce and ensemble of ELM classifiers, J. Mach. Learn. Cybern. 8 (2017), 1009–1017.10.1007/s13042-015-0478-7Search in Google Scholar

[23] Z. Junhai, W. Xizhao and P. Xiaohe, Voting-based instance selection from large data sets with MapReduce and random weight networks, Inform. Sci. 367 (2016), 1066–1077.10.1016/j.ins.2016.07.026Search in Google Scholar

[24] E. Karfopoulos, L. Tena, A. Torres, P. Salas, J. Jorda, A. Dimeas and N. Hatziargyriou, A multi-agent system providing demand response services from residential consumers, Electric Power Syst. Res. 120 (2015), 163–176.10.1016/j.epsr.2014.06.001Search in Google Scholar

[25] A. Khatibzadeh, M. Besmi, A. Mahabadi and M. Haghifam, Multi-agent-based controller for voltage enhancement in AC/DC hybrid microgrid using energy storages, Energies 10 (2017), 169.10.3390/en10020169Search in Google Scholar

[26] R. Lasseter, Microgrids, in: Proceedings of the IEEE Power Engineering Society Winter Meeting, pp. 305–308, USA, 2002.Search in Google Scholar

[27] R. Lasseter and P. Paigi, Microgrid: a conceptual solution, in: Proceedings of the IEEE 35th Annual Power Electronics Specialists Conference (PESC 04), pp. 4285–4290, Germany, 2004.Search in Google Scholar

[28] J. Lai, H. Zhou, X. Lu and Z. Liu, Distributed power control for DERs based on networked multiagent systems with communication delays, Neurocomputing 179 (2016), 135–143.10.1016/j.neucom.2015.11.068Search in Google Scholar

[29] X. Le and M. Ilic, Model predictive dispatch in electric energy systems with intermittent resources, in: IEEE International Conference on Systems, Man and Cybernetics SMC 2008, pp. 42–47, Singapore, 2008.Search in Google Scholar

[30] N. Liang, P. Saratchandran, G. Huang and N. Sundararajan, Classification of mental tasks from EEG signals using extreme learning machine, Int. J. Neural Syst. 16 (2006), 29–38.10.1142/S0129065706000482Search in Google Scholar PubMed

[31] T. Logenthiran, S. Dipti and M. Ashwin, Multi-agent system for energy resource scheduling of integrated microgrids in a distributed system, Electric Power Syst. Res. 81 (2011), 138–148.10.1016/j.epsr.2010.07.019Search in Google Scholar

[32] T. Logenthiran, D. Srinivasan, A. Khambadkone and H. Aung, Multi-agent system (MAS) for short-term generation scheduling of a microgrid, in: IEEE International Conference on Sustainable Energy Technologies (ICSET), pp. 1–6, Sri Lanka, 2010.10.1109/ICSET.2010.5684943Search in Google Scholar

[33] M. Pipattanasomporn, H. Feroze and S. Rahman, Multi-agent systems in a distributed smart grid: design and implementation, in: Power Systems Conference and Exposition, PSCE’09, IEEE/PES, pp. 1–8, USA, 2009.10.1109/PSCE.2009.4840087Search in Google Scholar

[34] Z. Qiu, G. Deconinck, N. Gui, R. Duan and R. Belmans, A market-based MAS framework for microgrids, IFAC Proc. 41 (2008), 11053–11058.10.3182/20080706-5-KR-1001.01872Search in Google Scholar

[35] H. Rong and G. Zhao, Direct adaptive neural control of nonlinear systems with extreme learning machine, Neural Comput. Appl. 22 (2013), 577–586.10.1007/s00521-011-0805-1Search in Google Scholar

[36] H. Rong, G. Huang and Y. Liang, Fuzzy extreme learning machine for a class of fuzzy inference systems, Int. J. Uncertainty Fuzziness Knowl.-Based Syst. 21 (2013), 51–61.10.1142/S0218488513400151Search in Google Scholar

[37] H. Rong, S. Suresh and G. Zhao, Stable indirect adaptive neural controller for a class of nonlinear system, Neurocomputing 74 (2011), 2582–2590.10.1016/j.neucom.2010.11.029Search in Google Scholar

[38] H. Rong, N. Sundararajan, G. Huang and P. Saratchandran, Sequential adaptive fuzzy inference system (SAFIS) for nonlinear system identification and prediction, Fuzzy Sets Syst. 157 (2006), 1260–1275.10.1016/j.fss.2005.12.011Search in Google Scholar

[39] H. Rong, N. Sundararajan, G. Huang and G. Zhao, Extended sequential adaptive fuzzy inference system for classification problems, Evolv. Syst. 2 (2011), 71–82.10.1007/s12530-010-9023-9Search in Google Scholar

[40] H. Rong, J. Wei, J. Bai, G. Zhao and Y. Liang, Adaptive neural control for a class of MIMO nonlinear systems with extreme learning machine, Neurocomputing 149 (2015), 405–414.10.1016/j.neucom.2014.01.066Search in Google Scholar

[41] D. Serre, Matrices: Theory and Applications, Springer, New York, pp. 202, 2002.Search in Google Scholar

[42] Z. Stanislaw, Systems and Control, The Oxford Series in Electrical and Computer Engineering, New York, pp. 720, 2003.Search in Google Scholar

[43] S. Suresh, S. Saraswathi and N. Sundararajan, Performance enhancement of extreme learning machine for multi-category sparse data classification problems, Eng. Appl. Artif. Intell. 23 (2010), 1149–1157.10.1016/j.engappai.2010.06.009Search in Google Scholar

[44] J. Torres, A. Garcia, M. De Blas and M. De Francisco, Forecast of hourly average wind speed with ARMA models in Navarre (Spain), Solar Energy 79 (2005), 65–77.10.1016/j.solener.2004.09.013Search in Google Scholar

[45] P. Veysset, M. Lherm, D. Bébin, M. Roulenc and M. Benoit, Variability in greenhouse gas emissions, fossil energy consumption and farm economics in suckler beef production in 59 French farms, Agric. Ecosyst. Environ. 188 (2014), 180–191.10.1016/j.agee.2014.03.003Search in Google Scholar

[46] D. Vico, A. Terres, A. Omari and J. Dorronsoro, Deep neural networks for wind and solar energy prediction, Neural Process. Lett. 46 (2017), 829–844.10.1007/s11063-017-9613-7Search in Google Scholar

[47] W. Xiong, W. Xiuli and B. Zhaohong, Optimal generation scheduling of a microgrid, in: 3rd IEEE PES International Conference and Exhibition on Innovative Smart Grid Technologies (ISGT Europe), pp. 1–7, Germany, 2012.Search in Google Scholar

[48] J. Xu, W. Wang, J. Goh and G. Lee, Internal model approach for gait modeling and classification, in: International Conference of the IEEE Engineering in Medicine and Biology Society (EMBS), pp. 1–4, Shanghai, China, 2005.Search in Google Scholar

[49] R. Zhang, G. Huang, N. Sundararajan and P. Saratchandran, Multi-category classification using an extreme learning machine for microarray gene expression cancer diagnosis, IEEE/ACM Trans. Comput. Biol. Bioinform., France (2007), 485–495.10.1109/tcbb.2007.1012Search in Google Scholar PubMed

Received: 2018-03-05
Accepted: 2018-08-03
Published Online: 2018-09-12

©2020 Walter de Gruyter GmbH, Berlin/Boston

This work is licensed under the Creative Commons Attribution 4.0 Public License.

Downloaded on 27.4.2024 from https://www.degruyter.com/document/doi/10.1515/jisys-2018-0125/html
Scroll to top button