MPPT Design Using PSO Technique for Photovoltaic System Control Comparing to Fuzzy Logic and P & O Controllers

The Maximum Power Point Tracker (MPPT) is the optimum operating point of a photovoltaic module. It plays a very important role to obtain the maximum power of a solar panel as it allows an optimal use of a photovoltaic system, regardless of irradiation and temperature variations. In this research, we present a novel technique to improve the control’s performances optimization of the system consisting of a photovoltaic panel, a buck converter and a load. Simulations of different parts of the system are developed under Matlab/Simulink, thus allowing a comparison between the performances of the three studied controllers: “Fuzzy TS”, “P&O” and “PSO”. The three algorithms of MPPT associated with these techniques are tested in different meteorological conditions. The obtained results, in different operating conditions, reveal a clear improvement of controlling performances of MPPT of a photovoltaic system when the PSO tracking technique is used.


Introduction
The photovoltaic solar energy deriving from the direct transformation of a part of solar irradiation into electric energy faces, inter alia, a maximization problem of power transfer of the photovoltaic generator (PVG) to the load.This is due to the non-linear feature of the electric characteristics I-V (Current-Voltage) of photovoltaic cells [1].These characteristics depend on the illumination level, the temperature of the cell and the load.In order to increase the output power of a photovoltaic energy system, it is indispensable to make the photovoltaic panel operate at Maximum Power Point (MPP), to extract, at every moment, the maximum of power available at the PVG boundaries.The technique commonly used is to insert an adapting interface between the PVG and the load.This adapting interface consists of a static converter driven by Pulse Width Modulation (PWM) [2] [3].The majority of articles dealing with control algorithms (MPPT) are based on the incremental conductance method (IncCon) or on Perturb and Observe (P&O) [4] [5] [6].The fuzzy logic controller type Mamdani, as well, has been studied [7] [8].In these last years, the analysis and synthesis of non-linear systems, described by fuzzy models type Takagi-Sugeno (TS), have also been widely studied in the literature [9] [10].
In this work, we present a robust technique which permits to track the MMP of the PV panel system, thanks to the controller using PSO.This control technique reduces the calculating time and keeps a good precision.In addition, it can be implemented in a low-cost microcontroller [11] [12].This controller "PSO" developed as such, will be subsequently used and compared to other classic tracking algorithms.
This paper is organized as follows.We present, in Section 2, the working environment and the electric modelling of the studied system, as well as the description of the developed algorithms for tracking techniques of MPP: "P&O", "Fuzzy TS" and "PSO".Section 3 is dedicated to the presentation of models under Matlab/Simulink version 2014 associated with different components of the tested conversion chain.In Section 4, we show and interpret simulation's results concerning the PV system behaviors under the effect of one of the three controllers "P&O", "Fuzzy TS" or "PSO" under different irradiation changes S and temperature T. We present also the evaluation of the performances of each of the studied MPP controllers.Finally, we finish our contribution with a summary of our research works.

PV Conversion Chain
As the PV conversion chain illustrates in Figure 1, MPP is reached through controlling the DC-DC converter with a system using a MPPT controller.The strategy of the MPPT controller allows to optimize the transfer of power from the PV panel to the load.The studied PV panel (Figure 1) is BPSX 150S type [13].Table 1 sums up the electric characteristics of the PV panel in the Standard Test Conditions (STC): 1000 W/m 2 , 25˚C and AM 1.5.We will present the Matlab-Simulink model which is based on these characteristic values.

PV Panel Model
In order to model our PV panel, we start with a simple model which is one of a PV elementary cell.The configuration that Figure 2 presents is the most common equivalent schema of a solar cell.It is composed of a source of variable current I pv , connected in parallel with a diode D, characterizing the junction of semi-conductors which make the solar cell, and a parallel resistance R p .To this assembly, another resistance R s is added in series.
The model of a PVG issues from this schema, defined by the following equations [1]:

Static Converter Type Buck
In our research, the suggested system in Figure 1 contains a power converter DC-DC type Buck, driven by using the Pulse Width Modulation principle.This converter is modeled by the equivalent electric schema in Figure 3.
As far as the simulations of the studied converter are concerned, the parameters we have used are: the resistance of the load being R c = 3 Ω, the capacitance of the capacitor being C = 4.7 μF, the inductance of the inductor being L = 2 mH, D being freewheeling diode and T being a transistor type MOSFET.During the operation in continuous mode of this buck converter, the average values of the output voltage V s and input voltage V e are proportional as follows: .
The proportionality coefficient α, being the duty cycle of values ranging from 0 to 1.In this present case, we use an average model of a buck converter, that is, V D ≈ αV e .Therefore, this converter will be described by the following equations [14]: To limit the ripples of the current and voltage at the level of the load, the LC cell, connected to the equivalent circuit in Figure 3, constitutes a low-pass filter.To size this filter, we determine the minimal values of the inductance L and the capacitance C, bearing in mind the following constraints, studied by a number of authors [15]: • The current through the inductormust be in a reasonable range in all load conditions as the converter operates in continuous mode.
• The maximum output voltage ripple must not exceed 5% of the output voltage V s .
Considering these constraints, the low-pass filter LC must respond to all the conditions of the following relations, where f c corresponds to the PWM switching frequency: ( ) According to the values in Table 2 and the conditions for C and L, we consider the optimum values, as follows: inductor (L ≥ 1.6 mH) and capacitor (C ≥ 2.7 µF).

MPPT Tracking Controllers
The power chain supply a DC load by the PVG through a static converter (SC) driven by a MPPT controller represented in Figure 4 and based on one of the algorithms "Fuzzy TS", "P&O" or "PSO".The MPPT controller adjusts the duty cycle of the SC in such a way that the power provided by the PVG is maximum at its boundaries.

P&O Controller "Perturb and Observ" [16]
The algorithm "P&O" is a MPPT controller based on the voltage perturbation Vpv, by increasing or decreasing a low amplitude around its initial value.This perturbation directly affects the duty cycle of the signal which controls the DC-DC converter.This perturbation is followed by the observation of its impact on the output power of the PV panel with the aim of eventually correcting this duty cycle.
Figure 5 presents the flow chart which describes the algorithm providing this controller called "P&O".
Despite of its performance, this technique presents some problems related to oscillations around the MPP that it generates in steady state as the research procedure of the MPP must be repeated periodically, forcing the system to oscillate permanently around the MPP.
These oscillations can be minimized by reducing the variable value of the perturbation.Yet, a low increment value slows down the searching of the MPP.As such, it is necessary to find a compromise between precision and fastness, which makes this controller quite hard to optimize.

Fuzzy Controller Type Takagi-Sugeno [17]
The fuzzy models Takagi-Sugeno are renowned for being an efficient technique to represent a non-linear system with fuzzy sets and fuzzy reasoning.Like the Mamdani model, this type of model builds using a base of rules of the type "If … then …" where if the antecedent is always linguistically expressed, the consequent uses numerical variables rather than linguistic variables.The consequent may be expressed, for instance, as a constant, a polynome or, more generally, as a function or a differential equation depending on variables associated with the antecedent.Generally, the model type Takagi-Sugeno is based on a collection of rules Ri of the type: where Ride notes the ith rule of the model and n the number of fuzzy rules that the base of rules contains.E and ΔE are the input variables x, called antecedents, and y is the output variable, called consequent.
Ai and Bi are fuzzy sets of the antecedent of the nth rule.These fuzzy rules are defined by membership functions μ Ai (E) or μ Bi (ΔE) belonging to the interval [0, 1].μ Ai (E) or μ Bi (ΔE) symbolize the value of membership functions of the input E or the input ΔE respectively to the fuzzy set Ai or Bi.
In the case where the consequents yi = fi(E, ΔE) take the form of a constant, which corresponds to our study case (yi = Δα), the model is called singleton or zero order.The suggested fuzzy logic controller to optimize the system, is represented in Figure 6.It receives as input the error and the error variation of the system (E(k), ΔE(k)).In the output, the variation of the duty cycle is generated Δα driving the DC-DC converter.This controller can be split in three principal modules: • Input: Fuzzification.It associates a membership degree ranging from 0 and 1 with each of the real inputs.
• Inference engine: it is associated to the base of rules type: "If … then …".The two input variables E and ΔE are defined by the two following expressions: P pv (t):The instantaneous power generated by PVG (in W).
V pv (t): The instantaneous voltage at boundaries of PVG (in V).
The controller output Δα is defined by the control law which depends on the error E and its ΔE as follows: ( ) And the duty cycle α, which drives the DC-DC converter, is expressed by: ( ) ( ) The big advantage of the Takagi-Sugeno technique is that it permits to simplify the aggregation calculation, so that we can not only obtain a simple solution more rapidly but also alleviate the global calculation mechanism significantly.
In the Takagi-Sugeno modelling, the final output is equal to the weighted average of the output of each rule.This average is given by the following expression: where z i is the output level of each rule R i and w i is the membership calculated by the following equation: The rules base is summarized in Table 3.In our system case, the universe of discourse is divided into five classes NL, NS, ZO, PS and PL, for the input and output variables as follows: NL for negative large, NS for negative small, ZO for zero, PS for positive small and PL for positive large.
The membership functions used in the case of our fuzzy controller are of triangular and trapezoidal types for the input, but of singleton type for the output.

