 Original research
 Open Access
 Published:
Stochastic maximum power point tracking of photovoltaic energy system under partial shading conditions
Protection and Control of Modern Power Systems volume 6, Article number: 30 (2021)
Abstract
A large portion of the available power generation of a photovoltaic (PV) array could be wasted due to partial shading, temperature and irradiance effects, which create current/voltage imbalance between the PV modules. Partial shading is a phenomenon which occurs when some modules in a PV array receive nonuniform irradiation due to dust, cloudy weather or shadows of nearby objects such as buildings, trees, mountains, birds etc. Maximum power point tracking (MPPT) techniques are designed in order to deal with this problem. In this research, a Markov Decision Process (MDP) based MPPT technique is proposed. MDP consists of a set of states, a set of actions in each state, state transition probabilities, reward function, and the discount factor. The PV system in terms of the MDP framework is modelled first and once the states, actions, transition probabilities, and reward function, and the discount factor are defined, the resulting MDP is solved for the optimal policy using stochastic dynamic programming. The behavior of the resulting optimal policy is analyzed and characterized, and the results are compared to existing MPPT control methods.
Introduction
Renewable energy is of tremendous importance because of environmental protection, limited availability of fossil fuel, and increasing demand for electricity. Owing to technological advancements, the performance and reliability of renewable energy systems have improved significantly. Improvements in energy storage systems have further enhanced the trend of alternative energy sources. Photovoltaic (PV) based energy systems are one of the fastest growing forms of renewable energy. PV energy is clean, simple in design and requires very little maintenance. Moreover, PV systems can also be constructed as standalone systems to give wide output power ranging from microwatts to megawatts. Therefore, PV systems are suited for urban installation as they are noise free and can be set up in any places where sunlight is available.
Partial shading is a natural phenomenon which occurs when a PV array or a part of it is shaded due to the shade of nearby buildings, dust, cloudy weather or bird droppings. With partial shading, several modules in the PV array receive nonuniform irradiation, and therefore the current through each series string is no longer constant. As a consequence, the shaded portion of the array may consume instead of generating power. This results in heating or hotspots in the PV panel. This problem, if it remains untreated, can result in permanent damage of the PV panel in the long run. In addition, the efficiency of the PV system can be degraded by up to 70% due to hotspot heating.
A major issue associated with partial shading is its impact on the current–voltage characteristics of a PV system. Because of partial shading, the current–voltage relationship becomes highly nonlinear and it becomes difficult to find the value of the voltage at which the PV system delivers maximum power. Many researchers have proposed methods to tackle this problem. A recent review of maximum power point tracking (MPPT) methods under partial shading condition (PSC) is presented in [1]. The solutions proposed for MPPT under PSC can be broadly categorized into six main groups [1], i.e., conventional algorithms, metaheuristic algorithms, hybrid algorithms, mathematically based algorithms exploiting the characteristic curves of PV system, artificial intelligencebased algorithms, and hybrid algorithms. The conventional algorithms for MPPT are the simplest in their structure but can be easily trapped in a local maximum power point (MPP).
Metaheuristic algorithms such as the bioinspired mimetic salp swarm algorithm [2] and the dynamic leader based collective intelligence algorithm [3] can effectively achieve the global MPP. However, the tuning of the parameters for achieving the best tradeoff between local and global explorations is difficult.
Figure 1 shows the change in MPP of a PV when irradiance is decreased [4]. It is noted that when the irradiance changes, both the maximum available power of the PV and the voltage at the maximum power change. A technological review on soft computing methods for MPPT is presented in [5]. Compared to the current voltage curves in Fig. 1, the curves in Fig. 2 [6] indicate the generation of local MPP (Fig. 2c) which makes it difficult for the conventional MPPT techniques to find the global MPP. Hence there has been significant work on MPPT techniques under PSC [1, 7].
Among the wide range of methods for MPPT under PSC discussed earlier, some use natureinspired methods [8] while others are based on effective utilization of power electronic circuitry [9].
Among the direct methods are the perturb and observe based incremental conductance, particle swarm optimization based [10, 11], and parasitic capacitance methods [10, 12]. Some of the artificial intelligence based methods include a backpropagation neural network based method, a twostage offline trained artificial neural network based MPPT technique using two cascaded artificial neural networks [13], an artificial neural networkbased duty cycle estimation of the boost converter in PSC [14], a genetic algorithm to detect the MPP of a photovoltaic system [15]. A comparison among different MPP tracking techniques based on the annual performance has been reported in [16]. A bioinspired flower pollination algorithm for MPP tracking has been discussed in [17] which has been shown to effectively handle partial shading condition however, some time is required before the duty cycle is adjusted according to the changes in the shading condition. Another interesting recent approach for MPP tracking is adaptive perturb and observe that has been reported in [18] but the model of uncertainty has not been incorporated in the design of the MPP tracking algorithm.
Based on the above discussion, it can be inferred that although many works have been done on the MPPT under PSC for PV systems, none of the existing methods uses the mathematical model of uncertainty involved in the shading patterns for developing MPPT technique. In addition, the existing methods do not use precalculations of the MPP under various shading conditions. Hence, this paper discusses a Markov Decision Process (MDP)based MPPT control which belongs to the class of artificial intelligencebased methods. MDP consists of five elements, i.e., a set of discrete and finite states, a set of actions (or control decisions), a set of state transition probabilities, a state dependent reward function, and a discount factor ranging between zero and one. Once a problem is formulated as a MDP (by defining all five elements), the optimal control policy (optimized with respect to the expected value of the discounted reward function) is calculated using a stochastic dynamic programming technique such as value iteration or policy iteration [16, 19]. The optimal policy is a mapping that provides an optimal action for each state.
The main advantage of using a MDPbased control over existing approaches is that the uncertainty in the irradiance level is incorporated directly in the calculation of control policy. Another advantage is that the control policy is optimized with respect to the expected discounted value of the reward function. The disadvantage, however, is the computational complexity involved in calculation of the optimal policy. This disadvantage is less of a concern for two reasons. First, the computations are performed beforehand (in an offline manner) and the calculated policy is stored in the memory associated with the embedded system. Second, with modern computational capability and development of approximate dynamic programming approaches, complex problems can become computationally tractable.
There is one additional task associated with the proposed approach compared to the existing methods, i.e., the collection of statistical data. In order to develop state transition probabilities, statistical data related to the irradiance levels at the location of PV panel installations needs to be collected beforehand. The solution of this problem is beyond the scope of this paper. However, machine learning and iterative policy improvement are existing tools that can enable the implementation of the proposed method without accurate statistical data to begin with. Such development is an avenue of future research. In the rest of the paper, the formal problem formulation is presented in Sect. 2 and the proposed MDP model is given n Sect. 3. Calculation of the optimal MPPT policy using the proposed MDP model is described in Sect. 4. A simulationbased case study and qualitative and quantitative comparison with existing approaches is provided in Sects. 5 and 6, respectively. Finally, findings and future directions are summarized in Sect. 7.
Problem formulation and solution approach
When different modules in the PV array receive nonuniform irradiation, multiple local maxima occur in the IV characteristics of the PV array (see Fig. 2). Consequently, the PV array fails to operate at MPP. In order to operate the PV array at MPP, it is required to track the maximum operating region of the PV plant according to changing weather conditions and shift the operating point of the plant according to environmental conditions in the presence of uncertainty.
Our proposed solution involves multiple steps including the formulation of a MDP model and its use for calculation of optimal control policy. Figure 3 shows the flowchart of the solution process. Note that once the optimal control policy is formulated, it is used to dictate the duty cycle of the DCDC converter and hence the operating voltage is changed to track the MPP. Details of the MDP model are presented in the next section.
Markov decision process model for MPP tracking
As mentioned earlier, a MDP consists of a set of states, a set of actions in each state, a state transition probability function \(T\left({s}^{\mathrm{^{\prime}}}s,a\right)\), a reward function R(s), and a discount factor \(\left(\gamma \right)\) that is a number between zero and one. The discount factor describes the preference for current rewards over future rewards [16]. Consequently, the MDP model is formulated as:
where \(S\) is the set of states, \(A\) is the set of all possible actions, \(\mathrm{T}\left({\mathrm{s}}^{\mathrm{^{\prime}}}\mathrm{s},\mathrm{a}\right)\) is the transition probability function expressing the probability of being in state \({\mathrm{s}}^{\mathrm{^{\prime}}}\in S\) when control (action) \(a\in A\) is taken in a state \(s\in S\). \(\mathrm{R}\left(\mathrm{s}\right)\) is the reward function that defines the value of immediate reward for a state \(s\in S\). Each ingredient of the model for stochastic control of the MPPT of a PV energy system is presented below.
States
Statespace is the collection of information regarding the MPPT. Each state variable has its own domain. Union of domains of all statevariables constitute statespace. After careful deliberation and literature survey, the states and state variables are defined as follows:
In (2), there are a total of \(N\) states, and each state has five variables and consequently five types of information among these variables. Variable \({e}_{i}\) is the error between the maximum expected power at a given voltage and the actual power received at that voltage. It is assumed that the maximum expected power at each voltage is known. The error variable ranges from \({e}_{min}\mathrm{ to }{e}_{max}\) and the interval between any two values of \({e}_{i}\) is \({\delta }_{3}\), which can be any positive constant and is chosen according to its suitability to the problem. A small \({\delta }_{3}\) will result in large state space while a large \({\delta }_{3}\) will result in small state space. Irradiance \({I}_{r{r}_{i}}\) is the irradiance vector containing the irradiance of every panel in state \(i\). Each panel has different ranges of irradiance, defined in (2) as \(Ir{r}_{i,j}\) where \(j\) ranges from 1 to \(q\) and \(q\) is the total number of solar panels in the system. \({V}_{i}\) is the current PV output voltage determined by the selection of the duty cycle, while \({V}_{i}^{*}\) is the last value of voltage \(V\) in the last m actions which has achieved a minimum value of \(e\). Variable \({\alpha }_{i}\) indicates the number of actions executed for searching the MPP (\({\alpha }_{i}\) ranges from 0 to \(m\), counting up to \(m\) actions).
With the above selection of state space, it is possible to determine whether the current voltage is achieving maximum expected power or not, while the irradiation level at each panel (or group of panels) is also determined. In practice, irradiation measurement sensors are required to provide such information. In addition, information about the best possible voltage (\({V}^{*}\)) within the last \(m\) voltage values that yields lowest error is also obtained. This information is incorporated in the state space because, in practice, the irradiation measurement may not be accurate or there may be some anomaly causing the MPP to shift from the expected value. Under such circumstances, it would be impossible to make the error (\(e\)) equal to zero. Therefore, \({V}^{*}\) is the voltage that may be adopted by the system if the error remains nonzero for more than m consecutive steps (or decision epochs). Once the error becomes zero, the value of \({\alpha }_{i}\) is reset to zero.
Actions
Actions basically refer to all the available decisions in each state for the MPPT of the PV system. Based on selected state variables, actions include the selection of voltage V for the PV system. If no change in the current value of V is desirable, a nooperation (NOOP) can be selected as an action. This usually happens when the value of e is either zero or smaller than a threshold.
Each action in (3) (except for NOOP) corresponds to a particular value of \(V\) (assuming there are \(x\) possible values for \(V\)). Once a value of \(V\) is selected, the duty cycle is then adjusted accordingly to achieve the value of \(V\). Note that the subscript \(i\) is used with \(V\) when it refers to the value of the voltage in a particular state \({s}_{i}\). Otherwise, the subscript is not used.
Reward function
Reward function is a measure of how good or bad a state is, and can be regarded as a negative of cost function. In the MPPT problem, it is preferable to drive the error to zero. Hence the reward must be inversely proportional to the error. In addition, it is also desirable to make the value of \(V\) equal to \({V}^{*}\) especially when it is not possible to reduce the error to zero. Therefore, a reward for making \(V\) equal to \({V}^{*}\) is required that should be inversely proportional to the value of \({\alpha }_{i}\).
Based on the above discussion, the reward function is given as:
In (4), the first term (\({r}_{1}\)) is to endorse the fact that desired power must be equal to the maximum expected power. It means that if it is not operating at MPP this term will have a value, while \(e\) will be zero or close to zero if operating at MPP, and then a high reward is obtained. Note that \(\beta\), \({\lambda }_{1}\), and \({\lambda }_{2}\) are positive constants to be selected by the user. The second term (\({r}_{2}\)) in (4) is to endorse the need for the system to be operating at the best possible voltage and further actions are discouraged. If the system is not operating at maximum possible voltage, this whole term will be zero so further actions taken to improve the voltage will have no reduction in reward. In the second term \(\alpha\) is the action executed since the last time when \({V}_{i}={V}_{i}^{*}.\)
Transition probabilities
When modeling realworld decisionproblems in the MDP framework, it is often impossible to obtain a completely accurate estimate of transition probabilities. The MPPT problem consists of multiple states, and a state is an assignment to multiple state variables. Therefore, joint probability distribution can be involved in determination of full state transition mapping. In this regard, a Bayesian Network (Bayes Net) is used, which helps simplify the probabilistic representations. It can capture uncertain knowledge in a natural and efficient way. Independence and conditional independence relationships among variables in Bayes Net can greatly reduce the number of probabilities that need to be specified in order to define the full joint distribution. Bayes Net basically represents dependencies among variables and a Bayes Net is a directed graph in which each node is annotated with quantitative probability information [10]. Bayes Net of the proposed stochastic control for MPPT of PV energy system is shown in Fig. 4.
There is only one random variable which is the error (\(e\)) in the power. This variable is random because shading is random. It depends upon the irradiance value received from the panels and its own previous value.
The expression for the state transition probability is presented as:
where \({e}_{j}\) is the value of error in state \({s}_{j}\) and \({I}_{rri,*}\) are the values of irradiation in state \({s}_{i}\). Note that besides the stochastic transitions, there are also deterministic transitions in the state variables. For example, the values of \({\alpha }_{i},{V}_{i}\) change deterministically depending upon what action is taken. Also, the value of \({V}^{*}\) either remains the same or becomes equal to the value of \({V}_{j}\) depending upon the value of \({e}_{j}\).
To facilitate the calculation of the transition probabilities, a functionbased approach is proposed. The intuition behind the proposed approach is that the error (\({e}_{i}\)) can either increase, decrease, or stay the same. Therefore, at each state, it needs to characterize three probability values, i.e., the probabilities of increase, decrease and no change in \({e}_{i}\). The functional form can be written as:
Similarly,
Also,
Here \({p}_{1,k},{p}_{2,k}\in \left(\mathrm{0,1}\right]\) are the probability values that depend upon the action to be executed. For example, the probability of increase in error would be large if an action results in \({V}_{j}\) being far away from \({V}_{i}^{*}\). Note that the above equations take into account only one unit change in the error, while the probabilities for two or more unit changes can be defined in a similar manner.
Discount factor
The discount factor (\(\gamma\)) is a number between zero and one indicating the depreciation in the value of reward with respect to the decision epochs. If \(\gamma\) is close to zero, only the immediate rewards have significant value and the rewards in the distant future have insignificant value. On the other hand, if \(\gamma\) is selected to be close to one, the distant rewards have almost the same value as that of the immediate rewards. For the MPPT problem, the discount factor is selected to be close to one so that the resulting optimal control policy is ‘far sighted’, i.e., distant future states are given significant value (and not just the near future states) while calculating optimal action.
Solution of the MDP model for optimal policy
Once the problem is formulated as an MDP as in Sect. 3, any standard approximate dynamic programming algorithm can be used to solve the model for optimal policy. Here the value iteration method is used, and the Bellman equation is the basis of the value iteration algorithm for solving MDPs, expressed as:
where \(R\left(s\right)\) is the reward of states, \({U}_{i}\left(s\mathrm{^{\prime}}\right)\) is the utility of the next state after executing action \(a\) and \(\gamma\) is the discount factor. If there are n possible states, n Bellman equations will be available, one for each state. The n equations contain n unknown utilities of states. The equations are nonlinear, because of the max operator, so the iterative approach is used. The iteration step, called a Bellman update, is given as:
where the update is assumed to be applied simultaneously to all the states at each iteration. The iterations are carried out until the utilities of all the states reach a steady state, i.e., \({U}_{i+1}\left(s\right)={U}_{i}\left(s\right),\forall s\in S\). Once the steady state utilities (\({U}^{*}\left(s\right)\)) are calculated for all states, the optimal policy is calculated as:
where \({\pi }^{*}\left(s\right)\) is the optimal policy obtained by using the principle of maximum expected utility by which agent chooses the action that maximizes the expected utility of the subsequent state.
It is important to point out that the solution of an MDP in general involves the computational complexity of the order \({N}^{2}x\) where \(N\) is the number of states and \(x\) is the number of actions [20]. In the MDP proposed here, the number of states does increase with the decrease in step size (\({\delta }_{1},{\delta }_{2},{\delta }_{3}\) in (2) above). A decrease in step size may be desirable for achieving high precision in MPPT. Therefore, if MDP is used alone (without any additional small scale duty cycle tuning algorithm), there may be an issue of computational complexity. On the other hand, since all of the calculations involved in the determination of the optimal policy using MDP are carried out offline, larger computational complexity is affordable. At the PV plant site, there is minimal computational requirement, and all responses (in the form of precomputed optimal policy) can be saved in the digital signal processing kit included in the DCDC converter. Therefore, as the realtime data on the current/irradiance is fed into the MPPT controller, all it needs to do is set the duty cycle (instantly) at the corresponding value suggested by the optimal policy. Figure 5 shows the breakdown of the online and offline calculations and computingrelated activities. It is evident that most calculations are performed beforehand (offline) and only a single calculation in realtime (online) is required, i.e., calculation of the index of the state that has occurred according to the sensor readings.
Simulationbased case study
The overall design of the case study is based on three steps: 1) study of the MPP under various shading conditions using the SIMULINKbased model of a 2 × 2 PV array; 2) formulation of the MDP for MPPT of the array based on the obtained maximum power points; 3) calculation of the optimal control policy using the value iteration algorithm (implemented in MATLAB). The value of discount factor in value iteration is set to 0.95 in order for the MDP policy to consider the rewards of the states in the longterm. Also, the termination criterion is set as \({\Vert {U}_{i+1}{U}_{i}\Vert }_{\infty }\le {10}^{6}\). The results for different scenarios using the MDPbased MPPT control policy are then reported to indicate the effectiveness of the proposed approach. The subsections below explain each of the above mentioned steps in detail.
PV system model
The model of the PV energy system is given in Fig. 6. In this model, there are four modules and three variable constants, i.e., temperature, irradiance and partial shading. More than four modules could be used but four are selected to reduce the complexity of the model and the MDP conditions. The range of irradiance can also be changed according to the MDP model, while different partial shading patterns are used to achieve the maximum power.
The main purpose of this work is to improve the energy harvesting of the PV system and to determine MPP by detecting the shaded portion of the array especially under dynamic weather conditions while avoiding complex control techniques. Thus, the only uncertainty present in this power point tracking problem is shading, which changes under different weather conditions, temperature etc. The shading is considered to be equal to the irradiance absorbed by a PV module.
Change in voltage (ΔV) is incorporated through change in duty cycle (ΔD) of the DCDC converter in the detected MPP region. The perturb & observe (P&O) algorithm is also implemented in order to precisely detect the MPP. In this way the technique is further optimized in order to harness maximum energy from the PV.
Evaluation of shading patterns
For different possible partial shading scenarios, the shading patterns are segregated into the following:

1.
Horizontal shading pattern

2.
Vertical shading pattern

3.
Diagonal shading pattern
Comprehensive tests are conducted in order to analyze particular cases of each shading pattern. Results are gathered on the basis of different tests for the 2 × 2 array for horizontal and vertical shading patterns. Lower and upper diagonal shadings are tested for the diagonal shading pattern.
The horizontal shade is considered rowwise and the vertical shade columnwise. The diagonal shading pattern is tested by giving lowshade at upper and lower diagonal entries simultaneously. For both lower and upper diagonal cases, initially, the first row is shaded while keeping the other two rows unshaded with 1000 W/m^{2}, and then the second row is shaded in the same pattern as the first row and the corresponding current–voltage (IV) and powervoltage (P–V) curves are obtained. Three different irradiation values are considered for this purpose. For dark shade (D), the irradiation value is set as 200 W/m^{2}, while for light shade (L), it is set as 500 W/m^{2}. The module that has been considered as unshaded (U) has an irradiance value of 1000 W/m^{2}. The results indicating the MPP and the corresponding voltage are presented in Table 1. From these results, the MDP states are formulated.
Definition of MDP state space and actions
The variables involved in this problem are \(V,{V}^{*},{Irr}_{1}\dots .{Irr}_{n},e,\alpha\). The state space parameter values for the MDP model are defined as:
Note that the state space is defined for a fourpanel system, and the irradiation range is from 200 to 1000 W/m^{2}. Values of the irradiation levels and the voltages have been selected based on the results of Table 1 that have been generated using the system in Fig. 6.
Based on the above state space, seven actions are defined, with one for each possible value of V in (12). The numbering of the actions is such that \({a}_{1}\) corresponds to \(V=26\), \({a}_{2}\) corresponds to \(V=30\) and so on until \({a}_{7}\) which corresponds to \(V=50\).
Selection of reward function
In the proposed reward function (4), the rate of change of reward with respect to error has two segments. The first segment is when the error is between the acceptable ranges. In this range the rate of change of reward is increased so that the error would remain zero. If the error increase above the threshold, maximum reward cannot be achieved regardless of the error. So in this paper the main task is to achieve maximum reward for this error should it be below the threshold.
Reward function is selected so the MPP can be achieved. When the error increases from a low value, the reward drops rapidly whereas when the error is increased from a high value, the reward drops slowly. The expressions used in the simulations are as follows:
Calculation of transition probabilities
Calculation of the transition probabilities is not straightforward. The Bayes Net approach presented in Fig. 4 helps determine the transition probabilities. In the case study presented here, a functionbased approach is adopted as described in (6), (7), and (8). The probability values with respect to the sum of total irradiation on the solar panels are defined in Tables 2 and 3. The probability values in Table 2 are assigned based on how far the action is taking V from \({V}^{*}\). The values of \({p}_{1,*}\) and \({p}_{2,*}\) in \({P}_{r0}\) correspond to \(V\) being at the same value as \({V}^{*}\), while the values of \({p}_{1,*}\) and \({p}_{2,*}\) in \({P}_{r1}\) correspond to \(V\) being four volts different than \({V}^{*}\). In Table 3, the actionwise assignment of the probability values is presented. Note that these probability values are consistent with the simulation based results in Table 1 that depict the voltages corresponding to the maximum power for different partial shading scenarios.
Simulation results
The simulation results presented in this section are generated using the proposed MDPbased technique with the parameter values discussed in Sects. 5.2 to 5.5. The parameter values are selected based on the simulation of the 2 × 2 PV array under various PSC as discussed in Sect. 5.1. The MDP policy is generated using the value iteration algorithm implemented using MATLAB as discussed in Sect. 5.
Along with the results from the proposed method, the results from the existing methods, i.e., modified incremental conductance (Modified INC) [21] and dynamic leaderbased collective intelligence algorithm [3] for MPPT under partial shading are also presented. It is important to note that the techniques in [21] and [3] use online computation (search) of the MPP whereas the proposed method uses a precomputed policy for identification of the MPP. Therefore, when plotted against the number of decisions, as in Figs. 7, 8, 9, the proposed method is able to reach the MPP within a single decision whereas the dynamic leaderbased approach and the incremental conductancebased approach take some time to converge. The results from the dynamic leaderbased approach are optimized by assuming that it finds the correct MPP in a single cycle which is equivalent to three decision steps as described in [3]. For optimized results from the incremental conductance method, it assumes that the increment is always in the correct direction.
In order to test and compare the performance of the proposed approach, three different scenarios of variations in the irradiance are considered. As irradiance changes the PV voltages will also change and follow the uncertainty in irradiance as shown in Fig. 7. The first graph in Fig. 7 is the output power of the PV system, in which the output power with the proposed scheme is compared to the two other methods. The comparison indicates that the proposed approach is able to track the MPP relatively quickly (mainly because of the calculations performed beforehand). The second graph in Fig. 7 shows the voltages of the PV energy system. As shown, at the beginning, the voltages are close to zero, and as the irradiance varies, the voltages change according to the irradiance. Again, the comparison indicates quicker response from the proposed approach compared to the others. As shown in Fig. 7, when the irradiance is constant the PV voltage is also constant, while variation of irradiance changes PV voltage accordingly.
If shadow occurs due to bird droppings, dust, clouds or weather conditions, the irradiance can change more frequently as shown in Fig. 8. As seen, the PV voltages change according to the variation of the irradiance. Note that the advantage of the proposed approach over the dynamic leaderbased and incremental conductancebased approaches is more pronounced with frequent changes in the irradiance.
Finally, even more frequent change in the irradiance is considered in Fig. 9 and the results reinforce previous findings that the advantage of the proposed approach increases with the increase in the frequency of change in the irradiance. Such dynamic conditions may occur in real life when the solar panels are installed on top of a moving vehicle, a boat or a low flying UAV in the case of cloudy conditions.
Table 4 summarizes the results from the three cases shown in Figs. 7, 8, 9. Note that the advantage of the proposed approach over the dynamic leaderbased approach in terms of the total power delivered to the load varies from 1.78% (for the low frequency variations in the irradiance) to 3.62% (for the high frequency variations in the irradiance). It may however be noted that the difference in the generated energy may not be that great because of the fast computation available onboard with the electronics associated with the PV system.
Qualitative comparison with existing approach
In the previous section, it was shown that the proposed approach is quicker to respond to the change in the irradiance than the others. This is mainly because of the calculations performed beforehand in the proposed approach. This section highlights the main reason for the superiority of the proposed approach using analytical comparison. Although the proposed approach has only been compared to the incremental conductance based approaches, the conclusions from the comparison apply to all other existing techniques not based on precomputations and not catering for the stochastic model of the variations in the irradiance. The tracking of MPP of a PV panel through the implementation of MDP is more effective than the existing online and offline methods. The proposed technique is efficient in the sense that, unlike offline methods, there is no need to interrupt the supply to load in order to track the MPP. Moreover, some existing offline methods are unable to track the MPP under varying weather conditions. In addition, unlike online methods, the complexity of this technique is low and it can be implemented in low cost microcontrollers.
The proposed technique is costeffective in the way that it takes statistical data of a PV array, which is then processed in MATLAB and the shaded module is detected on the basis of low irradiation. Also, the algorithm is efficient as it is able to differentiate between light and dark shades. Using the concept of MDP, the faulty portion of a PV array can be detected and the portion that is producing maximum power in a particular shading scenario can also be identified. Thus, with the sophisticated control technique the PV array can operate on the voltage corresponding to the maximum powerproducing module in order to harness maximum energy in a particular weather scenario.
Lastly, the implementation of the MDP algorithm has narrowed down the scanning in order to detect MPP. Once a particular case of an identified shading pattern is detected, instead of scanning all the regions of the IV curve, it only needs to scan one region in order to track the MPP.
The proposed model accuracy is compared with the existing modified incremental conductance (MIC) model. As shown in Table 5, both models can operate under PSC, though only the proposed model deals with uncertainty. MIC also has over 25 online calculations whereas the proposed method only requires one online calculation. However, the MDP approach requires statistical data for implementation.
Conclusions and Future Directions
Solar energy is one of the most promising sources of energy among all renewable energy sources. The demand for and investment in solar energy have increased significantly because of the gradual reduction in the cost of PV panels and almost negligible maintenance cost. In order to harvest maximum energy from PV plants, maximum power point trackers are employed. These constantly track the MPP of the PV panel under various weather conditions.
In this research, a novel technique has been introduced which tracks the MPP of a PV array under the unavoidable phenomenon of partial shading. The proposed technique does not cut off the load from the power supply as required in some existing hardware or offline techniques. Moreover, no complicated controller nor complex mathematical operations are employed. There is no need to scan the IV and P–V curves of the PV array. In this technique, the data of irradiance is calculated. This is then processed in a MATLAB code to obtain the shading information. The effectiveness of the proposed method is compared with the existing methods. The proposed model can be used with any MPPT techniques to detect MPP. The proposed model works at different irradiance levels, while it can also be further modified to cater for different temperature levels. In addition, computations in the MDPbased model are fully offline so there is no online computational complexity in the presented model. In addition, the MDPbased model is completely discrete so offline computations are relatively fast. The results of the presented control are tested in all shading conditions. The simulation results of the MDP control show significant maximum power as compared to traditional approaches because none of them dealt with shading uncertainties.
The authors believe that the proposed approach is one of the very first approaches that considers the modeling of uncertainty in the MPPT problem in the form of transition probabilities. Another unique feature of the proposed technique is precalculation of the responses which enables quick response to rapidly changing irradiance. These unique features enable future extension of the proposed approach to MPP tracking in PV systems mounted on moving vehicles such as yachts, ships, ground vehicles and low flying unmanned aerial vehicles. Another relatively simple extension of the proposed approach is the incorporation of temperature variation in the MDP model.
Availability of data and materials
There is no associated data to be shared. The programing code used for generating the results can be requested via email from the corresponding author.
Abbreviations
 MPPT:

