Next Article in Journal
Synthesis, Structure, and Sodium Mobility of Sodium Vanadium Nitridophosphate: A Zero-Strain and Safe High Voltage Cathode Material for Sodium-Ion Batteries
Next Article in Special Issue
A PMU-Based Method for Smart Transmission Grid Voltage Security Visualization and Monitoring
Previous Article in Journal
Minimization of Construction Costs for an All Battery-Swapping Electric-Bus Transportation System: Comparison with an All Plug-In System
Previous Article in Special Issue
A Multiconductor Model of Power Line Communication in Medium-Voltage Lines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Comparison Study of Short-Term Prediction Methods to Enhance the Model Predictive Controller Applied to Microgrid Energy Management

by
César Hernández-Hernández
1,*,
Francisco Rodríguez
1,
José Carlos Moreno
1,
Paulo Renato Da Costa Mendes
2,
Julio Elias Normey-Rico
2 and
José Luis Guzmán
1
1
Department of Informatics, Agrifood Campus of International Excellence ceiA3, CIESOL Research Center on Solar Energy, University of Almería, 04120 Almería, Spain
2
Department of Automation and Systems (DAS), Federal University of Santa Catarina, Federal University of Santa Catarina, Florianópolis-SC CEP 88040-970, Brazil
*
Author to whom correspondence should be addressed.
Energies 2017, 10(7), 884; https://doi.org/10.3390/en10070884
Submission received: 1 June 2017 / Revised: 27 June 2017 / Accepted: 28 June 2017 / Published: 30 June 2017
(This article belongs to the Collection Smart Grid)

Abstract

:
Electricity load forecasting, optimal power system operation and energy management play key roles that can bring significant operational advantages to microgrids. This paper studies how methods based on time series and neural networks can be used to predict energy demand and production, allowing them to be combined with model predictive control. Comparisons of different prediction methods and different optimum energy distribution scenarios are provided, permitting us to determine when short-term energy prediction models should be used. The proposed prediction models in addition to the model predictive control strategy appear as a promising solution to energy management in microgrids. The controller has the task of performing the management of electricity purchase and sale to the power grid, maximizing the use of renewable energy sources and managing the use of the energy storage system. Simulations were performed with different weather conditions of solar irradiation. The obtained results are encouraging for future practical implementation.

Graphical Abstract

1. Introduction

Microgrids (MG) are integrated energy systems composed of distributed energy resources and multiple electrical loads operating as an autonomous grid; these can be either parallel to or islanded from the existing power grid. A microgrid can be considered a small-scale version of the traditional power grid, its small scale leading to far fewer line losses and lower demand on the transmission infrastructure. All of these advantages are motivating an increased demand for microgrids in a variety of application areas such as campus environments, military operations, community/utility systems, as well as commercial and industrial markets [1]. An MG can provide optimal electricity distribution to consumers by implementing control strategies. Nowadays, the MG concept focuses primarily on the integration of distributed renewable energy sources, stationary storage batteries and methodologies for management and control, as is shown in [2,3,4,5,6].
In the literature, there are several MG methods and applications. In [7], the basic structure of an MG is presented, and a detailed discussion about MG control techniques is included. In [8], the authors review the latest documents related to the use of hybrid energy storage systems (HESS), which facilitate the introduction of renewable energy sources (RES) to MGs. A centralized and decentralized control architecture for microgrids and their possible applicability to serve the particular needs in microgrids are discussed in [9]. In [10], a summary of the available approaches is presented (system configuration, unit size and control and energy management) along with those currently being investigated for the optimal design of RES hybrid systems. A decentralized energy management system based on multi-agent systems theory employing fuzzy cognitive maps for its implementation is proposed in [11]. In [12], a framework for microgrid energy management, where each agent is seeking an optimal goal-directed action planning under power consumption, production and price uncertainties, is proposed, and the optimal scheduling strategy is achieved by using a robust optimization approach. A multi-objective optimization in order to minimize the energy cost and greenhouse gas emissions in a hybrid system including photovoltaic (PV), wind, battery storage and a micro gas turbine is proposed and implemented in [13]; furthermore, in [14], an optimal energy management of a standalone microgrid under different operational modes is studied; the system is tested under two different operational policies where microgrid power generation sources work with and without the battery storage system. Moreover, in [15], a control strategy for the integration of distributed storage systems in a photovoltaic and micro-current network is developed, which also includes varying loads. The proposed control allows the maximum use of photovoltaic energy under different MG operating conditions and provides a smooth transfer between network connection and isolation. In [16], a strategy based on model predictive control (MPC) is presented, where the optimization problem has been formulated as a mixed integer linear problem (MILP), the control algorithm for which has been validated in an MG located at the Center for Renewable Energy Sources and Saving, in Pikermi-Athens, Greece. On the other hand, in [17], an MPC algorithm in which the optimization problem has been formulated as a mixed-integer quadratic optimization (MIQP) has been applied to a microgrid located at the University of Seville, Spain. In [18], the authors compared the MPC techniques and the hysteresis band (HB) method in energy dispatch within a microgrid. The main difference between MPC and HB is that MPC guarantees optimality, while HB does not. The authors conclude that there is a dramatic reduction in the cost of operation using MPC techniques.
MG operating requirements are usually satisfied by a hierarchical control structure [19], where several authors have shared the idea of considering three levels associated with different time scales [20,21]. The primary level operates at a fast time scale, maintaining voltage and frequency stability during changes in the generation or load, or after switching to the island mode. The secondary level is responsible for ensuring that the voltage and frequency deviations are adjusted to zero after a load or generation change is produced within the microgrid. This tertiary control is used to control the power flow between the microgrid and the main grid and for optimal operation over large time scales [22].
The MG’s control loop performance can be improved when disturbance information is available. This can be done using a feedforward controller based on disturbance estimations, mainly of the demand and the available renewable energy. There are many methods for estimating energy demand, and these can be characterized by the prediction horizon length and the selected methodology. The prediction horizon may vary depending on the application and can be considered as a short-term forecast for predictions up to 60 min [23,24] or a long-term forecast for hourly, daily and monthly prediction values [25,26]. On the other hand, disturbances are usually represented as time-series structures mainly due to their stochastic behavior. Time-series models are one of the ways to estimate future energy demand values. These models are obtained using past data and are used to estimate future behavior along a prediction horizon. Time series models are based on the assumption that modeled data are autocorrelated and characterized by trends and seasonal variations. Thus, well-known autocorrelated models like autoregressive moving average (ARMA), autoregressive integrated moving average (ARIMA), autoregressive moving average with exogenous inputs (ARMAX) and autoregressive integrated moving average with exogenous inputs (ARIMAX) [27] can be used. Artificial neural networks (ANN) are a different approach for disturbance estimation when the design is training-based and no statistical conditions are assumed for the source data. Neural networks (NN) are widely accepted as a technology for predicting time series, offering an alternative way to solve complex problems [28]. Neural networks and ARIMA models are often compared in terms of forecasting capacity. As a tool for nonlinear system identification, the nonlinear autoregressive with exogenous inputs (NARX) network has been successfully applied to a number of real-world input/output modeling problems, such as biomedical time series modeling [29], communication network traffic prediction [30] and energy demand [31].
This paper studies the effect of using different prediction strategies in a closed-loop control framework for energy management in a real case study. Methods based on time series and neural network models are used for the photovoltaic panel energy production and the energy demand of the load systems (building and greenhouse). The models are identified using real data collected at a sampling time of 1 min during the years 2014 and 2015. The microgrid optimal energy management problem is formulated including binary variables in the constraints and solved as mixed integer quadratic programming (MIQP). In this way, the prediction models are utilized to provide a feedforward framework, and the usability of the predictions over different prediction horizons is discussed. It is important to emphasize that feedforward action effectiveness is directly connected to the predictions’ quality. Significant improvement is obtained for closed-loop system behavior compared to the case of constant future predictions. Moreover, controller performance is compared to an ideal case with perfect future predictions, and a discussion is carried out to evaluate the prediction methods.
The rest of the paper is organized as follows: in Section 2, the microgrid subsystems, the methods and the performance criteria used to model energy demand and electrical energy production are briefly shown, and the energy hub’s methodology is also presented; in Section 3, the results and discussions are shown, and finally, in Section 4, the conclusions are outlined.

2. Materials and Methods

