Photovoltaic MPPT control method and system based on improved particle swarm optimization
By introducing asynchronous learning factors, adaptive inertia weights and mutation mechanisms into the particle swarm algorithm, the problems of fixed parameters and slow convergence speed of the traditional particle swarm algorithm in photovoltaic MPPT control are solved, and more efficient maximum power point tracking is achieved, especially It is accurate tracking when lighting changes.
Patent Information
- Application Number
- CN202410644187.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-10-15
AI Technical Summary
The traditional particle swarm algorithm has fixed parameters in photovoltaic MPPT control, resulting in large oscillation amplitude, slow convergence speed, dependence on initial conditions, and inability to effectively track the global maximum power point of the photovoltaic array. It is easy to fall into a local optimal solution, especially under local shadow conditions.
Introduce asynchronous learning factors, adaptive inertia weights and mutation mechanisms, adjust the learning factors and inertia weights in the particle swarm algorithm, add a free mutation mechanism, and set threshold restart conditions to improve the convergence accuracy and global search capabilities of the algorithm, ensuring that Accurately tracks the maximum power point when light radiation intensity changes.
It improves the convergence speed and accuracy of the particle swarm algorithm, enhances the global search capability, avoids the trap of local maximum power points, improves the maximum power tracking performance of the photovoltaic system, reduces the algorithm restart process, and improves the tracking speed.
Smart Images