Maximum power point tracking
 MDP:

Markov decision process
 PV:

Photovoltaic
 DC:

Direct current
 IV:

Current–voltage
 P–V:

Powervoltage
 INC:

Incremental conductance
 PSC:

Partial shading condition
References
 1.
Yang, B., et al. Comprehensive overview of maximum power point tracking algorithms of PV systems under partial shading condition. J Clean. Prod. (2020): 121983.
 2.
Yang, B., et al. (2019). Novel bioinspired memetic salp swarm algorithm and application to MPPT for PV systems considering partial shading condition. Journal of Cleaner Production, 215, 1203–1222.
 3.
Yang, B., et al. (2019). Dynamic leader based collective intelligence for maximum power point tracking of PV systems affected by partial shading condition. Energy Convers Manag, 179, 286–303.
 4.
Verma, D., et al. (2016). Maximum power point tracking (MPPT) techniques: recapitulation in solar photovoltaic systems. Renewable and Sustainable Energy Reviews, 54, 1018–1034.
 5.
Salam, Z., Ahmed, J., & Merugu, B. S. (2013). The application of soft computing methods for MPPT of PV system: a technological and status review. Applied Energy, 107, 135–148.
 6.
Chauhan, A., & Saini, R. P. (2014). A review on integrated renewable energy system based power generation for standalone applications: configurations, storage options, sizing methodologies and control. Renewable and Sustainable Energy Reviews, 38, 99–120.
 7.