The MG is composed of a photovoltaic system, an electric vehicle whose batteries can be used as an energy storage system (the use of the electric vehicle is not considered in this paper) and two load subsystems (a building and a greenhouse). Figure 1 shows the microgrid. Additionally, the microgrid is connected to the main grid, allowing the purchase and sale of energy when necessary.

2.1. Materials

2.1.1. The Greenhouse

The greenhouse studied in this paper is a multispan ’parral type’ greenhouse (see Figure 2), with a surface area of 877 m2, oriented in a N-S direction.
The facilities are situated at the Cajamar Foundation experimental station,’Las Palmerillas’, in the El Ejido municipality, Almería, southeastern Spain [32]. The greenhouse has lateral and zenithal ventilation powered by independent AC motors, an aero-thermo heating system from hot water pipes fed with biomass, a CO2 enrichment system created from burning biomass, shade nets, as well as water and nutrient feeding systems. It is equipped with measurement equipment for 52 variables and is designed to develop identification tests and to implement climate control, fertigation and electric power strategies. Furthermore, the greenhouse has energy demand sensors (SINEAX M 561) programmable with an RS-232 interface run on a computer with the appropriate software. In Table 1, the variables measured and the model of the sensors used are detailed [33,34].

2.1.2. CIESOL Building

The CIESOL (’Centro de Investigación en Energía SOLar’) building is a solar energy research center, which is located inside the Campus of the University of Almería, in southeastern Spain (see Figure 3). It is distributed over two floors with a total surface area of 1071.92 m2, comprising: six offices, all with an easterly orientation and located on the ground floor (with the exception of the main office, situated on the upper floor); eight laboratories facing north (four located on the ground floor devoted to ’solar chemistry’; and the other four located on the upper floor: two for the ’Modeling and Automatic Control unit’ and the other two for the ’Evaluation of Solar Resources unit’); a plant where a high efficiency boiler and an absorption machine are located; and finally, the center’s employee rooms, such as the kitchen and toilets.

2.1.3. PV System

The PV system is made up of various sets located on-site at the University of Almería. One of these (see Figure 4) is located on the sloping roof of the CIESOL building and has the following characteristics: a total number of 4 modules linked in 3 sets of 14 panels/series, each with a unit capacity of 222 Wp/panel where the electrical energy produced is in the form of direct current at low voltage, then converted to alternating current through an inverter at a voltage of 230 V, forming a photovoltaic field of 9.324 kWp. Table 2 shows the summary and the main electrical characteristics of each module. The total set at the University of Almería that comprises the PV system considered in this paper forms a photovoltaic field that can reach 110 kWp.

2.1.4. Batteries

The bank of 6 batteries in the electric vehicle (Figure 5) that have been used in this MG is the Green Saver model with lead-acid silicone technology. Table 3 shows the summary for one battery.

2.1.5. Microgrid Controller

The MG uses a centralized controller [35] unit, which is responsible for correct process operation. The objective of this controller is to attend to the demand of the greenhouse and the CIESOL building, buying as little energy as possible from the main grid. The controller uses car batteries as energy storage units to optimize energy use during the day.

2.2. Methods

2.2.1. Hub Methodology

The methodology used in this paper to model the process has been presented in [36,37]. An energy hub is defined as the interface between energy production, consumers and the transmission line. From a system standpoint, a hub can be identified as a unit that provides the following features: (1) power input and output; (2) energy conversion; and (3) energy storage. Some of the main features of the hub are:
  • Within energy hubs, losses occur only in the converter and storage elements.
  • If not explicitly mentioned, unidirectional power flow from the inputs to the outputs of the converters is assumed.
  • Power flow through converter devices is characterized by power and energy efficiency only; no other quantities are used.
The methodology is summarized as follows: a single converter converts, at time instant k, a generic r input flow u r L ( k ) of a generic hub in a p output flow y p ( k ) , where superscript L is associated with converter input flows. The input-output conversion is defined by the so-called coupling factor γ p , r L , which correspond to a converter steady-state conversion efficiency between the input and output flows:
y p ( k ) = γ p , r L u r L ( k )
If we have several converters, it can be written as follows:
y 1 ( k ) y n p ( k ) y i ( k ) = γ 1 , 1 L γ 1 , r L γ p , 1 L γ p , r L Γ i L u 1 ( k ) u n r ( k ) u i L
where Γ i L is the converter coupling matrix.
From a discrete–time point of view, the internal storage state x i , s at sampling time k + 1 depends on the state at the previous sample k and on the total exchanged flow u ˇ i , s E ( k ) during the period Δ T ranging from k to k + 1 sampling, where the values of steady state input-output flow are described by the relationship:
u ˇ i , s E ( k ) = e i , s ( k ) u i , s E ( k )
where e i , s ( k ) is the efficiency of the i , s interface charging/discharging hub, which describes the energy exchange between the system and the storage. This factor depends on the direction of flow exchanged as follows:
e i , s = e i , s + i f u i , s E 0 ( c h a r g i n g ) e i , s o t h e r c a s e ( d i s c h a r g i n g )
where e i , s + and e i , s are the charging and discharging efficiency, respectively [38]. Assuming u ˇ i , s E ( k ) remains constant during Δ T :
x i , s ( k + 1 ) = x i , s ( k ) + k k + 1 u ˇ i , s E ( t ) d t = x i , s ( k ) + u ˇ i , s ( k ) Δ T
If we consider several storage systems:
x i , 1 ( k + 1 ) x i , n s ( k + 1 ) x i ( k + 1 ) = x i , 1 ( k ) x i , n s ( k ) x i ( k ) + e i , 1 ( k ) e i , n s ( k ) Λ i E ( k ) u ˇ i , 1 E ( k ) u ˇ i , n s E ( k ) u i E ( k )
then, a single hub can be represented by the following condensed form:
x i ( k + 1 ) = x i ( k ) + Λ i E ( k ) u i E ( k ) y i ( k ) = Γ i L u i L ( k )

2.2.2. Performance Criterion

When a certain method is used to estimate process variables, the differences between the estimated and real values can be employed to evaluate the method. Different statistical indexes can be utilized to compare the results of the forecasting models [25,39,40]. In this work, the mean square error (MSE), the root mean square error (RMSE), the mean absolute percentage error (MAPE) and the coefficient of determination R 2 will be used. The MSE is determined by:
M S E = 1 n k = 1 n ( y ^ k y k ) 2
where n is the forecasting horizon, y k is the real signal at time k and y ^ is the estimated signal at time k. When a zero value is obtained for MSE, it means that the estimator y ^ k predicts parameter observations y k with perfect accuracy.
RMSE is given by the square root of MSE:
R M S E = 1 n k = 1 n ( y ^ k y k ) 2
MAPE is defined as follows:
M A P E = 100 % n k = 1 n y ^ k y k y k
The coefficient of determination R 2 provides a measurement of how well future outcomes are likely to be predicted by the forecasting method. It is calculated as follows:
R 2 = k = 1 N ( y ^ k y ¯ ) 2 k = 1 N ( y k y ¯ ) 2
where y ¯ is the arithmetic mean value of the measured signal.

3. System Modeling and Control Algorithm

This section describes the modeling of the plant and the controller to be used. An MPC controller with linear constraints, whose formulation is detailed in [35], has been utilized in the MG control unit. To attempt the objectives described in Section 2.1.5, the following variable selection was defined.

3.1. Manipulated Variables

The MG input vector is defined according to:
u = u 1 u 2 u 3 u 4 = P G r i d P u r c h P G r i d S a l e P B A T C H P B A T D I S C H
where P G r i d P u r c h and P G r i d S a l e are the purchase and sale of energy to the external network and P B A T C H and P B A T D I S C H are the charging and discharging power of the batteries.

3.2. Disturbance Vector

The external disturbance to the MG is solar irradiation (measured in Wm 2 ) on the microgrid solar panels and directly affects the MG energy balance.

3.3. Controlled Variables

The controlled variables vector (system output vector) is defined as:
y = P C I E P g h T
where P C I E is the energy demand of the CIESOL building (kW) and P g h is the greenhouse energy demand (kW).

3.4. Microgrid Model