PSO Controller "Particle Swarm Optimisation"
1) The basic PSO algorithm [14] [15] PSO technique [14] [15] is a robust stochastic optimization technique based on the movement and intelligence of swarms.It applies the concept of social interaction to problem solving.It uses a number of agents (particles) that constitute a swarm moving around in the search space looking for the best solution.
Each particle keeps track of its coordinates in the solution space which are associated with the best solution (fitness) that has achieved so far by that particle.This value is called personal best, P best .
Another best value that is tracked by the PSO is the best value obtained so far by any particle in the neighborhood of that particle.This value is called G best .
During the optimization process, the particles take up the objective function's values, while their G best and P besti are saved.The basic PSO algorithm which determines the next velocity and position of the candidate solution can be given mathematically as: In the afore mentioned expression, i represents the variable of the optimization vector, k is the number of iterations, k i v and k i x respectively the velocity and position of the ith variable within k iterations, the parameter w is known as inertia that maintains a balance between the local and global search.c 1 and c 2 are acceleration constants.r 1 and r 2 are two generated random numbers which are uniformly distributed in the interval The variable P besti records the best position affected by the ith particle up to the exact time of measurement.The following equation indicates that this position is only recorded as P besti if the condition stated below is satisfied.( ) , , , , , , , where k i x is the position of ith particle at kth iteration.
Therefore, the algorithm must be initialized when the following equation is satisfied.
( ) ( ) ( ) The PSO algorithm implementation process in this paper is as follow: i) Initialize the size of swarm, dimension of search space, maximum number of iterations, and the PSO constants w, c 1 and c 2 .Define the random numbers r 1 and r 2 .
ii) Find out the current fitness of each particle in the population.
iii) Attribute the particles with random initial positions and velocities.iv ix) Terminate the iterative algorithm when the criterion is reached.

Conversion Chain Modelling under Matlab/Simulink
In this part, we present the models used to simulate the different components of the PV conversion chain by working in the Matlab/Simulink environment.

Photovoltaic Panel
The PV panel model as presented in section 2.1.1 is resolved by Newton-Raphson method [13].
The associated program is implemented in the block diagram in Simulink presented in Figure 6.This program is translated with the aid of an Matlab function.

Buck Converter
The block diagram achieved under Simulink, is presented in Figure 8.It corresponds to the model of the buck converter integrated in the PV conversion chain.

MPPT Controller Type "P&O"
In the first phase, we implement under Simulink the complete diagram of the PV sys-tem with the "P&O" controller model as illustrated in Figure 9.

MPPT Controller Type Fuzzy Takagi-Sugeno
In the second phase, the fuzzy controller, too, is implemented under Simulink thanks to an S-function of Matlab, as shown in Figure 10.

