Unified Fuzzy Logic Controller and Power Management For An Isolated Residential Hybrid PV/diesel/battery Energy System
Unified Fuzzy Logic Controller and Power Management For An Isolated Residential Hybrid PV/diesel/battery Energy System
4, 671–681
6 https://doi.org/10.1093/ce/zkac047
Advance access publication 20 August 2022
Research Article
Abstract
Hybrid systems based on renewable energies for the electrification of remote sites controlled by power management systems (PMSs)
aim to reduce fossil fuels and increase the efficiency of renewable energy sources to minimize greenhouse gas emissions. The influ-
ential role of the PMS contributes to improving the efficiency and effectiveness of these systems by ensuring a balance between the
different sources and loads in all operating modes. However, the abrupt transitions between the various operational modes selected
by the PMS generate power loss and imbalance. To handle this issue, a fuzzy logic controller (FLC)-based PMS controlling a photovol-
taic (PV) and diesel hybrid system with a battery storage element connected to a DC bus is proposed in this paper. The proposed PMS
is wholly based on FLC to ensure a smooth transition between the different modes of the system. The success of using the suggested
PMS lies in how well the FLC parameters are chosen before the system is processed. For this purpose, the particle swarm optimization
algorithm is adapted to tune the FLC parameters. The resulting optimal intelligent PMS is tested and compared with a classical one
using comprehensive simulations performed in a Simscape ElectricalTM MATLAB® environment. The obtained results show an over-
shoot attenuation at the DC-bus voltage of 2% when changing the mode and an improvement in the PV generator efficiency by 99.5%.
Graphical Abstract
Sensor signal
Command
PV generator Bus DC Power flow
DC
DC
Diesel DC
DC
AC
DC DC
AC
Batteries
DC
DC
µ
NB NM NS Z PS PM PB
Keywords: fuzzy logic control; hybrid power systems; particle swarm optimization; photovoltaic systems; power management system
Introduction of sunlight and wind speed, which could cause a decrease in the
system performance if these measurements were not accurate
Today, the most remote areas in the world are supplied by electric
enough. In [15], the PMS-FLC was used to control a hybrid system
power systems based on diesel generators due to their availability
whose sources were PV, wind turbine, battery bank and an elec-
and reliability. Unfortunately, their operating efficiency is reduced
trolysis system to produce hydrogen. Without limited operating
due to several factors, such as their operation at low power (<40–
modes, the PV generator always delivered its maximum power
50% of their nominal power) and the high cost of transporting
in this system. The surplus energy would be stored in the bat-
fuel to the remote area [1, 2]. Some environmental concerns, like
teries or used for hydrogen gas production. Other works used
the emission of greenhouse gases (GHGs), give another reason to
the PMS-FLC only to manage hybrid storage units like that pro-
reduce their utilization at a maximum pace [3]. These factors fa-
posed in [18]. The control logic decided the proportion of power
vour hybrid systems as an alternative energy source for isolated
to be shared among the energy-storage devices (ESDs) of a hy-
areas [4, 5]. This involves using several renewable energy sources
brid system with a PV generator and multiple ESDs. In [19, 20],
and energy-storage systems to ensure a certain complementarity,
the PMS-FLC ensured the power requested by the load by provid-
increasing their advantages and minimizing their disadvantages
ing the state of charge of the supercapacitors and the batteries
[6].
within acceptable levels.
PPV
lPV
Vpv Boost
converter
PAC Load
Pbat
lbat Inverter
Vbat
Bidirectional
converter Pac load
SOC
DC
The PMS is required to ensure effective interaction between • The sources selected to feed the load are planned by order
power sources for an efficient power balance load, protect the of priority; the PV generator is considered as the primary
battery from deep discharging or overcharging and prevent a source, then the battery storage as the secondary and, fi-
blackout. Depending on the situation of the monitored param- nally, the diesel generator.
eters (sunshine, battery charge status and load demand) in real • The battery charging is done only by using the surplus
time, the PMS determines the operating mode of the system and power generated by the PV generator.
reacts to the values given to the various regulator’s converters to • The diesel generator is activated only when the battery is
control the powers of each source. discharged and the power of the PV generator is insufficient.
input is used to locate the operating point of the PV gener- There are several methods in the literature to achieve MPPT
ator to control the system in MPPT mode or LPP mode. [21] and the best among them are those that have a variable step
• The SOC of the battery; this input is needed to choose be- (∆VPV_ref) when searching for MPP to give a reduced response time
tween the two modes, LPP or MPPT. Indeed, there are three and low ripple around MPP, and this will increase the efficiency
proposed SOC levels: low SOC is the level where the battery of using a PV generator [21–23]. The MPPT is based on fuzzy logic
reaches the deep discharge; high SOC is the level where the with variable steps (VPV_ref) in this section. This method has sev-
battery is in full charge state; and the medium level, which eral advantages, such as better performance, robustness and
is between the two preceding levels. According to these simplicity [21–23]. Fig. 3 shows the seven triangular MFs adopted
three levels, the PMS-FLC chooses the operating mode of for MPPT inputs and output, the rules base of MPPT indicated
PV as given in Table 1. in Table 2. The inputs EPV, (∆PPV/∆VPV) and the output (∆VPV_ref) are
divided into seven fuzzy sets: NB (negative big), NM (negative me-
As illustrated in Fig. 2b, the three previously mentioned inputs dium), NS (negative small), Z (zero), PS (positive small), PM (posi-
are used by the PMS-FLC to give a single output representing the tive medium) and PB (positive big).
required PV generator output voltage. This reference voltage will
use as the input of the DC/DC converter regulator. 2.1.2 LPP mode
A B
Lpv
PL + G1PV
–
D PPV ∆VPV_ref
VPV CPV Vdc Cdc ∆ PPV/∆ VPV G2PV in out G3PV + VPV_ref
+
Ts G4PV
SOC Z–1
PWM
EPV
VPV_ref
∆PPV/∆VPV
PMS-FLC DC/DC Duty_PV
PV regulator
SOC
C VPV_ref +
ICPV_ref
– ILPV_ref VLPV
FLC –
– + FLC ×
VPV IPV + –
VPV + Duty_PV
ILPV –
Vdc
Fig. 2: PV generator control system. (a) Global schema, (b) PMS-FLC PV system, (c) DC/DC regulator.
Unified fuzzy logic controller and power management for an isolated residential hybrid PV/diesel/battery energy system | 675
find the best solution around its search space by changing its vel- ˆ
ocity according to its current one, best own solution and the best (3)
fitness = |E| tdt
global solution. This change will give it a new position converging
towards the best solution. This operation remains repetitive until The error E in Equation (3) represents the difference between
a criterion is met. In standard PSO, the particles are manipulated the desired powers in MPPT mode or LPP mode and the current
according to the following equations [24]: PV generator power:
Ä ä Ä ä
(1) vit+1 = wvti + c1 r1 pi,d − xti,d + c2 r2 pg,d − xti,d E = Pref − PPV
(4)
xt+1
(2)
i,d
= xti,d + vt+1
i
2.2 Battery control
where vt+1 and vti represent the current and future velocity of The proposed PMS categorizes the battery as a second energy
i
source after the PV generator. It will intervene when the PV gen-
the i-th particle, xt+1
and
i,d
xti,d
represent the current and the fu-
erator cannot provide the requested load power.
ture positions of the i-th particle and w represents a weighting
It will be controlled by regulating the voltage of the DC bus via
function to control the effect of the particle’s current velocity on
a bidirectional DC/DC converter, as presented in Fig. 5a. The DC/
its future velocity. The variable pi,d represents the best solution of
A µ B µ
NB NM NS Z PS PM PB NB NM NS Z PS PM PB
C µ D µ
N
NM NS Z PS PM PB
B Z PS PB
∆VPV_ref SOC
Fig. 3: Inputs and output MFs. (a) EPV, (b) ∆ PPV/∆VPV, (c) ∆ VPV_ref, (d) SOC..
676 | Clean Energy, 2022, Vol. 6, No. 4
the duty cycle of the DC/DC converter, as illustrated in Fig. 6b. and Imp represent the MPP voltage and current, respectively, and
The diesel generator is operating in modes according to the SOC all these parameters are set under standard test conditions (STC).
provided in Table 4. The performances test of the proposed PMS-FLC was done in
The rules of starting and stopping modes are indicated in Table two stages. The first stage concerns the performance of the PV
5. generator when it is operating in MPPT mode or LPP mode, and
the second stage is when there is a change in the operating mode
of the system between the three sources (PV, battery and diesel).
3 Results and discussion
To verify the efficiency of the proposed PMS-FLC, the proposed 3.1 PSO optimized PMS-FLC performance of the
system has been simulated on the MATLAB®/SIMULINK® PV generator
(Simscape ElectricalTM) system environment. The number of The PSO is applied under the following conditions:
panels and batteries were chosen to cover the load, which is a
house. The parameters of each block are indicated in Table 6, • The power requested by the load is equal to 2000 W. A step
where Pmax represents the PV maximum power, Voc,n represents the change in solar irradiation from 0 to 1000 W/m2 is per-
open-circuit voltage, Isc,n represents the short-circuit current, Vmp formed at t = 0.1 s under T = 25°C. The simulation duration
Mode MPPT mode (SOC = Z or SOC = PS) LPP mode (SOC = PB)
EPV NB NM NS Z PS PM PB NB NM NS Z PS PM PB
∆PPV/∆VPV
NB NB NB NB NB NB NB NB PB PM PS Z NS NM NB
NM NM NM NM NM NM NM NM PB PM PS Z NS NM NM
NS NS NS NS NS NS NS NS PB PM PS Z NS NS NS
Z Z Z Z Z Z Z Z NB NM NS Z Z Z Z
PS PS PS PS PS PS PS PS PS PS PS PS PS PS PS
E NB NM NS Z PS PM PB
∆E
NB NB NB NB NB NM NS Z
NM NB NB NB NM NS Z PS
NS NB NB NM NS Z PS PM
Z NB NM NS Z PS PM PB
PS NM NS Z PS PM PB PB
PM NS Z PS PM PB PB PB
PB Z PS PM PB PB PB PB
Unified fuzzy logic controller and power management for an isolated residential hybrid PV/diesel/battery energy system | 677
A T2
C
Lbat
D2
E GE
T1
D1 Vdc Cdc ∆com Ts
in out Gcom com
Vbat
Z–1
+ ∆E G∆E
Z–1 –
Ibat
PWM
regulator
Vdc
B
ICdc_ref
Vdc_ref + FLC Pdc_ref
– X × Ibat_ref
Vdc + FLC –
Vdc
Fig. 5: Battery control system. (a) Global schema, (b) DC/DC converter FLC control, (c) FLC schema.
Table 5: Rule bases of PMS-FLC diesel generator control in starting and stopping modes
Edies NB NM NS Z PS PM PB NB NM NS Z PS PM PB
∆Edies
NB NB NB NB NB NM NS Z NS NS NS NS NS NS NS
NM NB NB NB NM NS Z PS NS NS NS NS NS NS NS
NS NB NB NM NS Z PS PM NS NS NS NS NS NS NS
Z NB NM NS Z PS PM PB NS NS NS NS NS NS NS
PS NM NS Z PS PM PB PB NS NS NS NS NS NS NS
PM NS Z PS PM PB PB PB NS NS NS NS NS NS NS
PB Z PS PM PB PB PB PB NS NS NS NS NS NS NS
A B
Ldies X IL
EPV dies_ref Edies
+ G1dies
Cdies –
T Vdc Vdc –
D Cdc
+
ILdies Z–1 – G2dies
Diesel Rectifier
PWM
Duty_dies SOC
ILdies
EPV
PMS-FLC
Diesel Vdc
SOC ∆duty_dies Ts
in out G3dies Duty_dies
Z–1
Fig. 6: Diesel control system. (a) Global schema, (b) PMS-FLC diesel controller.
678 | Clean Energy, 2022, Vol. 6, No. 4
PV generator Module: SAMSUNG SDI PV-MBA 1BG 250 Boost, LPV = 5 mH,
Pmax = 250 W, Voc,n = 37.9 V, Isc,n = 8.85 A Vmp: 30.3 V, CPV = 700 uF, frequency = 20 kHz
Imp:8.24 A, quantity: 4 in parallel and 3 in series
Battery Model: Lithium-ion voltage = 24 V, Capacity = 100 Ah,
Initial SOC = 50%, quantity: 5 in series
Diesel + rectifier Buck, L = 9 mH, frequency = 20 kHz
EPV input ∆PPV/∆VPV input ∆VPV_ref output The gains SOC input
1.5
0 20 40 60 80 100
Iteration
Stop Pause
2040
2996
2020
2995
2000
2994 1980
0.3 0.35 0.4 0.45 0.5
0.1 0.15 0.2 0.25 0.3
3000
PV generator power (W)
2000
P&O 0.01v
P&O 0.1v
1000
Proposed FLC
0
0 0.1 0.2 0.3 0.4 0.5
Time (s)
Fig. 8: PV generator power with different methods (P&O and proposed method).
Rise time (s) Ripple (W) Rise time (s) Ripple (W)
3000
2000
1000
PV power (W)
Classic method
90
2000
SOC (%)
80
1000
70
60 0
0 1 2 2.5 3 4 5 0 1 2 2.5 3 4 5
Time (s) Time (s)
–1000
–2000
195
Proposed method –3000 Proposed method
190 Classic method
Classic method –4000
0 1 2 2.5 3 4 5
0 1 2 2.5 3 4 5
Time (s)
Time (s)
Fig. 9: Results of the first scenario. (a) SOC (%), (b) PV power, (c) DC-bus voltage, (d) battery power.
steady-state ripples, but the rise time increases in return. This Scenario 2
classical technique has difficulty providing good performance Under zero irradiation, the battery feeds a fixed load and when
in both dynamic and static performances, making the trade-off it reaches its deep discharge state (SOC = SOCmin), the diesel takes
between them a necessity. charge of supplying the same load.
The yield of each method shown in Table 8 is calculated ac- As indicated in Fig. 9a, the battery reaches its full charge state
cording to the following relationship [28]: (SOC = 80%) at t = 2.5 s. At this instant, the PV generator operating
´ Tf mode changes from MPPT (PPV = 2996 W) to LPP (PPV = 200 W), as
PPV (t) dt
η = ´ T0
T
100 (5) illustrated in Fig. 9b. This change generates a sudden disturbance
f
T0 Pref (t) dt
at the level of the DC-bus voltage, as depicted in Fig. 9c. Fig. 9d
confirms that the battery is fully charged since its power passes
where To = 0.1 s, Tf = 0.5 s and Pref and PPV are the power reference from –2696 to 0 W.
and the PV generator power. Classical PMS based on abrupt mode change leads to power
oscillations and DC-bus voltage spikes. These drawbacks are
3.2 Performance of the PMS-FLC of the global strongly lowered when the fuzzy-logic-based PMS is applied.
system when it changes its operating modes Indeed, the PMS-FLC can decrease the DC-bus voltage (attenu-
The proposed PMS-FLC will be compared with the classical ation of 2%) and battery power perturbations and reduce the
method adopted in several papers [11, 12] to manage multi- power time responses significantly. This is due to the soft mode
source hybrid systems. The comparison is made in the following change anticipated by the proposed PMS using the SOC input
two scenarios: given in Fig. 3d.
Fig. 10 represents the system responses when performing the
Scenario 1 second scenario. The battery starts by feeding alone an isolated
Under maximum irradiation (1000 W/m2), the PV generator, load of 1500 W, as shown in Fig. 10a, and the battery reaches
operating in MPPT mode, supplies the load and charges the bat- its deep discharge state (SOC = 20%) at time t = 3 s. This can be
tery simultaneously. When the battery reaches its full charge manifested by a battery power change from 1500 to 0 W, as pre-
(SOC = SOCmax), the PV generator switches from MPPT mode to LPP sented in Fig. 10d. Simultaneously, the diesel power goes from 0 to
mode. 1500 W, as shown in Fig. 10b, satisfying the load need. Once more,
680 | Clean Energy, 2022, Vol. 6, No. 4
1500
1000
500
0
2.75 2.8 2.85 2.9 2.95 3
A B
60 3000
Proposed method
20 1000
200
1000
195 Proposed method 0
Classic method
190
0 1 2 3 4 5 –1000
0 1 2 3 4 5
Time (s) Time (s)
Fig. 10: Results of the second scenario. (a) SOC (%), (b) diesel power, (c) DC-bus voltage, (d) battery power.
the proposed PMS based on a fuzzy system ensures the same Conflict of interest statement
power balance as the classical one, but with a gradual increase in
We wish to confirm that there are no known conflicts of interest
the diesel generator power in Fig. 10b.
associated with this publication and there has been no signifi-
This smooth transition is achieved through inserting an inter-
cant financial support for this work that could have influenced
mediate phase controlled by the SOC input, whose MFs are given
its outcome.
in Fig. 3d, which results in fewer disturbances on the DC-bus volt-
age (0.5%), as illustrated in Fig. 10c.
References
4 Conclusion [1] Khelif A, Talha A, Belhamel M, et al. Feasibility study of hy-
This paper proposes an optimal fuzzy-logic-based power man- brid diesel-PV power plants in the southern of Algeria: case
agement strategy to maximize the efficiency of a hybrid system study on AFRA power plant. Int J Electr Power Energy Syst, 2012,
combining two energy sources (PV and diesel) and a battery stor- 43:546–553.
age system connected to the same DC bus and feeding an isolated [2] Halabi LM, Mekhilef S, Olatomiwa L, et al. Performance ana-
load. The simulation of PMS-FLC for the different operating con- lysis of hybrid PV/diesel/battery system using HOMER: a
ditions of the hybrid system shows excellent stability of the DC case study Sabah, Malaysia. Energy Convers Manag, 2017,
bus and a low ripple of the power of the sources in the transient 144:322–339.
regime, which reflects the advantage of the PMS-FLC proposed [3] Yu W, Li S, Zhu Y, et al. Management and distribution strat-
over the conventional PMS using the straightforward transition, egies for dynamic power in a ship’s micro-grid system based on
and this is due to the smooth change between PV and diesel gen- photovoltaic cell, diesel generator, and lithium battery. Energies,
erators while keeping the SOC of the batteries between 20% and 2019, 12:45051–45018.
80%. This increases the performance with overshoot attenuation [4] Shezan SA. Feasibility analysis of an islanded hybrid wind-
at the DC-bus voltage of 2% when changing the mode and an im- diesel-battery microgrid with voltage and power response for
provement in the PV generator efficiency by 99.5%. offshore Islands. J Clean Prod, 2021, 288:125568.
Unified fuzzy logic controller and power management for an isolated residential hybrid PV/diesel/battery energy system | 681
[5] Ishraque MF, Shezan SA, Rashid MM, et al. Techno-economic solar-wind-storage energy system. Energy Convers Manag, 2017,
and power system optimization of a renewable rich islanded 148:238–250.
microgrid considering different dispatch strategies. IEEE Access, [17] Roumila Z, Rekioua D, Rekioua T. Energy management based
2021, 9:77325–77340. fuzzy logic controller of hybrid system wind/photovol-
[6] Upadhyay S, Sharma MP. Selection of a suitable energy manage- taic/diesel with storage battery. Int J Hydrogen Energy, 2017,
ment strategy for a hybrid energy system in a remote rural area 42:19525–19535.
of India. Energy. 2016, 94:352–366. [18] Cabrane Z, Ouassaid M, Maaroufi M. Battery and supercapacitor
[7] Aziz AS, Tajuddin MFN, Adzman MR, et al. Energy management for photovoltaic energy storage: a fuzzy logic management. IET
and optimization of a PV/diesel/battery hybrid energy system Renew Power Gener, 2017, 11:1157–1165.
using a combined dispatch strategy. Sustain, 2019, 11:683. [19] Sinha S, Bajpai P. Power management of hybrid energy storage
https://doi.org/10.3390/su11030683. system in a standalone DC microgrid. J Energy Storage, 2020,
[8] Kartite J, Cherkaoui M. Study of the different structures of hy- 30:101523.
brid systems in renewable energies: a review. Energy Procedia, [20] Cheng PC, Peng BR, Liu YH, et al. Optimization of a fuzzy-logic-
2019, 157:323–330. control-based MPPT algorithm using the particle swarm optimi-
[9] Olatomiwa L, Mekhilef S, Ismail MS, et al. Energy management zation technique. Energies, 2015, 8:5338–5360.