The evolution of the microgrid state variable (the state of the batteries’ charge SOCBAT) is described by the linear model:
S O C B A T ( k + 1 ) = S O C B A T ( k ) + η B A T C H · P B A T C H ( k ) · T s C B A T + η B A T D I S C H · P B A T D I S C H ( k ) · T s C B A T
where η B A T C H and η B A T D I S C H are the charging and discharging efficiency of the battery, respectively. T s is the sample time, and C B A T is the battery capacity.
Net power balance ( P r e m ( k ) ) within MG is considered. P p v = η s o l a r I r r a d ( k ) and P s o l a r = P p v . P p v , η s o l a r and I r r a d ( k ) are, respectively, the energy production of the PV panels, the solar energy conversion efficiency and the solar irradiation that acts as a disturbance. Figure 6 shows the control diagram.
Therefore, the MG can be modeled as a single hub in a condensed form as:
x ( k + 1 ) = A x ( k ) + Λ u ( k ) y ( k ) = Γ u ( k ) + D I r r a d ( k )
where:
A = [ 1 ]
Λ = [ 0 0 η B A T C H · T s C B A T η B A T D I S C H · T s C B A T ]
Γ = [ 1 1 1 1 ]
D = [ η s o l a r ]

3.5. Controller

The controller is designed to perform the energy management of the microgrid under energy changes during the generation or loads and managing the use of energy storage system. The MPC cost function is given by:
J = l = 0 N p 1 ( u ˜ ( k + l ) T Q u u ˜ ( k + l ) + f T u ˜ ( k + l ) ) + l = 0 N p 1 ( x ˜ ( k + l ) x ˜ r e f ( k + l ) ) T Q x ( x ˜ ( k + l ) x ˜ r e f ( k + l ) )
s.t.
x ̲ x ˜ ( k + l + 1 ) x ¯
u ̲ u ˜ ( k + l + 1 ) u ¯
y ˜ ( k + l ) = P C I E ( k ) + P g h ( k )
where l = 0 , , N p 1 , Q u and Q x are positive definite weighting matrices, f is a linear function and N p is the prediction horizon. Regarding the notation “ a ˜ ” over variables, this is used to denote variables over the prediction horizon; a ̲ and a ¯ denote the minimum and maximum allowed values, respectively. The first term of the objective function (20) has been used for the management of renewable sources and the purchase/sale of energy from the grid. The weights Q u and f are tuned to minimize the use of the network and the storage system. In the second term, Q x is tuned to maintain the storage load around 50 % allowing deviations from this value when there is a need to store more energy and use the stored energy; the minimum charge state allowed in the batteries is 30 % . An initial state in the batteries of 80 % has been considered.
To ensure the proper use of the renewable energy sources, to manage the purchase and sale of electricity to the external network and to use the storage to minimize oscillations between production and demand, binary variables are introduced to the formula as constraints in the following way:
δ G r i d P u r c h ( k ) = 1 , P G r i d P u r c h ( k ) > 0 0 , P G r i d P u r c h ( k ) = 0
δ G r i d S a l e ( k ) = 1 , P G r i d S a l e ( k ) > 0 0 , P G r i d S a l e ( k ) = 0
δ G r i d P u r c h ( k ) + δ G r i d S a l e ( k ) = 1
δ B A T C H ( k ) = 1 , P B A T C H ( k ) > 0 0 , P B A T C H ( k ) = 0
δ B A T D I S C H ( k ) = 1 , P B A T D I S C H ( k ) < 0 0 , P B A T D I S C H ( k ) = 0
δ B A T C H ( k ) + δ B A T D I S C H ( k ) = 1
The state space formulation of the hub has been transformed into the mixed logical dynamic (MLD) formulation considering concepts of propositional calculus and integer linear programming, as shown in [41]. This formulation makes it possible to include binary variables introduced in a discrete-time dynamic system in order to describe the evolution of the system’s continuous and logic signals in a unified model.
The conditions P j ( k ) > 0 in Equations (24), (25) and (27) and condition P B A T D I S C H < 0 in Equation (28) can be associated with a binary variable δ j for j = { G r i d P u r c h , G r i d S a l e , B A T C H } and δ B A T D I S C H , respectively, such that:
P j ( k ) > 0 δ j ( k ) = 1 P B A T D I S C H < 0 δ B A T D I S C H ( k ) = 1
Equation (30) can be expressed by the inequalities:
( M + ϵ ) δ j ( k ) P j δ j ( k ) > 0 ( m + ϵ ) δ B A T D I S C H ( k ) P B A T D I S C H δ B A T D I S C H ( k ) < 0
where
m = m i n P B A T D I S C H ( k ) M = m a x P j ( k )
and ϵ is a small tolerance (typically the machine precision).
In Equation (24), P G r i d P u r c h ( k ) > 0 gives δ G r i d P u r c h ( k ) = 1 , which means that the energy is purchased from the grid and therefore the weight is used on the purchase value, in (25); on the other hand P G r i d S a l e ( k ) > 0 results in δ G r i d S a l e ( k ) = 1 , which means that the energy is sold to the grid, and therefore, the weight is used on the sale value. Analogous analysis is performed for Equations (27) and (28). Furthermore, Equations (26) and (29) are associated with the exclusive sum (exclusive or), such that:
P G r i d P u r c h ( k ) P G r i d S a l e ( k ) P B A T C H ( k ) P B A T D I S C H ( k )
This means that only one action can be performed once, buying or selling energy and charging or discharging battery energy; moreover, doing neither is not possible.

4. Simulation Results and Discussion

This section presents the results obtained from applying the control and prediction methods. As already mentioned, the analysis mainly focuses on load prediction, which has been executed with forecasting steps given minute by minute. The energy demand and production were previously filtered using the Savitzky–Golay filter [42] in order to preserve initial distribution characteristics such as the relative maximum and minimum, as well as the width of the peaks. Data from 2014 have been used to identify the models and during different days of the year 2015 have been used for validation (see Figure 7). Different scenarios are presented using the proposed controller in order to realize optimal energy distribution and to observe the contribution made by the prediction models on two different significant days.

4.1. CIESOL Building and PV System

Two models for each system were proposed. Firstly, we compared several combinations of the autoregressive moving average (ARMA) models using the final prediction error (FPE) [43]; these models were based on historical energy demand and energy production data. The data used to identify these models were chosen from data collected over the year 2014. The ARMA model for a single-output time series is given by the following equation:
A ( z 1 ) y ( k ) = C ( z 1 ) e ( k )
where y ( k ) is the system output and e ( k ) is the model error. The ARMA structure reduces to the autoregressive (AR) structure for C ( z 1 ) = 1 as is mentioned in [43].
The discrete-time polynomials obtained for the CIESOL building energy demand (A1) and for the energy production of the PV system (A2) are detailed in Appendix A.
Additionally, for the same periods and minimizing the MSE, we evaluated several combinations of the NAR neural network multilayer perceptron using the Levenberg–Marquardt algorithm. These combinations included networks with different numbers of hidden layers, different numbers of units in each layer and different types of transfer functions. The chosen configuration consisted of one hidden layer with 11 and 10 neurons for CIESOL and the PV system, respectively, and a hyperbolic tangent sigmoid transfer function within this layer, defined by the equation:
f ( n ) = 1 e n 1 + e n
where n is the weighted input of the hidden layer and f ( n ) is the output of the hidden layer. For the output layer, a log-sigmoid transfer function was selected (36), and eight and six neurons for CIESOL and the PV system were used, respectively.
f ( n ) = 1 1 + e n
In order to evaluate prediction accuracy, these models were evaluated for predictions with 5, 10 and 15 horizon samples. Figure 8 and Table 4 show the obtained results.
For the CIESOL building, one can observe that both models (ARMA and NN) produced good performance; however, it can also be observed that the NN model better approximated the peak demand and showed better results for all sample horizons. One can see that the neural networks method is able to capture sudden changes, whereas the ARMA method only follows the trend. The lower MSE, RMSE and MAPE values of the NN model for all horizons show that it is better than the ARMA model; furthermore, the R 2 is the square of the sample correlation coefficient between the real samples, and their predicted values-values close to one are desired. The resulting R 2 values for this analysis are satisfactory, with the NN model presenting higher values than the ARMA model. However, for a 15-sample prediction horizon, one can observe that a substantial change exists for that of the 10-sample prediction horizon in both models; that is, both models are able to follow the trend, but the energy demand peaks have not been captured.
Conversely, for the photovoltaic system, the best results derived from the neural network model for all sample horizons. Moreover, one can see that the two models produce a small predicted signal delay when clouds are passing. Nevertheless, the neural network model provides the best performance according to Table 4 with smaller differences compared to the ARMA model, in which the absolute percentage error measurement shows that the best forecasting accuracy is provided by the NN model (this does not exceed 13.5 % for the 15-sample horizon). One can also observe that, when there is a substantial change in radiation, both 15-sample prediction horizon models take longer to follow the process dynamics. In contrast, there is no great change in the 10-sample prediction horizon.

