1 Introduction

Standalone distributed generation systems (DGS) consisting of small-scale power generation and BESS to supply electricity close to the point of consumption are a viable solution for the future development of electric power infrastructure in remote localities where the connection to the main grid is difficult or not affordable. Recently hybrid power systems (HPS) integrating a combination of PV, wind power (WP) and distributed generation (DG) sources with BESS have been successfully deployed to power telecom base positions and for the electrification of remote areas in several countries across the world as reported in [1,2,3,4,5,6]. As reported in [6], the selection of the appropriate configuration of hybrid installation for a given site depends on several factors including the load power requirement, site geography, the topographical features and climate of the region in terms of availability of RES, cost of BESS and delivery, seasonal energy requirements, etc.

Several HPS arrangements have been described in the literature such as PV/DG power systems without BESS, PV/BESS/DG, PV/WP/BESS, PV/WP/BESS/DG, PV/WP/DG without BESS, PV/WP, PV/WP/DG/Micro-hydro electric turbine and PV/WP/Fuel cell [7].

Standalone HPS have been studied by few authors [1,2,3,4,5,6, 8, 9]. In [1], the authors proposed an approach to enhance the operation of a stand-alone PV/DG/BESS, however, the voltages and frequency profiles at the point of common coupling (PCC) are not discussed. In [2], a PV/DG/BESS is proposed for an isolated area, but the overall control system and power quality issues are not studied. In [3], a PV/DG system without BESS for off-grid operation has been presented. Again, the complete control system of the voltages and frequency is not discussed. The authors in [4] proposed the control of an autonomous HPS for a single-phase system. Moreover, BESS and dump load which makes the system unreliable was not considered. A Fuzzy Logic Control (FLC) of the frequency in a PV/DG/BESS has been proposed in [5, 6, 8]. In [5], a control method of the frequency for the PV/DG hybrid system with BESS is presented. However, the control system of the DC voltage is not discussed. In [6], a study on the feasibility of PV/DG hybrid plants in Algeria is presented, but the complete control system control is not discussed. In [9], a PV/DG hybrid system is proposed to supply power to a building where the battery is directly connected to the DC bus, but the control of the battery power flow through a bidirectional converter is not discussed. In [10], the dynamic behavior of a standalone HPS is studied. However, the controls of the converter, PV and BESS are not presented.

Another important element that plays a major role in off-grid DGS is the BESS. Nowadays, lithium-ion (Li-ion) batteries are commonly employed to stock the surplus of energy derived from RPS and release it at a later stage. It has higher power density and voltage range as compared to other BESS [11].

The hybrid DGS considered in this study consists of PV panels as RPS, a DG for power back-up, and a BESS. The DG is employed as a secondary power source when both PV and BESS are not able to satisfy the power required by the load.

For a reliable and efficient operation of the proposed off-grid HPS, it is necessary to develop a Power Management (PM) algorithm to ensure energy balance between demand, production and storage [12,13,14]. The PM should be able to handle all possible scenarios: load variation, changing weather and Short Circuit Fault (SCF). It must respond quickly to the energy needs of the load and maintain stability of DC voltage. The PM also provides protection of the overall HPS.

Voltage variations at the PCC, fluctuation of the DC bus voltage and harmonic generation are the major power quality issues that occur in off-grid HPS. The two first are mainly due to sudden changes in the load power demand or the occurrence of a SCF in the line. But, the harmonics generation is the result of power electronic converters switching.

To address the problem of unbalanced DC voltage, a controller based on a Clamping Bridge Circuit (CBC) is used to set the voltage of DC bus when there is a variation in the load power and/or following the occurrence of a SCF. The use of BESS in HPS also contributes to stability of DC voltage.

To control the voltage at the PCC, a classical Proportional-Integral (PI) controller is commonly employed, owing to its simple structure and ease of implementation. However, such a design requires a linearized model of the system, which is difficult to obtain and may not give satisfactory performance under challenging operating conditions such as system’s parameter variations. In this paper, a FLC is applied to maintain the voltage and frequency at the PCC. Fuzzy logic is a powerful mathematical concept for modeling imprecision, vagueness and uncertainties which characterise real-world systems. This concept has its foundation from the theory of Fuzzy Sets (FSs) introduced in 1965 by Zadeh and which assigns a degree of membership to the elements of a set in contrast to the classical bivalent logic. As mentioned in [15], FLC has good features like robustness against parameter variations and improved control accuracy.