Ishaque, K., & Salam, Z. (2013). A review of maximum power point tracking techniques of PV system for uniform insolation and partial shading condition. Renewable and Sustainable Energy Reviews, 19, 475–488.
 8.
Jiang, LianLian, Maskell, D. L., & Patra, J. C. (2013). A novel ant colony optimizationbased maximum power point tracking for photovoltaic systems under partially shaded conditions. Energy Build, 58, 227–236.
 9.
Murtaza, A., et al. (2014). A maximum power point tracking technique based on bypass diode mechanism for PV arrays under partial shading. Energy Build, 73, 13–25.
 10.
Weidong X, Dunford WG. A modified adaptive hill climbing MPPT method for photovoltaic power systems. In: Proceedings of the IEEE 35th annual conference on power electronics specialists. 2004. 3; pp. 1957–63
 11.
Ahmed, N. A., & Miyatake, M. (2008). A novel maximum power point tracking for photovoltaic applications under partially shaded insolation conditions. Electric Power Syst Res, 78(5), 777–784.
 12.
Hussein, K. H., et al. Maximum photovoltaic power tracking: an algorithm for rapidly changing atmospheric conditions. IEE Proc Gen Transmission Distrib. 142(1). 1995
 13.
Ruddin, S., Karatepe, E., & Hiyama, T. (2009). Artificial neural networkpolar coordinated fuzzy controller based maximum power point tracking control under partially shaded conditions. Renewable Power Gen, IET, 3(2), 239–253.
 14.