4.2. The Greenhouse

The energy demand has been considered as a MISO (multi-input single-output) system, where inside temperature, v 1 ( k ) , outside temperature, v 2 ( k ) , inside relative humidity, v 3 ( k ) , global radiation, v 4 ( k ) , blower, u 1 ( k ) , pump heating, u 2 ( k ) , zenithal ventilation, u 3 ( k ) , and lateral ventilation, u 4 ( k ) , were the input variables, and energy demand, y ( k ) , was the output variable. All greenhouse variables were measured with a sampling period of 1 min. In order to calculate future predictions, the future inputs were considered as known; however, these inputs can be estimated by other prediction models. A model based on Bayesian networks was presented in [34] considering these variables, where the energy demand was classified into four classes. One of the main problems when considering energy demand classes is that information is lost about the real demand values.
In this paper, the real value of the energy demanded is represented; meaning energy information is not lost when defining it within classes. It has been observed that energy demand behavior in the greenhouse was that of low energy demand during the spring-summer and high energy demand during the autumn-winter. This is because during the spring-summer, there is no crop, and the cultivation period occurs during the autumn-winter, when a controlled temperature inside the greenhouse has to be maintained using different heating systems due to the low overnight temperatures. Accordingly, four models were proposed, an autoregressive with external input (ARX) model and one based on neural networks for the autumn-winter season, as well as an ARX model and an NN model for the spring-summer season. To identify the spring-summer models, we considered data from 22 February 2014–21 September 2014. For the autumn-winter season, data from 22 September 2014–21 February 2015 were chosen.
Several ARX models were performed. An ARX model was observed as follows:
A ( z 1 ) y ( k ) = i = 1 α 1 , β 1 z d B i B i ( z 1 ) u i ( k ) + i = 1 α 2 , β 2 z d D i D i ( z 1 ) v i ( k ) + ϵ ( k ) Δ
Using Akaike’s Information Criterion (AIC) [44], better dynamic behavior adjustment was presented to the real system, where α 1 = 4 and α 2 = 5 for the autumn-winter model and β 1 = 6 and β 2 = 10 for the spring-summer model were used, respectively.
The discrete-time polynomials obtained for the autumn-winter season (A3) and for the spring-summer season (A4) are shown in Appendix A.
On the other hand, to find the optimal network architecture, several combinations of NARX neural network multilayer perceptron were evaluated using the Levenberg–Marquardt algorithm minimizing the MSE. These combinations included networks with different numbers of hidden layers, different numbers of units in each layer and different types of transfer functions.
A configuration was chosen consisting of a hidden layer with 11 and 12 neurons for the autumn-winter season and spring-summer season, respectively, along with a hyperbolic tangent sigmoid transfer function in this layer, defined by (35). For the output layer, a linear transfer function was selected with eight neurons for the autumn-winter season and eight neurons for the spring-summer season.
Figure 9 shows the one-day forecasting results during the autumn-winter and the spring-summer season of 2015 using a prediction horizon of 5, 10 and 15 samples. The results are summarized in Table 5. The changes in energy demand during the autumn-winter season were more abrupt than in the spring-summer season, meaning the models obtained for the autumn-winter season had a greater prediction error compared to the spring-summer season models.
The resulting values of R 2 for this analysis are satisfactory for both models with a 5- and 10-sample prediction horizon; however, one can see that for a 15-sample prediction horizon, the coefficient R 2 is below 0.7 for the spring-summer season. For the autumn-winter season, the ARX model values are 0.990 , 0.919 and 0.767 , compared to the NN model values of 0.986 , 0.907 and 0.745 for the 5-, 10- and 15-sample prediction horizons, respectively. Furthermore, for the spring-summer season, the ARX model values are 0.985 , 0.890 and 0.663 against the NN model values of 0.985 , 0.867 and 0.473 for the 5-, 10- and 15-sample prediction horizons, respectively. Consequently, the ARX models give better results than the NN models for both seasons.

4.3. An Optimal Distribution Using the Proposed Controller

The predictive controller previously presented in Section 3 has been applied to the MG. The results presented in this section were obtained considering the following conditions:
  • The simulation used real data collected for a sunny day and a day with passing clouds.
  • Three similar sets of batteries that can reach a total capacity of C = 20 kWh and a charging η B A T C H = 0.8 and discharging η B A T D I S C H = 0.7 efficiency, respectively, and 10 similar greenhouses, such as those presented in the materials section, were considered.
  • The cost involved in the degradation of the batteries has been considered constant. In addition, the maintenance cost of the photovoltaic system has not been considered.
  • It is considered to maintain the state of charge of batteries at 50 % throughout the day.
  • Figure 10 shows the energy demand profiles for both types of day.
  • The cost function weights (20) were adjusted using simulations.
  • The proposed controller was applied to the microgrid. The aim of the controller is to perform the energy management of the microgrid during changes in generation or loads. The controller was implemented in MATLAB [45] using the YALMIP [46] toolbox and the CPLEX [47] solver.
  • The simulations were performed using a control horizon of N c = 5 samples and a prediction horizon, which varied from 6 to 15, ( N p = 6 , 7 , , 15 ).
In order to verify the contributions of the models presented in Section 4.1 and Section 4.2 to the predictive control techniques, three different scenarios have been considered in this paper:
(i)
Perfect information: Scenario 1 is performed assuming that the real data of demand ( P C I E and P g h ) and energy production ( P p v ) are known.
(ii)
Imperfect information: Scenario 2 is performed using the best forecasting models of demand (the NN model for P C I E and the ARX model P g h ) and energy production (the NN model for P p v ).
(iii)
No Information: Scenario 3 is performed assuming that future values are not known and predictive models for demand ( P C I E and P g h ) and energy production ( P p v ) are not used. This means that the predictions are considered constant along the prediction horizon.
Figure 11 and Figure 12 show the behavior simulations for the electrical energy distribution and the SOC in Scenario 2 on a sunny day and a day with passing clouds for a prediction horizon of 6, 10 and 15 samples, respectively. One can see that, as the prediction horizon grows, there are larger fluctuations in the variables P G r i d P u r c h , P G r i d S a l e , P B A T C H and P B A T D I S C H , causing greater effort from the batteries and resulting in more energy being bought and less energy being sold. Figure 11d–f and Figure 12d–f show how the SOC of the batteries tries to stay around its reference for a sunny day and for the day with passing clouds, respectively. Furthermore, one can observe that the lower prediction horizon has a greater variation range during the day. As can be seen, the three scenarios for both days have been realized trying to maintain the same level ( 50 % ) of the SOC throughout the day and considering the design of the controller; this has been done with the aim of observing the contribution of prediction models. However, depending on the controller design, the results may vary. In the design of the controller, it could be required that at the end of the day, the SOC tries to maintain a different reference level.
In addition, small differences can be observed by considering the total sum of each manipulated variable during the day (see Table A1 and Table A2 in Appendix B and Figure 13), where the trend of the variables is shown; these trends indicate in a generalized way that as the prediction horizon increases, more energy is bought and less energy sold, while there is less energy charging and less energy being discharged into the batteries.
Furthermore, it can be observed that on the sunny day, Scenario 2 generated better results than Scenario 3 for a horizon prediction of 6–11; while for a prediction horizon of 12 and above, it is evident that Scenario 3 is closer to Scenario 1. Conversely, on the day with passing clouds, with a prediction horizon of 6–13, Scenario 2 presents better results than Scenario 3.
To observe the differences in Scenario 2 and Scenario 3 compared to Scenario 1, the average absolute error Δ was used. This index is given by:
Δ = 1 n k | P k P ^ k |
for k = { G r i d P u r c h , G r i d S a l e , B A T C H , B A T D I S C H } .
For the optimal distribution of energy, it is a priority to have less energy purchased ( P G r i d P u r c h ), more energy sold ( P G r i d S a l e ) and to have greater use of the batteries; that is to say, in terms of charging ( P B A T C H ) and discharging ( P B A T D I S C H ), but with less fluctuations. Consequently, a prediction horizon of eight and six yields the best results on the sunny day and the day with passing clouds, respectively, using Scenario 2; this is shown in Figure 13 and Table 6, where Δ 1 , 2 and Δ 1 , 3 show the performance of Scenario 2 compared to Scenario 1, and Scenario 3 compared to Scenario 1, respectively.
As shown in Figure 13 and Table 6, for the sunny day up to horizon 11, Scenario 2 gives better results, whereas starting from horizon 12, the best choice is Scenario 3. The same analysis can be carried out for the cloudy day, where the changing point is horizon 14. Regarding the energy exchanged with the main grid, it is possible to conclude that, for Scenario 2 with small prediction horizons, the controller decided to sell more energy than it did with longer horizons, when compared to Scenario 3. This is due to the fact that predictions are better with smaller horizons and are degraded as the horizon increases. It is important to point out that, in this particular case, the amount of energy sold to the main grid is low due to the small amount of excess power from the solar panels; this can be raised by increasing the PV panels’ nominal power. This MG change can provide a more profitable economical operating point.