The principal objective of this contribution is to propose a control scheme for an off-grid HPS in order to improve the reliability and power quality and enhance the robustness of HPS against SCFs in the lines connecting the sources or at the PCC. The control scheme includes (1) voltage and frequency regulation of the voltage source inverter at the PCC, (2) clamping-bridge circuit to stabilize the DC bus voltage, (3) a PM algorithm to coordinate between PV/DG/BESS under different scenarios and provide the protection of the HPS.

The paper is organised as follows: Sect. 2 describes the proposed off-grid HPS including a presentation of the PV system and its MPPT control strategy, the Li-ion battery model with the buck-boost DC-DC converter and its control and the sizing of the DG. The control strategies of HPS are presented in Sect. 3. The simulation results and conclusion are presented in Sects. 4 and 5 respectively.

2 Modeling of the off-grid HPS

The proposed off-grid HPS (PV/DG/BESS) is presented in Fig. 1. The DC bus and AC bus are interfaced via a DC-AC inverter whose output is passed through an inductive filter. During night-time, when PV power is not available, the DG and BESS must supply the required power to the load and regulate the frequency and voltage of the isolated HPS in PCC. Therefore, a buck-boost DC-DC converter is connected between the DC bus and BESS and the DG is coupled directly to the AC load.

Fig. 1
figure 1

Proposed standalone HPS

2.1 PV Modeling and MPPT controller design

2.1.1 PV array model

A basic equivalent circuit model of a PV cell is depicted in Fig. 2

Fig. 2
figure 2

PV cell circuit model

Where \(I_{{ ph}} \) is Light-Generated Current (LGC), \(I_d \) is the current of the diode, \(I_p \) is the current flowing through the parallel resistor \(R_p \), \(I_{{ PV}} \) is the net current of the PV cell, \(V_{{ PV}}\) is cell voltage, \(V_d \) is the diode voltage, \(R_p \) and \(R_s \) are the parallel and series resistances of the cell respectively.

Applying Kirchhoff’s law, the current \(I_{{ PV}} \) of the cell is:

$$\begin{aligned} I_{PV}= & {} I_{ph} -I_d -I_p \end{aligned}$$
(1)
$$\begin{aligned} I_{P}= & {} \frac{V_{PV}+R_{S}I_{PV}}{R_{p}} \end{aligned}$$
(2)

The current \(I_d \) is given by:

$$\begin{aligned} I_d =I_0 \left[ {e^{\frac{V_{PV} +R_s I_{PV} }{aV_t }}-1} \right] \end{aligned}$$
(3)

The equation relating the current and voltage in the circuit is written as:

$$\begin{aligned} I_{PV}= & {} I_{ph} -I_0 \left[ {e^{\frac{V_{PV} +R_s I_{PV} }{aV_t }}-1} \right] -\frac{V_{PV} +R_s I_{PV} }{R_p } \end{aligned}$$
(4)
$$\begin{aligned} V_t= & {} \frac{N_s KT}{q} \end{aligned}$$
(5)

Where \(I_0 \) is the diode saturation current, a is the diode ideality factor, \(V_t \) is the thermal voltage, \(N_s \) represents the number of cells connected in series, K denotes the Boltzmann’s constant, T is the actual temperature and q is the charge of the electron.

The LGC of an elementary PV cell is difficult to determine because it is influenced by both resistors. Data sheets only provide the nominal short -circuit current \(\left( {I_{sc,n} } \right) \), which is the maximum current which can be generated from the PV cell. A commonly used assumption in PV models is \(I_{sc} \approx I_{PV} \) since in practical devices \(R_p \) is high and \(R_s \) is low. With this assumption, the LGC can be expressed as:

$$\begin{aligned} I_{ph} =\left( {I_{sc} +K_I {\Delta }_T } \right) \frac{G}{G_n } \end{aligned}$$
(6)

