A MPPT control method based on SMGSA algorithm
Through the MPPT control method based on the SMGSA algorithm, the slime mold position is optimized to track the maximum power point of the photovoltaic cell, which solves the problem of difficulty in tracking the traditional MPPT method in complex environments and achieves efficient photovoltaic power generation system operation.
Patent Information
- Application Number
- CN202310742229.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-06-21
AI Technical Summary
When faced with complex environments such as partial shading, the traditional MPPT method is difficult to track the global maximum power point of photovoltaic cells, resulting in slow convergence speed, low convergence accuracy, and easy falling into local optimal values.
The MPPT control method based on the SMGSA algorithm is used to construct a mathematical model of the photovoltaic cell, initialize the SMGSA parameters, calculate the fitness function value of the slime mold, and switch between global development, local exploration, mutation and greedy modes to optimize the position of the slime mold. Track maximum power point.
The convergence speed and efficiency are improved to 99.99%, which effectively avoids falling into the local optimal value under local shading conditions and ensures the efficient operation of the photovoltaic power generation system.
Smart Images

Figure CN116880168B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic power generation, and in particular to an MPPT control method based on an SMGSA algorithm. Background Art
[0002] With the development of science and technology and the improvement of environmental protection awareness, solar energy as a clean and renewable energy is gradually becoming one of the widely used energy sources. Among them, the photovoltaic power generation system is a technology that converts solar energy into electrical energy. It uses photovoltaic cells to convert solar energy into direct current, and then converts it into alternating current through an inverter for use in the power grid. Photovoltaic power generation systems do not require fuel, do not produce emissions, have low operating costs, and can be used on a large scale in areas with sufficient sunlight. Therefore, they are widely used in home, commercial and industrial fields. Photovoltaic maximum power point tracking (MPPT) technology is one of the key technologies to maximize the output power of photovoltaic cells.
[0003] In photovoltaic power generation systems, the output voltage and current of photovoltaic cells are affected by many factors, such as light intensity, ambient temperature, etc., resulting in a maximum output power. If the maximum power point of photovoltaic cells can be tracked in real time, the output power of photovoltaic cells can be utilized to the maximum extent, thereby improving the efficiency and performance of photovoltaic power generation systems. However, traditional MPPT methods such as the perturbation observation method, the conductance increment method, and the improved variable step size algorithm are prone to fall into local optimal values when facing complex environments such as local shading, and cannot track the global maximum power point. Therefore, many researchers have applied metaheuristic algorithms to the problem of photovoltaic MPPT. Metaheuristic algorithms can achieve more efficient, stable and accurate power tracking control by optimizing control parameters. However, when metaheuristic algorithms are applied to photovoltaic MPPT, problems such as slow convergence speed, low convergence accuracy, and easy to fall into local optimal values will occur.
[0004] The Slime Mold Optimization Algorithm (SMA) is a new metaheuristic algorithm proposed in 2020. It simulates the process of slime molds finding the optimal path by releasing chemicals. SMA was applied to photovoltaic MPPT and found to have the advantages of strong global optimization ability and simple algorithm, but the convergence speed is slow and it occasionally falls into the local optimal value under local shading conditions. Summary of the invention
[0005] The above technical problems of the present invention are mainly solved by the following technical solutions:
[0006] An MPPT control method based on SMGSA algorithm, including:
[0007] Construct a mathematical model of photovoltaic cells and collect the current output voltage and current values;
[0008] Initialize SMGSA parameters, including random and uniform initialization of slime mold position, number of iterations, total number of slime molds, and the slime mold position is the duty cycle;
[0009] Calculate the fitness function value of the current slime mold and update the weight according to the fitness value of the slime mold. The output power of the photovoltaic array is the fitness function value for evaluating the location of the slime mold.
[0010] Setting the mutation probability, generating a first random number and comparing it with the mutation probability, selecting the execution mode according to the comparison result and returning to calculating the fitness function value of the current slime mold, or setting the selection probability;
[0011] Set the selection probability, generate the second random number and compare it with the mutation probability, and then choose to execute the global development mode or the local exploration mode according to the comparison result;
[0012] The iteration ends when the number of iterations reaches the threshold, and the optimal slime mold position is output.
[0013] As a preferred method, a 4×1 photovoltaic array is built using photovoltaic modules. Secondly, the model circuit adopts a synchronous BOOST circuit, and the MPPT controller outputs a signal to the PWM to control two MOS tubes. The two MOS tubes are driven in a complementary manner, and the duty cycle changes continuously with the system iteration and finally stabilizes.
[0014] As a preferred method, the SMGSA algorithm is used to update the slime mold position. The SMGSA algorithm formula is as follows:
[0015]
[0016] The parameter p is the selection probability, which makes the algorithm switch between global development and local search. Its formula is:
[0017] p=tanh|S(i)-DF|
[0018] Among them, DF is the optimal fitness value of slime mold during the iteration process;
[0019] r and rand are random numbers between 0 and 1, and z is the mutation probability, which is 0.03.
[0020] As a preferred embodiment, the global development mode expression is:
[0021] X(k+1)=X b (k)+vb·(W·X A -X B ), r<p
[0022] Among them, X(k+1) is the position of the slime mold at the k+1th iteration, X b (k) is the optimal position of the slime mold in the current iteration, X A , XB are two random slime mold positions, the value of vb is [-a, a], and the expression of a is as follows:
[0023]
[0024] Among them, Q is the adjustment coefficient, the value is 2, k is the current number of iterations, and k_max is the maximum number of iterations.
[0025] Preferably, parameter W is the slime mold weight value, and the formula is:
[0026]
[0027] SmellIndex = sort(S)
[0028] Among them, r is a random number between 0 and 1, bF is the current optimal fitness value of the slime mold, wF is the current worst fitness value of the slime mold, S(i) is the fitness value of the i-th slime mold, condition is the slime mold individual with the fitness value ranked in the top half, others is the remaining slime mold, and smellIndex is the sorting function.
[0029] As a preferred embodiment, the local exploration mode expression is:
[0030] X(k+1)=X(k)·|sin(R1)|-R2·sin(R1)·|c1·X b (k)-c2·X(k)|
[0031]
[0032] Where c1 and c2 are control coefficients, R1 and R2 are random numbers between [0, 2π] and [0, π], y is the golden section coefficient, which is (√5-1) / 2, and X(k) is the position of the slime mold at the kth iteration.
[0033] Preferably, the mutation pattern expression is:
[0034] X(k+1)=rand·(UB-LB)+LB, rand<z
[0035] Among them, UB and LB are the upper and lower limits of the search interval, r and rand are random numbers between 0 and 1, and z is the mutation probability, which is 0.03.
[0036] Preferably, a greedy mode is also included, specifically, a greedy strategy is added after the position update is completed, so that the fitness value of the slime mold after the update is compared with that before the update, and if the updated position is better, the updated position is adopted, otherwise the updated fitness value of the slime mold is adopted.
[0037] Preferably, the absolute value of each slime mold i (i=2, 3...n) is taken as the difference between it and the current optimal slime mold position. When the maximum position difference is less than a threshold, the present invention considers that the system has tracked the maximum power point and the algorithm stops iterating. The threshold of the present invention is set to 0.001.
[0038] As a preference, when the external environment changes, the algorithm should quickly restart to track the new maximum power point. The restart conditions are as follows:
[0039]
[0040] Among them, P pv is the current output power of the system, P m is the maximum power tracked, β is the restart threshold set, which is set to 0.05; after the algorithm meets the restart condition, it returns to the initialized SMGSA parameters to start a new round of iteration.
[0041] Therefore, the present invention has the following advantages: Based on the basic SMA algorithm, the present invention adopts three strategies to improve it and proposes an MPPT control strategy based on the SMGSA algorithm. The SMGSA algorithm improves the convergence efficiency to 99.99% while ensuring the convergence speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is the circuit schematic diagram of photovoltaic MPPT;
[0043] Figure 2a This is the effect diagram before parameter a is improved;
[0044] Figure 2b This is the effect diagram after parameter a is improved;
[0045] Figure 3 It is the MPPT control flow chart based on SMGSA algorithm;
[0046] Figure 4 Comparison of simulation curves of four algorithms under dynamic partial shading conditions. DETAILED DESCRIPTION
[0047] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.
[0048] Example:
[0049] The present invention specifically includes
[0050] Step 1: Build a photovoltaic cell model according to the following formula
[0051]
[0052] Where I0 is the reverse saturation current of the diode, A is the ideal factor of the diode, and I ph is the photocurrent, R s is the series resistance, R p is the parallel resistance, K is the Boltzmann constant 1.38*10 -23 J / K, absolute temperature of photovoltaic cell (in K), unit charge 1.6*10 -19 C, U, and I are the output voltage and current of the photovoltaic cell.
[0053] Step 2: Initialize SMGSA parameters, including random uniform initialization of slime mold position (duty cycle), number of iterations, and total number of slime molds. Among them, the output power of the photovoltaic array is the fitness function value for evaluating the quality of the slime mold position.
[0054] Step 3: The controller collects the current output voltage and current values, calculates the current fitness value of the slime mold, and updates the weights based on the fitness value of the slime mold.
[0055] Step 4: Use the SMGSA algorithm to update the slime mold position. The SMGSA algorithm formula is as follows:
[0056]
[0057] The SMGSA algorithm is divided into four modes:
[0058] (1) The first stage is the global development mode (close to the food mode), which is expressed as:
[0059] X(k+1)=X b (k)+vb·(W·X A -X B ),r<p
[0060] Among them, X b (K) is the optimal position of the slime mold in the current iteration, X A , X B are two random slime mold positions, the value of vb is [-a, a], and the expression of a is as follows:
[0061]
[0062] Among them, Q is the adjustment coefficient, the value is 2, k is the current number of iterations, and k_max is the maximum number of iterations.
[0063] The effect comparison chart before and after parameter a correction is as follows Figure 1 shown.
[0064] Parameter W is the slime mold weight value, and the formula is:
[0065]
[0066] SmellIndex = sort(S)
[0067] Among them, r is a random number between 0 and 1, bF is the current optimal fitness value of the slime mold, wF is the current worst fitness value of the slime mold, S(i) is the fitness value of the i-th slime mold, condition is the slime mold individual with the fitness value ranked in the top half, others is the remaining slime mold, and smellIndex is the sorting function.
[0068] The parameter p is the selection probability, which makes the algorithm switch between global development and local search. Its formula is:
[0069] p=tanh|S(i)-DF|
[0070] Among them, DF is the optimal fitness value of the slime mold during the iteration process.
[0071] (2) The second mode is the local exploration mode (food capture mode), which is expressed as:
[0072] X(k+1)=X(k)·|sin(R1)|-R2·sin(R1)·|c1·X b (K)-c2·X(K)|
[0073]
[0074] Among them, R1 and R2 are random numbers between [0,2π] and [0,π] respectively, and y is the golden section coefficient, which is (√5-1) / 2.
[0075] (3) The third mode is the mutation mode, and its expression is:
[0076] X(k+1)=rand·(UB-LB)+LB, rand<z
[0077] Among them, UB and LB are the upper and lower limits of the search interval, r and rand are random numbers between 0 and 1, and z is the mutation probability, which is 0.03.
[0078] (4) The fourth mode is the greedy mode. The basic SMA algorithm does not have a greedy strategy, that is, no matter how good or bad the last slime mold position is, the slime mold will be updated to a new position. This method is not conducive to the tracking of the maximum power point. Therefore, SMGSA adds a greedy strategy after the position update is completed, so that the fitness value of the updated slime mold is compared with that before the update. If the updated position is better, the updated position is adopted, and vice versa.
[0079] Step 5: When the maximum position difference between the slime molds is less than a threshold, the present invention considers that the system has tracked the maximum power point and the algorithm stops iterating. The threshold of the present invention is set to 0.001.
[0080] Step 6: When the external environment changes, the algorithm should quickly restart and track the new maximum power point. The restart conditions set by the present invention are as follows:
[0081]
[0082] Among them, P pv is the current output power of the system, P m is the maximum power tracked, β is the restart threshold set, and the present invention sets it to 0.05. After the algorithm meets the restart condition, it returns to step 2 to start a new round of iteration.
[0083] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0088] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An MPPT control method based on SMGSA algorithm, It is characterized in that Construct a mathematical model of photovoltaic cells and collect the current output voltage and current values; Initialize SMGSA parameters, including random and uniform initialization of slime mold position, number of iterations, total number of slime molds, and the slime mold position is the duty cycle; Calculate the fitness function value of the current slime mold and update the weight according to the fitness value of the slime mold. The output power of the photovoltaic array is the fitness function value for evaluating the location of the slime mold. Setting the mutation probability, generating a first random number and comparing it with the mutation probability, selecting the execution mode according to the comparison result and returning to calculating the fitness function value of the current slime mold, or setting the selection probability; Set the selection probability, generate the second random number and compare it with the mutation probability, and then choose to execute the global development mode or the local exploration mode according to the comparison result; The iteration ends when the number of iterations reaches the threshold, and the optimal slime mold position is output; The global development mode expression is: Among them, X(k+1) is the position of the slime mold at the k+1th iteration, X b (k) is the optimal position of the slime mold in the current iteration, X A , X B are two random slime mold positions, the parameter W is the slime mold weight value, the value of vb is [-a, a], and the expression of a is as follows: Among them, Q is the adjustment coefficient, the value is 2, k is the current number of iterations, and k_max is the maximum number of iterations.
2. According to claim 1, a MPPT control method based on SMGSA algorithm, It is characterized in that A 4×1 photovoltaic array is built using photovoltaic modules. Secondly, the model circuit adopts a synchronous BOOST circuit, and the MPPT controller outputs signals to the PWM to control two MOS tubes. The two MOS tubes are driven in a complementary manner, and the duty cycle changes continuously with the system iteration and finally stabilizes.
3. According to the MPPT control method based on the SMGSA algorithm of claim 1, It is characterized in that The SMGSA algorithm is used to update the position of the slime mold. The SMGSA algorithm formula is as follows: The parameter p is the selection probability, which makes the algorithm switch between global development and local search. Its formula is: Among them, DF is the optimal fitness value of slime mold during the iteration process; r and rand are random numbers between 0 and 1, z is the mutation probability, and its value is 0.03; X(k+1) is the position of the slime mold at the k+1th iteration, and S(i) is the fitness value of the i-th slime mold.
4. According to claim 1, a MPPT control method based on SMGSA algorithm, It is characterized in that Parameter W is the slime mold weight value, and the formula is: Among them, r is a random number between 0 and 1, bF is the current optimal fitness value of the slime mold, wF is the current worst fitness value of the slime mold, S(i) is the fitness value of the i-th slime mold, condition is the slime mold individual with the fitness value ranked in the top half, others is the remaining slime mold, and SmellIndex is the sorting function.
5. According to claim 1, a MPPT control method based on SMGSA algorithm, It is characterized in that The local exploration mode expression is: Among them, c 1 、c 2 is the control coefficient, R 1 and R 2 are random numbers between [0,2π] and [0,π], y is the golden ratio coefficient, and the value is , X(k) is the position of the slime mold at the kth iteration.
6. According to claim 1, a MPPT control method based on SMGSA algorithm, It is characterized in that The mutation pattern expression is: Among them, UB and LB are the upper and lower limits of the search interval, r and rand are random numbers between 0 and 1, and z is the mutation probability, which is 0.
03.
7. The MPPT control method based on the SMGSA algorithm according to claim 1, It is characterized in that It also includes a greedy mode, specifically, adding a greedy strategy after the position update is completed, so that the fitness value of the slime mold after the update is compared with the fitness value before the update. If the updated position is better, the updated position is adopted, otherwise the fitness value of the slime mold before the update is adopted.
8. The MPPT control method based on the SMGSA algorithm according to claim 1, It is characterized in that The absolute value of the difference between each slime mold i, i=2, 3...n, and the current optimal slime mold position is taken. When the maximum position difference is less than a threshold, it is considered that the system has tracked the maximum power point and the algorithm stops iterating; the threshold is set to 0.
001.
9. The MPPT control method based on the SMGSA algorithm according to claim 1, It is characterized in that When the external environment changes, the algorithm should quickly restart to track the new maximum power point. The restart conditions are as follows: Among them, P pv is the current output power of the system, P m is the maximum power tracked, β is the restart threshold set, which is set to 0.05; the algorithm starts a new round of iteration after meeting the restart condition.