5. Conclusions and Future Works

This work presents the use of different time series forecast and neural network methods to obtain energy demand and energy production estimations. In addition, a controller has been proposed to optimize the use of renewable energies in a microgrid; this controller has also been proposed to regulate battery use, where charging and discharging of the battery system is allowed to oscillate around a desired load value. Furthermore, the contribution of short-term model prediction has been verified for optimal energy distribution (based on MPC) in an MG. As can be observed, although the differences are minimal, the use of short-term prediction models provides an improvement on the optimal distribution of energy for prediction horizons of less than 12 min on the sunny day and less than 14 min on the day with passing clouds.
In future work, the use of the electric vehicle will be considered as a vehicle connected to the grid (V2G). Furthermore, prediction models will be recalibrated to improve horizon predictions over 15 min; moreover, uncertainties will be considered of the PV system and load demand using the probability density function (PDF) of solar radiation and the normal distribution function for prediction purposes. We will propose a secondary level controller over a slow time scale (1 h). The aim is to carry out an economic optimization where the purchase and sale prices (€/kWh) of energy are considered; these prices vary hourly according to the daily market. Another important topic is to deal with the stochastic nature of prediction errors using probabilistic constraints.

Acknowledgments

This work has been funded by the National R+D+i Plan Project DPI2014-56364-C2-1-R of the Spanish Ministry of Economy and Competitiveness and ERDF funds. Julio and Paulo thank CNPq for the financing the projects CNPq305785/2015-0 and CNPq401126/2014-5. The authors are grateful to the anonymous reviewers for their comments.

Author Contributions

The paper was a collaborative effort between the authors. César Hernández-Hernández and Paulo Renato da Costa Mendes proposed the methodological framework and implementation roadmap and performed the simulations. Francisco Rodríguez and José Carlos Moreno conceived of the project, organized the research team and reviewed and improved the methodological framework. Julio Elias Normey-Rico and José Luis Guzmán reviewed and improved the implementation algorithm and have been involved in the performance evaluation and in the definition of reference scenarios. All authors discussed the simulation results and approved the assessment methodology. All authors have been involved in preparing the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. ARIMA Models for the CIESOL Building, the Photovoltaic System and the Greenhouse

For the CIESOL building and the photovoltaic system, ARMA-type models have been calculated. The polynomials of the ARMA model for the CIESOL building are:
A C I E ( z ) = 1 0.7436 z 1 1.952 z 2 + 1.304 z 3 + 1.189 z 4 0.7466 z 5 + 0.059 z 6 0.1033 z 7 0.1601 z 8 + 0.2462 z 9 + 0.0057 z 10 0.2231 z 11 + 0.0506 z 12 + 0.1216 z 13 0.0127 z 14 0.0353 z 15 C C I E ( z ) = 1 + 0.97 z 1 0.8596 z 2 0.9302 z 3 + 0.014 z 4 0.0020 z 5 + 0.0060 z 6 + 0.0137 z 7 0.0023 z 8 + 0.0064 z 9 + 0.0145 z 10 0.0022 z 11 + 0.0057 z 12 + 0.0138 z 13 0.0023 z 14 0.9932 z 15 0.9551 z 16 + 0.857 z 17 + 0.9356 z 18
whereas the polynomials for the PV system are:
A p v ( z ) = 1 3.264 z 1 + 4.55 z 2 4.613 z 3 + 4.43 z 4 3.706 z 5 + 3.049 z 6 2.695 z 7 + 2.638 z 8 2.439 z 9 + 1.595 z 10 0.7346 z 11 0.4916 z 12 + 1.597 z 13 1.226 z 14 + 0.3109 z 15 C p v ( z ) = 1 1.09 z 1 + 0.3057 z 2 1.278 z 3 + 0.5316 z 4 + 0.0166 z 5 + 0.9545 z 6 0.9729 z 7 + 1.479 z 8 1.004 z 9 + 0.8663 z 10 0.7941 z 11 0.2833 z 12 0.4224 z 13 + 0.8239 z 14 0.18951 z 15 + 0.4131 z 16 0.3577 z 17 0.2445 z 18 + 0.3576 z 19 0.117 z 20
On the other hand, for the greenhouse, two ARX models have been calculated: one for the autumn-winter season and the other for the spring-summer season. The following ARX model polynomials are for the autumn-winter season:
A g h a w ( z ) = 1 2.915 z 1 + 3.393 z 2 1.99 z 3 + 0.4226 z 4 + 0.1896 z 5 0.1 z 6 B g h a w , 1 ( z ) = 0.1962 z 1 + 0.4546 z 2 0.4098 z 3 + 0.1528 z 4 B g h a w , 2 ( z ) = 0.1267 z 1 0.3108 z 2 + 0.2828 z 3 0.1001 z 4 B g h a w , 3 ( z ) = 0.0002 z 1 + 0.0018 z 2 0.0006 z 3 0.0009 z 4 B g h a w , 4 ( z ) = 0.0001 z 1 0.0003 z 2 + 0.0004 z 3 0.0002 z 4 D g h a w , 1 ( z ) = 0.0239 z 1 + 0.0332 z 2 0.0138 z 3 + 0.0095 z 4 D g h a w , 2 ( z ) = 0.02717 z 1 0.01532 z 2 + 0.003681 z 3 0.007235 z 4 D g h a w , 3 ( z ) = 7.922 × 10 5 z 1 0.0003 z 2 3.396 × 10 5 z 3 + 5.072 × 10 5 z 4 D g h a w , 4 ( z ) = 0.0003 z 1 4.948 × 10 5 z 2 + 0.0001 z 3 0.0002 z 4
whereas the following ARX model polynomials are for the spring-summer season:
A g h s s ( z ) = 1 2.358 z 1 + 1.858 z 2 0.4943 z 3 B g h s s , 1 ( z ) = 0.0130 z 1 + 0.0129 z 2 B g h s s , 2 ( z ) = 0.0069 z 1 0.0068 z 2 B g h s s , 3 ( z ) = 0.0005 z 1 0.0005 z 2 B g h s s , 4 ( z ) = 2.979 × 10 5 z 1 2.927 × 10 5 z 2 D g h s s , 1 ( z ) = 0.1169 z 1 0.0792 z 2 D g h s s , 2 ( z ) = 0.0218 z 1 + 0.0223 z 2 D g h s s , 3 ( z ) = 2.021 × 10 5 z 1 + 2.122 × 10 5 z 2 D g h s s , 4 ( z ) = 3.331 × 10 5 z 1 2.913 × 10 5 z 2

Appendix B. Distributed Energy for Prediction Horizons from 6–15 min

