Disclosure of Invention
The invention aims to provide a compound tracking method of a maximum power point of a photovoltaic system, which combines an adaptive random drift particle swarm Algorithm (ARDPSO) and Terminal Sliding Mode Control (TSMC) to rapidly and accurately track the maximum power point of the photovoltaic system.
According to the technical scheme, the method for compositely tracking the maximum power point of the photovoltaic system comprises the steps of connecting a photovoltaic cell and a load through a boost chopper circuit to realize MPPT control, introducing a self-adaptive thermal motion coefficient into an RDPSO random drift particle swarm algorithm to form an ARDPSO self-adaptive random drift particle swarm algorithm, calculating a global optimal solution based on the ARDPSO self-adaptive random drift particle swarm algorithm, and simultaneously, correcting the global optimal solution of the algorithm through a STMC terminal sliding mode controller designed by the boost chopper circuit, and finally outputting the maximum power point of the photovoltaic system to realize compositely tracking the maximum power point of the photovoltaic system.
The present invention is also characterized in that,
the method is implemented according to the following steps:
step 1, setting ARDPSO algorithm parameters, and randomly initializing the position and the speed of particles;
step 2, detecting illumination and temperature parameters, and calculating a photovoltaic array power value;
step 3, calculating the fitness value of each particle, and calculating a global optimal solution and an individual optimal solution;
step 4, updating the global optimal solution and the individual optimal solution, and updating the thermal motion coefficient of the ARDPSO algorithm and the speed and the position of each particle;
step 5, after updating in the step 4, judging whether the iteration times of the ARDPSO algorithm are met, if not, repeating the step 3-5 according to the updated ARDPSO algorithm thermal motion coefficient, and if so, outputting a global optimal solution;
and 6, designing a terminal sliding mode controller according to the boost chopper circuit, controlling the on-off of a switching tube of the boost chopper circuit through a terminal sliding mode control rate, reducing power oscillation in the iteration process of the step 3-5, correcting a global optimal solution, wherein the corrected global optimal solution is the maximum power point of the photovoltaic system, and tracking is completed.
And 5, after outputting the global optimal solution, judging whether restarting to track the maximum power point of the photovoltaic system if the external environment is suddenly changed, if so, repeating the step 2-5, and if not, outputting the global optimal solution according to the step 5.
The restarting condition for restarting and tracking the maximum power point of the photovoltaic system is as follows
In the formula (13): p1 is the maximum power value output by the photovoltaic array before external environment mutation; and P2 is the maximum power value output by the photovoltaic array after the external environment is suddenly changed.
The step 3 is specifically as follows:
and calculating the power value of the position of each particle according to the P=UI, taking the power value as the fitness value of the particle, taking the fitness value of each particle as the individual optimal solution of the particle, and taking the maximum fitness value of all particles as the global optimal solution.
Step 4, updating the global optimal solution and the individual optimal solution specifically comprises the following steps:
comparing the global optimal solution calculated in the step 3 with the individual optimal solution and the value calculated in the last iteration, and if the global optimal solution calculated in the step is larger than the value calculated in the last iteration, replacing the global optimal solution with the calculated value; if the value is smaller than the last value, the replacement is not performed;
and 4, updating the thermal motion coefficient of the ARDPSO algorithm, wherein the speed and the position of each particle are specifically as follows:
the RDPSO algorithm combines the motion trail of the standard PSO algorithm and the motion model of free electrons in the metal conductor in an external electric field, wherein the motion of electrons is superposition of thermal motion, namely random motion, and drift motion, namely directional motion, caused by the electric field, so that the velocity of electrons comprises two components, namely
V=VR+VD(7)
In the formula (7), VR and VD are random speed and drift speed respectively;
in the RDPSO algorithm, the velocity of each particle is expressed as
In formula (8):is the random component of the velocity of the ith particle at the kth iteration; />Is the velocity drift component of the ith particle at the kth iteration;
in RDPSO algorithmGlobal search behavior for implementing particles, +.>For achieving a local search behaviour of the particles, thus re-writing the velocity of the particles to,
wherein,
in the formula (9), alpha is a thermal motion coefficient; c (C) k The average optimal position of the whole particle swarm in the kth iteration is the average optimal position; m is the number of particles;the current position of the ith particle at the kth iteration; />For random number sequences subject to a standard normal distribution, i.e.Beta is a drift coefficient; />Is a local attractor coordinate that indicates that if each particle in the population converges to its respective attraction point, the entire population is converged; />Is a random number uniformly distributed between 0 and 1;
the adaptive thermal motion coefficient is introduced into the RDPSO algorithm, and the expression is that,
in the formula (10): alpha max 、α min Maximum and minimum thermal motion coefficients; f is the current fitness value of the particle; fmin is the minimum fitness value in all the current particles; f (f) avg The average fitness value of all the particles at present; the maximum value and the minimum value of the thermal motion coefficient are respectively alpha max =0.9、α min =0.3;
The iterative formulas of the speed and the position in the ARDPSO algorithm are respectively,
in the formulae (11) to (12),the current position of the ith particle at the kth iteration; />The current position of the ith particle at the kth+1th iteration; />The speed of the ith particle at the kth+1th iteration;
the thermal motion coefficients and particle velocities and positions of the ARDPSO algorithm are updated according to equations (10) - (12).
Step 6 is implemented according to the following steps:
step 6.1, establishing a mathematical model of the Boost circuit
The Boost circuit comprises a series inductor L, an input end filter capacitor C1, an output end parallel capacitor C2 and a switching tube Q, and the mathematical model of the Boost circuit is as follows:
in the formula (14), R is a load, IL is current flowing through an inductor, and U is load terminal voltage; d is the duty cycle;
in the formula (15), the amino acid sequence of the compound,
in the formula (15), the amino acid sequence of the compound,is a state vector; f (x) and g (x) are coefficient matrixes;
step 6.2, design of terminal sliding mode controller
The reference value of the maximum power point voltage of the photovoltaic array is set as Uref, and the actual output voltage value of the photovoltaic array is set as U pv Error e=u ref -U pv Selecting a sliding mode surface function as
In the formula (17), c is more than 0, r is more than or equal to 0 and less than or equal to 2;
obtained by combining the formula (14) and the formula (18),
in order to ensure that the system can approach the sliding mode surface from any state in a limited time, an index approach law is selected to improve the approach speed, reduce the jitter, the index approach law is as follows,
in the formula (20): epsilon >0, k >0;
the slip form control rate expression of the terminal obtained by the combined type (19) and the formula (20) is
Step 6.3, controlling the on-off of a switching tube of the boost chopper circuit
And (3) comparing the control signal d calculated in the formula (21) with a standard triangular wave signal to generate a PWM signal, connecting the PWM signal to a switching tube of a boost chopper circuit, controlling the on-off of the switching tube, correcting the global optimal solution obtained in the step (5), wherein the corrected global optimal solution is the maximum power point of the photovoltaic system, and tracking is completed.
The beneficial effects of the invention are as follows:
the invention provides a composite tracking method of a maximum power point of a photovoltaic system, which is characterized in that a free electron motion model is introduced into an ARDPSO-TSMC composite tracking method, the capability of getting rid of local optimization of particles is enhanced, and meanwhile, a self-adaptive mechanism is added, so that the thermal motion coefficient of the algorithm is synchronously adjusted in the iterative optimization process; in order to further improve optimizing precision and tracking speed, TSMC and ARDPSO algorithm are combined, so that the convergence speed of the algorithm is improved, power oscillation in the ARDPSO algorithm tracking process is reduced through TSMC control, and stability of power output is guaranteed; under the conditions of no shading, static partial shading and dynamic partial shading, the algorithm provided by the invention is superior to a PSO algorithm and an ARDPSO algorithm in the aspects of early convergence speed and later power oscillation, the power supply reliability of the photovoltaic system is effectively improved, and the energy utilization rate of the photovoltaic system is improved.
Detailed Description
The invention will be described in detail below with reference to the drawings and the detailed description.
According to the method for compositely tracking the maximum power point of the photovoltaic system, the boost chopper circuit is connected with the photovoltaic cell and the load to realize MPPT control, the self-adaptive thermal motion coefficient is introduced into the RDPSO random drift particle swarm algorithm to form the ARDPSO self-adaptive random drift particle swarm algorithm, the global optimal solution is calculated based on the ARDPSO self-adaptive random drift particle swarm algorithm, meanwhile, the boost chopper circuit is used for designing the STMC terminal sliding mode controller to correct the global optimal solution of the algorithm, the maximum power point of the photovoltaic system is finally output, and compositely tracking of the maximum power point of the photovoltaic system is realized.
The equivalent circuit of the photovoltaic cell is shown in fig. 1, and the output current equation of the photovoltaic cell can be obtained from fig. 1,
in the formula (1), I is the output current of the photovoltaic cell; i ph The photo-generated current Id is the reverse saturation leakage current flowing through the diode; u (U) ph Is the output voltage of the photovoltaic cell; rs is the equivalent series resistance of the photovoltaic cell; rsh is the equivalent parallel resistance of the photovoltaic cell; q is electron quantity, and its value is 1.6X10 -19 C, performing operation; a is a fitting constant, and the value of the A is between 1 and 2; k is Boltzmann constant, which is 1.38X10 -23 J/K; t is absolute temperature.
Wherein I is ph And Id are affected by environmental changes, and need to be determined according to specific illumination intensity and temperature, and the calculation formulas are respectively as follows,
in the formulae (2) to (3): isco is the standard illumination intensity and standard temperature (s=1000W/m 2 T=25℃; ht is a temperature coefficient having a value of 6.4X10 -4 The method comprises the steps of carrying out a first treatment on the surface of the T is absolute temperature; tref is the standard battery temperature; s is illumination intensity; sref is the standard illumination intensity; a1 and b1 are constants, and their values are 1.336×10 respectively 4 、235。
The photovoltaic array is an important component of a grid-connected photovoltaic system, and is formed by serial-parallel connection of a certain number of crystalline silicon photovoltaic cells, the output characteristic equation is as follows,
in the formula (4): ns and N p The series-parallel numbers of the photovoltaic cells are respectively.
The output P-U characteristic of a photovoltaic array at standard illumination intensity and standard temperature has only one peak, but a "hot spot effect" is produced when the surface of the photovoltaic array is locally shaded. The hot spot effect can cause the temperature of the photovoltaic cell to be too high to be damaged, and a bypass diode is generally connected with the photovoltaic cell in parallel to avoid the damage caused by the hot spot effect. But shunt diodes in parallel cause the photovoltaic array to multi-peak in its output P-U characteristic under partial shadows.
The output characteristics of the photovoltaic array under uniform illumination intensity and partial shading were analyzed at standard temperature using 3 photovoltaic cells in series as an example. And respectively constructing models in Matlab/simulink for 3 groups of different shading conditions in FIG. 2 for simulation. The parameters of the photovoltaic cell are as follows: open circuit voltage uoc=43.6v, short circuit current isc=8.35a, voltage um=35v at maximum power point, current im=7.6a. Fig. 3 and 4 are respectively output I-U, P-U characteristics of the photovoltaic array.
The method for compositely tracking the maximum power point of the photovoltaic system is implemented according to the following steps as shown in fig. 5:
step 1, setting ARDPSO algorithm parameters including the number of particles, the iteration times, the maximum value and the minimum value of the thermal motion coefficient, the drift coefficient and randomly initializing the positions and the speeds of the particles.
The number of particles is set to be 30, the iteration number is 50, the maximum value and the minimum value of the thermal motion coefficient are respectively 0.9 and 0.3, and the drift coefficient is 1.45.
Step 2, detecting illumination and temperature parameters, and calculating a photovoltaic array power value;
step 3, calculating the fitness value of each particle, and calculating a global optimal solution and an individual optimal solution;
and calculating the power value of the position of each particle according to the P=UI, taking the power value as the fitness value of the particle, taking the fitness value of each particle as the individual optimal solution of the particle, and taking the maximum fitness value of all particles as the global optimal solution.
Step 4, updating the global optimal solution and the individual optimal solution, and updating the thermal motion coefficient of the ARDPSO algorithm and the speed and the position of each particle;
the updating of the global optimal solution and the individual optimal solution is specifically as follows:
comparing the global optimal solution calculated in the step 3 with the individual optimal solution and the value calculated in the last iteration, and if the global optimal solution calculated in the step is larger than the value calculated in the last iteration, replacing the global optimal solution with the calculated value; if the value is smaller than the last value, the replacement is not performed;
the updating of the thermal motion coefficient of the ARDPSO algorithm and the speed and position of each particle are specifically:
the RDPSO algorithm combines the motion trail of the standard PSO algorithm and the motion model of free electrons in the metal conductor in an external electric field, wherein the motion of electrons is superposition of thermal motion, namely random motion, and drift motion, namely directional motion, caused by the electric field, so that the velocity of electrons comprises two components, namely
V=VR+VD(7)
In the formula (7), VR and VD are random speed and drift speed respectively;
in the RDPSO algorithm, the velocity of each particle is expressed as
In formula (8):is the random component of the velocity of the ith particle at the kth iteration; />Is the velocity drift component of the ith particle at the kth iteration;
in RDPSO algorithmGlobal search behavior for implementing particles, +.>For achieving a local search behaviour of the particles, thus re-writing the velocity of the particles to,
wherein,
in the formula (9), alpha is a thermal motion coefficient; c (C) k The average optimal position of the whole particle swarm in the kth iteration is the average optimal position; m is the number of particles;the current position of the ith particle at the kth iteration; />For random number sequences subject to a standard normal distribution, i.e.Beta is a drift coefficient; />Is a local attractor coordinate that indicates that if each particle in the population converges to its respective attraction point, the entire population is converged; />Is a random number uniformly distributed between 0 and 1;
the adaptive thermal motion coefficient is introduced into the RDPSO algorithm, and the expression is that,
in the formula (10): alpha max 、α min Maximum and minimum thermal motion coefficients; f is the current fitness value of the particle; fmin is the minimum fitness value in all the current particles; f (f) avg The average fitness value of all the particles at present; the maximum value and the minimum value of the thermal motion coefficient are respectively alpha max =0 . 9、α min =0 . 3。
The iterative formulas of the speed and the position in the ARDPSO algorithm are respectively,
in the formulae (11) to (12),the current position of the ith particle at the kth iteration; />The current position of the ith particle at the kth+1th iteration; />Is the speed of the ith particle at the k+1th iteration.
The thermal motion coefficients and particle velocities and positions of the ARDPSO algorithm are updated according to equations (10) - (12).
Step 5, after updating in the step 4, judging whether the iteration times of the ARDPSO algorithm are met, if not, repeating the step 3-5, and if so, outputting a global optimal solution;
and 5, after outputting the global optimal solution, if the external environment is suddenly changed, the output power of the photovoltaic system is also changed, whether the maximum power point of the photovoltaic system needs to be restarted or not is judged, if the restarting is needed, the steps 2-5 are repeatedly executed, and if the restarting is not needed, the global optimal solution is output according to the step 5, and the maximum power point of the photovoltaic system is tracked.
The restarting condition of restarting and tracking the maximum power point of the photovoltaic system is as follows:
in the formula (13): p1 is the maximum power value output by the photovoltaic array before external environment mutation; and P2 is the maximum power value output by the photovoltaic array after the external environment is suddenly changed.
And 6, designing a terminal sliding mode controller according to the boost chopper circuit, controlling a switching tube of the boost chopper circuit through a terminal sliding mode control rate, further reducing power oscillation in the iteration process of the step 3-5, correcting a global optimal solution, wherein the corrected global optimal solution is the maximum power point of the photovoltaic system, and tracking is completed.
Step 6.1, establishing a mathematical model of the Boost circuit
The Boost circuit comprises a series inductor L, an input end filter capacitor C1, an output end parallel capacitor C2 and a switching tube Q, and the mathematical model of the Boost circuit is as follows:
in the formula (14), R is a load, IL is current flowing through an inductor, and U is load terminal voltage; d is the duty cycle;
in the formula (15), the amino acid sequence of the compound,
in the formula (15), the amino acid sequence of the compound,is a state vector; f (x) and g (x) are coefficient matrixes;
step 6.2, design of terminal sliding mode controller
The reference value of the maximum power point voltage of the photovoltaic array is set as Uref, and the actual output voltage value of the photovoltaic array is set as U pv Error e=u ref -U pv Selecting a sliding mode surface function as
In the formula (17), c is more than 0, r is more than or equal to 0 and less than or equal to 2;
obtained by combining the formula (14) and the formula (18),
in order to ensure that the system can approach the sliding mode surface from any state in a limited time, an index approach law is selected to improve the approach speed, reduce the jitter, the index approach law is as follows,
in the formula (20): epsilon >0, k >0;
the slip form control rate expression of the terminal obtained by the combined type (19) and the formula (20) is
To verify the stability of the terminal sliding mode controller constructed as above, a positive definite function is constructed according to the Lyapunov stability theory
Deriving V and substituting it into (17) to obtain
Due to epsilon>0,k>0, soMeets the Lyapunov stability criterion;
step 6.3, controlling the on-off of a switching tube of the boost chopper circuit
And (3) comparing the control signal d calculated in the formula (21) with a standard triangular wave signal to generate a PWM signal, connecting the PWM signal to a switching tube of a boost chopper circuit, controlling the on-off of the switching tube, correcting the global optimal solution obtained in the step (5), wherein the corrected global optimal solution is the maximum power point of the photovoltaic system, and tracking is completed.
Simulation verification
In order to verify the performance improvement of the ARDPSO-TSMC algorithm, the composite tracking method, the PSO algorithm and the ARDPSO algorithm are used for constructing a simulation model in Matlab/simulink, and the comparison analysis is carried out under the conditions of no shading, static partial shading and dynamic partial shading. The model structure of the simulation system is shown in fig. 7. The photovoltaic array is formed by connecting 3 independent photovoltaic cell elements in series. The Boost circuit simulation parameters were set as follows: c (C) 1 =100μF,C 2 =500 μf, l=30 mh, r=46 Ω, and the switching frequency is 50kHz. The ARDPSO-TSMC algorithm parameters are set as follows: particle number n=30, iteration number m=50, thermal motion coefficient α max =0.9、α min The drift coefficient β=1.45, epsilon=130, k=1000, c=2, r=2, =0.3. The PSO algorithm parameters are set as follows: particle number n=50, iteration number m=100, learning factor c 1 =c 2 =0.5, inertial weight ω=0.7.
1) Simulation without shading
The photovoltaic array is usually installed in a fully illuminated, non-shadowed environment, so that the output P-U characteristic of the photovoltaic array has only one extreme point under uniform illumination. The illumination intensity of 3 photovoltaic cells is set to be 1000W/m in the simulation model 2 The temperature is 25 ℃ and the system simulation time is 0.5s. The simulation results are shown in fig. 8. Wherein fig. 8 (a) is an output P-U characteristic curve of the photovoltaic array, and fig. 8 (b) is a power tracking waveform diagram of three algorithms.
From fig. 8 (a), it can be seen that the power at the maximum power point is 798W. Analysis of FIG. 8 (b) shows that all three methods can track around the maximum power point and settle at 0.05 s. The average power values tracked by PSO, ARDPSO and the compound tracking method of the invention are 797.55W, 797.75W and 797.85W respectively. Compared with a PSO algorithm and an ARDPSO algorithm, the power oscillation after the maximum power point is tracked by the compound tracking method is smaller, and the compound tracking method has better stability. The simulation results are shown in table 1. Where power generation efficiency = average output power/power at maximum power point.
Table 1 comparison of simulation results
2) Simulation in static partial shading
In the case of static partial shading, the output P-U characteristic of the photovoltaic array transitions from a single peak to multiple peaks. Setting the illumination intensity of 3 photovoltaic cells in a simulation model to be 1000W/m respectively 2 、800W/m 2 、600W/m 2 The temperature is 25 ℃ and the system simulation time is 0.5s. The simulation results are shown in fig. 9. Wherein fig. 9 (a) is an output P-U characteristic curve of the photovoltaic array, and fig. 9 (b) is a power tracking waveform diagram of three methods.
As can be seen from FIG. 9 (a), there are two LMPP, one GMPP, on the P-U characteristic. The power values of the two LMPP are 266W and 445.5W respectively, and the power value of the GMPP is 518.7W. As can be seen from analysis of fig. 9 (b), all three methods can track around the maximum power point, wherein the PSO algorithm needs 0.1s and the ardpso algorithm needs 0.09s, and the composite tracking method of the present invention needs 0.07s. Compared with other algorithms, the convergence speed of the compound tracking method is faster. The average power values tracked by PSO, ARDPSO and the compound tracking method of the invention are 514.39W, 517.94W and 518.6W respectively. It is readily apparent from fig. 9 (b) that the PSO algorithm has a larger power oscillation in tracking GMPP, whereas the ARDPSO algorithm has a significantly reduced power oscillation compared to the PSO algorithm, but still has a small amplitude of power oscillation. Compared with an ARDPSO algorithm, the composite tracking method further reduces power fluctuation, is more stable and has smoother tracking process. The comparison values of the simulation results of the three methods are shown in table 2.
Table 2 comparison of simulation results
3) Simulation in dynamic partial shading
In order to test the capability of an algorithm to track the GMPP of the photovoltaic system in a dynamic environment, the illumination intensity of 3 photovoltaic cells at t=0s is set to be 1000W/m respectively 2 、800W/m 2 、600W/m 2 When t=0.25 s, the illumination intensity of 3 photovoltaic cells is respectively changed into 900W/m 2 、700W/m 2 、500W/m 2 The photovoltaic array temperatures were 25 ℃. The system simulation time was 0.5s. The simulation results are shown in fig. 10. Wherein fig. 10 (a) is an output P-U characteristic curve of the photovoltaic array after the illumination intensity is suddenly changed, and fig. 10 (b) is a power tracking waveform diagram of three methods.
As can be seen from fig. 10 (a), there are still two LMPP, one GMPP, on the output P-U characteristic of the photovoltaic array after the illumination intensity is suddenly changed. The power values of the two LMPP are 235W and 383.9W respectively, and the power value of the GMPP is 426.6W. Analysis of FIG. 10 (b) shows that after a sudden change in illumination intensity, all three algorithms can trace around the new GMPP, with the PSO algorithm requiring 0.05s, the ARDPSO algorithm requiring 0.03s, and the ARDPSO-TSMC algorithm requiring 0.02s. The average power values tracked by the PSO, ARDPSO, ARDPSO-TSMC algorithm are 514.39W, 517.94W and 518.6W, respectively. After the new GMPP is tracked and stabilized, the power fluctuation range of the PSO algorithm is large and there is significant power oscillation, while the power fluctuation range of the ARDPSO algorithm is significantly reduced compared to the PSO algorithm, but the power oscillation phenomenon still exists. The ARDPSO-TSMC algorithm has faster dynamic response capability than the first two algorithms, and the power fluctuation range after GMPP is tracked is smaller, so that the power oscillation is basically eliminated.
According to the above, under the conditions of no shading, static partial shading and dynamic partial shading, the compound tracking method of the maximum power point of the photovoltaic system is superior to the PSO algorithm and the ARDPSO algorithm in the aspects of early convergence speed and later power oscillation, so that the power supply reliability of the photovoltaic system is effectively improved, and the energy utilization rate of the photovoltaic system is improved.