Where \(I_{{ sc}} \) is short -circuit current, \(\varDelta _T =T-T_n \) (\(T_n \) is nominal temperature), G and \(G_n \) are the irradiation and nominal irradiation on the device surface respectively.

The current \(I_0 \) may be expressed as:

$$\begin{aligned} I_0 =\frac{I_{{ sc},n} +K_I {\Delta }_T }{\left( {\frac{V_{oc,n} +K_V {\Delta }_T }{aV_t }} \right) -1} \end{aligned}$$
(7)

Where \(V_{{ oc},n} \left[ V \right] \) is the nominal open-circuit voltage, \(K_V \) and \(K_I \) are the voltage and current coefficients.

2.1.2 Design of the MPPT

Figure 3 depicts the structure of the boost circuit and MPPT controller for the PV.

Fig. 3
figure 3

Boost circuit and MPPT for the PV

Several MPPT algorithms have been applied in the literature to extract the optimal power from PV. The perturb and observe [16,17,18] and incremental conductance [19,20,21] are the most commonly used in MPPT algorithms.

In this paper, the MPPT algorithm is based on FLC which provides a simple design methodology and does not require information about the exact model of the system. Similar FLC-based MPPT controllers have been applied in [16, 21,22,23,24,25,26,27].

The basic scheme of a FLC is presented in Fig. 4. The inputs are the error E and error change dE, and the output is the duty cycle variation D which is practicaced to the DC-DC converter to control the output voltage of the PV.

Fig. 4
figure 4

Bloc diagram of a FLC_MPPT

The instantaneous power of the PV generator is given by:

$$\begin{aligned} P_{PV} \left( k \right) =V_{PV} \left( k \right) .I_{PV} \left( k \right) \end{aligned}$$
(8)

In the MPPT algorithm, the ratio of dP / dV is instantly calculated, so the first input (E) of FLC can be determined as follows:

$$\begin{aligned} E=\frac{dP}{dV}\left( k \right) =\frac{P_{PV} \left( k \right) -P_{PV} \left( {k-1} \right) }{V_{PV} \left( k \right) -V_{PV} \left( {k-1} \right) } \end{aligned}$$
(9)

The second input of the FLC is defined as the deviation of the error dE:

$$\begin{aligned} dE= & {} {\Delta }\left( {\frac{dP}{dV}\left( k \right) } \right) =\frac{dP_{PV} }{dV_{PV} }\left( k \right) -\frac{dP_{PV} }{dV_{PV} }\left( {k-1} \right) \end{aligned}$$
(10)
$$\begin{aligned} dE= & {} E\left( k \right) - E\left( {k - 1} \right) \end{aligned}$$
(11)

The duty cycle change dD is obtained using the next discrete-time difference equation:

$$\begin{aligned} dD\left( k \right) =dd\left( k \right) -dd\left( {k-1} \right) \end{aligned}$$
(12)

The e, de and D are normalized as follows:

$$\begin{aligned} \left\{ {{\begin{array}{l} {e=K_E E} \\ {de=K_{dE} dE} \\ {D=K_{dD} dD} \\ \end{array} }} \right. \end{aligned}$$
(13)

Where \(K_E ,K_{dE} \) and \(K_{dD} \) are scaling gains selected to achieve the required response characteristics [29].

The universe of discourse of ede and D are divided into three FSs with triangular and trapezoidal Membership Functions (MFs) labelled NS (Negative Small), Z (Zero) and NB (Negative Big) as shown in Fig. 5. The fuzzy rules used to represent the controller output are summarized in Table 1.

Fig. 5
figure 5

MFs of the MPPT_FLC

Table 1 Rules of FLC

The defuzzification is based on the centre of gravity method.

$$\begin{aligned} dd=\frac{\mathop \sum \nolimits _{i=1}^n \left[ {\mu \left( {dd_i } \right) dd_i } \right] }{\mathop \sum \nolimits _{i=1}^n \left[ {\mu \left( {dd_i } \right) } \right] } \end{aligned}$$
(14)

2.2 BESS modeling and control

Energy Storage (ES) systems are classified into two categories depending on the range of power (high or small) required for the integration of RPS. High-ES systems such as SMES (Magnetic Energy Storage) are more popular for RES applications in particular the PV systems. However, the major difficulty of SMES is their high cost for implementation [30]. Small-ES systems, such as flywheels, fuel cells and batteries, are more often used in medium and low power PV applications. Different types of BESS technologies are currently available in the HPS [11]. In this paper, a Lithium-ion (Li-ion) battery model is used [31,32,33,34,35,36,37]. Li-ion batteries can achieve highest energy density and the high efficiencies of ES up to 100 % when compared to other types of batteries [11]. However, the principal drawbacks of Li-ion batteries are expensive cost and reduction in lifetime. Therefore, it is recommended not to over-discharge the battery below 20% of its State Of Charge (SOC) to extend its lifetime [35, 38].

2.2.1 Li-ion battery model

Figure 6 presents the equivalent circuit of a Li-ion battery [38, 39]. The model includes a SOC controlled voltage source and its equivalent impedance which is also a function of SOC. There is a straightforward analogy between this model and real batteries because all the coefficients and parameters can be obtained experimentally. In this paper, the effects of temperature, age or self-discharging for this battery are not taken into account.

Fig. 6
figure 6

Equivalent circuit model of a Li-ion battery

The BESS is characterized by its rate of charge or discharge defined as follows:

$$\begin{aligned} I=MC_r t \end{aligned}$$
(15)

In theory, the BESS would provide its rated capacity in a well-estimated time when operating at the nominal current of discharge. In practice, the discharge of the BESS is less than the estimated time owing to inefficiencies in the discharge cycle. BESS charging management algorithms are discussed in more details in [40, 41].

2.2.2 BESS charge and discharge management

The goal is to control the BESS current to accomplish the required power. BESS will operate in charging or discharging modes depending of the energy requirements. The additional role of the BESS is to maintain the DC voltage at the desired level in response to diverse operating conditions of the HPS. The overall control system of the BESS is depicted in Fig. 7.

When BESS is charging (discharging), switch \(Q_2 \,(Q_1 )\) is on and the converter operates in boost (buck) mode. Furtheremore, if the DC voltage drops below the reference, switch \(Q_1\) is on otherwise switch \(Q_2 \) is on. The response of HPS to transient variations is characterised by an inherent time constant. In such cases, capacitors along the DC-link can act as a virtual inertia to supply the lack or absorb the surplus of energy. The control of DC link voltage has been discused in [1, 4, 10, 19, 36, 39, 42].

If the losses in the converters and battery are neglected, the balance of power at the capacitor of the DC link for the integrated PV system with BESS is governed by:

$$\begin{aligned} V_{{ dc}} I_{{ dc}}= & {} P_{{ PV}} +P_{{ batt}} -P_{{ Load}} \end{aligned}$$
(16)
$$\begin{aligned} V_{{ dc}} I_{{ dc}}= & {} CV_{dc} \frac{dV_{{ dc}} }{dt}=P_{{ PV}} +P_{{ batt}} -P_{{ Load}} \end{aligned}$$
(17)
Fig. 7
figure 7

Overall arrangement of the battery converter controller

If the PV power is equal to that of the load, the battery will supply the required power to the capacitor in order to regulate the DC voltage.

The transfer function between \(P_{{ batt}} \) and \(V_{{ dc}} \) is given by:

$$\begin{aligned} \frac{V_{dc} \left( s \right) }{P_{\textit{batt}} \left( s \right) }=\frac{1}{sCV_{dc} } \end{aligned}$$
(18)

Where s represents the Laplace variable.

With:

$$\begin{aligned} P_{\textit{bat}t} =V_{ batt} I_{\textit{batt}} \end{aligned}$$
(19)

Equation (18) becomes

$$\begin{aligned} \frac{V_{dc} \left( s \right) }{I_{ batt} \left( s \right) }=\frac{V_{ batt} }{sCV_{dc} } \end{aligned}$$
(20)

The BESS reference current \(I_{{ batt}}^*\) can be obtained from a DC bus voltage feedback loop based on a PI controller as follows:

$$\begin{aligned} I_{ batt}^*=\left( {K_{vP} +\frac{K_{vI} }{s}} \right) \left( {V_{dc}^*-V_{dc} } \right) \end{aligned}$$
(21)

Finally, a hysteresis controller is applied to control the DC-DC converter switches \(Q_1 \) or \(Q_2\) and regulate the BESS current \(I_{{ batt}} \).

Where \(K_{{ vP}} \) and \(K_{{ vI}} \) are the proportional and integral gains of the PI controller.

Instability and unbalance of output DC voltage are considered as the main problem in converters. This can be overcome by inserting a Clamping-Bridge Circuit (CBC) in parallel with the capacitor as shown in Fig. 8. The CBC consists of an electronic switch T in series with a resistance \(r_p \).

Fig. 8
figure 8

CBC configuration

With reference to Fig. 8.

$$\begin{aligned} V_{{ dc}} =\frac{1}{C}\int (I_{PV} -I_r -I_i )dt \end{aligned}$$
(22)

Where \(I_r \) is current flowing over \(r_p \) and \(I_i \) is the input current to the inverter.

$$\begin{aligned} I_r =T\frac{V_{dc} }{r_p } \end{aligned}$$
(23)

The CBC compares the error between the measured DC voltage and its reference. If the error is different from 0, the extra energy will be dissipated through the resistance, this control algorithm is given as follows:

$$\begin{aligned} \left\{ {{\begin{array}{l} {V_{dc}^*-V_{dc} =\epsilon \quad V_{dc}^*=600 \,V} \\ {\hbox {if }\epsilon >0 \quad \hbox { then }T=1\Rightarrow I_r =\frac{V_{dc} }{r_p }} \\ {\hbox {else} \quad T=0 \Rightarrow I_r =0} \\ \end{array} }} \right. \end{aligned}$$
(24)

2.3 Modeling of the diesel generator

The DG normally operates at nominal power and any surplus of energy can be employed to charge the BESS. In general, the DG is usually designed to operate between 80 % and 100 % of its rated power [43], while running together with the BESS or other RES. The output voltage of the DG is regulated to the AC bus voltage, therefore in most situations DGs are coupled in parallel to achieve the current requirements [1, 3,4,5, 8, 44]. The energy (\(E_{DG}\)) generated by DG is given by:

$$\begin{aligned} {E_{ DG}} = {P_{ DG}}{\eta _{ DG}}t \end{aligned}$$
(25)

Where \(\eta _{{ DG}}\) denotes the efficiency of the DG.

3 Control strategies of HPS

The proposed control scheme for the off-grid HPS consists of two layers:

  • A local control layer which includes:

    1. a)

      A FLC-based inverter voltage and frequency regulator at the PCC.

    2. b)

      A DC bus voltage controller to compensate for imbalance caused by load variations and transmission line short-circuits.

  • A supervisory control layer which includes the PM and coordination between PV, DG and BESS.