Table A1. Energy (kW) distributed for prediction horizons from 6–15 min with separation intervals of 1 min on a sunny day.
Table A1. Energy (kW) distributed for prediction horizons from 6–15 min with separation intervals of 1 min on a sunny day.
TotalPrediction Horizon (Min)
Energy6789101112131415
P s o l a r 34,02134,02134,02134,02134,02034,02134,02134,02134,02134,021
P G r i d P u r c h 63,60963,73763,90764,05864,15364,24864,33364,39864,45764,506
1 P G r i d S a l e 22612260.62256.22269.92250.82249.52257.122552256.32256.5
P B A T C H 12501294.61287.51265.51210.71150.51101.81062.11017.7980.2
P B A T D I S C H 3980.13895.93714.63555.83386.93230.33103.72997.22894.92808.7
P s o l a r 34,02134,02134,02134,02134,02134,02134,02134,02134,02134,021
P G r i d P u r c h 63,60663,74163,90964,04464,16064,24764,32864,39664,45164,496
2 P G r i d S a l e 2259.62264.42258.12256.32258.72248.32252.322512253.42246.9
P B A T C H 1256.81295.31285.81268.41214.31145.811031049.51024.2985.2
P B A T D I S C H 3987.83896.73712.63559.13390.93225.431052982.92901.52814.3
P s o l a r 34,02134,02134,02134,02134,02134,02134,02134,02134,02134,021
P G r i d P u r c h 63,60463,73363,91164,04364,16164,25464,33564,39964,45664,504
3 P G r i d S a l e 22572256.82258.12255.32260.82258.32256.42254.82254.82252.4
P B A T C H 1257.41297.312751262.41223.21166.91105.21059.41019.1980.2
P B A T D I S C H 3988.538993700.23552.33401.13249.23104.92993.32899.12807.1
Table A2. Energy (kW) distributed for prediction horizons from 6–15 min with separation intervals of 1 min on a day with passing clouds.
Table A2. Energy (kW) distributed for prediction horizons from 6–15 min with separation intervals of 1 min on a day with passing clouds.
TotalPrediction Horizon (Min)
Energy6789101112131415
P s o l a r 30,29130,29130,29130,29130,29130,29130,29130,29130,29130,291
P G r i d P u r c h 62,45362,61562,78162,92363,02463,11163,17563,22263,26563,299
1 P G r i d S a l e 4082.54101.24092.44102.340944092.84081.44065.34054.24042.3
P B A T C H 1275.31287.61268.81267.81245.41224.71197.41174.41154.21136.6
P B A T D I S C H 4008.93877.63684.735513419.93310.33207.93121.83047.92984.1
P s o l a r 30,29130,29130,29130,29130,29130,29130,29130,29130,29130,291
P G r i d P u r c h 62,45562,60762,77662,90163,02563,09863,15463,20863,25663,302
2 P G r i d S a l e 4084.14093.84089.14081.24097.94081.44062.84052.44046.94046.9
P B A T C H 1276.11292.71278.41276.51261.81238.21202.41174.51165.71149.1
P B A T D I S C H 4009.83883.53695.73560.93438.63325.83213.731223061.12998.4
P s o l a r 30,29130,29130,29130,29130,29130,29130,29130,29130,29130,291
P G r i d P u r c h 62,45662,60162,77462,90063,00863,08863,15363,20663,26063,296
3 P G r i d S a l e 4086.54087.94087.840804080.54071.94060.34049.84050.74040.5
P B A T C H 1280.61293.412821278.21264.51239.612121185.41162.81140.7
P B A T D I S C H 40153884.33699.83562.83441.63327.33224.63134.43057.82989
= scenario.

