Introduction

The integration of photovoltaic (PV) solar and wind energy, along with diesel generators in off-grid or grid-connected systems, presents numerous advantages. Despite these benefits, there exists a research gap in addressing specific challenges related to intelligent power management control (IPMC) for hybrid renewable energy systems (HRES)1. The intermittency of solar and wind sources, the necessity for effective energy storage, and the reliance on backup sources during periods of low renewable energy output pose challenges that warrant focused investigation2. The motivation behind this study is to contribute to filling this research gap by proposing an innovative IPMC solution employing fuzzy logic control (FLC).

Maximum Power Point Tracking (MPPT) methods are also important for improving the efficiency of solar and wind energy systems3. MPPT techniques ensure that these systems run at maximum power output by constantly modifying the operating point to reflect changing environmental conditions. There is various maximum power point tracking (MPPT) strategies with different algorithms depending on the specific application. In PV systems, there exist diverse classical and advanced MPPT methods. Classical MPPT approaches are further classified as direct or indirect. Perturb and observe algorithm (P&O) method is the most commonly applied4,5.

Some popular advanced MPPT methods include Particle Swarm Optimization (PSO), Fuzzy Logic Control (FLC), Artificial Neural Networks (ANN), Genetic Algorithm (GA), and others. Hybrid MPPT, which is the combination of two MPPT methods, has been gaining in popularity becoming popular in recent years. For sophisticated MPPT methods, there are several approaches. The most used are the Particle Swarm Optimization (PSO)6, the Modified PSO (MPSO)7,8, the ant colony optimization (ACO)9, the Fuzzy logic Control (FLC)8,10,11,12,13, the Adaptive Fuzzy logic Control (AFLC)8,14,15, the Artificial Neural Networks (ANN)16, the Genetic algorithm (GA)17, the Quadratic Maximization algorithm (QM)18, the Cuckoo search approach (CSA)19, the Jaya algorithm (JA)20, the Grey wolf optimization (GWO) and MGO21, the Cat swarm optimization (CSO)22, etc. Hybrid MPPT (HMPPT) techniques have been used extensively during these last years. It can be a combination of two classical strategies (CMPPT-CMPPT) or a classical with an advanced one (CMPPT-AMPPT)6,9, or with two advanced methods (AMPPT-AMPPT)23. Different controllers are also used in wind turbines to track maximum power24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40, including classical strategies such as Perturb and Observe (P&O)24, Hill Climbing Search (HCS)25, Tip Speed Ratio (TSR)26, Optimal Torque Control (OTC)27, Power Signal Feedback (PSF)28 etc. Advanced methods include Fuzzy Logic Controller (FLC), Adaptive Fuzzy Logic Control (AFLC)29, Genetic Algorithm (GA))30, Adaptive Neuro-Fuzzy Inference System (ANFIS)31, Artificial Neural Network (ANN)32, Particle Swarm Optimization (PSO)33, Radial Basis Function Network (RBFM)34, Sliding Mode Control (SMC)35, Gradient Method (GM)36, Ant Colony Optimization (ACO). Hybrid MPPT methods can be combinations of two classical methods (HCS-OTC…) or a classical method and an advanced method (HCS-FLC OTC-FLC37, or two advanced methods39,40,41,42,43. In summary, the methods and techniques discussed earlier serve the purpose of enhancing the effectiveness of renewable energy systems. The selection of a suitable Maximum Power Point Tracking (MPPT) method depends on the unique features of the renewable energy system and the desired performance criteria.

The power management control (PMC) in a system is important in controlling the flow of energy from different sources and ensuring a stable output voltage and frequency38,41,42,43,44,45,46,47. First, Hybrid power generation systems typically combine multiple sources of energy, such as solar panels, wind turbines, fossil fuel generators, and energy storage systems. Each of these sources can have different characteristics and output profiles. In addition to that, PMC plays a pivotal role in seamlessly integrating and coordinating the energy flow from these diverse sources42. PMC ensures that the power generated from different sources is synchronized and controlled to meet the required output specifications43. Power demand in real-world scenarios is often variable and dynamic. In addition to adapting to changes in load demand and ensures that the energy sources respond effectively to maintain system stability. PMC can prioritize energy sources based on their availability and capacity to meet the demand1,8,37. The aforementioned strategy can make intelligent decisions about which energy sources to utilize at any given time. It considers factors like the availability of renewable energy sources (e.g., solar and wind), the cost of fossil fuel generation, and the state of charge of energy storage systems44. Enhancing the reliability and resilience of hybrid power systems, power management strategies can quickly adapt to changes, such as sudden cloud cover or wind fluctuations, by shifting between energy sources or adjusting their output to ensure a constant power supply47. A primary objective of power management techniques is the efficient utilization of available energy sources. By avoiding energy wastage and ensuring that each source operates at its optimal point, PMC enhances the overall system efficiency. The PMC can use various control strategies such as MPPT algorithms. The FLC can be used as a power management strategy in a multi-source energy system that combines photovoltaic, wind turbine, diesel generator, and storage battery. It is capable of successfully coordinating and managing energy distribution amongst these sources to increase overall system performance and efficiency. The FLC optimizes system performance by determining the most cost-effective power source to use depending on a variety of criteria such as the solar and wind power availability, the diesel fuel cost and the battery state of charge. The adaptability and decision-making capabilities offered by Fuzzy logic controllers make them valuable tool for optimizing the operation of complex hybrid power generation systems.

The need for a backup energy source in hybrid renewable energy systems (HRES) is crucial because solar irradiance, wind speed is unreliable and subject to natural variations. These variations can lead to periods of low or no energy production from these sources, and a backup energy source ensures continuous power supply even during such unpredictable conditions48,49. This backup source could be conventional fossil fuels or other reliable energy sources like natural gas, diesel generators or biomass that can be easily dispatched when needed, ensuring the stability and reliability of the HRES. These backup energy sources serve as a safety net, ensuring that essential services and power needs can be met when the primary renewable energy sources are not producing enough energy. However, efforts are continually being made to reduce the reliance on non-renewable backup sources by improving energy storage technologies and grid management to enhance the reliability of HRES systems while minimizing the use of backup fossil fuels50. Numerous studies have been conducted and published in the literature focusing on managing the energy use of electricity consumers and hybrid renewable energy sources (HRES)50,51. Research in this area is crucial for advancing the development and deployment of more sustainable and efficient energy systems. These studies typically aim to address various aspects of energy management, such as optimizing energy consumption, integrating renewable energy sources effectively, and improving overall energy sustainability. Some common areas of research in this field may include Demand-Side Management (DSM), Grid Integration, Energy Storage, Energy Management Systems (EMS), Economic and Environmental Analysis, Technological Advancements, (Table 1).

Table 1 Some common areas of research in this field of HRES.

The proposed approach is crucial because it addresses the identified research gap in HRES's intelligent power management control. It offers a dynamic and adaptive solution, optimizing energy distribution and balancing multiple sources effectively. The emphasis on reducing reliance on non-renewable backup sources aligns with sustainability goals, making the proposed IPMC a valuable contribution to the field. The comprehensive evaluation methodology ensures the practical applicability and reliability of the proposed solution in real-world scenarios. Overall, the need for the proposed approach stems from its potential to enhance the resilience, stability, and efficiency of hybrid renewable energy systems.

The hybrid power system discussed in this work comprises PV panels, a wind turbine, with a diesel generator and battery storage. This mix of energy sources allows for a more robust and versatile power generation system. The employment of a power flow or supervisory approach facilitates the management of the various power sources. This technique has been mentioned in past investigations1,8,9,43,47. The method is described as simple, quick, easy to implement, and does not involve heavy computations. The principal purpose of the proposed IPMC is to meet the load power needs. A secondary purpose is to keep the battery charged at a level that prevents blackouts and extends the overall lifespan of the battery. This dual-goal approach emphasizes the importance of both supplying immediate power needs and ensuring long-term stability and reliability.

Challenges arise from the variability of solar irradiation and wind availability, impacting the reliable and consistent delivery of energy. Current solutions involve backup mechanisms and energy storage, often relying on conventional fossil fuels. Efforts to minimize this dependence and enhance the reliability of HRES systems are ongoing, emphasizing the need for advanced control strategies. In this context, the proposed IPMC using FLC aims to optimize the performance of energy sources, extend their lifespan, and ensure continuous power supply. Unlike existing strategies, the IPMC considers variations in climatic conditions and efficiently balances multiple power sources. The contribution of this study lies in the development of a dynamic and adaptive IPMC solution tailored to the challenges specific to HRES. The study employs MATLAB/Simulink simulations and real-time findings from the RT-LAB simulator, providing a comprehensive evaluation. The proposed IPMC not only addresses current challenges in HRES but also contributes to the advancement of intelligent power management strategies for sustainable and efficient energy systems.

Studied hybrid system

The hybrid system integrates solar and wind sources, a diesel generator and batteries for storage (Fig. 1). Hybridization of wind and solar energy aims to leverage the complementary nature of these sources, considering their intermittent nature. A diesel backup generator is included in the system to provide additional power during low energy production or high demand, ensuring continuous power availability. Also, batteries play a crucial role in storing excess energy during times of high renewable energy production and releasing it when energy demand exceeds the current production. Diesel backup generators and batteries help to ensure a steady and reliable power supply, especially during times when renewable energy is scarce. The combination of wind and solar energy sources, coupled with backup capabilities from the diesel generator and energy storage, provides a more robust and resilient power generation system.

Figure 1
figure 1

Proposed hybrid system with power management control.

Photovoltaic model

Mathematical models are quite important in understanding and predicting the behavior of photovoltaic (PV) generators. The model to be used is determined by the amount of precision required, the complexity of the simulation, and the data available for parameterization. Each model has its strengths and limitations68,69. Table 2 gives the advantages and the drawbacks of the different types of mathematical models commonly used in PV generator modeling, each with its specific focus and application.

Table 2 Advantages and drawbacks of different types of mathematical models8.

The one-diode model is commonly used in PV system modeling for several practical reasons as simplicity and accuracy, so it is used in our work. In this case, the electrical current is (Fig. 2)1,8:

$${{\text{I}}}_{{\text{pv}}}= {{\text{I}}}_{{\text{ph}}}-{{\text{I}}}_{{\text{d}}}-{{\text{I}}}_{{\text{Rsh}}}$$
(1)

with: Iph the photo-current, Id the diode-current and IRsh the shunt resistance Rsh.

Figure 2
figure 2

PV one diode model.

Based on experimental tests (Fig. 3), the parameters of a PV panel have been determined (Figs. 4 and 5) utilizing the electrical properties of PV (80Wp)8. Measurement sensors was used to measure the sun radiation, and temperature, to transfer the different signals to a data processing interface and then to a PC where they will be displayed using ACQUIsol software in real-time.

Figure 3
figure 3

Determination of the electrical characteristics.

Figure 4
figure 4

Ipv(Vpv) curves (simulation and experimental).

Figure 5
figure 5

Ppv(Vpv) curves (simulation and experimental).

The established experimental bench is composed by an 80Wp panel (Table 3.), a voltmeter and an amperemeter with a variable load. The ambient temperature and solar irradiance are measured by using measurements devices. Extensive numerical simulations were carried out under MATLAB/Simulink environment. Runge Kutta of 4th order is used as a solver with a step of 1e−5.

Table 3 Parameters of the photovoltaic panel 80 Wp.

Wind turbine modeling

The system shown in Fig. 6. includes a wind turbine, suggesting the use of wind energy to drive a permanent magnet synchronous generator (PMSG). The different equations are10,27,28:

$${P}_{wind}=\frac{1}{2}{C}_{p}\left(\lambda \right) \cdot {\rho }_{air} \cdot \pi \cdot {R}^{3} \cdot {V}_{wind}^{3}$$
(2)
$${T}_{wind}={T}_{mec}=\frac{1}{2}\frac{{C}_{p}\left(\lambda \right) \cdot {\rho }_{air} \cdot \pi \cdot {R}^{2} \cdot {V}_{wind}^{2}}{\uplambda }$$
(3)
$${C}_{p}=\frac{2 {P}_{wind}\left(\lambda \right)}{\lambda \cdot \pi \cdot {R}^{2} \cdot {V}_{wind}^{3}}$$
(4)

where Cp is the power coefficient, Vwind the wind speed, λ the tip speed ratio, R the radius of the rotor radius, and ρ the density of the air.

Figure 6
figure 6

Used wind turbine of 900 W.

The voltage equations are given as37,38:

$$\left\{\begin{array}{l}{{\text{V}}}_{{\text{ds}}}= {{\text{R}}}_{{\text{s}}} \cdot {{\text{I}}}_{{\text{ds}}}+{{\text{L}}}_{{\text{ds}}}\frac{{{\text{dI}}}_{{\text{ds}}}}{{\text{dt}}}-{\text{P}} \cdot \upomega \cdot {{\text{L}}}_{{\text{qs}}} \cdot {{\text{I}}}_{{\text{qs}}}\\ {{\text{V}}}_{{\text{qs}}}= {{\text{R}}}_{{\text{s}}} \cdot {{\text{I}}}_{{\text{qs}}}+{{\text{L}}}_{{\text{qs}}}\frac{{{\text{dI}}}_{{\text{qs}}}}{{\text{dt}}}+{\text{P}} \cdot \upomega \cdot {{\text{L}}}_{{\text{ds}}} \cdot {{\text{I}}}_{{\text{ds}}}+{\text{P}} \cdot \upomega \cdot {\upphi }_{{\text{f}}}\end{array}\right.$$
(5)

where: Vds and Vqs are the stator voltages with the direct and quadrate axis, Rs the stator winding resistance, Ids and Iqs the stator currents with the direct and quadrate axis, Lds and Lqs are the inductances with the direct and quadrate axis, P the number of pole pairs, ω the angular velocity, and Φf the magnetic flux produced by the permanent magnet70,71.

The electromagnetic torque is written as37,38:

$${T}_{em}=\frac{3}{2}{\text{P}}\lceil\left({{\text{L}}}_{{\text{ds}}}-{{\text{L}}}_{{\text{qs}}}\right){{\text{I}}}_{{\text{ds}}} \cdot {{\text{I}}}_{{\text{qs}}}+{\phi }_{f} \cdot {{\text{I}}}_{{\text{qs}}}\rceil$$
(6)

Battery storage modeling

The models can be used to simulate different scenarios and determine the most efficient and cost-effective ways to use the battery storage in conjunction with the other power sources72,73. Figure 7 depicts the model utilized in this investigation1,8,9:

$${{\text{V}}}_{{\text{batt}}}={{\text{E}}}_{{\text{batt}}}\pm {{\text{R}}}_{{\text{batt}}} \cdot {{\text{I}}}_{{\text{batt}}}$$
(7)

where Vbatt is the battery voltage, Ebatt open circuit voltage, Rbatt internal battery resistance and Ibatt battery current.

Figure 7
figure 7

Equivalent battery electrical circuit.

An identification of the battery used of 12 V-100 Ah was carried out in the laboratory (Fig. 8). The battery is considered as an impedance Zbatt with a resistance Rbatt and a reactance Xbatt.

$${{\text{Z}}}_{{\text{batt}}}=\frac{{{\text{U}}}_{{\text{batt}}}}{{{\text{I}}}_{{\text{batt}}}}$$
(8)
$$\left\{\begin{array}{l}{{\text{R}}}_{{\text{batt}}}={{\text{Z}}}_{{\text{batt}}} \cdot \mathrm{cos\rho }\\ {{\text{X}}}_{{\text{batt}}}={{\text{Z}}}_{{\text{batt}}} \cdot \mathrm{sin\rho }\\ {{\text{C}}}_{{\text{batt}}}=\frac{1}{\left({{\text{X}}}_{{\text{batt}}} \cdot 2 \cdot \uppi \cdot {\text{f}}\right)}\end{array}\right.$$
(9)

with ƒ the frequency (Hz).

Figure 8
figure 8

Battery identification test.

The acquired results are Rbatt = 0.756 Ω and Xbatt = 0.072 Ω.

Diesel generator (DG) modeling

The complete diesel generator dynamic model involves modeling both the diesel engine with its speed control loop and the synchronous generator with its voltage control system (Fig. 9).

Figure 9
figure 9

Dynamic model of diesel generator.

The rotational speed error is the input of the speed controller, and the actuator control signal is its output. The droop δd and the integrator factor KI are the parameters of the speed controller74,75. The goal of the integrator is to eliminate the static speed error. A first-order model with the gain Ka and a time constant τ2 is used to approximate the operational dynamics of the actuator. The fuel temperature affects this time factor. Although Ka and τ2 are both variable, their variation is negligible for short time periods. The equation of the synchronous motor mechanical is:

$${{T}_{d}-T}_{em}=J \cdot \frac{d{\Omega }_{m}}{dt}$$
(10)

With J the motor inertia, \({\Omega }_{m}\) the rotationnal speed, Td the diesel mechanical torque and Tem the electromagnetic torque.

Sizing of the studied system

To obtain the appropriate size of each power source, such as the photovoltaic panels and wind turbine, the energy generation during each month of PV and wind generator and the load demand are calculated8. The PV and wind turbine generator areas are calculated from the ratios of the monthly energies:

$${{\text{A}}}_{{\text{pv}}}={\text{max}}\left(\frac{{{\text{E}}}_{{\text{Load}},{\text{m}}}}{{{\text{E}}}_{{\text{pv}},{\text{m}}}}\right)$$
(11)
$${{\text{A}}}_{{\text{wind}}}={\text{max}}\left(\frac{{{\text{E}}}_{{\text{Load}},{\text{m}}}}{{{\text{E}}}_{{\text{wind}},{\text{m}}}}\right)$$
(12)

Then:

$${{\text{E}}}_{{\text{pv}}}={\upeta }_{{\text{pv}}}\cdot {{\text{A}}}_{{\text{pv}}} \cdot {{\text{E}}}_{{\text{ir}}}$$
(13)

with:

$${\upeta }_{{\text{pv}}}={\upeta }_{{\text{pv}}-{\text{STC}}} \cdot \left[1-{\upbeta }_{{\text{oc}}} \cdot ({{\text{T}}}_{{\text{j}}}-{{\text{T}}}_{{\text{j}}-{\text{STC}}})\right]$$
(14)
$${{\text{E}}}_{{\text{wind}}}={{\text{P}}}_{{\text{wind}}} \cdot \Delta \mathrm{t }=\left(1/2\right) \cdot \uprho \cdot {\text{S}} \cdot {{\text{V}}}_{{\text{wind}}}^{3} \cdot {{\text{C}}}_{{\text{p}}} \cdot \Delta {\text{t}}$$
(15)
$${{\text{E}}}_{{\text{Load}}}={{\text{A}}}_{{\text{pv}}} \cdot {{\text{E}}}_{{\text{pv}}}+{{\text{A}}}_{{\text{wind}}} \cdot {{\text{E}}}_{{\text{wind}}}$$
(16)

The monthly energies produced are:

$$\left\{\begin{array}{l}{{\text{E}}}_{{\text{pv}},{\text{ave}}}= \frac{\left({\sum }_{{\text{m}}=1}^{12}{{\text{E}}}_{pv}\right)}{12}\\ {{\text{E}}}_{{\text{wind}},{\text{ave}}}=\frac{\left({\sum }_{{\text{m}}=1}^{12}{{\text{E}}}_{wind}\right)}{12}\\ {{\text{E}}}_{{\text{Load}},{\text{ave}}}=\frac{\left({\sum }_{{\text{m}}=1}^{12}{{\text{E}}}_{Load}\right)}{12}\end{array}\right.$$
(17)

The PV and wind generators areas will be finally:

$$\left\{\begin{array}{l}{{\text{A}}}_{{\text{pv}},{\text{ave}}}={{\text{k}}}_{{\text{perc}}}\left({{\text{E}}}_{{\text{Load}}}/{{\text{E}}}_{{\text{pv}}}\right)\\ {{\text{A}}}_{{\text{wind}},{\text{ave}}}=\left(1-{{\text{k}}}_{{\text{perc}}}\right)\left({{\text{E}}}_{{\text{Load}}}/{{\text{E}}}_{{\text{wind}}}\right)\end{array}\right.$$
(18)

where kperc and (1 − kperc) are respectively the fraction of the PV source and the fraction of the wind source76.

$$\left\{\begin{array}{l}{{\text{N}}}_{{\text{pv}}}=\frac{{{\text{A}}}_{{\text{pv}},{\text{ave}}}}{{{\text{A}}}_{{\text{pv}},{\text{unit}}}}\\ {{\text{N}}}_{{\text{wind}}}=\frac{{{\text{A}}}_{{\text{wind}},{\text{ave}}}}{{{\text{A}}}_{{\text{wind}},{\text{unit}}}}\end{array}\right.$$
(19)

Finally, the calculated average load is determined by:

$${\text{E}}_{{{\text{load,ave-cal}}}}={{\text{E}}}_{{\text{pv}},{\text{ave}}} \cdot {{\text{A}}}_{{\text{pv}},{\text{unit}}}+{{\text{E}}}_{{\text{wind}},{\text{ave}}} \cdot {{\text{A}}}_{{\text{wind}},{\text{unit}}}$$
(20)

The different findings are given in Tables 4 and 5.

Table 4 Energies calculations.
Table 5 Panels and wind turbine number calculation.

It can be concluded that only (10 panels and 01 wind turbine) configuration can be considered.

The serial PV calculation is:

$${\text{N}}_{{{\text{pv-serial}}}}=\frac{{{\text{E}}}_{{\text{Load}}}}{{{\text{E}}}_{{\text{worst}}}{{\text{K}}}_{{\text{loss}}}}$$
(21)
$${\text{N}}_{{{\text{pv-serial}}}}=\frac{4.33}{3.5.0.65}=2{\text{panels}}$$

And PV maximum voltage will be:

$${\text{V}}_{{{\text{pv-max}}}}=1.5{{\text{N}}}_{{\text{pv}}-{\text{serial}}}{{\text{U}}}_{{\text{oc}}}$$
(22)
$${\text{V}}_{{{\text{pv-max}}}}=1.5.\mathrm{2.21.9}=50.37{\text{V}}$$

Thus the number of strings is:

$${\text{N}}_{{{\text{pv-string}}}}=\frac{{{\text{U}}}_{{\text{pv}}-{\text{max}}}}{{{\text{V}}}_{{\text{DC}}}}$$
(23)
$${\text{N}}_{{{\text{pv-string}}}}=\frac{50.37}{12}=5\;{\text{panels}}$$

With \({{\text{E}}}_{{\text{worst}}}\) the worst solar energy irradiation at the studied site (3.5 kWh/m2 day) and \({{\text{K}}}_{{\text{loss}}}\) represent the different losses.

Finally, the outcome is 5 strings.

The battery capacity is77,78:

$${{\text{C}}}_{{\text{batt}}}=\frac{\left({{\text{d}}}_{{\text{aut}}}{{\text{E}}}_{{\text{load}},{\text{m}}}\right)}{\left({{\text{U}}}_{{\text{Batt}}}{\text{PDP}}{\upeta }_{{\text{batt}}}{{\text{N}}}_{{\text{m}}}\right)}$$
(24)
$${{\text{C}}}_{{\text{batt}}}=\frac{\left(3.134\times 53.1000\right)}{\left(12.0\times .8.0.\times 9.31\right)}=1506.83 \; {\text{Ah}}$$

With \({d}_{aut}\) the days of autonomy (days),\({{\text{E}}}_{{\text{load}},{\text{m}}}\) the consumed monthly load (kWh/day), Nm is equal to 31 days,\({{\text{U}}}_{{\text{batt}}}\) the voltage battery (V), \({\text{PDP}}\) the depth of discharge and \({\upeta }_{{\text{batt}}}\) the efficiency of the battery79,80.

The number of batteries can be calculated as:

$${{\text{N}}}_{{\text{batt}}}={\text{ENT}} \left[ {\frac{{{\text{C}}_{{{\text{batt}}}} }}{{{\text{C}}_{{{\text{batt-u}}}} }}} \right]$$
(25)
$${{\text{N}}}_{{\text{batt}}}=ENT\left[\frac{1506.83}{192}\right]=8 \;\mathrm{ batteries}$$

With \({C}_{batt{\text{-}}u}\) the chosen battery capacity.

In our study, we have chosen a DG that delivers a constant voltage of 220 V, a current of 10 A and a power of 2 kVA. Table 6 summarizes all of the quantities that will be used.

Table 6 Components number.

Proposed intelligent power management control

The management method for autonomous hybrid systems is designed to fulfill load demand and control the power flow while offering the efficient operation of all energy sources. The IPMC approach prioritizes the use of photovoltaic and wind powers to meet the load requirement and relies on the use of long-term storage to supply the load. This helps reduce the start/stop cycles of a diesel generator which can indeed lead to lower fuel consumption and improve the energy balance of the system. By operating the generator for larger periods of time at a steady state, the energy losses that occur during the start-up and the shutdown can be minimized. Additionally, the load profile of the generator can be optimized to match the electricity demand, which can further improve fuel efficiency and reduce wear and tear on the generator. This is an important part of useful energy management because it can help to reduce running costs while also lowering the environmental impact of the system. The management approach is based on a cycle in which the diesel generator is turned off until the level of charge in the battery storage reaches a minimum, then the latter is restarted and continues running until the level of charge in the battery storage reaches a maximum, and the cycle is repeated. The equation of power balance is:

$${{\text{P}}}_{{\text{load}}}={{\text{P}}}_{{\text{PV}}}+{{\text{P}}}_{{\text{wind}}}+{{\text{P}}}_{{\text{DG}}}\pm {{\text{P}}}_{{\text{batt}}}$$
(26)

The use of fuzzy logic improves overall system performance and efficiency through effective coordination and management of energy distribution. It can make cost-effective decisions on power source usage, optimize battery operation, and provide a stable and reliable power supply by coordinating the power sources, the diesel generator and the battery. The primary operation of the FLC is to create three control signals from three inputs (Fig. 10). The Mamdani methodology was used to build the fuzzy inference in this work8.

Figure 10
figure 10

Proposed intelligent PMC of the studied system.

The inputs of the fuzzy regulator are listed in Table 7.

Table 7 Input of the fuzzy regulator.

As illustrated in Table 8, it generates eight unique modes. Tables 9 and 10 indicate the relationship between each regulator input and the linguistic variables representing the fuzzy sets.

Table 8 The various operating modes.
Table 9 Fuzzy regulator rules.
Table 10 Fuzzy regulator inputs.

Simulation study

The controls used are designed to ensure that the voltages of PV panels and wind turbines are equal to the DC bus voltage. This helps to stabilize the system and extract the greatest amount of power, regardless of solar irradiance and wind speed variations. The control algorithms work to coordinate the power exchange between the various sources to ensure a stable and reliable power supply (Fig. 11).

Figure 11
figure 11

Proposed control scheme.

Solar irradiation, ambient temperature, and wind speeds were measured using measurement acquisition equipment in the lab (Fig. 12). We have incorporated the recorded data from sun irradiation (Fig. 13), ambient temperature (Fig. 14), and wind speed (Fig. 15) in MATLAB/Simulink.

Figure 12
figure 12

Measurement acquisition device at the laboratory.

Figure 13
figure 13

Solar irradiation profile.

Figure 14
figure 14

Ambient temperature profile.

Figure 15
figure 15

Profile of the wind speed.

The OPAL RT LAB simulator is used for the studied system in real-time (Fig. 16). Simulations are run in Matlab/Simulink and then in real-time.

Figure 16
figure 16

Real-time simulation bench setup.

The load power is represented as follows (Fig. 17).

Figure 17
figure 17

Profile of the load power.

Figure 18 presents the simulated voltage profile of the battery. The battery's voltage varies in accordance with the power absorbed/injected into the DC bus.

Figure 18
figure 18

Battery voltage.

It is noticed in Fig. 19, battery SOC is well controlled and is maintained between 56.74 and 86.18%. The batteries SOCs are kept within bounds, regardless of the variations in PV, wind and load power profiles.

Figure 19
figure 19

Battery state of charge.

The different control signals generated by the IPMC with FLC are given in the Fig. 20.

Figure 20
figure 20

The different control signals.

Figures 21 and 22 depict respectively the PV and wind powers during the twelve profiles. The PV power varies from 110.7 to 607.80 W while the wind power varies from 4.066 to 970.90 W.

Figure 21
figure 21

Photovoltaic power.

Figure 22
figure 22

Wind turbine power.

Batteries and DG powers are represented in the same curve (Fig. 23) to show that the DG only starts when the batteries are discharged, i.e. when the battery power is zero.

Figure 23
figure 23

Diesel generator and batteries powers.

This scenario depicts a system of energy sources that relies on wind, solar, batteries, and a backup generator to provide dependable power. The system is meticulously designed to minimize generator utilization, instead relying on renewable sources, wind and solar, when available, and reserving the generator primarily for battery charging when required. This strategic approach serves to optimize energy consumption, reduce fuel consumption, and extend battery life. The power waveforms of the various sources are depicted in Fig. 24. Based on these findings, the proposed IPMC fulfills the load power need regardless of weather conditions.

Figure 24
figure 24

The different powers variation during twelve various profiles.

Figure 25 displays the total power consumed each day by all power sources for twelve different profiles. The PV power changes with solar irradiation profile.

Figure 25
figure 25figure 25

Zooms on the different powers-simulation.

To better depict discharges in relation to PV, wind and load changes, battery powers are presented in negative. It should be noted that the negative sign of the batteries' powers indicates that they are supplying power, while the positive sign indicates that they are been charged. At start of operations, the batteries are not fully charged, and though wind energy production is substantial, it falls short of meeting the load requirements, prompting the DG to activate and provide power (Profile 1t o 3). Notably, over the course of six consecutive profiles (Profiles 4 to 9), solar irradiance remains consistently at an average of approximately 500 W/m2. During this phase, batteries recharge during daylight hours and provide compensation when solar irradiance levels decrease. In Profile 10, the batteries become depleted, necessitating the DG to take over load supply, as wind power is no longer a significant contributor. In the final phase, during profiles 11 to 12, increased wind speeds and average solar irradiance levels facilitate battery charging and compensation using both photovoltaic and wind power sources and DG to supply the load. It is clear that the DG was only used during the battery charging phase, with the twin goal of protecting the batteries and extending their operational life. It may be inferred that the load power was satisfactory over the different twelve average profiles throughout a year, owing to accurate sizing and, in part, to the proposed IPMC. It is clear that the power discharge represents just a modest quantity (negative regions are highlighted in red). Notably, the simulation results closely match those of the real-time simulation.

The reference load power and the sum of power developed by all the power sources are respectively shown in Fig. 26.

Figure 26
figure 26

Calculated \({{\text{P}}}_{{\text{Loadcalc}}}\) and developed load power \({{\text{P}}}_{{\text{Load}}}\).

The zoom of this last-mentioned figure for four distinct days is shown in Fig. 27.

Figure 27
figure 27figure 27

Zooms on calculated and developed load power.

In some cases, the computed power exceeds the power generated by the load. This surplus power is depicted in Fig. 27. Notably, even with adequate system sizing and the utilization of a Power Management Controller (PMC), a slight power surplus can be observed, during days of intense wind speeds and solar irradiance.

These visual illustrations serve to demonstrate the effectiveness of the proposed control and energy management methodology in terms of state of charge, current profiles, operational modes, power generation and consumption, as well as alignment with load requirements. These graphical representations offer valuable insights into the system's performance under various conditions, confirming the viability and practicality of the research approach.

Conclusion

The study presents a promising approach to managing an autonomous hybrid energy system with a fuzzy logic controller. The novelty of the proposed IPMC lies in its dynamic and adaptive nature, leveraging fuzzy logic control to efficiently balance multiple power sources. Unlike traditional strategies, this approach considers variations in climatic conditions, contributing to improved system resilience. The dual-goal approach, emphasizing immediate power needs and long-term stability, adds a unique dimension compared to existing methods. Simulation results indicate that the proposed IPMC is effective. It successfully maintains power availability and keeps the battery at an optimal charge state. The study involves a comparison between real-time results obtained using an RT-LAB simulator and simulation results from MATLAB/Simulink. The results confirm the effectiveness and feasibility of the suggested control strategy at different profiles throughout a year. The main contribution of this work can be summarized as:

  1. 1.

    We have highlighted a research gap related to intelligent power management control (IPMC) for hybrid renewable energy systems (HRES). This sets the stage for the main contributions of the study.

  2. 2.

    A proposed innovative IPMC, utilizing fuzzy logic control (FLC), has been introduced as a novel approach to address the challenges in HRES. This introduces a new dimension to existing strategies, emphasizing the need for adaptive and dynamic control mechanisms.

  3. 3.

    The work recognizes the crucial need for a backup energy source in HRES due to the unreliability of solar irradiance and wind speed. The proposed IPMC ensures continuous power supply during unpredictable conditions, reducing dependence on conventional fossil fuels and enhancing the stability and reliability of HRES.

  4. 4.

    We recognize ongoing efforts to minimize the reliance on non-renewable backup sources by improving energy storage technologies and grid management. The proposed IPMC aligns with these efforts by providing an alternative strategy to optimize energy distribution in HRES.

  5. 5.

    The study employs MATLAB/Simulink simulations and real-time findings from the RT-LAB simulator, providing a comprehensive evaluation of the proposed IPMC. This adds a layer of validity and practical applicability to the contributions of the study.

  6. 6.

    The main contribution lies in the development of a dynamic and adaptive IPMC solution tailored to the specific challenges faced by HRES. Unlike existing strategies, the proposed IPMC considers variations in climatic conditions and efficiently balances multiple power sources, contributing to the overall resilience.

  7. 7.

    and reliability of HRES.

  8. 8.

    The work introduces a dual-goal approach of meeting immediate power needs and ensuring long-term stability and reliability. This emphasizes the holistic nature of the proposed IPMC, addressing both short-term and long-term objectives in HRES.

  9. 9.

    The study contributes to the advancement of intelligent power management strategies for sustainable and efficient energy systems. By introducing a new control mechanism, the research aims to enhance the overall performance and reliability of HRES.

To further advance this research and contribute to the practical implementation of such systems, some future research directions are planned as using adaptive control strategies and conduct a comprehensive techno-economic analysis to evaluate the cost-effectiveness of the proposed system compared to traditional energy sources.