Matlab-Based Modeling and Simulations to Study the Performance of Different MPPT Techniques Used for Photovoltaic Systems under Partially Shaded Conditions

A pulse-width-modulator(PWM-) based sliding mode controller is developed to study the effects of partial shade, temperature, and insolation on the performance of maximum power point tracking (MPPT) used in photovoltaic (PV) systems. Under partially shaded conditions and temperature, PV array characteristics become more complex, with multiple power-voltage maxima. MPPT is an automatic control technique to adjust power interfaces and deliver power for a diverse range of insolation values, temperatures, and partially shaded modules. The PV system is tested using two conventional algorithms: the Perturb and Observe (P&O) algorithm and the Incremental Conductance (IncCond) algorithm, which are simple to implement for a PV array. The proposed method applied amodel to simulate the performance of the PV system for solar energy usage, which is compared to the conventional methods under nonuniform insolation improving the PV system utilization efficiency and allowing optimization of the system performance.The PWM-based sliding mode controller successfully overcomes the issues presented by nonuniform conditions and tracks the global MPP. In this paper, the PV system consists of a solar module under shade connected to a boost converter that is controlled by three different algorithms and is generated using Matlab/Simulink.


Introduction
Photovoltaic generation (PVG) systems are widely used as energy sources in hybrid, stand-alone, and grid-connected systems.Because of natural environmental disasters and concerns over fossil fuel reserves, there is a great amount of interest in clean energy sources that cause less environmental pollution than fossil fuels.Among the various renewable energy sources, photovoltaic (PV) energy is one of the most reliable and mature alternative energies.PV energy is pollution-free, long-life, has no running cost, and is very low maintenance.However, there are some drawbacks to the PV system, such as the high installation cost and low conversion efficiency (12-15%) of PV modules.PV cell technology is expected to perform an important function in meeting the growing demand for stand-alone systems at low voltages and also in high power installations, which are usually connected to the grid.PVG has the advantage of directly converting light energy into electrical energy through semiconductors.
Maximum power point tracking (MPPT) of a PV array is usually an essential part of the PVG system.If weather conditions, such as ideal insolation and temperature, are good, the PVG system can generate maximum power efficiently.However, nonuniform insolation occurs frequently due to shadowing from sources such as trees, electric poles, neighboring buildings, and clouds [1].
Many MPPT algorithms and techniques have been developed.The most widely used algorithms are the Perturb and Observe (P&O) algorithm and the Incremental Conductance (IncCond) algorithm [2,3].The P&O algorithm is well known for its simple implementation, but it deviates from and oscillates around the maximum power point (MPP), thereby International Journal of Photoenergy wasting a considerable amount of the available energy.In addition, the P&O algorithm can become confused when insolation and temperature atmospheric conditions change rapidly [4].The IncCond algorithm has good efficiency and accuracy.This algorithm can track the MPP of the PV module by comparing instantaneous conductance with Incremental Conductance [5].Therefore, under rapidly changing temperature and insolation atmospheric conditions, it performs well, but its response in finding the MPP is reduced due to the relatively complex computations required by the control algorithm [5][6][7].
Partially shaded PV modules typically have difficulty in tracking the global maximum power point (GMPP).The operating point of the PVG system tends to converge to a local MPP.Most traditional MPPT algorithms converge to a local maximum, which is not the global maximum output point on the P-V curve.This results in a considerable decrease in PVG, in addition to the efficiency of the MPPT algorithm.To resolve this problem, partially shaded PV modules can be implemented using a PWM-based sliding mode controller.
In this paper, we propose a PWM-based sliding mode controller to track the maximum power point in a nonuniform P-V curve.Within this paper and taking into consideration the effects of changes in insolation and temperature on the PV system under a shaded module, three MPPT methods that build on the P&O and IncCond algorithms and the proposed controller are implemented, evaluated, and compared in a Matlab/Simulink environment.The advantage of this implementation is that it takes advantage of electronic components and sampling frequencies, so its performance is relatively simple, as is its implementation, which can be done with microcontrollers and digital programming.We perform simulations to validate the effectiveness and robustness of the proposed controller method.
The paper is organized as follows: modelling of the PV system and the power output of a partially shaded PV array are described in Section 2; the proposed PWM-based sliding mode controller system and the two conventional algorithms are presented in Section 3; simulation results for the different MPPT algorithms with partially shaded PV modules with a focus on variations in insolation, temperature, and load are described in Section 4; and we present conclusions in Section 5.