References

  1. Chitsaz, H.; Shaker, H.; Zareipour, H.; Wood, D.; Amjady, N. Short-term electricity load forecasting of buildings in microgrids. Energy Build. 2015, 99, 50–60. [Google Scholar] [CrossRef]
  2. Karabiber, A.; Keles, C.; Kaygusuz, A.; Alagoz, B.B. An approach for the integration of renewable distributed generation in hybrid DC/AC microgrids. Renew. Energy 2013, 52, 251–259. [Google Scholar] [CrossRef]
  3. Carmeli, M.S.; Castelli-Dezza, F.; Mauri, M.; Marchegiani, G.; Rosati, D. Control strategies and configurations of hybrid distributed generation systems. Renew. Energy 2012, 41, 294–305. [Google Scholar] [CrossRef]
  4. Kurohane, K.; Uehara, A.; Senjyu, T.; Yona, A.; Urasaki, N.; Funabashi, T.; Kim, C.H. Control strategy for a distributed DC power system with renewable energy. Renew. Energy 2011, 36, 42–49. [Google Scholar] [CrossRef]
  5. Morais, H.; Kádár, P.; Faria, P.; Vale, Z.A.; Khodr, H. Optimal scheduling of a renewable micro-grid in an isolated load area using mixed-integer linear programming. Renew. Energy 2010, 35, 151–156. [Google Scholar] [CrossRef]
  6. Dursun, E.; Kilic, O. Comparative evaluation of different power management strategies of a stand-alone PV/Wind/PEMFC hybrid power system. Int. J. Electr. Power Energy Syst. 2012, 34, 81–89. [Google Scholar] [CrossRef]
  7. Huang, W.; Lu, M.; Zhang, L. Survey on Microgrid Control Strategies. Energy Procedia 2011, 12, 206–212. [Google Scholar] [CrossRef]
  8. Etxeberria, A.; Vechiu, I.; Camblong, H.; Vinassa, J.; Camblong, H. Hybrid Energy Storage Systems for renewable Energy Sources Integration in microgrids: A review. In Proceedings of the Conference Proceedings IPEC, Singapore, 27–29 October 2010; pp. 532–537. [Google Scholar]
  9. Hatziargyriou, N.; Dimeas, A.; Tsikalakis, A. Centralized and decentralized control of microgrids. Int. J. Distrib. Energy Resour. 2005, 1, 197–212. [Google Scholar]
  10. Nehrir, M.H.; Wang, C.; Strunz, K.; Aki, H.; Ramakumar, R.; Bing, J.; Miao, Z.; Salameh, Z. A Review of Hybrid Renewable/Alternative Energy Systems for Electric Power Generation: Configurations, Control, and Applications. IEEE Trans. Sustain. Energy 2011, 2, 392–403. [Google Scholar] [CrossRef]
  11. Karavas, C.S.; Kyriakarakos, G.; Arvanitis, K.G.; Papadakis, G. A multi-agent decentralized energy management system based on distributed intelligence for the design and control of autonomous polygeneration microgrids. Energy Convers. Manag. 2015, 103, 166–179. [Google Scholar] [CrossRef]
  12. Kuznetsova, E.; Li, Y.F.; Ruiz, C.; Zio, E. An integrated framework of agent-based modelling and robust optimization for microgrid energy management. Appl. Energy 2014, 129, 70–88. [Google Scholar] [CrossRef]
  13. Moradi, H.; Abtahi, A.; Esfahanian, M. Optimal operation of a multi-source microgrid to achieve cost and emission targets. In Proceedings of the IEEE Power and Energy Conference at Illinois (PECI), Urbana, IL, USA, 19–20 February 2016; pp. 1–6. [Google Scholar]
  14. Moradi, H.; Groff, D.; Abtahi, A. Optimal Energy Schadualing of a Stand-alone Multi-Sourced Microgid Considering Environmental Aspects. In Proceedings of the IEEE Innovative Smart Grid Technologies Conference (ISGT), Washington, DC, USA, 23–26 April 2017. [Google Scholar]
  15. Eghtedarpour, N.; Farjah, E. Control strategy for distributed integration of photovoltaic and energy storage systems in DC micro-grids. Renew. Energy 2012, 45, 96–110. [Google Scholar] [CrossRef]
  16. Parisio, A.; Rikos, E.; Glielmo, L. A Model Predictive Control Approach to Microgrid Operation Optimization. IEEE Trans. Control Syst. Technol. 2014, 22, 1813–1827. [Google Scholar] [CrossRef]
  17. Mendes, P.R.; Isorna, L.V.; Bordons, C.; Normey-Rico, J.E. Energy management of an experimental microgrid coupled to a V2G system. J. Power Sources 2016, 327, 702–713. [Google Scholar] [CrossRef]
  18. Valverde, L.; Bordons, C.; Rosa, F. Integration of fuel cell technologies in renewable-energy-based microgrids optimizing operational costs and durability. IEEE Trans. Ind. Electron. 2016, 63, 167–177. [Google Scholar] [CrossRef]
  19. Dondi, P.; Bayoumi, D.; Haederli, C.; Julian, D.; Suter, M. Network integration of distributed power generation. J. Power Sources 2002, 106, 1–9. [Google Scholar] [CrossRef]
  20. Vasquez, J.; Guerrero, J.; Miret, J.; Castilla, M.; de Vicuna, L.G. Hierarchical Control of Intelligent Microgrids. IEEE Ind. Electron. Mag. 2010, 4, 23–29. [Google Scholar] [CrossRef]
  21. Bidram, A.; Lewis, F.L.; Davoudi, A. Distributed Control Systems for Small-Scale Power Networks: Using Multiagent Cooperative Control Theory. IEEE Control Syst. 2014, 34, 56–77. [Google Scholar] [CrossRef]
  22. Bordons, C.; García-Torres, F.; Valverde, L. Gestión Óptima de la Energía en Microrredes con Generación Renovable. Rev. Iberoam. Autom. Inform. Ind. RIAI 2015, 12, 117–132. [Google Scholar] [CrossRef]
  23. Massana, J.; Pous, C.; Burgas, L.; Melendez, J.; Colomer, J. Short-term load forecasting in a non-residential building contrasting models and attributes. Energy Build. 2015, 92, 322–330. [Google Scholar] [CrossRef]
  24. Gutiérrez-Alcaraz, G.; Galván, E.; González-Cabrera, N.; Javadi, M. Renewable energy resources short-term scheduling and dynamic network reconfiguration for sustainable energy consumption. Renew. Sustain. Energy Rev. 2015, 52, 256–264. [Google Scholar] [CrossRef]
  25. Kaytez, F.; Taplamacioglu, M.C.; Cam, E.; Hardalac, F. Forecasting electricity consumption: A comparison of regression analysis, neural networks and least squares support vector machines. Int. J. Electr. Power Energy Syst. 2015, 67, 431–438. [Google Scholar] [CrossRef]
  26. Ardakani, F.; Ardehali, M. Long-term electrical energy consumption forecasting for developing and developed economies based on different optimized models and historical data types. Energy 2014, 65, 452–461. [Google Scholar] [CrossRef]
  27. Contreras, J.; Espinola, R.; Nogales, F.; Conejo, A. ARIMA models to predict next-day electricity prices. IEEE Trans. Power Syst. 2003, 18, 1014–1020. [Google Scholar] [CrossRef]
  28. Kouhi, S.; Keynia, F. A new cascade NN based method to short-term load forecast in deregulated electricity market. Energy Convers. Manag. 2013, 71, 76–83. [Google Scholar] [CrossRef]
  29. Coyle, D.; Prasad, G.; McGinnity, T. A Time-Series Prediction Approach for Feature Extraction in a Brain–Computer Interface. IEEE Trans. Neural Syst. Rehabil. Eng. 2005, 13, 461–467. [Google Scholar] [CrossRef] [PubMed]
  30. Bhattacharya, A.; Parlos, A.; Atiya, A. Prediction of MPEG-coded video source traffic using recurrent neural networks. IEEE Trans. Signal Process. 2003, 51, 2177–2190. [Google Scholar] [CrossRef]
  31. Mena, R.; Rodríguez, F.; Castilla, M.; Arahal, M. A prediction model based on neural networks for the energy consumption of a bioclimatic building. Energy Build. 2014, 82, 142–155. [Google Scholar] [CrossRef]
  32. Rodríguez, F.; Berenguel, M.; Guzmán, J.L.; Ramírez-Arias, A. Modeling and Control of Greenhouse Crop Growth; Advances in Industrial Control; Springer International Publishing: Cham, Switzerland, 2015. [Google Scholar]
  33. Sánchez-Molina, J.; Reinoso, J.; Acién, F.; Rodríguez, F.; López, J. Development of a biomass-based system for nocturnal temperature and diurnal CO2 concentration control in greenhouses. Biomass Bioenergy 2014, 67, 60–71. [Google Scholar] [CrossRef]
  34. Hernández, C.; del Sagrado, J.; Rodríguez, F.; Moreno, J.C.; Sánchez, J.A. Modeling of Energy Demand of a High-Tech Greenhouse in Warm Climate Based on Bayesian Networks. Math. Probl. Eng. 2015, 2015, 201646. [Google Scholar] [CrossRef]
  35. Camacho, E.F.; Bordons, C. Model Predictive Control; Springer: London, UK, 2004; Volume 2. [Google Scholar]
  36. Geidl, M.; Koeppel, G.; Favre-Perrod, P.; Klockl, B.; Andersson, G.; Frohlich, K. Energy hubs for the future. IEEE Power Energy Mag. 2007, 5, 24–30. [Google Scholar] [CrossRef]
  37. Geidl, M.; Andersson, G. A modeling and optimization approach for multiple energy carrier power flow. In Proceedings of the IEEE Russia Power Tech, St. Petersburg, Russia, 27–30 June 2005; pp. 1–7. [Google Scholar]
  38. Da Costa Mendes, P.R.; Normey-Rico, J.E.; Alba, C.B. Economic energy management of a microgrid including electric vehicles. In Proceedings of the IEEE PES Innovative Smart Grid Technologies Latin America (ISGT LATAM), Montevideo, Uruguay, 5–7 October 2015; pp. 869–874. [Google Scholar]
  39. Pawlowski, A.; Guzman, J.L.; Rodriguez, F.; Berenguel, M.; Sanchez, J. Application of time-series methods to disturbance estimation in predictive control problems. In Proceedings of the IEEE International Symposium on Industrial Electronics, Bari, Italy, 4–7 July 2010; pp. 409–414. [Google Scholar]
  40. Kouhi, S.; Keynia, F.; Najafi Ravadanegh, S. A new short-term load forecast method based on neuro-evolutionary algorithm and chaotic feature selection. Int. J. Electr. Power Energy Syst. 2014, 62, 862–867. [Google Scholar] [CrossRef]
  41. Bemporad, A.; Morari, M. Control of systems integrating logic, dynamics, and constraints. Automatica 1999, 35, 407–427. [Google Scholar] [CrossRef]
  42. Savitzky, A.; Golay, M.J.E. Smoothing and differentiation of data by simplified least squares procedures. Anal. Chem. 1964, 36, 1627–1639. [Google Scholar] [CrossRef]
  43. Arahal, M.R.; Soria, M.B.; Díaz, F.R. Técnicas de Predicción con Aplicaciones en Ingeniería; Universidad de Sevilla: Sevilla, Spain, 2006; Volume 15. [Google Scholar]
  44. Akaike, H. A new look at the statistical model identification. IEEE Trans. Autom. Control 1974, 19, 716–723. [Google Scholar] [CrossRef]
  45. MATLAB, R2014a. The MathWorks. 2014. Available online: https://www.mathworks.com/company/newsroom/mathworks-announces-release-2014a-of-the-matlab-and-simulink-product-families.html (accessed on 7 March 2014).
  46. Lofberg, J. YALMIP: A Toolbox for Modeling and Optimization in MATLAB. In Proceedings of the IEEE International Symposium on Computer Aided Control Systems Design (CACSD), New Orleans, LA, USA, 2–4 September 2004. [Google Scholar]
  47. ILOG, CPLEX. Available online: https://www.ibm.com/bs-en/marketplace/ibm-ilog-cplex (accessed on 2 October 2015).
