Next Article in Journal
An Accurate Discrete Current Controller for High-Speed PMSMs/Gs in Flywheel Applications
Next Article in Special Issue
A Combined Multi-Level Perspective and Agent-Based Modeling in Low-Carbon Transition Analysis
Previous Article in Journal
Long-term Static and Operational Reserves Assessment Considering Operating and Market Agreements Representation to Multi-Area Systems
Previous Article in Special Issue
Management and Activation of Energy Flexibility at Building and Market Level: A Residential Case Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Energy Management in a Standalone Microgrid, with Photovoltaic Generation, Short-Term Storage, and Hydrogen Production

1
Institut de Robòtica i Informàtica Industrial, CSIC-UPC, Llorens i Artigas 4-6, 08028 Barcelona, Spain
2
Intergia Energía Sostenible S.L., C/María de Luna 11, nave 19, 50018 Zaragoza, Spain
3
LIFTEC, CSIC-Univ. of Zaragoza, C/María de Luna 10, 50018 Zaragoza, Spain
*
Author to whom correspondence should be addressed.
Energies 2020, 13(6), 1454; https://doi.org/10.3390/en13061454
Submission received: 16 February 2020 / Revised: 11 March 2020 / Accepted: 16 March 2020 / Published: 20 March 2020

Abstract

:
This paper addresses the energy management of a standalone renewable energy system. The system is configured as a microgrid, including photovoltaic generation, a lead-acid battery as a short term energy storage system, hydrogen production, and several loads. In this microgrid, an energy management strategy has been incorporated that pursues several objectives. On the one hand, it aims to minimize the amount of energy cycled in the battery, in order to reduce the associated losses and battery size. On the other hand, it seeks to take advantage of the long-term surplus energy, producing hydrogen and extracting it from the system, to be used in a fuel cell hybrid electric vehicle. A crucial factor in this approach is to accommodate the energy consumption to the energy demand and to achieve this, a model predictive control (MPC) scheme is proposed. In this context, proper models for solar estimation, hydrogen production, and battery energy storage will be presented. Moreover, the controller is capable of advancing or delaying the deferrable loads from its prescheduled time. As a result, a stable and efficient supply with a relatively small battery is obtained. Finally, the proposed control scheme has been validated on a real case scenario.

Graphical Abstract

1. Introduction

One of the most important elements in the modern is energy, which has usually been obtained from fossil fuels. However, their availability is limited, and their negative effects on the environment have been widely reported. A lot of research has been performed on the social-economic impact of CO 2 emissions [1], and the possible collapse of a society with finite energy sources [2]. In consequence, the interest in developing renewable energy sources (RES) and increasing its energy market share has rapidly grown in recent years. As a result, the transition to renewable energy poses new challenges, due to its intrinsic characteristics.
On the one hand, power systems require a continuous balance between the demand and supply of energy. Nevertheless, the variability and unpredictability of renewable sources, particularly wind and solar, may cause deviations in the parameters of the supply network [3]. An approach to renewable integration is to compensate the variability with short-term energy storage subsystems (ESS) [4], which can store the surplus energy and supply it when the generation is insufficient. On the other hand, the ubiquity of the solar resource allows the generation to be distributed near the points of use. Thus, the integration of renewable energy has encouraged the decentralization of power systems, through distributed generation and storage. In the literature, on-site generation and ESS are usually called “distributed energy resources” (DERs) [5]. The implementation of DERs and consumption points that can be disconnected from the utility grid, working autonomously and acting as a single controllable entity is usually named a microgrid [5].
Regarding standalone systems, there are several available options in terms of components, system architecture, and configuration [6]. The energy production depends on renewable resources, which presents variability and uncertainty. In consequence, the design and sizing of the system based in solar energy is a complex task [7], which requires estimating the balance between production and consumption [8]. As for the photovoltaic generation, in addition to its size other characteristics must be determined, such as the orientation and tilt of the solar panels. All this will determine energy production, but always depends on the variations of the solar resource. In the short term, ESS can follow the demand curve, if there is enough stored energy. In fact, to obtain some security for the energy supply, it is necessary to oversize the photovoltaic system, the ESS, or both. As a result, there will be a surplus of energy in the long term. In practice, the oversize can be avoided by hybridization with diesel generation [9]. This is one of the main causes that make it difficult to achieve the economic optimum of a standalone system with 100% RES. Therefore, it is important to reduce the need for oversizing and, if possible, to harness the energy surplus.
One of the key parts of the technical and financial viability of the microgrid is the selection of an adequate storage system. The lead-acid battery is a relatively economic ESS, widely used in microgrid applications however, lead-acid batteries present a short lifetime, especially in cycling operations [10]. In order to minimize the economic costs and degradation of the storage system, the optimal battery size has to be determined [11]. For this reason, several technical and financial indicators must be considered, including an estimation of the effort of the battery throughout its lifetime.
From a manageability point of view, energy sources can be classified as dispatchable sources (for example, a genset) or non-dispatchable sources (for example, wind turbines or photovoltaic arrays). Similarly, loads accept a similar classification, non-deferrable loads (whose operating timing cannot be modified), and deferrable ones (whose operating timing can be managed in a flexible manner) [12], the so-called demand side management (DSM) [4]. Thus, dispatchable sources and deferrable loads offer additional degrees of freedom to improve system performance if they are properly handled. Efficient control schemes may reduce the effort of the battery, therefore reducing operational costs of the energy storage system and, proportionally, of the microgrid system. The model predictive control (MPC) is a suitable control scheme for this type of system. Multiple works can be found in the literature that describe the benefits of this control strategy. There are examples of MPC algorithms being applied to minimize operating costs of energy storage systems [13], optimize a multiobjective cost function in AC/DC microgrids [14], control an offshore wind farm [15], control a reconfigurable inverter in a standalone PV-wind-battery microgrid [16] and control a microgrid with hydrogen production and consumption [17].
In this paper, the MPC technique is used in the context of a standalone microgrid, which supplies the energy demanded for the wastewater treatment plant of a winery. The generation of this microgrid is 100% photovoltaic. That is, in the microgrid under study, some loads are deferrable while the energy sources are non-dispatchable. The main contribution of this work is to propose an energy management strategy that will optimally manage the design performance taking into account the loads and RES characteristics. The proposed methodology will be based on the MPC. This type of algorithm requires forecasting the RES and loads behavior. As the microgrid will operate in island mode, isolated from the main grid, a methodology to predict the RES behavior will also be included in the algorithm. The main novelty of this work is the combination of a relatively simple and comprehensive model, which includes: A solar irradiance prediction algorithm, a battery model, and a hydrogen generation model with a MPC algorithm that, through re-scheduling of deferrable loads and controlling the solar panel’s power output, reduces the microgrid’s battery cycling. The proposed control scheme is shown to be implementable in a real case scenario and is compared with an existing energy management system. It is shown that the presented scheme provides a better matching between the demand and supply, improves the microgrid’s reliability, and reduces battery effort.
The work is organized as follows, Section 2.1 contains a description of the different elements which compose the microgrid; Section 2.2 describes the methodology used to predict the solar irradiance; Section 2.3 describes the battery model and its tuning; Section 2.4 contains a description of the hydrogen facility; and Section 3.3 describes the control problem and the developed energy management algorithm. Section 4 contains several results and finally Section 5 contains some conclusions, limitations, and future works.

2. System Modeling

This section describes the microgrid that will be considered. It corresponds to the standalone RES placed at the Viñas del Vero winery, which is located in the Somontano region, in the north of Aragon (Spain) [18,19]. The energy consumed in the winery’s wastewater treatment plant and the irrigation system is supplied with a set of photovoltaic panels. Furthermore, a lead-acid battery is used as a short-term ESS and the surplus energy produced by the PV system is converted into hydrogen by water electrolysis. This hydrogen is eventually supplied to a fuel cell hybrid electric vehicle. In Figure 1, a general scheme of the system is depicted. All variables and parameters used in the model are depicted in Table 1.