MPPT Controller Type PSO
In the last phase, the technique PSO, as well, is implemented under Simulink.The complete diagram of the PV system is presented in Figure 11.

Behavior vis-à-vis Variations of G and T of the System under the "P&O",
"Fuzzy Ts" And "PSO" Controllers In this section, we compare through simulations, the convergence towards the MPP concerning the output power of the studied PV system by using one of the three controllers "P&O", "Fuzzy TS" and "PSO".
A temperature T set at 25˚C, while the irradiation S is rapidly variable taking the form of stairs with rising edges within a short time span.
Evaluation: regarding the afore mentioned variations and the results in Figure 12, we deduce the following observations and interpretations concerning the PV system behavior vis-à-vis the three MPPT controllers "P&O", "Fuzzy TS" and "PSO": • For these three controllers, we note the impact of the increase of the power generated by the PV system due to the increase of irradiation S when the temperature is constant.• In all cases, the convergence time or response time of the PSO controller is faster than the one of the "P&O" and "Fuzzy TS" controllers.
• The "P&O" shows oscillations around the MPP, whereas the "Fuzzy TS" and "PSO" remain quite stable.Table 4 summarizes the simulation results about tracked power with the studied MPPT controllers for different Irradiations.It is clear that the power generated when using the PSO technique was greater than 98% under all test conditions.

System Behavior near the MPP under the "PSO" Controller
In this section, we evaluate the efficiency of the PSO controller by presenting its convergence speed and its stability vis-à-vis the MPP at the level of P-V characteristics provided by the PV panel constructor type BPSX 150S.To evaluate the PSO controller, Figures 13-16 sum up the results of the simulations carried out concerning the P-V characteristics.
Figure 13 and Figure 14 denote the P-V characteristics of the PV panel at constant temperature of 25˚C with varying solar irradiation.

Performance Criteria of MPPT Controllers
In order to evaluate the performances of the three types of the studied controllers theoretically and experimentally, we are interested in this section to compare two performance criteria.
• The efficiency criterion ηMPPT of a MPPT controller defined by: In general, the objective of a controller is to minimize the difference between the system output and a value of a desired order.This difference may be due to either a change of order or perturbations in the system.
After considering these notes, we define the Integral of the Squared Error (ISE) by: ( ) is the power variation in comparison to the PV panel voltage variation.e(t) is the error of the first input E of the fuzzy controller.The value of e(t) shows that the working point for a load used at time t goes to either the right or left side of the MPP on the P-V curve.The ISE criterion is evaluated in the interval [0, t].
In our research, for the three studied MPPT controllers, Table 5 sums up the calculation results of the ηMPPT performance and the ISE criterion.According to the definitions above, the ηMPPT and ISE criteria, we note that the higher ηMPPT and lower ISE, the more efficient and faster MPPT.
The results we have obtained show that the use of the MPPT controller considerably and efficiently improves the performance of the PV plants.The comparison made between these three types of controllers confirm that the use of the PSO controller enables to not only minimize the ISE, which reduces the response time of the controller, but also improve the MPPT controller performance ηMPPT, which aims at diminishing the fluctuations of the transient mode.This increases the efficiency of the MPPT controller type PSO and definitely ensures the improvement of stability around the MPP.

Performance Comments
On one side, we have classical MPPT technique such as P&O and Fuzzy with their advantages and disadvantages.
Indeed, the Perturb and Observe technique is commonly used for MPPT and is actually widely deployed throughout industry as it is told to be simple, flexible and robust.However, P&O method exhibit a trade-off between tracking speed and tracking accuracy.It is due to the presence of an intrinsic trade-off in choosing perturbation frequency and step size.Also, there is a problem about the variation value around MPP.The P&O technique operates as a random system.The system does not know the right value of duty cycle that reaches the MPP until it varies the value of duty cycle to find the right value on that time.Therefore, it must spend time for this step and it causes wasting time.
Fuzzy based methods have strong adaptability and robustness in solving the MPPT problems in the photovoltaic system, which including a large number of uncertain factors effectively.However, in application, general fuzzy control method depends on prior knowledge to set control rules, membership functions, and relevant control parameters, which is difficult to meet real-time control requirements of photovoltaic system when the outer environment changes greatly.
As presided, each tracking algorithms have their own advantages and disadvantages.However, the traditional MPPT method often falls into local maximum value, rather than the global maximum which leads to the failure of tracking.
On the other side, PSO seems to us as a good alternative as it is a simple technique, easy to implement and as shown by simulations outperform classical technique in terms of accuracy.