Figure CN118778764A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics technology, and in particular to a photovoltaic MPPT control method and system based on an improved particle swarm algorithm. Background Art
[0002] In recent years, with China's policy support for the photovoltaic industry, the photovoltaic power generation industry has developed rapidly, and the proportion of photovoltaic power generation grid-connected capacity has gradually increased. As the core device for converting solar energy into electrical energy, solar cells exhibit nonlinear output characteristics when light and temperature change. In order to improve the conversion efficiency of photovoltaic modules, the corresponding control strategy is used to make the photovoltaic modules always work at the maximum power point. This process is maximum power point tracking (MPPT). MPPT technology has become an important part of the photovoltaic system and is very important for improving the conversion efficiency of photovoltaic modules.
[0003] Traditional MPPT methods include constant voltage method, perturbation observation method and conductance increment method. Since these methods cannot take into account the requirements of tracking time, tracking accuracy and response speed at the same time, and because the actual environment of the photovoltaic system is complex and changeable, under local shadow conditions, the power-voltage (PU) characteristic curve of the photovoltaic array presents multi-peak characteristics. Traditional methods are very easy to fall into the situation of local optimal solution and cannot track the global maximum power point, resulting in huge power loss.
[0004] Therefore, in order to overcome the defects of the traditional MPPT method under shadow conditions (dramatic changes in lighting conditions), there is currently research on the widespread application of particle swarm intelligent optimization algorithms in MPPT. However, the parameters of the traditional particle swarm algorithm are relatively fixed, and there are problems such as large oscillation amplitude, slow convergence speed, and dependence on initial conditions.
[0005] Based on the above problems, the present invention proposes a photovoltaic MPPT control strategy based on an improved particle swarm algorithm, which introduces asynchronous learning factors, adaptive inertia weights and mutation mechanisms into the algorithm. In the process of algorithm optimization, the learning factors and inertia weights are adjusted synchronously, and the particle positions are mutated. The convergence accuracy is improved, and when the light radiation intensity changes suddenly, the maximum point in the photovoltaic power can be accurately tracked again, thereby improving the maximum power tracking performance. Summary of the invention
[0006] In view of the above-mentioned problems, the present invention is proposed.
[0007] Therefore, the problem to be solved by the present invention is: how to solve the problems of the traditional particle swarm algorithm, such as relatively fixed parameters, large oscillation amplitude, slow convergence speed, and dependence on initial conditions.
[0008] In order to solve the above technical problems, the present invention provides the following technical solutions: a photovoltaic MPPT control method based on an improved particle swarm algorithm, including: initializing the parameters of the particle swarm algorithm, setting the number of particles, initial positions and speeds, and randomly and evenly distributing the particles on the characteristic curve of the photovoltaic array; monitoring environmental data, and calculating the power value of the photovoltaic array; obtaining the fitness value corresponding to each particle, comparing the particle with the corresponding fitness value when searching for the global optimal solution and the local optimal solution position, and updating the optimal position; updating the speed and position of each particle at time t, adjusting the adaptive inertia weight coefficient based on the fitness value of the particle, and adjusting the formula according to the learning factor adaptive adjustment; adding a free mutation mechanism in the evolution process of the PSO algorithm to generate a small range of disturbances to the position of the particle; setting a threshold restart condition, and stopping the iteration if the iteration termination condition is met. At this time, the particle is located at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
[0009] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the particle swarm algorithm includes selecting the output voltage of the photovoltaic array as the particle, and the output power of the photovoltaic array as the particle fitness value; the environmental data includes light intensity and temperature parameters.
[0010] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the updating of the speed and position of each particle at time t is expressed as:
[0011]
[0012]
[0013] Among them, i is the i-th particle, is the velocity of the particle at time t+1, is the velocity of the particle at time t, c 1 and c 2 is the learning factor, r 1 and r 2 is a random number between [0, 1], is the best position of the ith particle in the historical search, is the position of the particle at time t+1, is the position of the particle at time t, and d is the dimensional position of the particle in the search; the speed update after adding the inertia weight strategy is expressed as:
[0014]
[0015] Where ω is the adaptive inertia weight coefficient.
[0016] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the adaptive inertia weight coefficient is proposed based on the fitness value variance of the particles, and the particle fitness value variance is expressed as:
[0017]
[0018]
[0019] Among them, σ 2 is the variance of particle fitness value, N is the total number of particles, f i is the fitness value of particle i, f avg is the average fitness value of the group, and f is the normalization factor.
[0020] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the adaptive inertia weight coefficient is adjusted based on the fitness value of the particle, including increasing the inertia weight if the variance of the particle fitness value is small, the group diversity is poor, and the inertia weight is increased. Therefore, the inertia weight adjustment strategy is expressed as:
[0021]
[0022] Where w(t) is the adaptive inertia weight coefficient, w min is the minimum value of the inertia weight, w max is the maximum value of the inertia weight, ε is the critical value of the variance of the fitness value, t is the current iteration step, and T is the maximum iteration step.
[0023] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the learning factor includes: if the step size is too large, the optimal solution cannot be found; if the step size is too small, it is easy to fall into the local optimum; the learning factor c 1 and c 2 All of them undergo adaptive linear changes, expressed as:
[0024]
[0025] Among them, c 1 k is the learning factor c 1 The value of the kth iteration, c 2 k is the learning factor c 2 The value at the kth iteration.
[0026] As a preferred solution of the photovoltaic MPPT control method based on the improved particle swarm algorithm described in the present invention, the free mutation mechanism includes adopting a polynomial mutation rule, and the mutation rate is a constant in [0, 1], so that the particles are randomly disturbed with a small probability within the original position range; the threshold restart condition includes setting the threshold restart condition to be expressed as follows for the power-voltage characteristic curve of the photovoltaic array showing a multi-peak characteristic under local shadow conditions:
[0027]
[0028] Among them, P s is the output power of the photovoltaic array monitored in real time, P max It is the maximum power value reached when the particle swarm algorithm completes the search; when it is monitored that the photovoltaic system meets the threshold restart condition, the controller will restart the particle swarm algorithm and search for a new maximum power point again.
[0029] Another object of the present invention is to provide a system of photovoltaic MPPT control method based on improved particle swarm algorithm, which can solve the problem of photovoltaic MPPT control based on improved particle swarm algorithm by constructing a photovoltaic MPPT control system.
[0030] To solve the above technical problems, the present invention provides the following technical solutions: a photovoltaic MPPT control system based on an improved particle swarm algorithm, comprising a parameter initialization module, a data acquisition module, a comparison module, an update module, a free mutation module and a threshold restart module; the parameter initialization module is used for initializing the parameters of the particle swarm algorithm, setting the number of particles, the initial position and the speed, and randomly and evenly distributing the particles on the characteristic curve of the photovoltaic array; the data acquisition module is used to monitor environmental data and calculate the power value of the photovoltaic array; the comparison module is used to obtain the fitness value corresponding to each particle, and the particle compares the corresponding fitness value when searching for the global optimal solution and the local optimal solution position, and updates the optimal position; the update module is used to update the speed and position of each particle at time t, adjust the adaptive inertia weight coefficient based on the fitness value of the particle, and adjust the formula according to the learning factor adaptive adjustment; the free mutation module is used to add a free mutation mechanism in the evolution process of the PSO algorithm to generate a small range of disturbances to the position of the particle; the threshold restart module is used to set the threshold restart condition, and if the iteration termination condition is met, the iteration is stopped, and the particle is at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
[0031] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the photovoltaic MPPT control method based on the improved particle swarm algorithm are implemented as described above.
[0032] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a photovoltaic MPPT control method based on an improved particle swarm algorithm as described above.
[0033] The beneficial effects of the present invention are as follows: a photovoltaic MPPT control method based on an improved particle swarm algorithm provided by the present invention applies photovoltaic MPPT tracking of the improved particle swarm algorithm, optimizes and updates the iterative parameter inertia weight coefficient and learning factor in the algorithm, realizes adaptive adjustment of parameters according to particle search conditions, improves the convergence speed and accuracy of the algorithm, and enhances the optimization ability of the algorithm; the present invention introduces a small probability random mutation in the evolution process of the PSO algorithm, increases a free mutation mechanism, generates a small range of disturbances to the position of particles, thereby improving the global search ability of the algorithm, solves the MPPT tracking problem of the photovoltaic array presenting multi-peak characteristics under local shadow shading, and avoids falling into the local maximum power point; the present invention sets a threshold restart condition, and determines whether the restart condition is met by monitoring and calculating the change rate of the output power of the light array. If the algorithm can track the maximum power point in time, the restart process of the algorithm can be reduced, and the tracking speed can be accelerated. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0035] Figure 1 A control flow chart of a photovoltaic MPPT control method based on an improved particle swarm algorithm is provided for the first embodiment of the present invention.
[0036] Figure 2 A circuit diagram of a photovoltaic MPPT control method based on an improved particle swarm algorithm provided in the first embodiment of the present invention.
[0037] Figure 3 A structural diagram of a photovoltaic MPPT control system based on an improved particle swarm algorithm is provided for the second embodiment of the present invention.
[0038] Figure 4 An output characteristic curve of a photovoltaic array of a photovoltaic MPPT control method based on an improved particle swarm algorithm is provided in the third embodiment of the present invention.
[0039] Figure 5 A conventional P&O MPPT power tracking diagram of a photovoltaic MPPT control method based on an improved particle swarm algorithm is provided in the third embodiment of the present invention.
[0040] Figure 6 A simulated IPSO photovoltaic MPPT output active power tracking diagram of a photovoltaic MPPT control method based on an improved particle swarm algorithm is provided in the third embodiment of the present invention.
[0041] Figure 7 A power tracking simulation diagram after changing lighting conditions of a photovoltaic MPPT control method based on an improved particle swarm algorithm provided in the third embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0044] Example 1
[0045] Reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and provides a photovoltaic MPPT control method based on an improved particle swarm algorithm, including: initializing the particle swarm algorithm parameters, setting the number of particles, initial positions and speeds, and randomly and evenly distributing the particles on the photovoltaic array characteristic curve; monitoring environmental data, and calculating the power value of the photovoltaic array; obtaining the fitness value corresponding to each particle, comparing the particle position with the corresponding fitness value when searching for the global optimal solution and the local optimal solution, and updating the optimal position; updating the speed and position of each particle at time t, adjusting the adaptive inertia weight coefficient based on the fitness value of the particle, and adjusting the formula according to the learning factor adaptive adjustment; adding a free mutation mechanism in the evolution process of the PSO algorithm to generate a small range of disturbances to the position of the particle; setting a threshold restart condition, and stopping the iteration if the iteration termination condition is met. At this time, the particle is located at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
[0046] The present invention relates to a photovoltaic MPPT control strategy based on an improved particle swarm algorithm. This strategy introduces an adaptive adjustment of the inertia weight based on the variance of the fitness value of the particle, and a learning factor in the optimization process on the basis of the traditional particle swarm algorithm. The inertia weight and the learning factor in the present invention are parameters for controlling the optimization step length in the particle swarm algorithm. If the step length is too large, the optimal solution may not be found; otherwise, it is easy to fall into the local optimum. A small probability random mutation strategy, that is, adding a free mutation mechanism during the evolution of the PSO algorithm, produces a small range of disturbances to the position of the particles, thereby improving the global search ability of the algorithm, broadening the population search space that is constantly shrinking during the iteration process, thereby increasing the possibility of the algorithm finding the global optimal value. This ensures that when the light radiation intensity suddenly changes, the maximum point in the photovoltaic power can be accurately tracked again, thereby improving the maximum power tracking performance.
[0047] Furthermore, a threshold restart condition is set. When the photovoltaic system is monitored to meet the above threshold restart condition, the controller will restart the particle swarm algorithm and search for a new maximum power point again.
[0048] like Figure 1 As shown, the biggest difference between the control of the MPPT algorithm of the improved particle swarm optimization (IPSO) adopted by the present invention and the traditional particle swarm algorithm (PSO) is that a learning factor is introduced, the inertia weight coefficient is dynamically adjusted based on the variance of the particle fitness value, a small probability random mutation process and a threshold restart condition are used.
[0049] like Figure 2 Shown is a schematic diagram of the photovoltaic MPPT control circuit based on the present invention.
[0050] It is of great significance to improve the tracking speed and accuracy of the output power of the photovoltaic system and improve the efficiency of photovoltaic cells. Due to the complex and changeable actual environment of the photovoltaic system, under local shadow conditions, the power-voltage (PU) characteristic curve of the photovoltaic array presents a multi-peak characteristic. The traditional MPPT control cannot effectively track the maximum power point, and it is easy to fall into the local optimal solution and cannot track the global optimal solution. Based on the analysis of the output characteristics of photovoltaic cells, the present invention proposes an MPPT control based on the improved particle swarm algorithm (IPSO). First, the inertia weight coefficient is dynamically adjusted based on the variance of the particle fitness value, combined with the learning factor, and a small probability of random mutation processing is introduced as the optimal solution, so that the inertia weight coefficient and learning factor of the particle swarm optimization can be adaptively changed with the change of the search state, so as to improve the convergence speed and accuracy of the algorithm and enhance the global optimization ability of the algorithm.
[0051] S1. Initialize the parameters of the particle swarm algorithm, set the number of particles, initial position and speed, and distribute the particles randomly and evenly on the characteristic curve of the photovoltaic array.
[0052] The output voltage of the photovoltaic array is selected as the particle, and the output power of the photovoltaic array is selected as the particle fitness value. First, the particle swarm algorithm parameters are initialized, the number of particles, initial position and speed are set, and the particles are randomly and evenly distributed on the photovoltaic array PU characteristic curve.
[0053] S2. Monitor environmental data and calculate the power value of the photovoltaic array.
[0054] Environmental data includes light intensity and temperature parameters.
[0055] S3. Obtain the fitness value corresponding to each particle. The particle compares the global optimal solution and the local optimal solution position with the corresponding fitness value and updates the optimal position.
[0056] S4. Update the speed and position of each particle at time t, adjust the adaptive inertia weight coefficient based on the fitness value of the particle, and adjust the formula according to the adaptive learning factor.
[0057] The update of the velocity and position of each particle at time t is expressed as:
[0058]
[0059]
[0060] Among them, i is the i-th particle, is the velocity of the particle at time t+1, is the velocity of the particle at time t, c 1 and c 2 is the learning factor, r 1 and r 2 is a random number between [0, 1], is the best position of the ith particle in the historical search, is the position of the particle at time t+1, is the position of the particle at time t. Assuming that the exploration space is a D-dimensional space, d is the dimensional position of the particle in the search.
[0061] The speed update after adding the inertia weight strategy is expressed as:
[0062]
[0063] Where ω is the adaptive inertia weight coefficient.
[0064] The adaptive inertia weight coefficient is proposed based on the particle's fitness value variance, which is expressed as:
[0065]
[0066]
[0067] Among them, σ 2 is the variance of particle fitness value, N is the total number of particles, f i is the fitness value of particle i, f avg is the average fitness value of the group, and f is the normalization factor.
[0068] If the variance of the particle fitness value is small at this time, the population diversity is poor, and the inertia weight should be increased at this time. Therefore, the inertia weight adjustment strategy is expressed as:
[0069]
[0070] Where w(t) is the adaptive inertia weight coefficient, w min is the minimum value of the inertia weight, w max is the maximum value of the inertia weight. max and w min The values are 0.9 and 0.4, ε is the critical value of the variance of the fitness value, t is the current iteration step, T is the maximum iteration step, and rand is a random number between [0, 1].
[0071] The inertia weight and learning factor in the present invention are parameters that control the optimal step length in the particle swarm algorithm. If the step length is too large, the optimal solution may not be found; otherwise, it is easy to fall into the local optimum. 1 and c 2 All of them undergo adaptive linear changes, expressed as:
[0072]
[0073] Among them, c 1 (k) is the learning factor c 1 The value of the kth iteration, c 2 (k) is the learning factor c 2 The value at the kth iteration.
[0074] In the early stage of iteration, the inertia weight is large, which is conducive to crossing the search space; as the iteration proceeds, the inertia weight is gradually reduced, making it easier for particles to converge to the local optimal solution. This dynamic adjustment helps to balance the trade-off between global search and local search.
[0075] In the particle swarm optimization process, in the search front c 1 Take the larger value, c 2 Take a smaller value to make the particle as close to P as possible. max , thereby increasing the global optimization ability of the algorithm; in the latter part, it is just the opposite, c 1 Take the smaller value, c 2 Taking a larger value will make the particles approach the group and enhance the local optimization ability of the algorithm.
[0076] S5. Add a free mutation mechanism during the evolution of the PSO algorithm to produce a small-scale disturbance on the position of the particles.
[0077] The low-probability random mutation strategy, that is, adding a free mutation mechanism during the evolution of the PSO algorithm, produces a small-range disturbance to the position of the particle, thereby improving the global search ability of the algorithm. The particle position mutation adopts the polynomial mutation rule, and the mutation rate is a constant in [0, 1]. In the present invention, the mutation rate is 0.2, so that the particle undergoes a small-probability random disturbance within the original position range, enhancing the multi-peak global optimization ability caused by local shadows:
[0078]
[0079] S6. Set the threshold restart condition. If the iteration termination condition is met, the iteration is stopped. At this time, the particle is located at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
[0080] Set the threshold restart condition, set the iteration termination condition as the maximum distance between particles is less than the set threshold ε, if the iteration termination condition is met, stop the iteration, at this time the particle is located at the position of the global optimal solution, that is, the photovoltaic array works and the global maximum power point, otherwise return to step S3.
[0081] In view of the problem that the power-voltage characteristic curve of the photovoltaic array presents multi-peak characteristics under local shadow conditions, the traditional MPPT control cannot effectively track the maximum power point, easily falls into the local optimal solution, and cannot track the global optimal solution, the threshold restart condition is set as:
[0082]
[0083] Among them, P s is the output power of the photovoltaic array monitored in real time, P max The maximum power value reached when the particle swarm algorithm completes the search; when the photovoltaic system is monitored to meet the threshold restart condition, the controller will restart the particle swarm algorithm and search for a new maximum power point again. In order to set a restart threshold, it should not be too small to cause continuous restarts, nor too large to cause the maximum power point to be unable to be tracked, so 0.3 is selected.
[0084] Example 2
[0085] Reference Figure 3 , which is the second embodiment of the present invention, is different from the previous embodiment in that it provides a photovoltaic MPPT control system based on an improved particle swarm algorithm, including: a parameter initialization module, a data acquisition module, a comparison module, an update module, a free mutation module and a threshold restart module.
[0086] The parameter initialization module is used to initialize the parameters of the particle swarm algorithm, set the number of particles, initial position and speed, and distribute the particles randomly and evenly on the characteristic curve of the photovoltaic array.
[0087] The data acquisition module is used to monitor environmental data and calculate the power value of the photovoltaic array.
[0088] The comparison module is used to obtain the fitness value corresponding to each particle. The particle compares the position of the global optimal solution and the local optimal solution with the corresponding fitness value and updates the optimal position.
[0089] The update module is used to update the velocity and position of each particle at time t, adjust the adaptive inertia weight coefficient based on the fitness value of the particle, and adjust the formula according to the adaptive learning factor.
[0090] The free mutation module is used to add a free mutation mechanism during the evolution of the PSO algorithm, which produces a small-scale disturbance on the position of the particles.
[0091] The threshold restart module is used to set the threshold restart condition. If the iteration termination condition is met, the iteration is stopped. At this time, the particle is located at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
[0092] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0093] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0094] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0095] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0096] Example 3
[0097] Reference Figure 4 to Figure 7 , which is the third embodiment of the present invention, and which is different from the first two embodiments in that it is used to verify and illustrate the technical effects adopted in the present invention, so as to verify the real effects of this method.
[0098] A photovoltaic system simulation model was built on the Matlab / Ssimlink simulation platform. A 3*3 photovoltaic array was used. The temperature of the three photovoltaic modules was 25°C, and the light intensity was 1000W / m2, 800W / m2, and 600W / m2 respectively. The internal parameters of each photovoltaic module are shown in Table 1.
[0099] Table 1 Internal parameters of each photovoltaic module
[0100] Open circuit voltage Uoc 43.6V Short circuit current Isc 8.35A Maximum power point voltage Ump 35V Maximum power point current Imp 7.6A
[0101] Figure 4 It is the IU and PU characteristic curve of the photovoltaic array output after the light intensity changes suddenly.
[0102] Figure 5 This is the traditional P&O MPPT power tracking diagram.
[0103] Figure 6 and Figure 7 It is the tracking effect of the improved particle swarm algorithm. From the simulation waveform, it can be seen that IPSO starts to search for the best when the light condition is 800,0s, and stabilizes at the maximum power point at around 0.03s. When the light rises to 1000 at 0.5s, the IPSO algorithm starts the second search for the best effect, and the final power stabilizes at the reference power at around 0.005s. The improved particle swarm algorithm can find the maximum power point in a shorter time, converge faster, and reduce oscillation during the search process.
[0104] Strategy for tracking the maximum point of photovoltaic power: In each iteration, the particle position is adjusted in real time by calculating the output power of the photovoltaic system to track the maximum point in the photovoltaic power. The introduction of asynchronous learning factors and adaptive inertia weights enhances the system's adaptability to changes in lighting conditions, ensuring that the system can quickly and accurately re-track the maximum power point when the light intensity changes drastically.
[0105] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A photovoltaic MPPT control method based on an improved particle swarm algorithm, characterized in that: include, Initialize the parameters of the particle swarm algorithm, set the number of particles, initial position and speed, and distribute the particles randomly and evenly on the characteristic curve of the photovoltaic array; Monitor environmental data and calculate the power value of the photovoltaic array; Obtain the fitness value corresponding to each particle. When searching for the global optimal solution and the local optimal solution, the particle compares the corresponding fitness value and updates the optimal position. Update the speed and position of each particle at time t, adjust the adaptive inertia weight coefficient based on the fitness value of the particle, and adjust the formula according to the adaptive learning factor; Add a free mutation mechanism during the evolution of the PSO algorithm to produce a small range of disturbances on the position of particles; The threshold restart condition is set. If the iteration termination condition is met, the iteration is stopped. At this time, the particle is located at the position of the global optimal solution, that is, the maximum power point of the photovoltaic array operation and the global maximum power point.
2. A photovoltaic MPPT control method based on an improved particle swarm algorithm as claimed in claim 1, characterized in that: The particle swarm algorithm includes selecting the output voltage of the photovoltaic array as a particle and the output power of the photovoltaic array as a particle fitness value; The environmental data include light intensity and temperature parameters.
3. A photovoltaic MPPT control method based on an improved particle swarm algorithm as claimed in claim 2, characterized in that: The updating of the velocity and position of each particle at time t is expressed as: Among them, i is the i-th particle, is the velocity of the particle at time t+1, is the velocity of the particle at time t, c1 and c2 are learning factors, r1 and r2 are random numbers between [0, 1], is the best position of the ith particle in the historical search, is the position of the particle at time t+1, is the position of the particle at time t, and d is the dimensional position of the particle in the search; The speed update after adding the inertia weight strategy is expressed as, Where ω is the adaptive inertia weight coefficient.
4. A photovoltaic MPPT control method based on an improved particle swarm algorithm as claimed in claim 3, characterized in that: The adaptive inertia weight coefficient is proposed based on the particle fitness value variance, and the particle fitness value variance is expressed as: Among them, σ 2 is the variance of particle fitness, N is the total number of particles, f i is the fitness value of particle i, f avg is the average fitness value of the group, and f is the normalization factor.
5. A photovoltaic MPPT control method based on an improved particle swarm algorithm as claimed in claim 4, characterized in that: The adaptive inertia weight coefficient adjustment based on the particle fitness value includes increasing the inertia weight if the particle fitness value variance is small, the population diversity is poor, and the inertia weight adjustment strategy is expressed as: Where w(t) is the adaptive inertia weight coefficient, w min is the minimum value of the inertia weight, w max is the maximum value of the inertia weight, ε is the critical value of the fitness value variance, t is the current iteration step, and T is the maximum iteration step.
6. A photovoltaic MPPT control method based on an improved particle swarm algorithm as claimed in claim 5, characterized in that: The learning factors include: if the step size is too large, the optimal solution cannot be found; if the step size is too small, it is easy to fall into the local optimum. The learning factors c1 and c2 are both adaptively changed linearly, expressed as: Among them, c1(k) is the value of the learning factor c1 at the kth iteration, and c2(k) is the value of the learning factor c2 at the kth iteration.
7. A photovoltaic MPPT control method based on improved particle swarm algorithm as claimed in claim 6, characterized in that: The free mutation mechanism includes adopting a polynomial mutation rule, where the mutation rate is a constant in [0, 1], so that particles undergo random disturbances with a small probability within the original position range; The threshold restart condition includes setting the threshold restart condition to be expressed as: Among them, P s is the output power of the photovoltaic array monitored in real time, P max is the maximum power value reached when the particle swarm algorithm completes the search; When it is detected that the photovoltaic system meets the threshold restart condition, the controller will restart the particle swarm algorithm and search for a new maximum power point again.
8. A system using a photovoltaic MPPT control method based on an improved particle swarm algorithm as described in any one of claims 1 to 7, characterized in that: Including parameter initialization module, data acquisition module, comparison module, update module, free mutation module and threshold restart module; The parameter initialization module is used to initialize the parameters of the particle swarm algorithm, set the number of particles, initial position and speed, and distribute the particles randomly and evenly on the photovoltaic array characteristic curve; The data acquisition module is used to monitor environmental data and calculate the power value of the photovoltaic array; The comparison module is used to obtain the fitness value corresponding to each particle, and the particle compares the position of the global optimal solution and the local optimal solution with the corresponding fitness value to update the optimal position; The updating module is used to update the speed and position of each particle at time t, adjust the adaptive inertia weight coefficient based on the fitness value of the particle, and adjust the formula according to the adaptive learning factor; The free mutation module is used to add a free mutation mechanism during the evolution of the PSO algorithm, generating a small range of disturbances on the position of the particles; The threshold restart module is used to set the threshold restart condition. If the iteration termination condition is met, the iteration is stopped. At this time, the particle is located at the position of the global optimal solution, that is, the photovoltaic array works at the global maximum power point.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of a photovoltaic MPPT control method based on an improved particle swarm algorithm according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a photovoltaic MPPT control method based on an improved particle swarm algorithm according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Maximum power tracking control method based on particle swarm and double closed loops
CN119270988A
Polyolefin production process optimization control method and system
CN120779877A
MPPT (Maximum Power Point Tracking) control method and system based on improved particle swarm optimization and medium
CN121143587A
MPPT control method and system based on improved particle swarm algorithm and medium
CN121143587B