2.1. Description of the Facilities

The microgrid electrical distribution network was designed with an AC bus architecture, to which the PV panels, the battery, and the power consumers are directly or indirectly connected. It operates at 400 V and 50 Hz, and it is regulated by the inverters connected to the battery. No connection to the general distribution network exists, i.e., the microgrid works in isolated operation mode.
The system could work without the production of hydrogen. However, as usual in standalone systems with 100% renewable generation, there would be a high percentage of surplus energy, which could not be used. This happens when the production is greater than the consumption and the battery is fully charged. This hydrogen is extracted from the system, by refuelling a fuel cell electric vehicle.

2.1.1. Solar Photovoltaic System

A set of solar photovoltaic panels is used as the main energy source. Three different PV arrays on different supports are available: A fixed structure on the ground, a floating structure on the pond of the wastewater treatment plant, and a two-axis solar tracker.
The DC power generated by the solar panels is transferred to the AC bus through a group of DC/AC three-phase solar power inverters. These inverters include maximum power point trackers (MPPT) to ensure that the solar cells work at the optimum point of their voltage-current curve, which varies depending on the incident radiation. The inverters can be regulated to produce only a percentage of the available energy. Thus, in terms of the energy management algorithm the solar inverters will be a controllable input of the system.

2.1.2. The Battery Storage System

The microgrid contains a lead-acid battery bank which is used as a low-term ESS. The battery is connected to the AC bus through a set of battery inverters (one for each phase). These inverters are also responsible for maintaining the voltage and frequency parameters of the microgrid.

2.1.3. The Power Consumers

The PV electric power is used to supply the winery’s wastewater treatment plant and the irrigation system. Specifically, this energy demand includes the power consumed by the water treatment plant (aerators), a set of elevation pumps used for irrigation, and a system of hydrogen production used to fuel a hybrid electrical vehicle [20]. Moreover, the aerators are power loads that can be advanced or postponed from its scheduled time. This re-schedule of the load will be managed by the controller proposed in this work.

2.2. Estimation of Solar Irradiance

The energy production system is a set of solar panels, which transforms solar radiation into electric energy. In order to design a predictive control, it is necessary to have some knowledge about the future of the system. Although nowadays there exist excellent weather forecast services they are usually available in isolated areas. Thus, it is crucial to develop a model that forecasts the solar resource received by the panels, and more specifically, its clear-sky direct normal irradiance (DNI).
In the literature, clear-sky DNI is defined as the direct solar irradiance that did not interact with the atmosphere and is received by a plane normal to the sun [21]. Two types of clear-sky DNI forecasting models can be found in the literature: Radiative transfer models and empirical ones [22]. Radiative transfer models are based on an accurate estimation of the atmosphere’s state. Although this type of model estimates clear-sky DNI with really high accuracy [23], it is necessary to compute complex calculations using data difficult to be obtained. As a consequence, radiative transfer models are not convenient for predictive control. In this work, an empirical model based on [24] is used.

2.2.1. Solar Constant

The solar constant G s c is the solar radiation per unit of time received on a unit area of a surface perpendicular to the direction of circulation of the radiation at an average earth-sun distance without considering the atmosphere [25]. A constant value of G s c = 1360 . 8 W/m 2 [25] is the most used value in the industry however there are some sources of variation. The elliptic orbit of the earth around the sun induces a variation, up to 3.3%, of the solar radiation. This dependence can be represented by the following equation [26]:
G o n = G s c 1 + 0 . 034 cos 2 π n n d
where n d is the number of days in the year, n d = 365 or 366 (leap-years). And n is the day number, n [ 1 , n d ] . The modified solar constant ( G o n ) represents the power received from the sun on a plane normal to the direction of propagation.

2.2.2. Geometric Considerations

Solar panels may not always be normal to solar radiation, thus it is necessary to define the geometric relationship between the solar radiation and a surface arbitrary oriented and positioned on earth. With this objective in mind, a set of angles is defined as depicted in Figure 2:
  • Latitude ( φ ): Geographic coordinate that specifies the north-south position of the surface’s center;
    90 ° φ 90 °
  • Declination ( δ ): The angular position between the sun on the local meridian and the plane of the equator;
    23 . 45 ° δ 23 . 45 °
    Which can be estimated with the following equation [27]:
    δ = 23 . 45 sin 2 π 284 + n n d
    where n d and n are defined in Equation (1);
  • Slope ( β ): The angle between the surface’s plane and the horizontal plane;
  • Surface azimuth angle ( γ ): Angle between the surface’s vector of the perpendicular projection on a horizontal plane and the south vector;
    180 ° γ 180 °
  • Hour angle ( ω ): The angular variation of the local meridian due to rotation of the earth, at 15 per hour;
    180 ° ω 180 °
  • Zenith angle ( θ z ): Angle between the solar radiation and the zenith of the panel;
    90 ° θ z 90 °
  • Angle of incidence ( θ ): Angle between the direct radiation on a surface and the normal to that surface;
The angle of incidence can be derived from this set of angles [28] as follows:
cos θ = sin δ sin φ cos β sin δ cos φ sin β cos γ + cos δ cos φ cos β cos ω + cos δ sin φ sin β cos γ cos ω + cos δ sin β sin γ sin ω
The angle θ may exceed the 90°, which means the sun is behind the surface. In photovoltaic applications this fact implies null generation from the panels.

2.2.3. Geometric Considerations for Tracking Surfaces

The solar photovoltaic system includes a PV array mounted on a two-axis solar tracker, which continuously changes the surface slope ( β ) and azimuth angle ( γ ) in order to minimize the angle of incidence and to maximize the solar irradiance captured by the panels. In this context, the following assumption can be made cos θ = 1 .

2.2.4. Extraterrestrial Irradiance

The defined set of angles and the modified solar constant can be used to estimate the solar radiation received by the panels as G b , τ = G o n cos θ . This estimation does not include the effects of the atmosphere and, for this reason, the calculated irradiance is known as extraterrestrial irradiance.
Each PV array include a pyranometer that measures the solar irradiance that reaches perpendicularly the panels’ plane. In Figure 3, the difference between the computed extraterrestrial radiation and actual irradiance measured at the panels’ pyranometer is shown.
It can be seen that the extraterrestrial irradiance values are significantly higher than the measured ones. This is due to the fact that the solar radiation must cross the earth’s atmosphere and react with its elements before reaching the solar panels. The inclusion of this attenuation in the model is explained in Section 2.2.5.

2.2.5. Atmospheric Attenuation and Clear-Sky Irradiance

Solar radiation is subject to variations as it crosses the terrestrial’s atmosphere. Under cloudless skies, there are two significant phenomena that induce some attenuation to the solar radiation:
  • Scattering as the radiation interacts with the atmospheric molecules;
  • Absorption of the radiation by the molecules O 3 , H 2 O , and C O 2 .