Photovoltaic System Modeling
A model for a PV cell was introduced previously [8].By using the equivalent circuit of a single diode model as shown in Figure 1, the generated current can be expressed as where The PV module type is KC200GT, and its specifications are reported in Table 1.
The characteristic P-V curves of the PV array system shown in Figure 2 depend on the insolation and temperature of the PV system.However, insolation is not equally distributed to partially shade the PV module.To test the approach, three PV arrays are connected in series as shown in Figure 3.The following three cases of partially shaded PV modules are considered.Case (a): one module is shaded with unequal insolation (i.e., PV module 3).
The simulation results for the three cases suggest that a partially shaded module causes a reduction in PV output power.PV output power characteristics for all cases are depicted in Figure 4.

Presentation of the MPPT Algorithms
In this section, we compare the performance of the proposed algorithm with two published algorithms [5,9].The proposed algorithm is based on the PWM-based sliding mode controller algorithm with step-size variations; when partial shade conditions are detected, the MPPT method changes the voltage reference according to a linear function [10][11][12].
3.1.Perturb and Observe MPPT Algorithm.PV output power is basically a response to environmental factors such as changes in insolation and temperature.Thus, for effective PV power generation, it is desirable to have a MPPT algorithm.The P&O algorithm is widely used because it has a simple control structure and only measurements of parameters  PV and  PV are required for power tracking.In the experiment, PV voltage, current, and power for the th are measured each time, where the time  − 1 corresponds to the previous time  − 1, while  suggests the real cycle calculated values [13].The actual power value  PV () and previous power value  PV ( − 1) are compared to track the actual maximum power   ().If the actual power  PV () has increased,  PV of the PV array voltage is adjusted in the same direction; otherwise, if  PV () has decreased, it is perturbed in the opposite direction as in the previous cycle [3], as shown in Figure 5.The process is repeated periodically when the MPP is reached.The method oscillates around the optimal value.The process leads to power loss that increases with perturbation step size.The MPPT algorithm responds rapidly to sudden changes in the operating conditions.However, with a smaller perturbation step size, the losses under stable or slowly changing conditions will be lower.This method does not respond to rapid changes in insolation or temperature [14].  is equal to zero at the MPP, is positive to the left of the MPP, and is negative to the right of the MPP [7,15,16], as given by