Conclusion
In this article, we have studied and analyzed the running of a PV system, modeled and simulated under Matlab/Simulink, whose load is adapted by a buck converter.The regulation is ensured by three types of MPPT controllers: the classic controller "Perturb and Observe", a type Takagi-Sugeno controller deriving from fuzzy artificial intelligence and the last one is an optimization algorithm PSO.Simulation results show that our optimized PSO technique reaches the maximum power point in a shorter time with accurate maximum power.The analysis of merits of each technique in terms of maximum power point tracking is the main contribution of our paper.By analyzing the simulation results, it can be obtained that the PSO algorithm has advantages of high convergence speed, high precision and can accurately track the real maximum power comparing with traditional method.

−
a: Ideality factor of the solar cell.− ΔT = T − T n (Kelvin), T: Real temperature of the cells and T n : nominal temperature of the cells in the Standard Test Conditions (STC): 1000 W/m 2 , 25˚C and AM 1.5.

Figure 3 .
Figure 3. Equivalent electric circuit of buck converter.

5 Figure 4 .
Figure 4. PV system with buck converter driven by MPPT.

•
Output: Defuzzification.It permits the transformation of the membership degrees of fuzzy sets into numerical values.Our fuzzy controller presented in Figure 7 is characterized by: − Two inputs: error E and its variation ΔE and one output Δα. − Scaling factors K 1 and K 2 (from −1 to 1) for the normalization of inputs associated with the error and its variation.− The universe of discourse divided into five classes, further described below, for the input and output variables.− Triangular and trapezoidal membership functions.
) Configuration of PSO parameters The search space of the problem in which each position represents an Output Voltage value as a solution to the MPPT problem.The evaluation of the particles is based on the Output Power of the PV panel respective to the final voltage value which is indicated by fit as the fitness evaluator for the particles.The following equation shows the position matrix of the n particles which represents n solutions to the MPPT problem.

Figure 12 .
Figure 12.Comparison of convergence towards the PPM using P&O, fuzzy TS and PSO controllers at T = 25˚C and S variable.

Figure 13 .
Figure 13.Convergence towards the PPM using PSO controller at T = 25˚C and S variable.

Figure 14 .
Figure 14.The PPM using PSO controller at T = 25˚C and S variable.

Figure 15 .
Figure 15.Convergence towards the PPM using PSO controller at S = 1000 W/m 2 and T variable.

Figure 15 and
Figure 15 and Figure 16 show the P-V characteristics of the PV panel at constant irradiation of 1000 W/m 2 with various values of temperature.

−
Pm: measured power generated by the PV panel with MPPT.− Pmpp: maximum power generated in the same conditions of temperature and irradiation without MPPT.•The Integral of the Squared Error (ISE):

Figure 16 .
Figure 16.The PPM using PSO controller at S = 1000 W/m 2 and T variable.
Figure 2. Equivalent electric circuit of solar cell.

Table 2 .
Relative parameters of low-pass LC filter design.
Evaluate fitness value of each particle.v) Calculate the global best fitness value: current global best fitness = min (local best fitness).vi) Update the particle velocity and position for next iteration.Find out the current fitness of each particle: If current fitness < local best fitness, set local best fitness = current fitness.vii) Determinate the current global best fitness (current global best fitness = min (local best fitness)): If current global best fitness < global best fitness, then global best fitness = current global best fitness.The position corresponding to global best fitness is assigned to G best .viii) Repeat Steps 6 and 7 until achieved the maximum number of iterations or there is no improvement of the global best fitness value.

Table 4 .
Tracked power under various irridation S values.

Table 5 .
Performance criteria of MPPT controller.