Ahmed, J., & Salam, Z. (2015). A critical evaluation on maximum power point tracking methods for partial shading in PV systems. Renewab Sustain Energy Rev, 47, 933–953.
 15.
Shaiek, Y., et al. (2013). "Comparison between conventional methods and GA approach for maximum power point tracking of shaded solar PV generators. Solar Energy, 90, 107–122.
 16.
Chaibi, Y., Allouhi, A., Salhi, M., et al. (2019). Annual performance analysis of different maximum power point tracking techniques used in photovoltaic systems. Prot Control Mod Power Syst, 4, 15.
 17.
Shang, L., Zhu, W., Li, P., et al. (2018). Maximum power point tracking of PV system under partial shading conditions through flower pollination algorithm. Prot Control Mod Power Syst, 3, 38.
 18.
Yang, Y., & Wen, H. (2019). Adaptive perturb and observe maximum power point tracking with current predictive and decoupled power control for gridconnected photovoltaic inverters. J Mod Power Syst Clean Energy, 7, 422–432.
 19.
Puterman, M. L. (2014). Markov decision processes: discrete stochastic dynamic programming. New York: John Wiley & Sons.
 20.
Powell, W. B. (2007). Approximate dynamic programming: solving the curses of dimensionality (Vol. 703). New York: John Wiley & Sons.
 21.
Tey, K. S., & Saad, M. (2014). Modified incremental conductance algorithm for photovoltaic system under partial shading conditions and load variation. IEEE Transactions on Industrial Electronics, 61(10), 5384–5392.
Acknowledgements
There are no associated acknowledgements.
Funding
There is no funding associated with this research.
Author information
Affiliations
Contributions
BI has written the first two sections and has created block diagrams throughout the paper. AN has contributed in the development of the mathematical equations and the solution of the MDP model. AFM has contributed in the results section, the qualitative comparison and the conclusions. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Iqbal, B., Nasir, A. & Murtaza, A.F. Stochastic maximum power point tracking of photovoltaic energy system under partial shading conditions. Prot Control Mod Power Syst 6, 30 (2021). https://doi.org/10.1186/s41601021002089
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s41601021002089
Keywords
 Maximum power point tracking
 Markov decision process
 Photovoltaic energy systems
 Partial shading