Incremental
( The MPP can be tracked by comparing the instantaneous ( PV / PV ) to the Incremental Conductance (Δ PV /Δ PV ) as shown in Figure 6. ref is the reference voltage at which the PV array is forced to operate.At the MPP,  ref equals  MPP .Once the MPP is reached, the operation of the PV array is maintained at this point unless a change in Δ PV is noted, indicating a change in the atmospheric conditions and the MPP.The algorithm decrements or increments  ref to track the new MPP [17].

Proposed MPPT Algorithm Based on a PWM-Based
Sliding Mode Controller.Sliding mode (SM) controllers are well known for their robustness, stability, and advantages for application in nonlinear control systems.SM controllers are naturally better candidates than conventional PWM controllers due to their superb robustness and stability properties in handling variable switching frequencies [10].The function of a switching control law is to drive the nonlinear plant state trajectory onto a previous surface and to maintain the plant state trajectory for the subsequent time.The surface is known as the switching surface, which establishes rules for appropriate switching [11].The overall diagram of the proposed SM voltage control boost converters is presented in Figure 7.The system parameters are , which is the capacitance of the output filter; , which is the inductance of the input circuit; and   , which is the load resistance of the converters.  is the capacitor current,   is the inductor current, and   is the load current.
For any PID SMVC converter, the control variables  for the equation of the controlled system can be formed as where    International Journal of Photoenergy power switch   is  = 0 or 1.The state space model of the system can then be written in the form of a state space description as follows: where  = 1 −  is the inverse logic of .
SM control is used to design a certain sliding surface in its control law.For this system, it is suitable to have a control law that adjusts a switching function  as follows: where  is the instantaneous state trajectory.We take the following surface: with   = [ 1  2  3 ] and  1 ,  2 , and  3 representing the control parameters, which are the sliding surface coefficients.
The sliding surface can be obtained by enforcing  = 0. Finally, translation of the equivalent control function onto the duty ratio , where gives the following relationship for the control signal   and the ramp signal  ramp : Finally, the control parameters are chosen as Using the control voltage equation, the PWM-based SM controller for the boost converter can be implemented.

Results and Discussion
Simulations of the MPPT system were carried out to verify the performance of the described approach.The system configuration is described in Section 4.1, while in Section 4.2, the tests used to compare the three algorithms using the series configuration under nonuniform insolation and constant temperature conditions are presented.In Section 4. The overall electrical circuit of the system, which was developed and implemented using Matlab/Simulink, is shown in Figure 8.The three PV generators were connected to a DC-DC boost converter, which could be controlled by a PWM-based sliding mode controller.The DC-DC boost converter specifications are reported in Table 2. Modeling of each stage is described in detail in Section 4.2.

Response of the Different MPPT Techniques to Nonuniform
Insolation.In the implemented system, variations in insolation due to partially shaded conditions potentially caused by neighboring buildings, clouds, a tree in the wind, or towers, for example, were observed.All simulations were completed using the PV generator as defined above in the text, that is, a PV module with 54 cells connected in three series.For the period of this test, we also considered insolation increases or decreases.We performed a series of tests, and the responses of the proposed method to changes in insolation are presented.
We tested the behavior of the proposed method under partially shaded conditions with nonuniform insolation levels 1, 2, and 3 varying from 400 W/m 2 to 950 W/m 2 , as shown in Figures 9(a), 9(b), and 9(c).The temperature was kept constant at  = 25 ∘ C. The dynamic response of the PV system was controlled by one of three algorithms, as shown in Figure 9(d).Based on the extracted characteristic curves, especially the power curves, power output under the  IncCond and P&O algorithms did not exceed 185.3 W and 183.5 W, respectively.In contrast, a power output of 228.3 W was obtained under the PWM-based SVMC algorithm.The proposed algorithm stabilized around the GMPP with small oscillations.Therefore, the proposed algorithm resulted in 44.8 W more output power than the two conventional algorithms.

Response of the Different MPPT Techniques to
Nonuniform Temperature.PV output power is affected by sudden temperature changes.Consequently, we investigated system performance in response to variations in temperature of the three PV modules.PV modules were exposed to constant insolation levels, 1 = 600 W/m 2 , 2 = 800 W/m 2 , and 3 = 1000 W/m 2 , and then the temperature of the three PV modules was varied as shown in Figure 10(a).The dynamic response of the PV generator is shown in Figure 10(b).Responses using the IncCond and P&O algorithms did not exceed 175.4 W and 174.3 W, respectively.In contrast, the proposed MPPT controller reached a high power of 213.9 W. The proposed algorithm oscillated around the GMPP.The two conventional algorithms have 39.6 W less output power than the proposed algorithm.

Response of the Different MPPT Techniques to Nonuniform
Atmospheric Conditions and Load Changes.We also investigated the dynamic behavior of the proposed system to rapid changes in load.To analyze the dynamic behavior of the system, we considered temperature, insolation, and step load changes.We performed tests in which the three PV modules were partially shaded with nonuniform insolation and temperature.Figure 11  (ii) Case 2 (test under rapidly changing load (from 150 to 550 Ω)).The step load change was from 150 Ω to 550 Ω at time  = 5 sec.With reference to Figure 11(f), the simulation results showed that proposed method has better performance than the existing methods.However, when the overload level changed rapidly at 5 sec, the proposed method has a slow stability output power response time.

Comparative Study.
Flowcharts of the P&O and Inc-Cond methods developed using Matlab/Simulink software are shown in Figures 5 and 6, respectively.
Previously developed methods [5,7,18] for a resistive load connected to a DC-DC converter were simulated.However, we considered static and dynamic loads and the influence of nonuniform insolation and temperature on all PV modules to evaluate their performance.Figures 9(d), 10(b), and 11(e) show the output power of the three methods under partially shaded conditions.All methods were able to track the GMPP with different output voltages.Specifically, the IncCond method was characterized by a small overshoot and oscillation when the MPP was reached, whereas the P&O method has more oscillation around the GMPP.Finally, the proposed method has more oscillation around the GMPP than the P&O method; however, it provided more output power than expected, and its implementation was relatively conventional.In addition, an abrupt change in output load resulted in slower stability output power.The proposed method showed more robustness in terms of its dynamic behavior under different operating conditions, such as nonuniform insolation, nonuniform temperature, and resistive load, than the conventional methods evaluated.

Conclusions
Generation of power from a PV system is highly dependent on climate conditions.In this paper, we assessed the performance of three different MPPT techniques in response to uniform and nonuniform insolation, temperatures, and loads.
In particular, we compared the performance of the P&O and IncCond MPPT techniques with our proposed MPPT technique.The ability of the proposed method supplied with the reference voltage by the MPPT at sampling time to respond to sudden changes in solar insolation, temperature, and load was tested.The proposed method converged quickly with small oscillations around the MPP during steady state and obtained a higher voltage than the other two methods.Matlab/SimPowerSystem-based simulations of a PV system with MPPT control were carried out to validate the proposed method.Table 3 is shown as the result of the improved power ratio based on our proposed scheme.

Future Work
Our results demonstrate that the proposed method successfully tracked output power consumption.However, the proposed method has slow response time to a rapid change in load.Therefore, more studies are necessary to improve the response time to a sudden demand load.

5 :
Figure 5: Flowchart of the Perturb and Observe algorithm.

𝑥 1 ,
2 , and  3 represent the voltage error, the voltage error dynamics (or the rate of change of the voltage error), and the integral of the voltage error, respectively. ref , V  , and V  are, respectively, the reference, instantaneous input, and instantaneous output voltages.The switching state of the ΔI pv = I pv (k) − I pv (k − 1)

Figure 6 :
Figure 6: Flowchart of the Incremental Conductance algorithm.

Figure 7 :
Figure 7: Schematic diagram of the PWM-based PID sliding mode voltage controller for a DC-DC boost converter.
(a) shows the nonuniform temperature levels 1, 2, and 3 varying from 20 ∘ C to 45 ∘ C. Nonuniform insolation of the three PV modules was varied as shown in Figures 11(b), 11(c), and 11(d).
(i) Case 1 (test under rapidly changing load (from 150 Ω to 220 Ω)).Step load change was from 150 Ω to 220 Ω at time  = 5 sec.The dynamic responses of the PV system controlled by the three algorithms are represented in Figure11(e).The proposed algorithm oscillated around the GMPP and the PWM-based sliding mode algorithm showed much better performance and was more robust than the P&O and IncCond algorithms.
PV and  PV represent the PV array output current and voltage and   and   are the PV array series and shunt resistances, respectively. ℎ is the light-generated current,   is the diode reverse saturation current,  is a dimensionless junction material factor,  is Boltzmann's constant (1.3805 ×  is the temperature in Kelvin,  is the electric charge (1.6021 × 10 −19 C), and   and   are the numbers of cells connected in parallel and series, respectively.

Table 2 :
Specifications of the DC-DC converter.
3, we show that the tests verified the influence of temperature and insolation variations.The tests, which considered the response of all of the PV modules to nonuniform variations of temperature, insolation, and load changes, are presented in Section 4.4.Comparative simulation results are discussed in Section 4.5.
4.1.Modeling of the Overall Photovoltaic Power System.The PV power system model implemented for this work comprised several parts.The overall model was made up of the following subsystem models: (i) Matlab/SimPowerSystem model of a PV system, (ii) SimPowerSystem model of a boost converter controlled with a PWM-based sliding mode controller.

Table 3 :
The result of power improvement ratio.