In [24] a model of the atmosphere attenuation based on a modification of the Kasten-reviewed Linke turbidity coefficient ( T L ) [29] is proposed as:
I c s = b G b , τ e 0 . 09 m T L 1 ,
where I c s is the attenuated extraterrestrial irradiance or clear-sky DNI and b is a correction coefficient defined as follows [24]:
b = 0 . 0664 + 0 . 163 e h 8000 .
The parameter h is the panel’s height above sea level in meters and m is the relative optical air mass. In [30] a formulation dependent on the zenith angle ( θ z ) is proposed:
m = 1 cos θ z + 0 . 1013 θ z 94 . 37515 θ z 180 π 1 . 21563 .
The value T L is the modified Linke turbidity coefficient and can be computed in the following way [24]:
T L = 11 . 1 m ln b G b , τ I ,
where I is the normal irradiance measured by a pyranometer located at the surface of the solar panel.
As illustrated in [21] the turbidity coefficient is relatively stable throughout cloudless daylight hours. In [31] the following day-ahead clear-sky DNI forecast is proposed:
I c s = b G b , τ e 0 . 09 m T L , n 1 1 ,
where T L , n 1 is the daily mean value of the atmospheric turbidity of the previous day and n is the number of the day n [ 1 , n d ] .
Moreover, in the computation of T L , n 1 , two constraints are imposed:
  • Atmospheric turbidity values corresponding to solar zenith angles greater than 75° are removed;
  • A minimum number of 60 clear-sky data is needed. Otherwise, the most recent historical clear-sky data is used.
In Figure 3, the difference between the actual irradiance measured at the panels’ pyranometer, the computation of the day-ahead clear-sky DNI forecast, and the computed extraterrestrial irradiance is represented. It can be seen that the model presented in this section forecasts the clear-sky DNI with more precision than the extraterrestrial irradiance model. Using the root mean square error (RMSE) as a performance indicator, it can be observed that the RMSE has been reduced from 142.36 W m 2 to 35.13 W m 2 .

2.2.6. Solar Energy Conversion

The solar panels convert solar radiation into DC electric energy, which will be converted into an AC current through the corresponding power inverters. In this process, a series of efficiencies must be taken into account.
  • Solar panel efficiency ( η p ) : Relation between the solar radiation perpendicular to the panel surface and the output of electric energy from the panel;
  • Inverter efficiency ( η i n v ) : Relation between the output AC electric energy and the input of DC electric energy.
Thus, the electric energy that the AC bus will receive from the solar panels can be estimated for any given solar radiation by:
P o u t p u t = N S η i n v η p I c s
where N is the number of solar panels, S is its individual area, and I c s is the perpendicular solar radiation that reaches its surface.
In this work, a set of solar inverters acts as an interface between the DC grid of the solar panels and the AC bus of the microgrid. These inverters can be controlled for power regulation between the photovoltaic system and the microgrid. Therefore, the electrical energy introduced to the system through the solar panels’ inverters ( P S O L ) is a controllable input of the microgrid. Obviously, this input will be bounded by the available solar energy, i.e., 0 P S O L P o u t p u t .

2.3. The Battery Storage Model

2.3.1. Battery Model

A battery is an electrochemical device capable of converting chemical energy into an electrical one (discharging) and vice versa (charging). In order to implement a predictive management strategy, a model that approximates the battery’s performance is needed.
In energy management systems, an essential variable is the amount of energy stored in the battery, which can be quantified with the state of charge (SOC). The definition of SOC is the ratio of the remaining capacity to the nominal capacity of the battery, which can be described as,
S O C = 1 C n 0 t f I B A T d t .
Thus, the prognostication of the battery’s SOC consists in an estimation of the future charging and discharging currents ( I B A T ), which can be deduced from the prediction of the energy generated by the photovoltaic panels and the scheduled energy consumption of the system. Assuming that the MPC will work with a low sampling rate, a quasi-stationary model of I B A T evolution could be implemented.
The battery can be modeled as a voltage source ( U B A T , o c ), also called open circuit voltage, connected to an internal resistance ( R B A T ) [32]. The circuit is depicted in Figure 4. In this scheme, the terminal voltage of the battery is given by:
U B A T = U B A T , o c R B A T I B A T ,
where U B A T is the terminal voltage. The current yielded by the battery is computed from the power demanded to the battery P B A T :
P B A T = U B A T , o c I B A T R B A T I B A T 2
I B A T = U B A T U B A T , o c 2 4 R B A T P B A T 2 R B A T
where I B A T is defined positive while discharging.
Furthermore, the battery’s open circuit voltage ( U B A T , o c ) depends on the state of charge (SOC) and several other factors as thermal effects and filtered battery current [33]. In the microgrid under consideration the batteries are inside a temperature-controlled room, so temperature can be assumed constant and thermal effects will not be taken into account.
Described battery equations are nonlinear, this makes it difficult to apply optimizers, so a linear version of them has been developed. With this perspective, the battery charging/discharging current ( I B A T ) can be assumed to be constant and equal to the nominal value I B A T = I B A T , n o m . Consequently the open circuit voltage can be considered nearly constant [34].
Figure 5 shows the battery open circuit voltage, obtained from experiments, as a function of the SOC. In the range 0 . 5 S O C 0 . 85 the variation of U B A T , o c is less than 2 volts, it allows one to validate the previous assumption.
Battery losses can be characterized through constant efficiencies α c h / α d c h . Consequently, the following linear characterization of the battery SOC can be developed from Equation (10):
d S O C d t = 1 C n I B A T = 1 C n U B A T , o c P B A T
The power that is charged or discharged from the battery P B A T depends on the difference between the power generated by the photovoltaic panels, P S O L , and the power consumed by the system P c . Hence, two expressions can be obtained from Equation (14):
d S O C d t = P c P S O L 1 C n U B A T , o c η i n v α c h P S O L P c P c > P S O L 1 C n U B A T , o c η i n v α d c h P S O L P c
where η i n v is the efficiency of the battery inverters.
Figure 6 shows a comparison between the measured data and computed one. The inputs of the model are the profiles of P S O L and P c measured online with the system inverters, depicted in Figure 7.

2.3.2. Battery Degradation

Degradation is one of the main disadvantages of this electrochemical ESS. In the case of microgrids, the estimated lifetime of the battery is lower than that of the other elements of the system, thus, the maintenance and renovation of the battery system is a crucial cost of the microgrid. With this premise, it seems reasonable to include the battery degradation as one of the criteria to be minimized.
The rate of capacity loss is a complex nonlinear process dependent on factors as the state of charge (SOC), temperature, depth of discharge (DOD), discharge rate, time, and the environmental conditions of the battery [35]. In this work, it is assumed that the temperature and environmental conditions of the battery cannot be modified, as they are stored in a temperature-controlled room, thus, these factors will not be taken into account.
With this assumption, the concept of Ah-throughput can be used to estimate the battery’s lifetime [36]. Ah-throughput represents the quantity of charge delivered by the battery. It is expected that there is an amount of Ah-throughput that can circulate through the battery before it reaches the end of lifetime (EOL) [37].
In order to understand the concept of Ah-throughput it is necessary to introduce two new variables:
  • C r a t e : The ratio between the battery current and its nominal capacity;
    C r a t e = | I B A T | C n
  • Depth of Discharge (DOD): The complementary of the SOC.
    D O D = 100 S O C
The nominal current of the battery I n o m is the current produced if the battery is charged/discharged with a C r a t e = 1 , depth of discharge of D O D = 100 % , and temperature of 25 ° C. Then, the nominal Ah-throughput of a battery is defined as:
A h n = 0 E O L | I n o m | d t .
For an arbitrary battery current, the effective Ah-throughput can be computed as:
A h = 0 t f | I B A T | σ d t
where σ is the severity factor, which depends on the C r a t e and the DOD. In this study, the battery’s nominal capacity is large enough to assume that the C r a t e will always be below 2, hence the severity factor has a negligible effect and can be considered to be one [38].
Finally, the battery lifetime B l can be computed as,
B l = A h A h n 100 [ % ] .
It can be observed that a reduction in the effective Ah-throughput can lead to an extension of the battery lifetime. Thus, a reduction in the charge/discharge currents I B A T requested to the battery can lead to a significant extension of the battery lifetime.

2.4. Hydrogen Generation Facility

The variability and unpredictability of the solar energy source might be compensated with a battery system, which stores the energy excess of high irradiance hours and supplies it to the loads in low irradiance hours. However, in some conditions, the solar inverters might have to reduce the generation of electrical energy. For example, when the generation exceeds the energy demand and the battery bank is too stocked to store it. This generation reduction is a direct energy loss that has to be avoided. For this reason, it is convenient to have an auxiliary system that can utilize this energy surplus.
In the scenario under study [18,39], there is a facility that generates hydrogen in order to refuel a fuel cell hybrid electrical vehicle. The main element of this subsystem is an alkaline electrolyser ACTA EL-500, which produces hydrogen through the electrolysis of water. When conditions of energy excess and high battery’s SOC are faced, the energy management system turns on the hydrogen facility so solar energy is not wasted. However, in some cases, it is advantageous to start the hydrogen production before these conditions are met. For this reason, further optimization can be achieved if the hydrogen scheduling problem is solved with the predictive approach.
The hydrogen facility will be modeled as an ON/OFF system. In the state ON the hydrogen facility will demand the operational power of its components. In the state OFF, the hydrogen facility will be supplied with a fraction of the electrolyser operational power, as too low energy supply may create hazardous conditions for the alkaline electrolyser. Therefore, the hydrogen facility is always supplied with some energy. The difference between an active hydrogen facility (state ON) or inactive (state OFF) is the amount of energy demanded. The activation of the hydrogen facility will be a controllable input of the microgrid.

3. Control Problem

3.1. Introduction

For the formulation of the control problem, it is convenient to define the controllable inputs and the measured variables needed by the controller. Accordingly, the controllable inputs can be characterized as follows:
  • P S O L : Real variable depicting the electrical energy introduced to the system through the inverters of the solar panels. Note that this variable will be bounded by the available solar energy;
  • v d : Binary signal that activates the time flexible load d. The loads that are time inflexible will not be governed by the controller of this work;
  • α : Binary signal that governs the activation of the hydrogen facility.
In order to compute the control action, the controller needs to have some knowledge about the state of the system. In this work, the controller requires information about the batteries’ state of charge. Moreover, in order to estimate the solar irradiance ( I c s ), it is necessary to compute the daily mean of the atmospheric turbidity ( T L , n 1 ). This computation involves the measure of solar irradiance (I). Finally, the MPC requires the knowledge of the loads schedule, P c f l and P c i f l . In Figure 8, the general control scheme can be seen.
Model predictive control (MPC) is a well-known control strategy that has proven to provide positive results in applications where tight performance is needed under several process constraints [40]. The main concept of MPC is to use a model to predict the behavior of the system and then apply an optimization technique in order to determine a control action that enhances the predicted behavior [41]. In predictive schemes, at each time step, the current control input is found by solving a finite horizon optimization problem.
The main elements of the MPC are the model used to compute the predictions, the cost function to be minimized, the process constraints to be satisfied, and the prediction horizon of the optimization. All the MPC’s decision variables and parameters to be used are summarized in Table 2.

3.2. Cost Function Definition

The MPC’s algorithm aims to minimize the cost function with the proper selection of the control action. Hence, the cost function has to be a description of the desired control objectives, which, in this work, can be defined as follows:
  • To ensure that the demand of the system can be afforded;
  • To maximize the production of H 2 from the hydrogen facility;
  • To avoid actions that can damage the battery system.
The first control objective is considered to be mandatory and for this reason it will be introduced as a hard constraint instead of a term of the cost function.
The rest of the control objectives will be directly included in the cost function:
  • Large discharge rate of the battery is one of the main factors that contributes to its degradation, due to this, the following term will be included:
    J 1 ( k ) = ( P B A T d c h ( k ) ) 2 ;
  • Maintaining the batteries around a reasonable SOC is crucial to ensure the uninterrupted supply of the power to the scheduled energy consumption. To accomplish this the following term is included:
    J 2 ( k ) = ( S O C ( k ) S O C ¯ ) 2 ,
    where S O C ¯ corresponds to the reference value.
    In cases where the microgrid is not self-sufficient, the reference value S O C ¯ may not be trackable by just the RES generation and it may be necessary to exchange energy with the grid. In such cases, the viability of the control scheme can be studied through indicators such as energy-independence and self-supply [39,42], which could be optimized by adding an additional term in the cost function that penalizes the exchange with the grid [39];
  • To maximize the production of hydrogen, the following term is considered:
    J 3 ( k ) = ( α ( k ) ) 2 .
All these terms will be combined in the cost function as:
J ( k ) = c 1 J 1 ( k ) + c 2 J 2 ( k ) + c 3 J 3 ( k ) ,
where c 1 , c 2 and c 3 are three weighting terms to be fixed.

3.3. Characterization of Time Flexible Loads

Some loads could be described as time flexible, meaning that they can be advanced or delayed from the scheduled time [18]. In this work, it is considered that the consumption of the aerators of the wastewater treatment system can be shifted in time. This flexibility can be used to readjust the load schedule to the variability of renewable supply, which may result in a reduction of the size and use of the battery system.
In the following, how these loads can be modeled in order to introduce them in the optimization problems will be described.
An energy load can be characterized by a constant power demand D that has to be supplied during a minimum of L consecutive sampling time intervals, from a scheduled starting time, T 0 , to an end time, T 0 + L , depicted in Figure 9. In other words, they can be advanced or delayed some time from the scheduled starting time, T 0 . Note that only the starting time is modified, the minimum duration, L, remains invariant. Hence, a consumption load advanced n time intervals would start at time T 0 n and end at T 0 n + L .
Time flexibility is acknowledged to be bounded, thus, consumption loads can be advanced or delayed to a maximum of S l time intervals.
This formulation, in contrast to the one of the time inflexible loads, does not define a unique solution, as the consumption load can start at any sampling time k { T 0 S l , T 0 + S l } . Hence, the system flexibility is increased and a further optimization can be achieved.
The load will be represented as signal P c f l ( k ) R + which can take two values, 0 if the load is not active and D R + if it is active. In order to transform in terms of binary variables it is rewritten as :
P c f l ( k ) = z d ( k ) · D k ,
where z d ( k ) B are binary variables which will be defined over the optimization procedure.
In order that P c f l ( k ) fulfills the desired characteristics different constrains will be defined over the binary variables z d ( k ) :
(1)
To guarantee that P c f l ( k ) is active in the interval { T 0 S l , T 0 + S l } it is necessary to fulfill that :
Constraint 1 : k { T 0 S l , T 0 + S l } P c f l ( k ) E d
where E d is a constant parameter that can have any value bounded to 0 < E d < D ;
(2)
To force that P c f l ( k ) starts in some time k { T 0 S l , T 0 + S l } the following condition is also considered:
Constraint 2 : P c f l ( k ) P c f l ( k 1 ) T s l ( k ) D k
where T s l ( k ) B equals 1 if k { T 0 S l , T 0 + S l } , otherwise, T s l ( k ) = 0 ;
(3)
Finally, to ensure that P c f l ( k ) remains active at least L consecutive time intervals the following constrain is required:
Constraint 3 : k L k v d ( k ) z d ( k ) k ,
where v d B is a binary variable that is equal to 1 if and only if z d ( k ) z d ( k 1 ) = 1 . This is usually implemented including the additional constrain:
Constraint 4 : v d ( k ) z d ( k ) z d ( k 1 ) k .

3.4. Controller Formulation

The proposed controller will try to minimize the cost function defined in Section 3.2, during the system evolution. To do this, a MPC approach will the used and in this context the dynamic problem is transformed into an static one focusing in a finite horizon. To do this, the system behavior is rewritten as a set of constrain over the optimization. The first ones correspond to a discrete time version of the system dynamic, Equation (15):
S O C ( k ) = S O C ( k 1 ) + P B A T ( k )
P B A T ( k ) = α c h P B A T c h ( k ) α d c h P B A T d c h ( k ) ,
where α c h R + and α d c h R + represent charging and discharging efficiencies and P B A T c h ( k ) R + and P B A T d c h ( k ) R + correspond to the charging and discharging battery powers. Secondly, a power balance constrain is included:
P S O L ( k ) P B A T ( k ) P c i f l ( k ) P c f l ( k ) P H 2 α ( k ) = 0
where P S O L ( k ) represents the electrical power coming from the photovoltaic inverters, P c f l and P c i f l represents the power from the flexible and inflexible loads respectively loads, P H 2 represents the electrical power consumed by the electrolyser, and α ( k ) B is a binary variable used to indicate if the electrolyser is turned on or off.
To guarantee the consistency in a previous formulation, it is assumed that the charge and discharge processes cannot occur simultaneously; hence, a complementarity constraint is introduced:
b ( k ) P ¯ B A T P B A T d c h ( k ) b ( k ) P ¯ B A T
( 1 b ( k ) ) P ¯ B A T P B A T c h ( k ) ( 1 b ( k ) ) P ¯ B A T
where P ¯ B A T R + is the operational upper limit of power through the battery, and b ( k ) B is a binary variable necessary to obtain a linear complementary constraint. A part from that, some constrains are considered to ensure that all variables are inside the required ranges:
S O C ̲ S O C ( k ) S O C ¯
0 P B A T c h ( k ) P ¯ B A T
0 P B A T d c h ( k ) P ¯ B A T
where S O C ¯ and P ¯ B A T denotes the maximum value of S O C and P B A T , respectively, and S O C ̲ denotes the minimum value of S O C .
The electrical energy generated by the solar panels is constrained by the available solar irradiance, which will be estimated with the irradiance model presented in Section 2.2:
0 P S O L ( k ) P ^ S O L ( k )
where P ^ S O L ( k ) is the estimated potential generation of solar electric energy.
Finally, it is necessary to include all the constraints related to the time flexible loads described in Section 3.3.
Combining the cost function, the free variables used to obtain the optimal solution, and the set of constrains previously introduced, the following optimization problem is formulated:
min P S O L ( k ) , z d ( k ) , v d ( k ) , α ( k ) , b ( k ) = k = 1 N c 1 · J 1 ( k ) + c 2 ( k ) · J 2 ( k ) + c 3 · J 3 ( k ) s . t . S O C ( k ) = S O C ( k 1 ) + P B A T ( k ) P B A T ( k ) = α c h P B A T c h ( k ) α d c h P B A T d c h ( k ) , System dynamics P S O L ( k ) P B A T ( k ) P c i f l ( k ) P c f l ( k ) P H 2 α ( k ) = 0 Power balance b ( k ) P ¯ B A T P B A T d c h ( k ) b ( k ) P ¯ B A T , ( 1 b ( k ) ) P ¯ B A T P B A T c h ( k ) ( 1 b ( k ) ) P ¯ B A T , S O C ̲ S O C ( k ) S O C ¯ , 0 P B A T c h ( k ) P ¯ B A T , 0 P B A T d c h ( k ) P ¯ B A T , 0 P S O L ( k ) P ^ S O L ( k ) , Operational constrains k { T 0 S l , T 0 + S l } P c f l ( k ) E d P c f l ( k ) P c f l ( k 1 ) T s l ( k ) D k k L k v d ( k ) z d ( k ) k v d ( k ) z d ( k ) z d ( k 1 ) k . Flexible loads
where N corresponds to the prediction horizon discussed in Section 3.5. The overall problem contains 3 N decision variables, which are: P S O L ( k ) (real), v d ( k ) (binary), and α ( k ) (binary). It also contains N state variables, S O C ( k ) , and 5 N auxiliary variables, P B A T ( k ) , P B A T c h ( k ) , P B A T d c h ( k ) , b ( k ) , z d ( k ) . Finally, the problem contains 4 N equality constraints and ( 15 + N L + 1 ) N inequality constraints. To address this problem optimization, a mixed integer linear programming is required.

3.5. Prediction Horizon

Adopting a suitable prediction horizon is crucial to obtaining interesting results. However, selecting the correct horizon is not an obvious problem. On the one hand, implementing a large prediction horizon can be very computationally costly, as the size of the optimization problem is proportional to the size of the horizon. Moreover, the accuracy of the prediction is compromised in the final time intervals of a large horizon, especially in the prediction of the solar irradiance. On the other hand, a small prediction horizon combined with unfavorable plant characteristics can easily drive the controller unstable [41].
In this work, a prediction horizon of 24 h, with a sampling time of 10 min, has been implemented. With this horizon, the value of the factor N would be 144.

3.6. Parameter Uncertainty and Robustness

Notice that the proposed control scheme is based on a deterministic representation of the microgrid. In a realistic scenario, some uncertainty on the model’s parameters should be expected. Due to the closed loop nature of the MPC scheme, the controller is expected to present certain robustness to small parametric uncertainty. Nevertheless, the presented model is sensitive to the forecasted parameters, i.e., the solar irradiation forecast and load consumption. The next section will show that, in the considered case scenario, the proposed MPC scheme achieves acceptable results. Nonetheless, the performance of the controller could be further improved by considering a robust MPC scheme. This type of controller can achieve solutions that remain feasible even if uncertain variables are changing, which has been shown to be really useful on similar power grids problems [43,44].

4. Results and Discussion

In order to evaluate the applicability of the proposed control strategy, different simulations have been performed. The simulation has been computed in MATLAB 2018a using the optimization software CPLEX studio 12.8 with an i7–8700K processor and 16 GB of RAM. Furthermore, the simulation starts at date 9 April 2016 , has a period of 72 h, and the predicted horizon is 24 h, which results in N = 144 . The system has been subjected to a profile of energy demand that has to be supplied by the photovoltaic panels. In order to introduce some disparity between the MPC’s estimation and the simulation, the system will be subject to an experimental profile of solar irradiance, using data measured at the panels pyranometer. In summary, three profiles have been introduced to the system: An energy demand profile, an estimation of available solar energy (used in the MPC’s computations), and an experimental profile of available solar energy (used in the simulation), which are depicted in Figure 10.
It is important to remark that the profile of energy demand depicted in Figure 10, is the summation of all the system’s loads, except the power supplied to the H 2 production. Furthermore, only one of the aerators (aerator 1) schedule can be advanced or postponed up to two hours from the scheduled time.
Moreover, experimental data of the battery’s SOC under the experimental profile of solar irradiance has been acquired. This data has been used to compare the results of the MPC’s energy management with the energy management implemented in [18]. Two cases have been studied and compared with the experimental data. In the first one, no production of hydrogen and no re-schedule of the aerator 1 load was allowed. With these conditions, the behavior of the system was very similar to the one without MPC. In the second one, the controller could re-schedule the aerator consumption and activate the hydrogen facility.
The results of the simulation have been the following. In the first case, the profile of PV energy introduced to the system (control input P S O L ) has been exactly the same as the experimental PV power of Figure 10, and the profile of energy demand has also been the same as the one presented in Figure 10. The evolution of the battery’s SOC has been very similar to the one depicted in the experimental data, represented in Figure 11.
In the second case, the production of hydrogen and re-schedule of the aerator 1 load was allowed. Similar to the first case, the profile of PV energy introduced to the system (control input P S O L ) was identical to the experimental profile of available solar energy. However, some differences could be observed in the profile of energy demand, in Figure 12, and in the battery’s SOC profile, in Figure 11. On the first day, the load of the aerator 1 was advanced 60 min from its scheduled time. On the second day, the aerator 1 was advanced 10 min from its scheduled time. On the third, it was advanced 60 min from its scheduled time. This re-schedule of the loads produced a different evolution of the battery’s SOC, as depicted in Figure 11, and reduced its charge and discharge effort. A further explanation is included below.
In terms of the amount of energy cycled in the battery, in the first simulation case, the total amount of energy introduced and extracted was 180 kWh and 71 kWh, respectively. These values agreed with the experimental data. In the second case, a total amount of 177 kWh was charged to the battery (a reduction of 1.46%) and a total of 66 kWh was discharged (a reduction of 6.6%). These results show that the implemented MPC reduced the amount of energy cycled in the battery, compared to that obtained without MPC in [18]. This suggests that the inclusion of the MPC could reduce the size of the needed battery. This possibility could be taken into account when sizing the system [11], for instance, through simulation and optimization processes by genetic algorithms [9]. In this way, a reduction in the cost of the system and the energy produced was expected, similar to that obtained in [16].
It is noticeable that at the start and end of each day, the solar generation was lower than the energy demand and in consequence, a period of a fast discharge rate was requested to the battery. To reduce battery degradation, low SOC levels should be avoided. As can be seen in Figure 11, the re-scheduling of the time flexible load had reduced the discharge at the end of each day (912 min, 2355 min, and 3799 min) by increasing the discharge at the start of the day (441 min, 1900 min, and 3228 min). Moreover, the discharge increase at the start of the day was lower than the discharge reduction at the end of the day. As stated before, the charge of the battery was reduced by 1.46% and the discharge by 6.6%, therefore, the accumulated charge increased in the second simulation case. For this reason, the SOC’s value at the end of each day (1100 min, 2556 min, and 4000 min) was higher in case 2, as depicted in Figure 11, which was beneficial for the microgrid as the system became more robust to unexpected increases in system demand or unexpected reductions of the available solar energy. Furthermore, battery degradation, as well as operation and maintenance costs will be reduced [10].
In both cases, and in the experimental data, there was no activation of the hydrogen facility. In order to evaluate the benefits of the controller in terms of hydrogen production, two more simulation cases have been studied. The simulations are exactly the same as the last ones (the first without the reschedule of the aerator 1 and the second with a reschedule) but, in this instance, the battery started with 5% more SOC. In the case where a re-schedule of the aerator 1 was allowed, there was an activation of the hydrogen facility, as depicted in Figure 13. The facility was switched on in the third day for a total duration of 50 min, which implies an approximate production of 417 Nl of hydrogen. It is remarkable that, even though the power consumption increased, the major benefits of the controller, in terms of reducing the battery’s effort, could still be observed as seen in Figure 14. In this sense, the incorporation of the MPC facilitated the deviation of the energy surplus for hydrogen production, alleviating the waste of energy that is usual in standalone fully based in renewable sources and non-dispatchable generation [5].
For the suitable operation of the MPC, it is crucial that the elapsed time between MPC cycles was lower than the sampling time considered. In Figure 15, it can be seen that the elapsed time in each cycle of the second simulation case was between 0.25 and 0.04 s. This time was lower than the 10 min considered as the sampling time, therefore, the controller will not present any conflict on this issue. The other simulation cases presented a similar elapsed time evolution.

5. Conclusions

In this paper, the application of a model predictive control for energy management in a standalone microgrid, whose only generation is photovoltaic, was presented. The results showed that the energy demand was managed through changes in the schedule of deferrable loads. It should be noted that, given the predictive nature of the control developed, the management of the loads was not limited to deferring them, but also to advance them. Thus, a reduction in the amount of energy cycled in the battery was obtained. In addition, the evolution of the battery SOC was stabilized, avoiding deep discharges. These results suggest that the implementation of the MPC could reduce the need for storage, prolong the life of the battery, and reduce the investment and operating costs of the system.
Regarding the simulations performed including the production of hydrogen, its activation occurred before the battery reached a very high SOC. This avoids wasting energy that can not be stored because the battery is completely full. In addition, when the system is sized, a smaller battery size could be chosen.
New work is required to quantify the advantages obtained. Future research includes the application of the proposed model predictive control to several case studies in order to quantify the benefits obtained in terms of battery lifetime, both on energy and system costs, and on the reduction of energy surplus. Experimental validation of the proposed predictive scheme must also be carried out. Moreover, the performance of the controller could be improved with the use of more accurate models of solar irradiance and the battery subsystem, and by the implementation of more complex control schemes such as the robust or stochastic variants of the MPC.

Author Contributions

Conceptualization, R.C.-C., A.C., and V.R.; methodology, R.C.-C., A.C.; software, A.C.; validation, A.C., R.C.-C., and J.C.; formal analysis, A.C.; investigation, J.C., F.B., and V.R.; resources, J.C., F.B., and V.R.; writing—original draft preparation, A.C.; writing—review and editing, R.C.-C., J.C., and F.B.; visualization, A.C.; supervision, R.C.-C.; project administration, R.C.-C.; funding acquisition, R.C.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been partially funded by the Spanish national project DOVELAR ref. RTI2018-096001-B-C32 (MCIU/AEI/FEDER, UE). This work is supported by the Spanish State Research Agency through the María de Maeztu Seal of Excellence to IRI (MDM-2016-0656). This work is partially funded by AGAUR of Generalitat de Catalunya through the Advanced Control Systems (SAC) group grant (2017 SGR 482). This work has been done with the support of ACCIÓ (Operational Program FEDER Catalunya 2014–2020) through the REFER project (COMRDI15-1-0036-11).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
MPCModel Predictive Control
RESRenewable Energy Sources
DERDistributed Energy Resource
DSMDemand Side Management
DNIDirect Normal Irradiance
SOCState of charge
DODDepth of Discharge
EOLEnd of Life
ACAlternating Current
DCDirect Current
PVPhotovoltaic
RAMRandom Access Memory
RMSERoot Mean Square Error

References

  1. Van den Bergh, J.; Botzen, W. Monetary valuation of the social cost of CO2 emissions: A critical survey. Ecol. Econ. 2015, 114, 3–46. [Google Scholar] [CrossRef]
  2. Barreto, R.A. Fossil fuels, alternative energy and economic growth. Econ. Model. 2018, 1–25. [Google Scholar] [CrossRef] [Green Version]
  3. Mahmud, N.; Zahedi, A. Review of control strategies for voltage regulation of the smart distribution network with high penetration of renewable distributed generation. Renew. Sustain. Energy Rev. 2016, 64, 582–595. [Google Scholar] [CrossRef]
  4. Lund, P.D.; Lindgren, J.; Mikkola, J.; Salpakari, J. Review of energy system flexibility measures to enable high levels of variable renewable electricity. Renew. Sustain. Energy Rev. 2015, 45, 785–807. [Google Scholar] [CrossRef] [Green Version]
  5. Fahad Zia, M.; Elbouchikhi, E.; Benbouzid, M. Microgrids energy management systems: A critical review on methods, solutions, and prospects. Appl. Energy 2018, 222, 1033–1055. [Google Scholar] [CrossRef]
  6. Chauhan, A.; Saini, R.P. A review on Integrated Renewable Energy System based power generation for stand-alone applications: Configurations, storage options, sizing methodologies and control. Renew. Sustain. Energy Rev. 2014, 38, 99–120. [Google Scholar] [CrossRef]
  7. Al-falahi, M.D.A.; Jayasinghe, S.D.G.; Enshaei, H. A review on recent size optimization methodologies for standalone solar and wind hybrid renewable energy system. Energy Convers. Manag. 2017, 143, 252–274. [Google Scholar] [CrossRef]
  8. Ghasemi, A.; Enayatzare, M. Optimal energy management of a renewable-based isolated microgrid with pumped-storage unit and demand response. Renew. Energy 2018, 123, 460–474. [Google Scholar] [CrossRef]
  9. Carroquino, J.; Dufo-López, R.; Bernal-Agustín, J.L. Sizing of off-grid renewable energy systems for drip irrigation in Mediterranean crops. Renew. Energy 2015, 76, 566–574. [Google Scholar] [CrossRef]
  10. Spanos, C.; Turney, D.E.; Fthenakis, V. Life-cycle analysis of flow-assisted nickel zinc-, manganese dioxide-, and valve-regulated lead-acid batteries designed for demand-charge reduction. Renew. Sustain. Energy Rev. 2015, 43, 478–494. [Google Scholar] [CrossRef]
  11. Yang, Y.; Bremner, S.; Menictas, C.; Kay, M. Battery energy storage system size determination in renewable energy. Renew. Sustain. Energy Rev. 2018, 91, 109–125. [Google Scholar] [CrossRef]
  12. Carli, R.; Dotoli, M. Energy scheduling of a smart home under nonlinear pricing. In Proceedings of the 53rd IEEE Conference on Decision and Control, Los Angeles, CA, USA, 15–17 December 2014. [Google Scholar] [CrossRef]
  13. Wang, T.; Kamath, H.; Willard, S. Control and Optimization of Grid-Tied Photovoltaic Storage Systems Using Model Predictive Control. IEEE Trans. Smart Grids 2014, 5, 1010–1017. [Google Scholar] [CrossRef]
  14. Hu, J.; Xu, Y.; Cheng, K.W.; Guerrero, J.M. A model predictive control strategy of PV-Battery microgrid under variable power generations and load conditions. Appl. Energy 2018, 221, 195–203. [Google Scholar] [CrossRef]
  15. Wang, X.; Li, L.; Palazoglu, A.; El-Farra, N.H.; Shah, N. Optimization and control of offshore wind systems with energy storage. Energy Convers. Manag. 2018, 173, 426–437. [Google Scholar] [CrossRef]
  16. Al-Ammar, E.A.; Habib, H.U.R.; Kotb, K.M.; Wang, S.; Ko, W.; Elmorshedy, M.F.; Waqar, A. Residential Community Load Management based on Optimal Design of Standalone HRES with Model Predictive Control. IEEE Access 2020, 8. [Google Scholar] [CrossRef]
  17. Pereira, M.; Limon, D.; Muñoz de la Peña, D.; Valverde, L.; Alamo, T. Periodic Economic Control of a Nonisolated Microgrid. IEEE Trans. Ind. Electron. 2015, 62, 5247–5254. [Google Scholar] [CrossRef]
  18. Carroquino, J.; Roda, V.; Mustata, R.; Yago, J.; Valiño, L.; Lozano, A.; Barreras, F. Combined production of electricity and hydrogen from solar energy and its use in the wine sector. Renew. Energy 2018, 122, 251–263. [Google Scholar] [CrossRef] [Green Version]
  19. Carroquino, J.; Bernal-Agustín, J.-L.; Dufo-López, R. Standalone Renewable Energy and Hydrogen in an Agricultural Context: A Demonstrative Case. Sustainability 2019, 11, 951. [Google Scholar] [CrossRef] [Green Version]
  20. Roda, V.; Carroquino, J.; Valiño, L.; Lozano, A.; Barreras, F. Remodeling of a commercial plug-in battery electric vehicle to a hybrid configuration with a PEM fuel cell. Int. J. Hydrogen Energy 2018, 43. [Google Scholar] [CrossRef]
  21. Chauvin, R.; Nou, J.; Eynard, J.; Thil, S.; Grieu, S. A new approach to the real-time assessment and intraday forecasting of clear-sky direct normal irradiance. Sol. Energy 2018, 167, 35–51. [Google Scholar] [CrossRef]
  22. Gueymard, C.A.; Ruiz-Arias, J.A. Validation of direct normal irradiance predictions under arid conditions: A review of radiative models and their turbidity-dependent performance. Renew. Sustain. Energy Rev. 2015, 45, 379–396. [Google Scholar] [CrossRef]
  23. Gueymard, C.A. REST2: High-performance solar radiation model for cloudless-sky irradiance, illuminance, and photosynthetically active radiation—Validation with a benchmark dataset. Sol. Energy 2008, 82, 272–285. [Google Scholar] [CrossRef]
  24. Ineichen, P.; Perez, R. A New Airmass Independent Formulation for the Linke Turbidity Coefficient. Sol. Energy 2002, 73, 151–157. [Google Scholar] [CrossRef] [Green Version]
  25. Kopp, G. An assessment of the solar irradiance record for climate studies. J. Space Weather Space Clim. 2014, 4. [Google Scholar] [CrossRef] [Green Version]
  26. Spencer, J. Fourier Series Representation of the Position of the Sun. Search 1972, 2, 162–172. [Google Scholar]
  27. Cooper, P. The Absorption of Solar Radiation in Solar Stills. Sol. Energy 1969, 12, 333–346. [Google Scholar] [CrossRef]
  28. Duffie, J.A.; Beckman, W.A. Solar Engineering of Thermal Processes; John Wiley and Sons Inc.: Hoboken, NJ, USA, 2013. [Google Scholar]
  29. Kasten, F. A simple parameterization of two pyrheliometric formulae for determining the Linke turbidity factor. Meteorol. Rdsch. 1996, 33, 124–127. [Google Scholar]
  30. Gueymard, C. Critical analysis and performance assessment of clear sky solar irradiance models using theoretical and measured data. Sol. Energy 1993, 51, 121–138. [Google Scholar] [CrossRef]
  31. Inman, R.H.; Edson, G.J.; Coimbra, C.F.M. Impact of local broadband turbidity estimation on forecasting of clear sky direct normal irradiance. Sol. Energy 2015, 117, 125–138. [Google Scholar] [CrossRef] [Green Version]
  32. Hu, X.; Li, S.; Huei, P. A comparative study of equivalent circuit models for Li-ion batteries. J. Power Sources 2012, 359–367. [Google Scholar] [CrossRef]
  33. Huria, T.; Ceraolo, M.; Gazzarri, J.; Jackey, R. High Fidelity Electrical Model with Thermal dependence for characterization and simulation of high power lithium battery cells. In Proceedings of the Electric Vehicle Conference (IEVC), Greenville, SC, USA, 4–8 March 2012. [Google Scholar] [CrossRef]
  34. He, Y.; Liu, X.; Zhang, C.; Chen, Z. A new model for State-of-Charge (SOC) estimation for high-power Li-ion batteries. Appl. Energy 2013, 101, 808–814. [Google Scholar] [CrossRef]
  35. Jin, X.; Vora, A.; Hoshing, V.; Saha, T.; Shaver, G.; Wasynczuk, O.; Varigonda, S. Applicability of available Li-ion battery degradation models for system and control algorithm design. Control Eng. Pract. 2018, 1–9. [Google Scholar] [CrossRef]
  36. Wang, J.; Liu, P.; Hicks-Garner, J.; Sherman, E.; Soukiazian, S.; Verbrugge, M.; Finamore, P. Cycle-life model for graphite-LiFePO4 cells. J. Power Sources 2011, 3942–3948. [Google Scholar] [CrossRef]
  37. Serrao, L.; Simona, O.; Rizzoni, G.; Guezennec, Y. A Novel Model-Based Algorithm for Battery Prognosis. IFAC Proc. Vol. 2009, 42, 923–928. [Google Scholar] [CrossRef]
  38. Serrao, L.; Onori, S.; Sciarretta, A.; Guezennec, Y.; Rizzoni, G. Optimal energy management of hybrid electric vehicles including battery aging. In Proceedings of the American Control Conference, San Francisco, CA, USA, 29 June–1 July 2011. [Google Scholar] [CrossRef]
  39. Carli, R.; Dotoli, M.; Jantzen, J.; Kristensen, M.; Ben Othman, S. Energy schedulin gof a smart microgrid with shared photovoltaic panels and storage: The case of the Ballen marina in Samsø. Energy 2020. [Google Scholar] [CrossRef]
  40. Joe Qin, S.; Badgwell, T.A. A survey of industrial model predictive control technology. Control Eng. Pract. 2003, 11, 733–764. [Google Scholar] [CrossRef]
  41. Camacho, E.; Bordons, C. Model Predictive Control; Springer: London, UK, 2004. [Google Scholar]
  42. Kim, M.; Parkt, S.; Choi, J.; Lee, J. Energy independence of energy trading system in microgrid. In Proceedings of the 2017 IEEE ISGT-Asia, Auckland, New Zealand, 4–7 December 2017. [Google Scholar]
  43. Hosseini, S.M.; Carli, R.; Dotoli, M. A Residential Demand-Side Management Strategy under Nonlinear Pricing Based on Robust Model Predictive Control. In Proceedings of the 2019 IEEE International Conference on Systems, Man and Cybernetics (SMC), Bari, Italy, 6–9 October 2019; pp. 3243–3248. [Google Scholar] [CrossRef]
  44. Giraldo, J.S.; Castrillon, J.A.; López, J.C.; Rider, M.J.; Castro, C.A. Microgrids Energy Management Using Robust Convex Programming. IEEE Trans. Smart Grid 2019, 10, 4520–4530. [Google Scholar] [CrossRef]
Figure 1. General scheme of the standalone renewable energy system.
Figure 1. General scheme of the standalone renewable energy system.
Energies 13 01454 g001
Figure 2. Set of angles of a inclined surface.
Figure 2. Set of angles of a inclined surface.
Energies 13 01454 g002
Figure 3. Comparison of computed extraterrestrial irradiance (yellow), irradiance data measured with the panels pyranometer (blue), and clear sky direct normal irradiance (DNI) estimation (orange). Date: 27/06/2016.
Figure 3. Comparison of computed extraterrestrial irradiance (yellow), irradiance data measured with the panels pyranometer (blue), and clear sky direct normal irradiance (DNI) estimation (orange). Date: 27/06/2016.
Energies 13 01454 g003
Figure 4. Battery equivalent circuit model.
Figure 4. Battery equivalent circuit model.
Energies 13 01454 g004
Figure 5. Evolution of the battery open circuit voltage as function of SOC (state of charge). The set of data points have been fitted with a linear regression.
Figure 5. Evolution of the battery open circuit voltage as function of SOC (state of charge). The set of data points have been fitted with a linear regression.
Energies 13 01454 g005
Figure 6. Comparison of computed battery SOC (orange) and actual data of the SOC (blue).
Figure 6. Comparison of computed battery SOC (orange) and actual data of the SOC (blue).
Energies 13 01454 g006
Figure 7. Profile of power produced by the solar subsystem (orange) and consumed (blue).
Figure 7. Profile of power produced by the solar subsystem (orange) and consumed (blue).
Energies 13 01454 g007
Figure 8. General control scheme of the proposed methodology.
Figure 8. General control scheme of the proposed methodology.
Energies 13 01454 g008
Figure 9. Characterization of the power demanded by a consumption load.
Figure 9. Characterization of the power demanded by a consumption load.
Energies 13 01454 g009
Figure 10. Simulation profiles. Prediction of photovoltaic (PV) power (blue), estimation of PV power with perturbation (orange), and original system power demand (yellow).
Figure 10. Simulation profiles. Prediction of photovoltaic (PV) power (blue), estimation of PV power with perturbation (orange), and original system power demand (yellow).
Energies 13 01454 g010
Figure 11. Batteries’ SOC evolution. SOC’s evolution case 1 (blue), SOC’s evolution case 2 (orange), and experimental data of the batteries’ SOC (yellow).
Figure 11. Batteries’ SOC evolution. SOC’s evolution case 1 (blue), SOC’s evolution case 2 (orange), and experimental data of the batteries’ SOC (yellow).
Energies 13 01454 g011
Figure 12. Energy demand profiles. Energy demand case 1 (blue) and energy demand case 2 (orange).
Figure 12. Energy demand profiles. Energy demand case 1 (blue) and energy demand case 2 (orange).
Energies 13 01454 g012
Figure 13. Evolution of the power supplied for the generation of hydrogen.
Figure 13. Evolution of the power supplied for the generation of hydrogen.
Energies 13 01454 g013
Figure 14. Batteries’ SOC evolution. SOC’s evolution without aerator 1 reschedule (blue), SOC’s evolution with aerator 1 reschedule (orange).
Figure 14. Batteries’ SOC evolution. SOC’s evolution without aerator 1 reschedule (blue), SOC’s evolution with aerator 1 reschedule (orange).
Energies 13 01454 g014
Figure 15. History of the time elapsed on each MPC cycle in the second simulation case.
Figure 15. History of the time elapsed on each MPC cycle in the second simulation case.
Energies 13 01454 g015
Table 1. Description of the model variables and parameters.
Table 1. Description of the model variables and parameters.
Variable NameDescriptionVariable NameDescription
G s c Solar constantnnumber of the day
G o n Corrected solar constant η p Solar panel’s efficiency
ϕ Latitude η i n v Inverter’s efficiency
δ Declination P o u t Potential panel’s power output
β Slope P S O L Solar panel’s power output
γ Surface azimuth angle S O C State of Charge
ω Hour angle I B A T Battery’s current
θ z Zenith angle U B A T Battery’s open circuit voltage
θ Angle of incidence R B A T Battery’s internal resistance
G b , τ Extraterrestrial irradiance U B A T Battery’s terminal voltage
T L Turbidity coefficient P c Power consumption
I c s Clear-sky DNI C r a t e C rate
bCorrection coefficient D O D Depth of Discharge
mRelative optical air mass A h Effective Ah-throughput
hSolar panel’s height σ Severity factor
IMeasured normal irradiance B l Battery charge/discharge efficiency
NNumber of solar panels A h n Nominal Ah-throughput
P B A T Battery’s power C n Nominal capacity
I B A T Battery’s current α c h / d c h Battery’s charge/discharge efficiency
Table 2. Description of the model predictive control’s (MPC) decision variables and parameters.
Table 2. Description of the model predictive control’s (MPC) decision variables and parameters.
Continuous decision variables
P S O L Electrical output of the solar panels controlled by the inverters
Binary decision variables
v d Variable denoting the activation of load d
α Variable denoting the activation of the hydrogen facility
z d Variable denoting that the flexible load d is active
bVariable denoting the charging of the battery
Parameters
DPower demand of the flexible load
LMinimum consecutive active time intervals of the flexible load
T 0 Scheduled activation time of the load
S l Maximum time intervals that the flexible load can be advanced/delayed
P ¯ B A T Maximum battery charge/discharge power
S O C ̲ / S O C ¯ Maximum/minimum allowed state of charge

Share and Cite

MDPI and ACS Style

Cecilia, A.; Carroquino, J.; Roda, V.; Costa-Castelló, R.; Barreras, F. Optimal Energy Management in a Standalone Microgrid, with Photovoltaic Generation, Short-Term Storage, and Hydrogen Production. Energies 2020, 13, 1454. https://doi.org/10.3390/en13061454

AMA Style

Cecilia A, Carroquino J, Roda V, Costa-Castelló R, Barreras F. Optimal Energy Management in a Standalone Microgrid, with Photovoltaic Generation, Short-Term Storage, and Hydrogen Production. Energies. 2020; 13(6):1454. https://doi.org/10.3390/en13061454

Chicago/Turabian Style

Cecilia, Andreu, Javier Carroquino, Vicente Roda, Ramon Costa-Castelló, and Félix Barreras. 2020. "Optimal Energy Management in a Standalone Microgrid, with Photovoltaic Generation, Short-Term Storage, and Hydrogen Production" Energies 13, no. 6: 1454. https://doi.org/10.3390/en13061454

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