Figure 1. Microgrid.
Figure 1. Microgrid.
Energies 10 00884 g001
Figure 2. Greenhouse and acquisition data system.
Figure 2. Greenhouse and acquisition data system.
Energies 10 00884 g002
Figure 3. CIESOL building.
Figure 3. CIESOL building.
Energies 10 00884 g003
Figure 4. PV system.
Figure 4. PV system.
Energies 10 00884 g004
Figure 5. Electric vehicle and batteries.
Figure 5. Electric vehicle and batteries.
Energies 10 00884 g005
Figure 6. Microgrid plant model and controller.
Figure 6. Microgrid plant model and controller.
Energies 10 00884 g006
Figure 7. Distribution of datasets.
Figure 7. Distribution of datasets.
Energies 10 00884 g007
Figure 8. Results from 5 June 2015 for the ARMA model and the neural network model with a (a) 5-, (b) 10- and (c) 15-sample prediction horizon for the CIESOL building; and with a (d) 5-, (e) 10- and (f) 15-sample prediction horizon for the PV system. ( Energies 10 00884 i001) Measured, ( Energies 10 00884 i002) ARMA model, ( Energies 10 00884 i003) NN model.
Figure 8. Results from 5 June 2015 for the ARMA model and the neural network model with a (a) 5-, (b) 10- and (c) 15-sample prediction horizon for the CIESOL building; and with a (d) 5-, (e) 10- and (f) 15-sample prediction horizon for the PV system. ( Energies 10 00884 i001) Measured, ( Energies 10 00884 i002) ARMA model, ( Energies 10 00884 i003) NN model.
Energies 10 00884 g008
Figure 9. Results for one day during the autumn-winter season from the ARX model and the neural network model with a (a) 5-, (b) 10- and (c) 15-sample prediction horizon; and for one day during the spring-summer with a (d) 5-, (e) 10- and (f) 15-sample prediction horizon for the greenhouse. ( Energies 10 00884 i001) Measured, ( Energies 10 00884 i002) ARX model, ( Energies 10 00884 i003) NN model.
Figure 9. Results for one day during the autumn-winter season from the ARX model and the neural network model with a (a) 5-, (b) 10- and (c) 15-sample prediction horizon; and for one day during the spring-summer with a (d) 5-, (e) 10- and (f) 15-sample prediction horizon for the greenhouse. ( Energies 10 00884 i001) Measured, ( Energies 10 00884 i002) ARX model, ( Energies 10 00884 i003) NN model.
Energies 10 00884 g009
Figure 10. Total energy demand for a ( Energies 10 00884 i001) sunny day and a ( Energies 10 00884 i004) day with passing clouds.
Figure 10. Total energy demand for a ( Energies 10 00884 i001) sunny day and a ( Energies 10 00884 i004) day with passing clouds.
Energies 10 00884 g010
Figure 11. Sunny day case. (ac) Optimal energy distribution where ( Energies 10 00884 i003) P s o l a r , ( Energies 10 00884 i001) P G r i d P u r c h , ( Energies 10 00884 i005) P G r i d S a l e , ( Energies 10 00884 i002) P B A T C H and ( Energies 10 00884 i006) P B A T D I S C H and (df) state of charge of the batteries. Results with a 6- (a,d), 10- (b,e) and 15-sample (c,f) prediction horizon.
Figure 11. Sunny day case. (ac) Optimal energy distribution where ( Energies 10 00884 i003) P s o l a r , ( Energies 10 00884 i001) P G r i d P u r c h , ( Energies 10 00884 i005) P G r i d S a l e , ( Energies 10 00884 i002) P B A T C H and ( Energies 10 00884 i006) P B A T D I S C H and (df) state of charge of the batteries. Results with a 6- (a,d), 10- (b,e) and 15-sample (c,f) prediction horizon.
Energies 10 00884 g011
Figure 12. Cloudy day case. (ac) Optimal energy distribution where ( Energies 10 00884 i003) P s o l a r , ( Energies 10 00884 i001) P G r i d P u r c h , ( Energies 10 00884 i005) P G r i d S a l e , ( Energies 10 00884 i002) P B A T C H and ( Energies 10 00884 i006) P B A T D I S C H and (df) state of charge of the batteries. Results with a 6- (a,d), 10- (b,e) and 15-sample (c,f) prediction horizon.
Figure 12. Cloudy day case. (ac) Optimal energy distribution where ( Energies 10 00884 i003) P s o l a r , ( Energies 10 00884 i001) P G r i d P u r c h , ( Energies 10 00884 i005) P G r i d S a l e , ( Energies 10 00884 i002) P B A T C H and ( Energies 10 00884 i006) P B A T D I S C H and (df) state of charge of the batteries. Results with a 6- (a,d), 10- (b,e) and 15-sample (c,f) prediction horizon.
Energies 10 00884 g012
Figure 13. Total energy (kW) used on a sunny day (a,c,e,g) and a day with passing clouds (b,d,f,h) where ( Energies 10 00884 i007) is Scenario 2 and ( Energies 10 00884 i008) is Scenario 3.
Figure 13. Total energy (kW) used on a sunny day (a,c,e,g) and a day with passing clouds (b,d,f,h) where ( Energies 10 00884 i007) is Scenario 2 and ( Energies 10 00884 i008) is Scenario 3.
Energies 10 00884 g013
Table 1. Sensory system installed in the greenhouse.
Table 1. Sensory system installed in the greenhouse.
VariableModel
Inside of the greenhouse
Temperature and humidityHMP45a, Vaisala, Finland
Global radiationMRG-1P, ITC, Almeria, España
CO2 concentrationUA-06, PRIVA B.V., De Lier, Holanda
Outside of the greenhouse
Temperature and humidityHMP45a, Vaisala, Finland
Photosynthetic Active RadiationPAR Lite
Global radiationMRG-1P, ITC, Almeria, Spain
Wind speedModel 12102, R. M. Young Company, Traverse City, Michigan, USA
Wind directionD-034B-CA, Delta-T Devices Ltd, Cambridge, United Kingdom
CO 2 concentrationZFP–DZ, Siemens, Munich, Germany
RainWS 10 R, JUNG Electro Iberica S.A. Barcelona, Spain
Energy demandSINEAX M 561 with 1, 2 resp. 3 analog outputs
Table 2. Summary for the PV module.
Table 2. Summary for the PV module.
Module TypeA−222P
Peak Power Module (Wp)222
Inverter modelCICLO 3000
Grid connection3−phase
Electrical characteristics
Electricity power (Watts [W] ± 2 % )222 W
Number of cells in series60
Current maximum power point (Imp [A])7.44 A
High voltage power point (Vmp [V])29.84 V
Short circuit current (Isc [A] )7.96 A
Open circuit voltage (Voc [V])37.20 V
Temperature coefficient of Isc ( α ) 2.30 mA C
Temperature coefficient of Voc ( β ) 127.20 mV C
Maximum system voltage [V]700 V
Table 3. Main battery features.
Table 3. Main battery features.
TypeSP125-12
Height242 mm
Width171 mm
Weight 38,400  g
Voltage12 V
Capacity125 Ah
Table 4. Performance indexes for the prediction model of the CIESOL building and the PV system with 5-, 10- and 15-sample prediction horizons.
Table 4. Performance indexes for the prediction model of the CIESOL building and the PV system with 5-, 10- and 15-sample prediction horizons.
SubsystemIndexes5 Samples10 Samples15 Samples
ARMANNARMANNARMANN
MSE0.3130.2912.1742.0025.8934.949
CIESOLRMSE0.5590.5391.1471.4152.4272.224
BuildingMAPE0.5940.5821.6011.4812.5872.332
R 2 0.9860.9870.9080.9150.7510.791
MSE3.6533.5245.3645.0106.65236.468
PVRMSE1.9111.8772.3162.2382.5542.543
systemMAPE8.5768.11512.12611.21315.18913.448
R 2 0.9970.9970.9960.9960.9950.995
Table 5. Performance indexes for the greenhouse prediction model with 5-, 10- and 15-sample prediction horizons.
Table 5. Performance indexes for the greenhouse prediction model with 5-, 10- and 15-sample prediction horizons.
SeasonIndexes5-Samples10-Samples15-Samples
ARXNNARXNNARXNN
autumn-winterMSE0.7971.1266.6557.63919.30521.101
RMSE0.8931.0612.5792.7644.3934.593
MAPE11.33423.23534.14665.02648.953106.51
R 2 0.9900.9860.9190.9070.7670.745
spring-summerMSE0.0280.0280.2150.2590.6611.032
RMSE0.1670.1700.4630.5090.8131.016
MAPE5.3448.23113.9822.08126.09840.723
R 2 0.9850.9850.8900.8670.6630.473
Table 6. Index Δ of the performance for the differences between Scenarios 2 and 3 on a sunny day and a day with passing clouds.
Table 6. Index Δ of the performance for the differences between Scenarios 2 and 3 on a sunny day and a day with passing clouds.
Day Δ Prediction Horizon (Min)
6789101112131415
Sunny Δ 1 , 2 4.923.271.928.455.702.953.048.323.517.56
day Δ 1 , 3 6.173.408.128.8211.2412.601.661.932.152.02
Day with Δ 1 , 2 1.256.617.1815.4910.1613.4112.466.9510.238.55
passing clouds Δ 1 , 3 4.6810.019.8317.0617.6018.9118.5413.696.683.30

Share and Cite

MDPI and ACS Style

Hernández-Hernández, C.; Rodríguez, F.; Moreno, J.C.; Da Costa Mendes, P.R.; Normey-Rico, J.E.; Guzmán, J.L. The Comparison Study of Short-Term Prediction Methods to Enhance the Model Predictive Controller Applied to Microgrid Energy Management. Energies 2017, 10, 884. https://doi.org/10.3390/en10070884

AMA Style

Hernández-Hernández C, Rodríguez F, Moreno JC, Da Costa Mendes PR, Normey-Rico JE, Guzmán JL. The Comparison Study of Short-Term Prediction Methods to Enhance the Model Predictive Controller Applied to Microgrid Energy Management. Energies. 2017; 10(7):884. https://doi.org/10.3390/en10070884

Chicago/Turabian Style

Hernández-Hernández, César, Francisco Rodríguez, José Carlos Moreno, Paulo Renato Da Costa Mendes, Julio Elias Normey-Rico, and José Luis Guzmán. 2017. "The Comparison Study of Short-Term Prediction Methods to Enhance the Model Predictive Controller Applied to Microgrid Energy Management" Energies 10, no. 7: 884. https://doi.org/10.3390/en10070884

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop