Next Article in Journal
Toughness of Natural Hydraulic Lime Fibre-Reinforced Mortars for Masonry Strengthening Overlay Systems
Next Article in Special Issue
Impact of the Integration of the Electric Vehicle on Low-Voltage Rural Networks
Previous Article in Journal
Soft Contrastive Cross-Modal Retrieval
Previous Article in Special Issue
Optimal Siting of EV Fleet Charging Station Considering EV Mobility and Microgrid Formation for Enhanced Grid Resilience
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems

by
Oscar Izquierdo-Monge
1,
Paula Peña-Carro
1,
Angel Hernández-Jiménez
1,
Angel Zorita-Lamadrid
2 and
Luis Hernández-Callejo
3,*
1
CEDER-CIEMAT, Autovía de Navarra A15 salida 56, 422290 Lubia, Spain
2
ADIRE-ITAP, Department of Electrical Engineering, University of Valladolid, Paseo del Cauce 59, 47011 Valladolid, Spain
3
ADIRE-ITAP, Department of Agricultural and Forestry Engineering, University of Valladolid, Campus Universitario Duques de Soria, 42004 Soria, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(5), 1946; https://doi.org/10.3390/app14051946
Submission received: 31 January 2024 / Revised: 16 February 2024 / Accepted: 26 February 2024 / Published: 27 February 2024

Abstract

:
This paper presents a methodology for energy management in a smart microgrid based on the efficiency of dispatchable generation sources and storage systems, with three different aims: elimination of power peaks; optimisation of the operation and performance of the microgrid; and reduction of energy consumption from the distribution network. The methodology is based on four steps: identification of elements of the microgrid, monitoring of the elements, characterization of the efficiency of the elements, and finally, microgrid energy management. A specific use case is shown at CEDER-CIEMAT (Centro para el Desarrollo de las Energías Renovables—Centro de Investi-gaciones Energéticas, Medioambientales y Tecnológicas), where consumption has been reduced during high tariff periods and power peaks have been eliminated, allowing an annual reduction of more than 25,000 kWh per year, which is equal to savings of more than 8500 €. It also allows the power contracted from the distribution company by CEDER (135 kW) not to be exceeded, which avoids penalties in the electricity bill.

1. Introduction

The development and maturation of renewable energies are triggering a profound change in the current energy system, displacing and replacing traditional electric power systems based on fossil fuels [1,2,3]. The implementation of renewable energies is becoming the backbone for meeting the objectives set for the energy transition [4,5,6] as clean, sustainable, and accessible energy sources. In this context of change, microgrids are postulated as a major element in the design and adjustment of the electricity system [7,8,9,10]. Where they are implemented, microgrids represent a solution that guarantees continuous and secure access to electricity based on the use of distributed renewable generation sources and distributed storage system [3]. Moreover, the recent development of communication, information, and artificial intelligence technologies and their integration into microgrids means a new evolution of the concept: smart microgrids [11,12,13].
Some major concerns about renewable energies still represent challenges for the operability and management of the SMG that must be solved [14,15]. As in the grid, different phenomena can occur in the SMG [13,16,17,18,19,20], such as mismatches between generation and generated demand, power consumption peaks, frequency variations, voltage level variations, blackouts, etc. Of these, the one that will be studied in this article is the phenomenon of the mismatch between generation and demand generated by prolonged consumption peaks [21,22]. Consequently, in order to guarantee the correct operation of microgrids, energy management strategies/methodologies need to be implemented in the SMG [23]. These strategies will vary according to the conditions of each microgrid: topology, available resources, needs, limitations… [24,25], and/or the criteria used by each manager, always having as the main objective to guarantee the energy balance between generation and demand while maximising the efficiency of the system [26,27]. However, the energy management of an SMG is a complex problem of a non-linear and non-convex nature, requiring control, management, and optimisation algorithms that perform this task according to the established strategies and priorities. However, the use of these complex and highly sophisticated systems does not necessarily improve the performance and economic viability of the whole, and it is up to the SMG manager to develop and implement them [28].
The most widespread management strategy focuses on optimising various economic aspects using cost analysis indicators and metrics. This strategy seeks to maximise system efficiency while minimising costs. The operating cost is one of the most widely used and studied indicators for the energy management of microgrids. There are also microgrid EMSs, which seek to minimise operating costs through load scheduling based on the prediction of both wind generation and load consumption, supported by energy storage systems (ESSs) and diesel generation [29]. Other EMSs employ minimising operating costs by reducing fossil fuel-based generation sources [30]. There are methodologies where, in addition to minimising the life cycle cost, the annual cost of load loss, and the life cycle cost of the equipment that make up the microgrid, are further explored [31,32]. On the other hand, the EMS can optimise costs according to existing operating conditions to effectively coordinate both dispatchable and non-dispatchable energy resources to maintain the stability of the microgrid [33,34].
Operational cost reduction can be complemented with other indicators and metrics, such as cost of energy or net present cost, among others. The combination of different indicators is a common practice in EMSs based on economic objectives. This combination was used in [35,36] to determine the best microgrid configuration by minimising cost of energy as the main indicator.
The cost of energy is used in other management strategies to compare the generation performance of a microgrid with the national electricity tariff [37]. These EMSs connect the microgrid to the distribution network by consuming them from the distribution network when the price of energy is low. During these periods, the generation is used to load the ESSs, discharging them during periods when the price of electricity is high. This strategy based on market prices is called energy arbitrage [27] and is one of the main ways to increase system efficiency and optimise economic performance [38].
Energy management strategies in microgrids can be approached from perspectives other than economic aspects. However, in such cases and despite not being the main focus, profitability and economic efficiency are usually highly considered factors in most EMSs.
Another main microgrid operation strategy focuses on Demand Side Management. This methodology focuses on the integration and active participation of users in the management to optimise energy consumption [39]. This optimisation and increase in energy efficiency can be achieved through EMS with different strategies: making the best possible resource allocation by coordinating the demand side [40,41]. A different management approach is to develop baseload profiles from generation forecasts [42,43,44]. On the other hand, in cases where both resource scarcity scenarios occur, EMS methodologies such as energy curtailment [45,46] can be applied.
The Demand Side Management extends to the demand response strategy [47,48], where management seeks to change the consumption patterns of users regarding economic issues. In this way, economic incentives are implemented on consumption, and bidirectional communication with the grid is established in real-time, connecting and disconnecting the microgrid according to the operating costs and electricity pricing period. This type of management interconnects the objectives of economic and energy efficiency, in addition to minimising energy demand during periods of high consumption and/or low generation [49]. Examples of different EMSs proposed in microgrids that employ demand response to increase the economic efficiency of their microgrids are developed in [50,51,52], resulting in significant cost reductions.
Another management criterion used in microgrid energy management strategies is to maximise renewable generation. Therefore, it is necessary for these EMSs to seek the best combination of available renewable generation sources, integrating complementary technologies to avoid generation valleys [53] that would upset the energy balance. In parallel to other strategies, the maximisation of renewable resources in the microgrid can be oriented towards different objectives and criteria. In the framework of energy transition and decarbonisation, one of these objectives is to reduce dependence on fossil fuels in order to achieve 100% renewable microgrids [30,54]. Furthermore, taking advantage of the economic competitiveness of renewable energies over conventional energy sources [1,4], implementing EMSs that maximise the use of renewables leads to a reduction in operating costs [30,37,55]. Consequently, maximising generation and consumption from distributed renewable generation sources in microgrids results in the ability to operate over extended time intervals under a self-consumption regime [56,57,58,59].
The following methodology for energy management in SMG focuses on battery operation. In all the cases highlighted, the energy management of microgrids shares as a common element the use of ESS, with batteries being the most widespread technology. This equipment allows production and consumption to be balanced, provides flexibility to the system, and increases energy use [60]. This results in an increase in economic efficiency and a reduction in total operating costs [61]. This economic optimisation is achieved by matching the charging and discharging battery price gap between electricity price and remuneration rate [62]. This case study, as well as those presented in [63], highlights how state of charge and usable battery capacity can limit the profitability of this EMS. This criterion is again of particular relevance [64], where different EMSs are compared, with the management methodology based on the battery charging cycle being the optimal one for this case study [65]. Finally, there are also cases of EMSs where energy management is aimed at battery care, seeking to extend battery life and optimise performance over the life of the battery [66,67,68,69].
With stability of the microgrid as the main objective, the load following strategy is based on the adjustment of generation by the microgrid operator/manager to meet consumption demands at all times, responding in real time to variations and maintaining the energy balance. In the existing cases of isolated microgrids that have limited resources and generation sources [70], this type of strategy is the main management criterion for guaranteeing energy supply to loads/consumers [63,71,72]. In grid-connected microgrids, stability is not as sensitive as in the isolated case. However, it is true that it can be affected by phenomena coming from the grid. In connected cases where ensuring stability is a critical factor, the implementation of a load-following strategy to cover demand variations may be the sole objective of the EMS [34,73]. However, this strategy is often complemented by other management criteria such as minimising costs, increasing equipment lifetime [56], meeting consumption forecasts [74], or optimising battery charging for specific equipment such as electric vehicles [75].
After exemplifying various EMS in microgrids, two methodologies focused on consumption peaks are shown below. One management strategy implemented to reduce the effects of this phenomenon on the microgrid is load shifting. The approach of this methodology is based on the identification of flexible and programmable loads in the system and their use to globally adjust the energy balance. The operating principle is based on scheduling the activation/start-up of peak-generating loads, which have previously been identified as manageable, in different periods of low consumption in such a way that the increase in demand does not generate mismatch peaks in these periods and can be assumed by the generation [76]. Therefore, as developed in the cases [77,78], through the implementation of this strategy, the aim is to establish the best organisation and scheduling of loads in the microgrid, maximising efficiency and stability. These EMSs are especially interesting in microgrids as they allow the efficient integration of new loads such as electric vehicles [79,80].
In parallel, this methodology can be combined with those seen above to meet criteria in addition to peak shaving. An EMS can be used to optimise load relocation in order to minimise operating costs [40,81,82]. Moreover, the EMS can establish the operation scenario that provides the most flexibility by studying its impact on the cost and stability of the network [83].
On the other hand, the peak shaving strategy is based on the total elimination or, failing that, the reduction of consumption peaks by managing the energy stored in the ESS [27,77]. These peaks can have particularly detrimental effects on the microgrid, as they represent a threat to its stability by significantly unbalancing the relationship between generation and demand during time lapses that can last up to several hours [21], being particularly characteristic of certain time slots. Similarly, the most significant effect of peaks is the large increase in operating costs as they occur in characteristic time slots that coincide with high pricing periods where the price of energy is higher. In order for the grid not to collapse, the energy differential between demand and generation is taken from the grid. Therefore, this management strategy is employed to avoid this effect, as it is especially beneficial in technical and economic terms [84]. This application is the exact one implemented in EMSs, where cost of energy and operating cost have been minimised [85,86,87]. Again, the technology that plays the role of ESS to counteract the peaks are batteries, being implemented in practically all the case studies [88,89,90,91,92,93].
This paper presents a four-step methodology for managing the energy in an SMG, based on the efficiency of dispatchable generation sources and ESS. The main contribution of this proposal is the definition of a methodology based on the efficiency of the ESS available in a microgrid to optimise its energy performance. ESSs are used on the basis of their performance, rather than other variables such as capacity or response time, which are the most commonly used criteria in other studies. This way of using storage systems not only maximises the use of energy from renewable sources but also eliminates consumption peaks (periods of less than one hour) and reduces the energy consumption of the distribution grid, especially during the most expensive pricing periods. To apply this methodology, two open-source and easy-to-implement software, such as Home Assistant and NodeRed, have been used. The methodology is developed in Section 2 and has been successfully implemented in the SMG of CEDER-CIEMAT. Section 3 presents the use case in CEDER-CIEMAT microgrid. Finally, the conclusions are presented in the fourth section.

2. Methodology

The objective of this document is to present a four-step methodology for the energy management of a smart microgrid based on the efficiency of dispatchable generation sources and storage systems.
The prescribed sequence of actions required to attain these desired outcomes is out-lined as follows:
Step 1. Identification of elements. First of all, it is necessary to identify all the elements necessary to carry out the energy management of a smart microgrid:
  • Metre of the energy distribution company: To monitor the energy consumption/injection of energy to the distribution network from the microgrid.
  • Renewable dispatchable generation sources: A smart microgrid can be made up of different sources of power generation, most commonly including photovoltaic and small wind energy, although they are not dispatchable from a resource point of view. However, there are other sources of renewable energy generation that can be managed, such as hydroelectric power, which will need to be monitored to issue operating commands (start-up and shut-down depending on the needs of the microgrid).
  • Distributed energy storage systems: The most commonly used in microgrids are batteries (lead-acid, lithium, etc.), although many different storage systems can be used. The different storage systems that make up the microgrid must be monitored to provide them with charging and discharging commands.
Step 2. Monitoring of elements. After identifying the various components, a crucial next step involves monitoring and integrating them into a comprehensive control software. This software serves as a communication conduit, enabling the elements within the microgrid to interact with one another effectively. Through this integrated control system, commands are issued to dispatchable generation sources and distributed energy storage systems, contingent upon the consumption of the microgrid from the distribution network. It is necessary to monitor the following parameters:
  • Instantaneous power of the microgrid: This parameter serves as a vital indicator of the energy dynamics of the microgrid. When the value of this power parameter exceeds zero, it means that the microgrid is consuming energy from the distribution grid. Conversely, if the value falls below zero, it implies that the energy generated by the renewable generation sources integrated within the microgrid surpasses the energy demands of its loads. This negative value indicates a surplus of energy, resulting in the microgrid exporting energy back to the distribution network.
  • All parameters necessary to operate the dispatchable renewable generation sources: instantaneous power, start and stop commands, power setpoints, etc.
  • All parameters necessary to operate the stored energy systems: instantaneous power, on/off commands, charge and discharge commands, etc.
In order to continuously track and analyse the aforementioned parameters and effectively establish a control system, implementation will rely on the utilisation of two open-source software programmes: NodeRed and Home Assistant [94,95]. This strategic choice represents a noteworthy advantage associated with the proposed methodology. The incorporation of NodeRed and Home Assistant offers a comprehensive and robust framework for monitoring and controlling various parameters within the system.
NodeRed, a free, open-source programming tool, provides a visual programming interface that enables the creation of flows for data processing and communication between different elements of the microgrid.
The Modbus protocol is the most widely used protocol in the industry, and practically all equipment has it. If any element of the microgrid does not have it, other protocols such as MQTT, HTTP, etc. will be used. To communicate with a device using the Modbus communication protocol from NodeRed, it is necessary to configure a Modbus node for that device, defining the IP address, port number (default is 502), and the communication mode (Modbus TCP/IP or Modbus RTU). Additional parameters such as connection timeout and update frequency also need to be adjusted [94].
Once the communication is established, it is necessary to configure input and output nodes (for reading values or sending commands, respectively). This requires determining the device’s identification number (Unit-ID), the Modbus register address, the number of addresses occupied by the register, and the register type (input, holding, etc.) [94].
Finally, after reading the value from the corresponding Modbus address (which is a value between 0 and 65,536), it needs to be interpreted using a JavaScript function programmed to obtain the actual value of the variable being measured, based on the information collected in the Modbus frame regarding the scaling factor and data type (integer: int, unsigned integer: uint, floating point: float, etc.) [94].
Additionally, Home Assistant, another free open-source platform based on the Internet of Things architecture, serves as a pivotal component for automation and control purposes. It offers a user-friendly interface and supports the integration of a wide array of smart devices and protocols. By leveraging Home Assistant’s extensive capabilities, the proposed methodology enables the development of a sophisticated control system that can effectively regulate the parameters under scrutiny.
Home Assistant receives information about the different parameters from NodeRed and allows the creation of automations based on events, schedules, or any other conditions by programming in YAML or using the visual automation editor.
The Home Assistant control panel enables the creation of customised views by configuring cards and panels to display real-time information, such as device status, graphs of measured variables, etc.
The adoption of these open-source programmes demonstrates the methodology’s commitment to accessibility and affordability. Leveraging NodeRed and Home Assistant ensures flexibility and adaptability and allows for further customizations and enhancements based on specific needs.
Figure 1 shows the flow of data and commands between Home Assistant, NodeRed, and the elements of the microgrid. NodeRed communicates with all the elements of the microgrid to collect all the necessary data and sends them to Home Assistant, which works as a human–machine interface and allows their visualisation in real time (1 data per second). The operation commands are activated from Home Assistant and sent to the different elements of the microgrid through NodeRed.
Step 3. Characterise the efficiency of the elements of the microgrid. Once all the elements of the microgrid have been identified and monitored, it is necessary to characterise them in order to subsequently classify them according to their efficiency.
To characterise dispatchable generation sources, it is necessary to run them at different powers and see the resource consumption associated with them. In order to characterise storage elements, their efficiency has to be calculated in terms of the energy they consume or supply in charging and discharging processes (according to Equation (1)) at different instantaneous powers.
Performance: η = Pout/Pin × 100%
where:
  • η: is the performance.
  • Pout: is the output power (injected by the element under consideration into the microgrid).
  • Pin: is the input power (consumed from the microgrid by the element under consideration).
Step 4. Microgrid energy management. Energy management in a microgrid encompasses many aspects, and it is always difficult to single out one over another. In this methodology, the main objective is to optimise the performance of the microgrid by prioritising the commissioning of dispatchable generation sources and the charging and discharging of storage systems according to their efficiency, reducing the energy consumption of the distribution grid and eliminating power peaks.
Figure 2 shows a flowchart of the control process that will be part of the microgrid energy manager and will run recursively. This means when it reaches the end of the process, it starts again and therefore runs again.
The diagram starts by checking whether the microgrid is consuming energy from the distribution network or injecting it.
If the microgrid is consuming energy from the distribution network, the possibility of increasing the output of renewable generators needs to be considered. If possible, renewable generation will be increased. If not, electricity storage systems will come into play. If there is capacity in these systems, they will deliver energy to cover the demands of the microgrid.
If the microgrid is injecting energy into the distribution network, it is necessary to see if the storage systems have stored energy capacity. If there is storage capacity, priority will be given to charging the storage systems in order to reduce the amount delivered to the outside, and the limit of the load will be marked by the existing excess.
In order to implement adequate energy management, it is necessary to establish a strategy for charging and discharging stored energy, which, in this methodology, is based on using storage systems according to their performance in order to achieve the greatest efficiency in the operation of the microgrid.
Figure 3 shows a flow diagram of how the charging of the electrical storage systems of the microgrid is carried out according to their efficiency.
When the microgrid has surplus energy, the energy management system will start charging from the storage systems according to their efficiency, as seen in Figure 3, starting with the most efficient system. If it can be charged, it will be charged up to its limit as long as the surplus allows it. If, while this system is being charged or once charging is complete, there is still surplus energy, it will begin charging the next more efficient system, and so on until it reaches the least efficient storage system. Therefore, the process will be repeated n times, where n is the number of energy storage systems available in the microgrid.
The process ends when there is no longer surplus energy or when all storage systems are fully charged.
The process carried out to supply energy to the microgrid from manageable renewable generation sources or storage systems when it is consuming from the distribution network is very similar to that shown in Figure 3. It begins when the microgrid consumes energy from the distribution network. The generation sources or storage systems will be used to meet the energy needs based on their efficiency.

3. Use Case. CEDER-CIEMAT Microgrid

According to the four-step methodology described in the previous section, the first step is to identify the elements that are part of the microgrid and are involved in energy management.

3.1. Identification of Elements

In the CEDER-CIEMAT use-case, the elements to be considered in order to apply the methodology defined in this paper are the following:

3.1.1. Metre of the Energy Distribution Company

The energy distribution company’s metre is not an element upon which we can act, but it is necessary to include it because it will be the one that tells us whether the microgrid consumes or injects energy into the distribution network.

3.1.2. Dispatchable Renewable Generation Sources

The CEDER microgrid includes different renewable generation systems, with a total installed capacity of over 400 kW:
  • Photovoltaic: There are 11 distributed photovoltaic systems throughout the centre, with a total installed capacity of 181.9 kW. They are non-dispatchable from the resource point of view.
  • Wind: There are five small-scale wind turbines with a total installed capacity of 162.2 kW. They are non-dispatchable from the resource point of view.
  • Hydraulic Turbine: There is a 60 kW mini Pelton turbine. It is dispatchable.
Photovoltaic modules and small wind turbines are not dispatchable from a resource point of view, but we can modify their output by sending commands to their inverters if there is sufficient radiation or wind speed, respectively.

3.1.3. Energy Storage Systems

CEDER microgrid incorporates several distributed energy storage systems, including the following:
  • Pumping system associated with the Pelton turbine, with a capacity of 30 kW.
  • Lead-acid battery PEPAI: 120 cells of 2 V each, capacity of 1080 Ah per cell.
  • Lead-acid battery PEPAII: 120 cells of 2 V each, capacity of 765 Ah per cell.
  • LFP batteries: Two racks with 196 cells of 3.2 V each, with a capacity of 50 Ah

3.2. Monitoring of Elements

The second step of the methodology consists of monitoring the elements involved in energy management and integrating them into a control system that allows operating commands to be issued to each of the dispatchable generation sources and storage systems. As explained in the previous section, NodeRed is used to monitor all these parameters, and Home Assistant is used to develop the control system.
Figure 4 shows one of the screens of the human–machine interface of the control sys-tem for Lead-acid batteries PEPA I, where the following information is displayed: Main values (battery power; battery voltage level; and power setpoint); Charging/Discharging (type of charge: normal, deep, floating, or equalisation; selection of the type of charge; selection of power setpoint; and button to send power setpoint command); State of charge in %; State (information about whether the battery is on or off; boolean button to select On/Off, indication of stopped, charging, or discharging; Temperature, state of charge, and indication of full load); Errors (shows the different errors that can occur in the battery).
Figure 5 shows one of the screens of the human–machine interface of the control system for LFP batteries, where the following information is displayed: Rack (battery power; battery voltage level, battery current; and buttons to reset the battery and start); Temperatures (shows maximum and minimum temperatures and the cell in which they occur); Inverter (shows state of the inverter: on/off; and buttons to turn the inverter on and off); Command (to introduce the power setpoint and button to send the value); Voltage (shows maximum and minimum voltage levels and the cell in which they occur). Figure 5 also shows two graphs with the maximum and minimum voltage levels of the cells and the power of the battery.

3.3. Characterising the Efficiency of the Elements of the Microgrid

In order to be able to classify the elements that form part of the microgrid according to their efficiency, it is necessary to know in detail how they work. This means that it will be necessary to operate them at different power regimes and see the results obtained.

3.3.1. Hydraulic System

The hydraulic system consists of a Pelton turbine connected to a 60 kW electric generator, four pumps of 7.5 kW each, and two water storage tanks with a total capacity of 2000 m3 and a difference in level of 70 m between them.
In order to characterise the turbine, a series of tests were carried out by operating them at different power levels and checking the consumption of the resource (in this case, water stored in the tanks) for each one of them. The results obtained are shown in Table 1:
The powers at which the turbine has been characterised are 7.5 kW, 15 kW, 22.5 kW, and 30 kW, since these are the powers at which we can operate the pumping system (four pumps of 7.5 kW each). The system will return the turbined water that is collected by the lower reservoir to the upper reservoir.
The water consumption per kW produced is lowest in the 30 to 35 kW range, where less than 9 m3 of water is needed for each kW of power generated by the turbine. Therefore, as far as possible, the turbine should ideally operate in this power range.
In order to characterise the pumping system, it is necessary to know the amount of water that the pumps are capable of lifting to the upper reservoir and their levels of electricity consumption. To accomplish this, water was pumped from the lower tank to the upper tank at the four possible power levels (7.5 kW, 15 kW, 22.5 kW, and 30 kW), i.e., using one, two, three, or all four pumps simultaneously. The results obtained are shown in Table 2:
To calculate the efficiency of the hydraulic system, we will use Formula 1 described in the previous section, obtaining the results shown in Table 3.
The efficiency increases as the power increases due to the fact that the nominal power of the turbine is 30 kW, and therefore, its efficiency is higher at values close to that value, dropping significantly at lower values (7.5 kW). We can estimate the efficiency of the installation to be close to 32%, given that the turbine will not be used at power levels lower than 15 kW, as its efficiency decreases significantly within this range of values.

3.3.2. Lead-Acid Battery PEPAI: 120 Cells of 2 V Each, Capacity of 1080 Ah per Cell

To calculate the performance of the different CEDER-CIEMAT battery systems, a discharge from 100% to 20% at different power levels was carried out, followed by a complete recharge.
The energy obtained during the discharge process was calculated and compared with the energy required to recharge the battery to its initial state. With these values and using Equation (1), the efficiency at each power was calculated. The values obtained are shown in Table 4.
The efficiency of these batteries is practically the same for all power ratings, at 83%.

3.3.3. Lead-Acid Battery PEPAII: 120 Cells of 2 V Each, Capacity of 765 Ah per Cell

The values obtained for this battery system are shown in Table 5.
The efficiency of these batteries varies between 73% for a power of 16 kW and 88% for 12 kW. An average efficiency of 80% is considered.

3.3.4. LFP Batteries: Two Racks with 196 Cells of 3.2 V Each, with a Capacity of 50 Ah

Repeating the same process for Lithium Ferro-Phosphate batteries produces the values shown in Table 6.
The efficiency of these batteries varies between 58 and 62%, with a higher efficiency observed at higher discharge powers (limited to 20 by the inverter). An average efficiency of 60% is considered.
Table 7 shows a summary of the average performance of each dispatchable generation source and storage system connected to the CEDER-CIEMAT microgrid.
With these values and according to the methodology defined in this paper, priority will be given to the use of PEPA I lead-acid batteries, followed by PEPA II lead-acid batteries, then LFP batteries, and lastly, the turbine and hydraulic pumps, which, in addition to having the lowest performance, have much higher operating and maintenance costs than the other systems.
Normally, LFP batteries would have higher charging efficiency than lead-acid batteries. However, in our case, the opposite happens. This is due to the fact that the PEPA II batteries are new, so it is normal that their performance is higher than the PEPA I batteries, which are about five years old, and the LFP batteries, which are more than 10 years old. It also makes sense that the performance of the hydraulic system is lower, since it is not designed to be optimised but rather depends on the orography of the terrain at CEDER and the available pumps. LFP batteries require less maintenance, are more modular, allow for a higher depth of discharge, and have lower self-discharge and faster charging than lead-acid batteries. In addition, LFP batteries do not emit gases during the charging and discharging process.

3.4. Microgrid Energy Management

According to the methodology defined in this paper, when the microgrid consumes power from the distribution network, if possible, the output of renewable generators should be increased. If this is not possible, the dispatchable storage and generation systems will be started up according to the performance calculations we conducted in the previous section. When the microgrid injects energy into the distribution network, the storage systems will be recharged (if they have the capacity to store more energy) according to their performance.
Energy management for recharging the ESS will be such that batteries will only be charged or the pumping system will only be used when there is surplus energy in the microgrid, so that the energy used is free. This recharging will be conducted according to the performance of the systems, starting with charging the lead-acid PEPA I batteries, then the lead-acid PEPA II batteries, followed by the LFP batteries, and lastly, the pumping system will be used. With this strategy, enough energy is stored during the months of April to October when there is abundant solar radiation, but not during the winter months when there is less radiation and therefore lower surplus generation.
Energy management for discharging the ESS is carried out with two different objectives: on the one hand, to reduce consumption from the distribution network for periods of several hours, and on the other hand, to eliminate power peaks (maximum 1 h), always depending on their efficiency. This is always conducted on the basis of efficiency, so that the most efficient ESS is used first, followed by the second most efficient system, and so on. Each type of management will be explained in the following section, Results.

3.5. Results

This section will explain the results obtained in the energy management of the CEDER microgrid in the two cases considered: reducing the consumption of the distribution network (up to 8 h) and eliminating power peaks (up to 1 h).
Out of all the days when the methodology was applied, two days of data are presented on which its benefits can be clearly seen (16 February 2023 and 12 January 2023)

3.5.1. Reducing Consumption of the Distribution Network

Consumption from the distribution network can be reduced at any time of the day, in consecutive or alternate hours, depending on what is of most interest from the point of view of microgrid management.
From the point of view of this paper, consumption is reduced when it is above the CEDER average (40–60 kWh) and during hours with higher cost per kWh (higher pricing periods). These maximum pricing periods change from one month to the next, as shown in Figure 6. There are six different periods (P1, P2, P3, P4, P5, and P6) in the CEDER-CIEMAT tariff, and the price of each period is negotiated with the distribution company. Table 8 shows the Eur/kWh prices for each of these periods.
The use case was carried out with data from 16 February 2023. So, the maximum charging periods are P1 (from 9:00 to 14:00 and 18:00 to 19:00) and P2 (from 8:00 to 9:00, 14:00 to 18:00, and 22:00 to 24:00). So, consumption will be reduced during those hours when it is above the CEDER average.
Figure 7 shows the consumption data of the CEDER microgrid on 16 February 2023, without using the storage systems.
There is above-average consumption between 8:00 (the start time of the working day at CEDER) and 15:00 (the end time of the working day at CEDER). Between 8:00 and 9:00 and 14:00 and 15:00 correspond to the second most expensive pricing period (P2), and between 9:00 and 14:00 corresponds to the most expensive pricing period (P1).
To reduce consumption, the ESSs are used according to their efficiency, i.e., first, the most efficient, then, the second most efficient, etc. According to step three of this methodology, to characterise the efficiency of the microgrid elements, the hierarchy of operation is as follows: Lead-acid battery PEPA I, Lead-acid battery PEPA II, LFP batteries, and Hydraulic system (Turbine/Pumps). The power generated by each of the storage systems to compensate for the power peak can be seen in Figure 8. The green line represents the total energy stored, which is the sum of the energy stored in PEPA I lead-acid battery (dark red line), the energy stored in PEPA II lead-acid battery (red line), the energy stored in the LFP battery (yellow line), plus the energy stored in the Pumping–Turbine system (blue line).
Figure 9 shows the reduction of consumption using ESS, and there is a flatter consumption in the microgrid. The red line represents the consumption of the microgrid if energy stored systems were stopped, the yellow line represents the real consumption of the microgrid with energy storage systems working, and the green area is the energy saved due to the use of storage systems.
Figure 9 also shows in green the energy savings obtained by reducing consumption in periods P1 (245.31 kWh) and P2 (43.07 kWh).

3.5.2. Eliminating Power Peaks

Figure 10 shows the consumption data of the CEDER microgrid on 12 January 2023, without using the storage systems. There is a consumption peak between 9:19 and 10:25, and it can be seen how consumption goes from levels of around 80–90 kW to values of up to 180 kW. This peak has been reduced using the methodology described in this article.
In order to eliminate the peak, the storage systems have been started up according to their efficiency: battery PEPA I, battery PEPA II, LFP batteries, and the Hydraulic system. The power generated by each of the storage systems to compensate for the power peak can be seen in Figure 11. The green line represents the total energy stored, which is the sum of the energy stored in PEPA I lead-acid battery (dark red line), energy stored in PEPA II lead-acid battery (red line), energy stored in LFP battery (yellow line), plus energy stored in the Pumping–Turbine system (blue line).
Figure 12 shows how the power peak has been eliminated using ESS, and the energy savings obtained by eliminating the peak power are depicted in green, totaling 51.6 kWh. The blue line represents the consumption of the microgrid if energy stored systems were stopped, the yellow line represents the real consumption of the microgrid with energy storage systems working, and the green area is the energy saved due to the use of storage systems.

4. Conclusions

The results of this study show that the methodology defined in this work for the smart management of a microgrid based on the efficiency of the available ESSs allows optimisation of the operation of the microgrid by reducing energy consumption of the distribution grid during the highest tariff periods and eliminating power peaks (of up to 2 h). This methodology was carried out using an energy management system developed by CEDER based on open-source software (and therefore free) and easy to implement (Home Assistant and NodeRed).
The procedure for reducing energy consumption of the distribution network during the highest tariff periods saves up to 288.38 kWh in a day (245.31 kWh P1 and 43.07 kWh P2). Taking into account the capacity of the storage systems and the time needed to recharge them, as well as the fact that consumption similar to that of the target day in this case study occurs almost every working day in winter and autumn, we can estimate that this methodology can be applied about 80 days per year, which means a saving of 23,070.4 kWh (19,624.8 kWh P1 and 3445.6 kWh P2). The price of energy (year 2023) during the highest tariff periods is 0.331692 €/kWh in P1 and 0.319483 €/kWh in P2, which means an estimated annual saving of 7610.2 € (6509.4 € in P1 and 1100.8 in € P2).
The peak shaving procedure saves 51.6 kWh of consumption each day it is carried out. Taking into account that similar situations occur about 60 times a year, this allows for a saving of 3009 kWh in period P1, which is equivalent 855.8 € per year. In this case, the annual saving is lower, but it avoids exceeding the contracted power limit by CEDER (135 kW peak power), which would entail high penalties in the electricity bill.
Overall, the application of this methodology allows for annual savings of approximately €8500, optimising the operation of the energy storage systems and the management of the microgrid.
Table 9 shows the savings achieved in terms of energy and money (according to current tariffs in Table 8) by applying this methodology to the CEDER-CIEMAT microgrid (reducing energy consumption plus peak shaving).
As future work, further tests should be carried out over a longer period of time to determine the real savings that could be achieved per year with this methodology. The estimated savings for the year 2024 is €1000, as efforts will be made to optimise the performance of this methodology. Methodologies based on factors other than the efficiency of the storage system, as in this case, but also considering other factors such as response time, storage capacity, etc., will also be carried out.

Author Contributions

Conceptualization, O.I.-M. and A.Z.-L.; methodology, O.I.-M.; investigation, O.I.-M. and A.H.-J.; software, O.I.-M. and P.P.-C.; validation, O.I.-M. and A.Z.-L.; writing—original draft, O.I.-M.; writing—review and editing, A.Z.-L., A.H.-J. and L.H.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. International Energy Agency. World Energy Outlook 2022. 2022. Available online: https://www.iea.org/reports/world-energy-outlook-2022 (accessed on 20 July 2023).
  2. Ehsan, A.; Yang, Q. Optimal integration and planning of renewable distributed generation in the power distribution networks: A review of analytical techniques. Appl. Energy 2018, 210, 44–59. [Google Scholar] [CrossRef]
  3. Twaisan, K.; Barışçı, N. Integrated Distributed Energy Resources (DER) and Microgrids: Modeling and Optimization of DERs. Electronics 2022, 11, 2816. [Google Scholar] [CrossRef]
  4. International Energy Agency. Net Zero by 2050—A Roadmap for the Global Energy Sector. 2021. Available online: https://www.iea.org/reports/net-zero-by-2050 (accessed on 20 July 2023).
  5. IRENA. Global Renewables Outlook: Energy Transformation 2050; IRENA: Masdar City, United Arab Emirates, 2020. [Google Scholar]
  6. United Nations. Global Roadmap for Accelerated SDG7 Action in Support of the 2030 Agenda for Sustainable Development and the Paris Agreement on Climate Change. No. September 2021; United Nations: New York, NY, USA; pp. 7–10.
  7. Bent, R.; Lawrence, V.D.; Lawrence, M.H.; King, T.; Schneider, K.; Singh, R. Program Vision, Objectives, and R & D Targets in 5 and 10 Years—Topic Area # 1; DOE OE 2021 Strategy White Papers on Microgrids; United States Department of Energy: Washington, DC, USA, 2021; pp. 1–31.
  8. Schneider, K.P.; Balasubramaniam, K.; Fobes, D.; Moreira, A.; Donde, V.; Palmintier, B.; Kuruganti, T.; Ropp, M.E.; Liu, C.-C. T&D Co-Simulation of Microgrid Impacts and Benefits; DOE OE 2021 Strategy White Papers on Microgrids; United States Department of Energy: Washington, DC, USA, 2021.
  9. Boroyevich, D.; Ginn, H., III. Building Blocks for Microgrids; DOE OE 2021 Strategy White Papers on Microgrids; United States Department of Energy: Washington, DC, USA, 2021; pp. 1–36.
  10. Bernstein, A.; Flicker, J.; Madduri, A.; Ollis, B.; Roberts, C.; Singh, R.; Tabarez, J.; Tuffner, F. Microgrids as a Building Block for Future Grids; DOE OE 2021 Strategy White Papers on Microgrids; United States Department of Energy: Washington, DC, USA, 2022.
  11. United States Department of Energy. 2020 Smart Grid System Report; United States Department of Energy: Washington, DC, USA, 2022.
  12. Jain, S.; Kulkarni, A.; Sawle, Y. Overview of Energy Management Systems for Microgrids and Smart Grid. In Planning of Hybrid Renewable Energy Systems, Electric Vehicles and Microgrid: Modeling, Control and Optimization; Bohre, A.K., Chaturvedi, P., Kolhe, M.L., Singh, S.N., Eds.; Springer Nature: Singapore, 2022; pp. 61–88. [Google Scholar] [CrossRef]
  13. Rangarajan, S.S.; Raman, R.; Singh, A.; Shiva, C.K.; Kumar, R.; Sadhu, P.K.; Collins, E.R.; Senjyu, T. DC Microgrids: A Propitious Smart Grid Paradigm for Smart Cities. Smart Cities 2023, 6, 1690–1718. [Google Scholar] [CrossRef]
  14. McPherson, M.; Harvey, L.D.D.; Karney, B. System design and operation for integrating variable renewable energy resources through a comprehensive characterization framework. Renew. Energy 2017, 113, 1019–1032. [Google Scholar] [CrossRef]
  15. Alam, M.S.; Al-Ismail, F.S.; Salem, A.; Abido, M.A. High-Level Penetration of Renewable Energy Sources Into Grid Utility: Challenges and Solutions. IEEE Access 2020, 8, 190277–190299. [Google Scholar] [CrossRef]
  16. Castillo-Calzadilla, T.; Cuesta, M.A.; Olivares-Rodriguez, C.; Macarulla, A.M.; Legarda, J.; Borges, C.E. Is it feasible a massive deployment of low voltage direct current microgrids renewable-based? A technical and social sight. Renew. Sustain. Energy Rev. 2022, 161, 112198. [Google Scholar] [CrossRef]
  17. Vossos, V.; Gerber, D.L.; Gaillet-Tournier, M.; Nordman, B.; Brown, R.; Bernal Heredia, W.; Ghatpande, O.; Saha, A.; Arnold, G.; Frank, S.M. Adoption Pathways for DC Power Distribution in Buildings. Energies 2022, 15, 786. [Google Scholar] [CrossRef]
  18. Naderi, Y.; Hosseini, S.H.; Ghassemzadeh, S.; Mohammadi-Ivatloo, B.; Savaghebi, M.; Vasquez, J.C.; Guerrero, J.M. Chapter 4—Power quality issues of smart microgrids: Applied techniques and decision making analysis. In Decision Making Applications in Modern Power Systems; Aleem, S.H.E.A., Abdelaziz, A.Y., Zobaa, A.F., Bansal, R., Eds.; Academic Press: Cambridge, MA, USA, 2020; pp. 89–119. [Google Scholar] [CrossRef]
  19. Vijayalakshmi, S.; Shenbagalakshmi, R.; Kamalini, C.P.; Marimuthu, M.; Venugopal, R. Power Quality Issues in Smart Grid/Microgrid. In Planning of Hybrid Renewable Energy Systems, Electric Vehicles and Microgrid: Modeling, Control and Optimization; Bohre, A.K., Chaturvedi, P., Kolhe, M.L., Singh, S.N., Eds.; Springer Nature: Singapore, 2022; pp. 403–442. [Google Scholar] [CrossRef]
  20. Zhou, Y.; Ngai-Man Ho, C. A review on Microgrid architectures and control methods. In Proceedings of the 2016 IEEE 8th International Power Electronics and Motion Control Conference (IPEMC-ECCE Asia), Hefei, China, 22–26 May 2016; pp. 3149–3156. [Google Scholar] [CrossRef]
  21. Mawson, V.J.; Hughes, B.R. Optimisation of HVAC control and manufacturing schedules for the reduction of peak energy demand in the manufacturing sector. Energy 2021, 227, 120436. [Google Scholar] [CrossRef]
  22. Mohammadi, F.; Mohammadi-Ivatloo, B.; Gharehpetian, G.B.; Ali, M.H.; Wei, W.; Erdinç, O.; Shirkhani, M. Robust Control Strategies for Microgrids: A Review. IEEE Syst. J. 2022, 16, 2401–2412. [Google Scholar] [CrossRef]
  23. Jirdehi, M.A.; Tabar, V.S.; Ghassemzadeh, S.; Tohidi, S. Different aspects of microgrid management: A comprehensive review. J. Energy Storage 2020, 30, 101457. [Google Scholar] [CrossRef]
  24. Cabana-Jiménez, K.; Candelo-Becerra, J.E.; Santos, V.S. Comprehensive Analysis of Microgrids Configurations and Topologies. Sustainability 2022, 14, 1056. [Google Scholar] [CrossRef]
  25. Sepúlveda-Mora, S.B.; Hegedus, S. Resilience analysis of renewable microgrids for commercial buildings with different usage patterns and weather conditions. Renew. Energy 2022, 192, 731–744. [Google Scholar] [CrossRef]
  26. Muqeet, H.A.; Munir, H.M.; Javed, H.; Shahzad, M.; Jamil, M.; Guerrero, J.M. An Energy Management System of Campus Microgrids: State-of-the-Art and Future Challenges. Energies 2021, 14, 6525. [Google Scholar] [CrossRef]
  27. Chaudhary, G.; Lamb, J.J.; Burheim, O.S.; Austbø, B. Review of Energy Storage and Energy Management System Control Strategies in Microgrids. Energies 2021, 14, 4929. [Google Scholar] [CrossRef]
  28. Azuatalam, D.; Paridari, K.; Ma, Y.; Förstl, M.; Chapman, A.C.; Verbič, G. Energy management of small-scale PV-battery systems: A systematic review considering practical implementation, computational requirements, quality of input data and battery degradation. Renew. Sustain. Energy Rev. 2019, 112, 555–570. [Google Scholar] [CrossRef]
  29. Dong, W.; Sun, H.; Mei, C.; Li, Z.; Zhang, J.; Yang, H.; Ding, Y. Stochastic optimal scheduling strategy for a campus-isolated microgrid energy management system considering dependencies. Energy Convers. Manag. 2023, 292, 117341. [Google Scholar] [CrossRef]
  30. EI-Bidairi, K.S.; Nguyen, H.D.; Jayasinghe, S.D.G.; Mahmoud, T.S. Multiobjective Intelligent Energy Management Optimization for Grid-Connected Microgrids. In Proceedings of the 2018 IEEE International Conference on Environment and Electrical Engineering and 2018 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Palermo, Italy, 12–15 June 2018; pp. 1–6. [Google Scholar] [CrossRef]
  31. Adefarati, T.; Bansal, R.C. Reliability, economic and environmental analysis of a microgrid system in the presence of renewable energy resources. Appl. Energy 2019, 236, 1089–1114. [Google Scholar] [CrossRef]
  32. Sukumar, S.; Mokhlis, H.; Mekhilef, S.; Naidu, K.; Karimi, M. Mix-mode energy management strategy and battery sizing for economic operation of grid-tied microgrid. Energy 2017, 118, 1322–1333. [Google Scholar] [CrossRef]
  33. Zhao, T.; Ding, Z. Distributed Finite-Time Optimal Resource Management for Microgrids Based on Multi-Agent Framework. IEEE Trans. Ind. Electron. 2018, 65, 6571–6580. [Google Scholar] [CrossRef]
  34. Ahmed, D.; Ebeed, M.; Ali, A.; Alghamdi, A.S.; Kamel, S. Multi-Objective Energy Management of a Micro-Grid Considering Stochastic Nature of Load and Renewable Energy Resources. Electronics 2021, 10, 403. [Google Scholar] [CrossRef]
  35. Alshehri, M.A.H.; Guo, Y.; Lei, G. Renewable-Energy-Based Microgrid Design and Feasibility Analysis for King Saud University Campus, Riyadh. Sustainability 2023, 15, 10708. [Google Scholar] [CrossRef]
  36. Azerefegn, T.M.; Bhandari, R.; Ramayya, A.V. Techno-economic analysis of grid-integrated PV/wind systems for electricity reliability enhancement in Ethiopian industrial park. Sustain. Cities Soc. 2020, 53, 101915. [Google Scholar] [CrossRef]
  37. Al-Ghussain, L.; Samu, R.; Taylan, O.; Fahrioglu, M. Sizing renewable energy systems with energy storage systems in microgrids for maximum cost-efficient utilization of renewable energy resources. Sustain. Cities Soc. 2020, 55, 102059. [Google Scholar] [CrossRef]
  38. Harrold, D.J.B.; Cao, J.; Fan, Z. Data-driven battery operation for energy arbitrage using rainbow deep reinforcement learning. Energy 2022, 238, 121958. [Google Scholar] [CrossRef]
  39. Mariano-Hernández, D.; Hernández-Callejo, L.; Zorita-Lamadrid, A.; Duque-Pérez, O.; García, F.S. A review of strategies for building energy management system: Model predictive control, demand side management, optimization, and fault detect & diagnosis. J. Build. Eng. 2021, 33, 101692. [Google Scholar] [CrossRef]
  40. Jin, M.; Feng, W.; Liu, P.; Marnay, C.; Spanos, C. MOD-DR: Microgrid optimal dispatch with demand response. Appl. Energy 2017, 187, 758–776. [Google Scholar] [CrossRef]
  41. Palma-Behnke, R.; Benavides, C.; Aranda, E.; Llanos, J.; Sáez, D. Energy management system for a renewable based microgrid with a demand side management mechanism. In Proceedings of the 2011 IEEE Symposium on Computational Intelligence Applications in Smart Grid (CIASG), Paris, France, 11–15 April 2011; pp. 1–8. [Google Scholar] [CrossRef]
  42. Elavarasan, R.M.; Leoponraj, S.; Dheeraj, A.; Irfan, M.; Sundar, G.G.; Mahesh, G.K. PV-Diesel-Hydrogen fuel cell based grid connected configurations for an institutional building using BWM framework and cost optimization algorithm. Sustain. Energy Technol. Assess. 2021, 43, 100934. [Google Scholar] [CrossRef]
  43. Shahryari, E.; Shayeghi, H.; Mohammadi-ivatloo, B.; Moradzadeh, M. A copula-based method to consider uncertainties for multi-objective energy management of microgrid in presence of demand response. Energy 2019, 175, 879–890. [Google Scholar] [CrossRef]
  44. Erenoğlu, A.K.; Şengör, İ.; Erdinç, O.; Taşcıkaraoğlu, A.; Catalão, J.P.S. Optimal energy management system for microgrids considering energy storage, demand response and renewable power generation. Int. J. Electr. Power Energy Syst. 2022, 136, 107714. [Google Scholar] [CrossRef]
  45. Wang, P.; Cao, Y.; Ding, Z. Flexible Multi-Energy Scheduling Scheme for Data Center to Facilitate Wind Power Integration. IEEE Access 2020, 8, 88876–88891. [Google Scholar] [CrossRef]
  46. Tabar, V.S.; Jirdehi, M.A.; Hemmati, R. Energy management in microgrid based on the multi objective stochastic programming incorporating portable renewable energy resource as demand response option. Energy 2017, 118, 827–839. [Google Scholar] [CrossRef]
  47. Zhang, Q.; Li, J. Demand response in electricity markets: A review. In Proceedings of the 2012 9th International Conference on the European Energy Market, Florence, Italy, 10–12 May 2012; pp. 1–8. [Google Scholar] [CrossRef]
  48. Nolan, S.; O’Malley, M. Challenges and barriers to demand response deployment and evaluation. Appl. Energy 2015, 152, 1–10. [Google Scholar] [CrossRef]
  49. Jordehi, A.R. Optimisation of demand response in electric power systems, a review. Renew. Sustain. Energy Rev. 2019, 103, 308–319. [Google Scholar] [CrossRef]
  50. Javed, H.; Muqeet, H.A.; Shehzad, M.; Jamil, M.; Khan, A.A.; Guerrero, J.M. Optimal Energy Management of a Campus Microgrid Considering Financial and Economic Analysis with Demand Response Strategies. Energies 2021, 14, 8501. [Google Scholar] [CrossRef]
  51. Nirbheram, J.S.; Mahesh, A.; Bhimaraju, A. Techno-economic analysis of grid-connected hybrid renewable energy system adapting hybrid demand response program and novel energy management strategy. Renew. Energy 2023, 212, 1–16. [Google Scholar] [CrossRef]
  52. Monfared, H.J.; Ghasemi, A.; Loni, A.; Marzband, M. A hybrid price-based demand response program for the residential micro-grid. Energy 2019, 185, 274–285. [Google Scholar] [CrossRef]
  53. Farrokhabadi, M.; Canizares, C.A.; Simpson-Porco, J.W.; Nasr, E.; Fan, L.; Mendoza-Araya, P.A.; Tonkoski, R.; Tamrakar, U.; Hatziargyriou, N.; Lagos, D.; et al. Microgrid Stability Definitions, Analysis, and Examples. IEEE Trans. Power Syst. 2020, 35, 13–29. [Google Scholar] [CrossRef]
  54. Al-Ghussain, L.; Ahmad, A.D.; Abubaker, A.M.; Mohamed, M.A. An integrated photovoltaic/wind/biomass and hybrid energy storage systems towards 100% renewable energy microgrids in university campuses. Sustain. Energy Technol. Assess. 2021, 46, 101273. [Google Scholar] [CrossRef]
  55. Naeem, A.; Ul Hassan, N.; Yuen, C.; Muyeen, S.M. Maximizing the Economic Benefits of a Grid-Tied Microgrid Using Solar-Wind Complementarity. Energies 2019, 12, 395. [Google Scholar] [CrossRef]
  56. Dorahaki, S.; Dashti, R.; Shaker, H.R. Optimal energy management in the smart microgrid considering the electrical energy storage system and the demand-side energy efficiency program. J. Energy Storage 2020, 28, 101229. [Google Scholar] [CrossRef]
  57. Basnet, S.; Deschinkel, K.; Le Moyne, L.; Cécile Péra, M. A review on recent standalone and grid integrated hybrid renewable energy systems: System optimization and energy management strategies. Renew. Energy Focus 2023, 46, 103–125. [Google Scholar] [CrossRef]
  58. Bracco, S.; Delfino, F.; Laiolo, P.; Rossi, M. The Smart City Energy infrastructures at the Savona Campus of the University of Genoa. In Proceedings of the 2016 AEIT International Annual Conference (AEIT), Capri, Italy, 5–7 October 2016; pp. 1–6. [Google Scholar] [CrossRef]
  59. Khan, M.W.; Wang, J.; Xiong, L.; Ma, M. Modelling and optimal management of distributed microgrid using multi-agent systems. Sustain. Cities Soc. 2018, 41, 154–169. [Google Scholar] [CrossRef]
  60. Zou, B.; Peng, J.; Li, S.; Li, Y.; Yan, J.; Yang, H. Comparative study of the dynamic programming-based and rule-based operation strategies for grid-connected PV-battery systems of office buildings. Appl. Energy 2022, 305, 117875. [Google Scholar] [CrossRef]
  61. Broderick, R.; Garcia, B.M.; Horn, S.E.; Lave, M.S. Microgrid Conceptual Design Guidebook; U.S. Deparment of Energy: New York, NY, USA, 2022; pp. 1–48.
  62. Liu, C.; Wang, X.; Wu, X.; Guo, J. Economic scheduling model of microgrid considering the lifetime of batteries. IET Gener. Transm. Distrib. 2017, 11, 759–767. [Google Scholar] [CrossRef]
  63. Truong, C.N.; Naumann, M.; Karl, R.C.; Müller, M.; Jossen, A.; Hesse, H.C. Economics of Residential Photovoltaic Battery Systems in Germany: The Case of Tesla’s Powerwall. Batteries 2016, 2, 14. [Google Scholar] [CrossRef]
  64. Lambert, H.; Roche, R.; Jemeï, S.; Ortega, P.; Hissel, D. Combined Cooling and Power Management Strategy for a Standalone House Using Hydrogen and Solar Energy. Hydrogen 2021, 2, 207–224. [Google Scholar] [CrossRef]
  65. Jurasz, J.; Guezgouz, M.; Campana, P.E.; Kies, A. On the impact of load profile data on the optimization results of off-grid energy systems. Renew. Sustain. Energy Rev. 2022, 159, 112199. [Google Scholar] [CrossRef]
  66. Upadhyay, S.; Sharma, M.P. Selection of a suitable energy management strategy for a hybrid energy system in a remote rural area of India. Energy 2016, 94, 352–366. [Google Scholar] [CrossRef]
  67. Grisales-Noreña, L.F.; Ramos-Paja, C.A.; Gonzalez-Montoya, D.; Alcalá, G.; Hernandez-Escobedo, Q. Energy Management in PV Based Microgrids Designed for the Universidad Nacional de Colombia. Sustainability 2020, 12, 1219. [Google Scholar] [CrossRef]
  68. Wu, X.; Li, S.; Gan, S.; Hou, C. An Adaptive Energy Optimization Method of Hybrid Battery-Supercapacitor Storage System for Uncertain Demand. Energies 2022, 15, 1765. [Google Scholar] [CrossRef]
  69. Sufyan, M.; Abd Rahim, N.; Tan, C.; Muhammad, M.A.; Sheikh Raihan, S.R. Optimal sizing and energy scheduling of isolated microgrid considering the battery lifetime degradation. PLoS ONE 2019, 14, e0211642. [Google Scholar] [CrossRef] [PubMed]
  70. Ndiaye, A.; Locment, F.; De Bernardinis, A.; Sechilariu, M.; Redondo-Iglesias, E. A Techno-Economic Analysis of Energy Storage Components of Microgrids for Improving Energy Management Strategies. Energies 2022, 15, 1556. [Google Scholar] [CrossRef]
  71. Jamal, T.; Urmee, T.; Shafiullah, G.M.; Shahnia, F. Using Experts’ Opinions and Multi-Criteria Decision Analysis to Determine the Weighing of Criteria Employed in Planning Remote Area Microgrids. In Proceedings of the 2018 International Conference and Utility Exhibition on Green Energy for Sustainable Development (ICUE), Phuket, Thailand, 24–26 October 2018; pp. 1–7. [Google Scholar] [CrossRef]
  72. Kanase-Patil, A.B.; Saini, R.P.; Sharma, M.P. Development of IREOM model based on seasonally varying load profile for hilly remote areas of Uttarakhand state in India. Energy 2011, 36, 5690–5702. [Google Scholar] [CrossRef]
  73. Mah, A.X.Y.; Ho, W.S.; Hassim, M.H.; Hashim, H.; Ling, G.H.T.; Ho, C.S.; Ab Muis, Z. Optimization of a standalone photovoltaic-based microgrid with electrical and hydrogen loads. Energy 2021, 235, 121218. [Google Scholar] [CrossRef]
  74. Khan, M.W.; Wang, J.; Xiong, L. Optimal energy scheduling strategy for multi-energy generation grid using multi-agent systems. Int. J. Electr. Power Energy Syst. 2021, 124, 106400. [Google Scholar] [CrossRef]
  75. Liu, G.; Xu, Y.; Tomsovic, K. Bidding Strategy for Microgrid in Day-Ahead Market Based on Hybrid Stochastic/Robust Optimization. IEEE Trans. Smart Grid 2016, 7, 227–237. [Google Scholar] [CrossRef]
  76. De Oliveira-Assis, L.; García-Trivino, P.; Soares-Ramos, E.P.; Sarrias-Mena, R.; García-Vázquez, C.A.; Ugalde-Loo, C.E.; Fernández-Ramírez, L.M. Optimal energy management system using biogeography based optimization for grid-connected MVDC microgrid with photovoltaic, hydrogen system, electric vehicles and Z-source converters. Energy Convers. Manag. 2021, 248, 114808. [Google Scholar] [CrossRef]
  77. Javed, M.S.; Jurasz, J.; McPherson, M.; Dai, Y.; Ma, T. Quantitative evaluation of renewable-energy-based remote microgrids: Curtailment, load shifting, and reliability. Renew. Sustain. Energy Rev. 2022, 164, 112516. [Google Scholar] [CrossRef]
  78. Ebrahimi, J.; Abedini, M.; Rezaei, M.M. Optimal scheduling of distributed generations in microgrids for reducing system peak load based on load shifting. Sustain. Energy Grids Netw. 2020, 23, 100368. [Google Scholar] [CrossRef]
  79. Bendato, I.; Bonfiglio, A.; Brignone, M.; Delfino, F.; Pampararo, F.; Procopio, R. Definition and on-field validation of a microgrid energy management system to manage load and renewables uncertainties and system operator requirements. Electr. Power Syst. Res. 2017, 146, 349–361. [Google Scholar] [CrossRef]
  80. Yang, H.; Pan, H.; Luo, F.; Qiu, J.; Deng, Y.; Lai, M.; Dong, Z.Y. Operational Planning of Electric Vehicles for Balancing Wind Power and Load Fluctuations in a Microgrid. IEEE Trans. Sustain. Energy 2017, 8, 592–604. [Google Scholar] [CrossRef]
  81. Kamankesh, H.; Agelidis, V.G.; Kavousi-Fard, A. Optimal scheduling of renewable micro-grids considering plug-in hybrid electric vehicle charging demand. Energy 2016, 100, 285–297. [Google Scholar] [CrossRef]
  82. Sarker, E.; Seyedmahmoudian, M.; Jamei, E.; Horan, B.; Stojcevski, A. Optimal management of home loads with renewable energy integration and demand response strategy. Energy 2020, 210, 118602. [Google Scholar] [CrossRef]
  83. Zachar, M.; Daoutidis, P. Scheduling and supervisory control for cost effective load shaping of microgrids with flexible demands. J. Process Control 2019, 74, 202–214. [Google Scholar] [CrossRef]
  84. Levron, Y.; Shmilovitz, D. Power systems’ optimal peak-shaving applying secondary storage. Electr. Power Syst. Res. 2012, 89, 80–84. [Google Scholar] [CrossRef]
  85. Rana, M.M.; Atef, M.; Sarkar, M.R.; Uddin, M.; Shafiullah, G.M. A Review on Peak Load Shaving in Microgrid—Potential Benefits, Challenges, and Future Trend. Energies 2022, 15, 2278. [Google Scholar] [CrossRef]
  86. Ceran, B.; Jurasz, J.; Mielcarek, A.; Campana, P.E. PV systems integrated with commercial buildings for local and national peak load shaving in Poland. J. Clean. Prod. 2021, 322, 129076. [Google Scholar] [CrossRef]
  87. Chapaloglou, S.; Nesiadis, A.; Atsonios, K.; Nikolopoulos, N.; Grammelis, P.; Carrera, A.; Camara, O. Microgrid energy management strategies assessment through coupled thermal-electric considerations. Energy Convers. Manag. 2021, 228, 113711. [Google Scholar] [CrossRef]
  88. Zhang, L.; Yang, Y.; Li, Q.; Gao, W.; Qian, F.; Song, L. Economic optimization of microgrids based on peak shaving and CO2 reduction effect: A case study in Japan. J. Clean. Prod. 2021, 321, 128973. [Google Scholar] [CrossRef]
  89. Liu, G.; Ollis, T.B.; Xiao, B.; Zhang, X.; Tomsovic, K. Distributed energy management for community microgrids considering phase balancing and peak shaving. IET Gener. Transm. Distrib. 2019, 13, 1612–1620. [Google Scholar] [CrossRef]
  90. Oudalov, A.; Cherkaoui, R.; Beguin, A. Sizing and Optimal Operation of Battery Energy Storage System for Peak Shaving Application. In Proceedings of the 2007 IEEE Lausanne Power Tech, Lausanne, Switzerland, 1–5 July 2007; pp. 621–625. [Google Scholar] [CrossRef]
  91. Londák, J.; Vargic, R.; Podhradský, P. Peak Shaving in Microgrids Using Hybrid Storage. In Proceedings of the Seventh International Congress on Information and Communication Technology, London, UK, 21–24 February 2022; Yang, X.-S., Sherratt, S., Dey, N., Joshi, A., Eds.; Springer Nature: Singapore, 2023; pp. 63–73. [Google Scholar]
  92. Kuźniak, R.; Pawelec, A.; Bartosik, A.; Pawełczyk, M. Determination of the Electricity Storage Power and Capacity for Cooperation with the Microgrid Implementing the Peak Shaving Strategy in Selected Industrial Enterprises. Energies 2022, 15, 4793. [Google Scholar] [CrossRef]
  93. Abbasi, A.; Khalid, H.A.; Rehman, H.; Khan, A.U. A Novel Dynamic Load Scheduling and Peak Shaving Control Scheme in Community Home Energy Management System Based Microgrids. IEEE Access 2023, 11, 32508–32522. [Google Scholar] [CrossRef]
  94. Izquierdo-Monge, O.; Redondo-Plaza, A.; Peña-Carro, P.; Zorita-Lamadrid, Á.; Alonso-Gómez, V.; Hernández-Callejo, L. Open Source Monitoring and Alarm System for Smart Microgrids Operation and Maintenance Management. Electronics 2023, 12, 2471. [Google Scholar] [CrossRef]
  95. Izquierdo-Monge, O.; Martinez-Gurría, M.; Peña-Carro, P. Energy management of the CEDER’s smart microgrid with different battery technologies. In Proceedings of the V Iberoamerican Conference of Smart Cities—ISCS-CITIES 2022, Cuenca, Ecuador, 28–30 November 2022. [Google Scholar]
Figure 1. Data and command flow between microgrid elements.
Figure 1. Data and command flow between microgrid elements.
Applsci 14 01946 g001
Figure 2. Energy microgrid management flowchart.
Figure 2. Energy microgrid management flowchart.
Applsci 14 01946 g002
Figure 3. Flowchart of the charging of the electrical storage systems of a microgrid.
Figure 3. Flowchart of the charging of the electrical storage systems of a microgrid.
Applsci 14 01946 g003
Figure 4. Lead-acid batteries PEPAI Control panel in Home Assistant.
Figure 4. Lead-acid batteries PEPAI Control panel in Home Assistant.
Applsci 14 01946 g004
Figure 5. LFP Batteries control panel in Home Assistant.
Figure 5. LFP Batteries control panel in Home Assistant.
Applsci 14 01946 g005
Figure 6. Pricing periods according to CEDER’s electricity bill (Contract 6.1 TD).
Figure 6. Pricing periods according to CEDER’s electricity bill (Contract 6.1 TD).
Applsci 14 01946 g006
Figure 7. CEDER microgrid consumption without using ESS (16 February 2023).
Figure 7. CEDER microgrid consumption without using ESS (16 February 2023).
Applsci 14 01946 g007
Figure 8. Energy generated by ESS (16 February 2023).
Figure 8. Energy generated by ESS (16 February 2023).
Applsci 14 01946 g008
Figure 9. CEDER microgrid consumption using ESS (16 February 2023).
Figure 9. CEDER microgrid consumption using ESS (16 February 2023).
Applsci 14 01946 g009
Figure 10. CEDER microgrid consumption without using ESS (12 January 2023).
Figure 10. CEDER microgrid consumption without using ESS (12 January 2023).
Applsci 14 01946 g010
Figure 11. Energy generated by ESS (12 January 2023).
Figure 11. Energy generated by ESS (12 January 2023).
Applsci 14 01946 g011
Figure 12. CEDER microgrid consumption using ESS (12 January 2023).
Figure 12. CEDER microgrid consumption using ESS (12 January 2023).
Applsci 14 01946 g012
Table 1. Turbine water consumption at different operating powers.
Table 1. Turbine water consumption at different operating powers.
Turbine Energy (kWh)Water Consumption (m3)m3/kWh
7.5100.613.4
15147.39.1
22.5202.29.0
30265.18.8
35311.78.9
40441.811.l
Table 2. m3 of water lifted to the upper tank with one, two, three, and four pumps.
Table 2. m3 of water lifted to the upper tank with one, two, three, and four pumps.
Pumps/Power (kWh)Water Rising (m3)m3/kWh
1 Pump/7.521.60.231
2 Pumps/1543.30.232
3 Pumps/22.564.90.231
4 Pumps/3086.50.230
Table 3. Performance of the hydraulic system at different operating powers.
Table 3. Performance of the hydraulic system at different operating powers.
Power (kW)Performance (%)
7.521.5
1529.4
22.532.1
3032.6
Table 4. Lead-acid battery PEPA I discharging and charging at different powers.
Table 4. Lead-acid battery PEPA I discharging and charging at different powers.
DischargingChargingPerformance
Power (kW)Energy (kWh)Energy (kWh)%
1015218383.1
209411482.5
308310083
Table 5. Lead-acid battery PEPA II discharging and charging at different powers.
Table 5. Lead-acid battery PEPA II discharging and charging at different powers.
DischargingChargingPerformance
Power (kW)Energy (kWh)Energy (kWh)%
4102.5124.682.2
1294.210788.1
1653.172.773.1
Table 6. LFP battery discharging and charging at different powers.
Table 6. LFP battery discharging and charging at different powers.
DischargingChargingPerformance
Power (kW)Energy (kWh)Energy (kWh)%
5254358
10244060
20233762
Table 7. Performance of generation sources and storage systems in the CEDER microgrid.
Table 7. Performance of generation sources and storage systems in the CEDER microgrid.
SystemPerformance (%)
Lead-acid battery PEPA I83
Lead-acid battery PEPA II80
LFP Battery60
Hydraulic system (Turbine/Pumps)32
Table 8. kWh prices (in euros €) for each period according to CEDER’s electricity bill (Contract 6.1 TD).
Table 8. kWh prices (in euros €) for each period according to CEDER’s electricity bill (Contract 6.1 TD).
P1P2P3P4P5P6
0.331692 €0.319483 €0.277395 €0.262635 €0.246811 €0.260134 €
Table 9. Savings achieved in terms of energy and money at the CEDER microgrid (reducing energy consumption).
Table 9. Savings achieved in terms of energy and money at the CEDER microgrid (reducing energy consumption).
Period of TimeEnergy SavingsMoney Savings
Day340 kWh110 €
Week500 kWh165 €
Month2170 kWh710 €
Year26,080 kWh8500 €
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Izquierdo-Monge, O.; Peña-Carro, P.; Hernández-Jiménez, A.; Zorita-Lamadrid, A.; Hernández-Callejo, L. Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems. Appl. Sci. 2024, 14, 1946. https://doi.org/10.3390/app14051946

AMA Style

Izquierdo-Monge O, Peña-Carro P, Hernández-Jiménez A, Zorita-Lamadrid A, Hernández-Callejo L. Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems. Applied Sciences. 2024; 14(5):1946. https://doi.org/10.3390/app14051946

Chicago/Turabian Style

Izquierdo-Monge, Oscar, Paula Peña-Carro, Angel Hernández-Jiménez, Angel Zorita-Lamadrid, and Luis Hernández-Callejo. 2024. "Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems" Applied Sciences 14, no. 5: 1946. https://doi.org/10.3390/app14051946

APA Style

Izquierdo-Monge, O., Peña-Carro, P., Hernández-Jiménez, A., Zorita-Lamadrid, A., & Hernández-Callejo, L. (2024). Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems. Applied Sciences, 14(5), 1946. https://doi.org/10.3390/app14051946

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