3.1 Inverter voltage and frequency control

The aim is to design a robust control strategy to keep the voltage and frequency of the inverter at their desired values irrespective of the disturbances acting on the system such as fluctuations in solar irradiance, load variations and TPSC fault in the transmission line.

In the HPS, the sources are usually located far apart and measurement quantities are not easily accessible, therefore it is necessary to develop a control algorithm for the inverter that uses only the local variables that can be measured easily.

Droop is generally used control scheme in power systems to control the voltage and frequency of the inverter [45,46,47,48]. Using droop control, the active and reactive powers distribution by the inverters is automatically attained by controlling the voltage amplitude and frequency of the inverter. As presented in Fig. 9, it contains of an inner loop for voltage control and an outer loop to control the power. A PI regulator is commonly employed to adjust the voltage for this strategy. However, other control techniques, such as, FLC, sliding mode control, and predictive control have been proposed in [5, 8, 19]. In this study, a FLC is proposed.

Fig. 9
figure 9

Inverter control system based on droop and FLC controls

The real (P) and reactive (Q) powers are calculated from the PCC voltage (\(V_{f\_{ abc}} )\) and the load current (\(I_{{ Load}\_{ abc}} \)) which are expressed in the stationary frame by their d-q components (\(V_{L\_d} ,V_{L\_q} \)) and (\(I_{L\_d} ,I_{L\_q} \)) respectively. Therefore, P and Q powers are defined as follows:

$$\begin{aligned} \left\{ {{\begin{array}{l} {P=\frac{3}{2}\left( {V_{L\_d} .I_{L\_d} +V_{L\_q} .I_{L\_q} } \right) } \\ {Q=\frac{3}{2}\left( {V_{L\_q} .I_{L\_d} -V_{L\_d} .I_{L\_q} } \right) } \\ \end{array} }} \right. \end{aligned}$$
(26)

The calculated powers are compared with their references values (\(P^{*}\) and \(Q^{*}\)) and the differences are fed into the droop controller defined as follows:

$$\begin{aligned} \left\{ {{\begin{array}{l} {\omega =n\left( {P-P^{*}} \right) } \\ {E=m\left( {Q-Q^{*}} \right) } \\ \end{array} }} \right. \end{aligned}$$
(27)

The FLC based inner voltage control loop forces the inverter output voltage to track the desired reference \(E^{*}\).

The outputs of this voltage compensator together with the inner filter inductor currents are then fed into an inner current compensator to produce the PWM control signals. Figure 10 shows the bloc diagram of the voltage controller. The voltage error (\(e_V \)) and the derivative of the voltage errors (\(de_V \)) are used as inputs to the FLC. Its output is integrated in order to determine the reference current \(I_{{ abc}}^*\).

Where \(K_1 ,K_2 \) and \(K_3 \) are adaptive gains.

Fig. 10
figure 10

FLC structure of voltage controller

The input and output variables of the FLC are defined by seven triangular and trapezoidal MFs which is illustrated in Fig. 11. The method of min–max inference is employed for generate the rules of the FLC which are summarized in Table 2. The defuzzification is based on the centre of gravity method.

Fig. 11
figure 11

MFs of the FLC voltage controller

Table 2 Rule base of the FLC voltage controller

Where the MF labels are defined as: PB (Positive Big), PM (Positive Medium), PS (Positive Small), Z (Zero), NB (Negative Big), NM (Negative Medium) and NS (Negative Small).

3.2 Supervisory control system

Figure 12 presents a flowchart for the Supervisory Control System (SCS) for the off-grid HPS. The role of the SCS is to balance the power generated from HPS (PV / DG / BESS) with the power demanded by the load.

Initially, after ensuring that the PV generates its optimum power, the SCS compares the load power with the power generated from PV system based on this equation:

$$\begin{aligned} P_e =P_{PV} -P_{ Load} \end{aligned}$$
(28)
  • Firstly, it should be stressed that the DG operates when the load exceeds 14 kW to compensate for the difference in energy between the PV and power demand.

  • If \(P_e \) is positive and if the BESS connected to PV is completely charged, the PV provides the necessary energy to the load, if not the energy surplus between the PV and load power is stored in the BESS.

  • On the other hand, if \(P_e \) is negative, the DG is used to supply energy to the load. Next, the complete power generated from DG and PV is compared with the load power. If \(P_e \) is positive and the BESS is completely charged, then the power of PV is used by the load. If not, the BESS is charged from the power difference among the PV, DG and the load. In this step, \(P_e \) is negative, this means that the total power generated by both DG and PV is less than the power demanded by the load, then if the BESS is discharged and SOC is close to 20 %, for this condition the BESS works in the Charge-Sustaining Mode (CSM) and the PM strategy stops discharging the BESS. So, the load consumes the power provided by the PV and DG. If not, the BESS provides the energy to the load to support the power delivered by the PV and DG.

Fig. 12
figure 12

Flowchart of the SCS

4 Simulation results and discussion

MATLAB/SIMULINK is employed to implement the model of the proposed off-grid HPS and test the performance of the controllers. The overall model and control scheme have been simulated for three diverse scenarios which described in the following sub-sections. Parameter values used in the overall model are showed in the Appendix.

4.1 Step change in insolation

In this first scenario, the system of Fig. 1 is simulated with a variable solar irradiance. As illustrated in Fig. 13, the irradiance is initially set at \(1000 \hbox { W/m}^{2}\) and the stepped down to \(800 \hbox { W/m}^{2}\) and \(600 \hbox { W/m}^{2}\) at \(t=0.5\, s\) and \(t=0.8 \, s\) respectively.

Figure 14 shows the active power of the PV, DG and the load demand which is assumed to be constant and equal to 13.7 kW. The BESS power, current, voltage and SOC are presented in Fig. 15 (a, b, c and d) respectively.

It is assumed that, initially, the PV generated power is greater than the power required by the load and the BESS is partially charged.

Fig. 13
figure 13

Simulated changes in the solar irradiance

Fig. 14
figure 14

Active power of the PV (solid), DG (dotted) and the active required (dashed)

At \(t=0.8\, s\) the PV generation is lower than the load demand. The DG should respond quickly and provide the difference between the power demanded by the load and that available from the PV. In this case, the BESS delivers the energy to the load to support the power delivered by PV and DG. These results demonstrate the effectiveness of PM.

Fig. 15
figure 15

Battery response a power, b current, c voltage, d SOC

As can be seen from Fig. 16, the DC voltage is successfully maintained at 600 V after the insolation is varied at \(t=0.8\, s\) which proves the effectiveness of the CBC used. These results are reflected by the stability of the midpoint.

The load current shown in Fig. 17 has a fast dynamic response, a stable and sinusoidal waveform.

Fig. 16
figure 16

a DC voltage and b zoom of (a)

Fig. 17
figure 17

a Load current waveforms and b zoom of (a)

Figures 18, 19 and 20 show the voltage at the PCC, the corresponding RMS and frequency respectively. From Fig. 18, it can be observed that the voltage waveform remains stable and sinusoidal throughout this simulation. A successful integration of RES in an off-grid HPS requires effective control of the voltage and frequency at the PCC.

Fig. 18
figure 18

a Voltage at the PCC and b zoom of (a)

To demonstrate the effectiveness of the FLC, a comparison with a PI controller for the control the inverter output voltage is presented. From Fig. 19 it can be observed that the proposed FLC has a better performance and provides a faster transient response than the classical PI controller. Figure 20 shows some minor fluctuations in the supply frequency, which demonstrates the effectiveness of the control used.

Fig. 19
figure 19

Voltage RMS at the PCC

Fig. 20
figure 20

Frequency

4.2 Step change in the load

This scenario is assumed to simulate the system of Fig. 1, for a period with a constant insolation of \(1000 \hbox { W/m}^{2}\) and variable load. The load is set to 9 kW initially. At \(t=0.5\,s\) it is suddenly changed to 18 kW and then decreased to 13.7 kW again at \(t=0.8\,s\). The results of this scenario are shown in Figs. 21, 22, 23, 24, 25, 26, 27.

Figure 21 shows the power distribution (load, PV and DG). The BESS power, current, voltage and SOC are shown in Fig. 22a, b, c and d respectively.

Initially, between t = 0 s and t = 0.5 s, the load is varied from 0 kW to 9 kW. The PV can simultaneously supply the power to the load and charges the BESS. Then, the load is increased from 9 kW to 18 kW between t = 0.5 s and 0.7 s. As a result, the PV power increases to meet the sudden increase in the load and the DG regulates the instantaneous output voltage to satisfy the new power demand.

Fig. 21
figure 21

Active power of the PV (solid), DG (dotted) and the power required (dashed)

Finally, between t = 0.7 s and t = 1 s, the load is varied from 18 kW to 13.7 kW. The BESS also supplies energy to the load to ensure stability between the generated power by the PV / DG and the load demand. In this study, as mentioned earlier, the BESS has two essential roles in the HPS. The first is to supply energy to the load to ensure stability between demand and generation while the second is to ensure the stability of the voltage against DC bus voltage drop. From these results, it can be concluded the PM algorithm is able to achieve good control and balance between the power required by the load and HPS generation under the simulated operating conditions.

Fig. 22
figure 22

System performance for battery a power, b current, c voltage, d SOC

Figure 23 shows the RMS of the load current, DG current and PV current which are seen to follow the simulated load variations. The direction of the currents at the PCC adopted in these simulations is based the following equation:

$$\begin{aligned} I_{ Load} =I_{PV} +I_{DG} \end{aligned}$$
(29)
Fig. 23
figure 23

Current of the PV (solid), DG (dotted) and the current required (dashed)

Figures 24 and 25 show the three-phase currents of the load and the THD (Total Harmonic Distortion) respectively. From Fig.  24, it can be observed that the current is sinusoidal and its amplitude changes with the load. Furthermore, the THD of the load current is 0.02 % when the PV supplies power to the load. However, when the DG provides energy, the THD is seen to increase to 5.9%.

Fig. 24
figure 24

a Load current waveforms and b zoom of (a)

Fig. 25
figure 25

THD of the current

To demonstrate the benefits and superior performance provided by the FLC controller against the classical PI controller, a comparative study between PI and FLC is presented for the regulation of the voltage at the PCC for the HPS under variation in the load. Figure 26 shows the response of RMS voltage at the PCC with PI and FLC. These results show an improved transient response with FLC as compared to PI when a load change is applied.

Figure 27 shows that the measured DC voltage is successfully regulated at the reference value of 600 V, this results show the effectiveness of the proposed CBC.

Fig. 26
figure 26

RMS of the voltage at PCC with FLC (solid) and PI (dashed)

Fig. 27
figure 27

DC voltage

In A and B scenarios, the load demand and insolation are varied separately. However, other scenarios can be considered where both load demand and insolation are changed simultaneously since the power management of the HPS is designed to handle any unbalance between load demand and generation.

4.3 Three-phase short circuit in the line

This scenario is simulated with a constant insolation of \(1000 \hbox { W/m}^{2}\) and a constant load of 9 kW. The simulated fault is a Three-Phase Short-Circuit (TPSC) on the line and is applied at the PCC at \(t=0.3 \,s\) and cleared 10 ms later.

Figure 28 shows the PV and DG output powers and the load demand. Clearly, the PM algorithm was able to balance the between the power required by the load and HPS generation. At \(t=0.3\, s\), when the TPSC is applied at the PPC, the system exhibits a transient power unbalance. After the TPSC is cleared, the HPS responds rapidly to provide the power demanded by the load.

Fig. 28
figure 28

Active power of the PV (solid), DG (dotted) and the active power required (dashed)

Fig. 29 shows the response of the voltage under this TPSC fault condition. With the FLC, the voltage has a rapid dynamic response and has a superior performance as compared to the PI. Also, it can be noted that at the onset of the TPSC, the voltage becomes almost zero in the case of the PI controller.

Fig. 29
figure 29

a RMS of the voltage at PCC and b zoom of (a)

The DC link voltage DC is maintained at its reference of 600 V with a short transient following the application of the TPSC as shown in Fig. 30. Furthermore, the robust FLC provides a faster DC link voltage response than the classical PI controller.

Fig. 30
figure 30

a DC voltage with FLC (solid), PI (dotted), reference (dashed) and b Zoom of (a)

Table 3 summarises the comparative results of the FLC and PI controller with respect to the difference scenarios considered in these simulation studies.

Table 3 FLC and PI comparison for the all scenarios studied

5 Conclusions

The paper focused on the design and evaluation of a hierachical power management and control scheme for an off-grid HPS consisting of a PV, a DG and a BESS for energy storage.

In this study, two control strategies have been proposed to enhance the performance of the system including the regulation of the voltage and frequency at the PCC using FLC techniques and the design of a CBC to stabilise the DC bus voltage of HPS.

The proposed control scheme has been evaluated in a series of simulations scenarios including load variation, changing solar irradiance and TPSC fault in the transmission line. A comparative simulation study among the proposed FLC and PI controller for the regulation of the voltage is presented and the results demonstrate a superior performance of the FLC. Furthermore, a CBC was proposed to enhance the stability of the DC voltage. The results also demonstrated the effectiveness of the PM algorithm to coordinate between HPS in the different scenarios considered and to provide the protection in HPS.