Distributed photovoltaic court optimization method and system based on improved particle swarm optimization
By introducing an improved particle swarm algorithm with chaotic mapping and elite reverse learning in distributed photovoltaic platform areas, the problems of low complexity and poor high-dimensional constraints in traditional methods are solved, and more efficient photovoltaic platform areas are achieved and Dynamic management.
Patent Information
- Application Number
- CN202410909100.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-01
AI Technical Summary
In the dynamic management and optimization of distributed photovoltaic platform areas, the solution to the model complexity and the effect of constraints on high-dimensional problems is poor, and efficient optimization of photovoltaic platform areas cannot be effectively achieved.
Using a method based on improved particle swarm algorithm, combining chaotic mapping and elite reverse learning, initializing populations through Logistic chaotic mapping and generating reverse solutions using elite reverse learning strategies, improving the search efficiency and diversity of the algorithm, and enhancing the high-dimensional problem the solution ability.
The global search capability and convergence speed of the photovoltaic platform optimization algorithm are improved, local optimal solutions are avoided, and the robustness and stability of the algorithm are enhanced. It can find the optimal solution in complex environments and quickly achieve optimization.
Smart Images

Figure CN118886541A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power system planning, and in particular relates to a distributed photovoltaic area optimization method and system based on an improved particle swarm algorithm. Background Art
[0002] As the global demand for renewable energy continues to grow, photovoltaic power generation, as one of the representatives of clean and renewable energy, has been widely used and developed. In 2022, Zhang Zhigang and Kang Chongqing mentioned in the challenges and prospects of building a new power system: Distributed photovoltaic stations refer to the distribution of photovoltaic power generation systems in different areas of cities or villages to meet local electricity needs. However, Li Wenmei et al. mentioned in the data-driven photovoltaic low-voltage station energy storage optimization configuration strategy: Due to the weather dependence and intermittency of the photovoltaic system, as well as the mutual influence between photovoltaic systems in the station, the operation and management of the photovoltaic power generation system has become complex and challenging. In the optimization calculation of small distributed photovoltaic stations, the current optimization calculation method is still limited to some linear solvers, and the solution of nonlinear mixed integer programming is cumbersome, which limits the complexity of the model and the accuracy of the solution. First, the solution depends on the linear solver, resulting in a low complexity of the solution model. Second, the traditional particle swarm algorithm has poor results in solving high-dimensional problems with constraints and cannot obtain the optimal solution that satisfies the constraints. Therefore, an efficient optimization algorithm is needed to realize the dynamic management and optimization of photovoltaic stations.
[0003] In 2005, Tizhoosh H mentioned in Opposition-based learn: A new scheme for machine intelligence and in 2013, Wang Shenwen et al. mentioned in the hybrid differential evolution algorithm using the elite reverse learning strategy: Elite Opposition-Based Learning (EOBL) is to construct the reverse solution of the feasible solution of the current problem, so as to increase the diversity of the population, and select the optimal solution from the current solution and the reverse solution as the new generation of individuals. The definition of the elite reverse solution is based on the extreme points corresponding to the individuals in the population, that is, the elite individuals. It has the effect of increasing species diversity and improving search efficiency.
[0004] In 2015, Yang Jingming et al. mentioned in the multi-objective adaptive chaotic particle swarm optimization algorithm: Chaotic Mapping for control and decision making is a regular mapping, which is characterized by the unpredictability of the chaotic system being sensitive to initial values, being unable to be decomposed into two mutually influencing subsystems, and having the characteristics of dense periodic points with strong certainty and regularity. It has the characteristics of being sensitive to initial values, topological transmission, and dense periodic points. There is no relevant research on the application of the improved particle swarm optimization (PSO) based on elite reverse learning and chaotic mapping to dynamic management and optimization of distributed photovoltaic stations. Summary of the invention
[0005] The purpose of the present invention is to overcome the problems of low complexity of existing distributed photovoltaic area dynamic management and optimization solution models and poor effect of constraining high-dimensional problems, and propose a distributed photovoltaic area optimization method and system based on an improved particle swarm algorithm.
[0006] In order to achieve the above object, the present invention adopts the following technical scheme:
[0007] The distributed photovoltaic area optimization method based on the improved particle swarm algorithm includes the following steps:
[0008] The optimization calculation model of distributed photovoltaic areas is analyzed in dimensions, and an improved particle swarm algorithm based on chaos mapping and elite reverse learning is established. The improved particle swarm algorithm is used to solve the optimization model of distributed photovoltaic areas and obtain the optimization calculation results of distributed photovoltaic areas.
[0009] The specific process of improving the particle swarm algorithm is as follows:
[0010] S1, input initial value;
[0011] S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors;
[0012] S3, using Logistic chaotic mapping to initialize the particle population in the specified search space;
[0013] S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population;
[0014] S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals;
[0015] S6, updating the velocity and position of the particle;
[0016] S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
[0017] Furthermore, S3 is specifically as follows: using the Logistic mapping model to generate a chaotic sequence to initialize the population to generate a chaotic population, and mapping the chaotic variables of the chaotic population to the space of optimization variables to obtain the optimization variables.
[0018] Furthermore, the expression of the Logistic mapping model is as follows:
[0019]
[0020] in, is the chaotic variable, The value is between [0,1], i=1,2,L,n is the serial number of the chaotic variable, j=1,2,L,N is the serial number of the population, and N is the size of the population.
[0021] Furthermore, the chaotic variables of the chaotic population are mapped to the space of optimization variables as follows:
[0022]
[0023] Among them, [l i ,u i ] is the search space composed of optimization variables, is the chaotic variable, is the optimization variable.
[0024] Further, S5 is specifically as follows: preset x i (t) and is the current solution and reverse solution of the tth iteration of the i-th individual in the particle population, x i,j (t) and is the reverse solution of the t-th iteration of the i-th individual in the particle population in the j-th dimension; m elite individuals in the entire particle population are selected as Define the inverse solution of the j-th dimension of the ith individual.
[0025] Furthermore, the reverse solution of the j-th dimension of the i-th individual is defined as follows:
[0026]
[0027] in, is the reverse solution of the jth dimension of the ith individual, γ is a random number between 0 and 1, a j (t) = min{p 1,j (t),p 2,j (t),L,p m,j (t)},bj (t) = max{p 1,j (t),p 2,j (t),L,p m,j (t)}; In a j (t) and b j within the range of (t).
[0028] Furthermore, the updating method of the particle velocity in S6 is as follows:
[0029] v i =ω×v i +c1×rand()×(pbest i -x i )+c2×rand()×(gbest i -x i )
[0030] Among them, v i is the speed of the particle, ω is the inertia factor, c1 and c2 are the individual and group learning factors, rand() is a random number between 0 and 1, Pbest i is the individual extreme value, Gbest i is the group extreme value.
[0031] Furthermore, the update method of the particle position in S6 is as follows:
[0032] x t+1,i =x t,i +v i
[0033] Among them, x t+1 ,i is the position of the ith particle at the t+1th iteration, v i is the velocity of the particle.
[0034] Furthermore, an improved particle swarm algorithm code is written in MATLAB, and the distributed photovoltaic area optimization model is solved using the improved particle swarm algorithm to obtain the optimization solution results, and the rationality of the optimization solution results is analyzed and verified.
[0035] A distributed photovoltaic area optimization system based on an improved particle swarm algorithm includes a dimensional analysis module for performing dimensional analysis on the optimization calculation model of a distributed photovoltaic area;
[0036] Establish an algorithm module to establish an improved particle swarm algorithm based on chaos mapping and elite reverse learning;
[0037] The model solving module is used to solve the distributed photovoltaic area optimization model using the improved particle swarm algorithm.
[0038] Obtain the optimization calculation results of distributed photovoltaic areas;
[0039] The specific process of improving the particle swarm algorithm is as follows:
[0040] S1, input initial value;
[0041] S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors;
[0042] S3, using Logistic chaotic mapping to initialize the particle population in the specified search space;
[0043] S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population;
[0044] S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals;
[0045] S6, updating the velocity and position of the particle;
[0046] S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
[0047] Compared with the prior art, the present invention has the following beneficial technical effects:
[0048] The distributed photovoltaic area optimization method based on the improved particle swarm algorithm proposed in the present invention first solves the problem that the traditional optimization scheduling calculation of the distributed photovoltaic area is overly dependent on the linear solver, and improves the heuristic algorithm to solve the nonlinear mixed integer programming; and based on this, it proposes an improved particle swarm algorithm that introduces chaotic mapping and elite reverse learning, and then uses relevant examples to solve and verify the rationality of the effect of the algorithm; through the optimization calculation of the distributed photovoltaic area by the improved particle swarm algorithm based on elite reverse learning and chaotic mapping, the elite reverse learning method is used, combined with the characteristics of chaotic mapping, to achieve the improvement and optimization of the particle swarm algorithm. Through elite reverse learning, the algorithm can quickly adjust the search direction and speed of the group according to the feedback information of the individual optimal solution, accelerate the convergence speed, improve the global search ability of the algorithm, and increase the algorithm to solve high-dimensional problems. At the same time, the introduction of chaotic mapping makes the algorithm have stronger randomness and diversity in the search process, which helps to avoid falling into the local optimal solution.
[0049] Furthermore, in order to solve the problems that the initial population of the particle swarm algorithm in the optimization solution has poor diversity in the search space, and when updating the pbest and gbest in the particle population, only the overall quality of the individuals in the population is considered, without considering the quality of different dimensions of a single individual, an improved particle swarm algorithm with chaotic mapping and elite reverse learning is proposed to improve the computational convergence and accuracy.
[0050] Furthermore, the improved particle swarm algorithm proposed in the present invention has the following advantages: first, efficient global search capability, which can find the optimal solution in a complex photovoltaic station environment; second, fast convergence speed, which can achieve optimization in a shorter time; third, it has strong robustness and stability, and can adapt to different station operating environments and external interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The drawings in the specification are used to provide further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0052] Figure 1 It is a flow chart of a distributed photovoltaic area optimization method based on an improved particle swarm algorithm of the present invention;
[0053] Figure 2 It is a structural schematic diagram of a distributed photovoltaic area optimization system based on an improved particle swarm algorithm of the present invention;
[0054] Figure 3 It is a flow chart of solving the improved particle algorithm of the distributed photovoltaic area optimization method based on the improved particle swarm algorithm of the present invention;
[0055] Figure 4 It is a schematic diagram of the verification results of an example in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0057] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.
[0058] Embodiment 1
[0059] See also Figure 1, a distributed photovoltaic area optimization method based on improved particle swarm algorithm includes the following steps:
[0060] The optimization calculation model of distributed photovoltaic areas is analyzed in dimensions, and an improved particle swarm algorithm based on chaos mapping and elite reverse learning is established. The improved particle swarm algorithm is used to solve the optimization model of distributed photovoltaic areas and obtain the optimization calculation results of distributed photovoltaic areas.
[0061] The specific process of improving the particle swarm algorithm is as follows:
[0062] S1, input initial value;
[0063] S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors;
[0064] S3, using Logistic chaotic mapping to initialize the particle population in the specified search space;
[0065] S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population;
[0066] S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals;
[0067] S6, updating the velocity and position of the particle;
[0068] S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
[0069] Preferably, S3 specifically includes: using a Logistic mapping model to generate a chaotic sequence to initialize a population to generate a chaotic population, and mapping chaotic variables of the chaotic population to a space of optimized variables to obtain optimized variables.
[0070] Preferably, the expression of the Logistic mapping model is as follows:
[0071]
[0072] in, is the chaotic variable, The value is between [0,1], i=1,2,L,n is the serial number of the chaotic variable, j=1,2,L,N is the serial number of the population, and N is the size of the population.
[0073] Preferably, the chaotic variables of the chaotic population are mapped to the space of the optimization variables as follows:
[0074]
[0075] Among them, [l i ,u i ] is the search space composed of optimization variables, is the chaotic variable, is the optimization variable.
[0076] Preferably, S5 is specifically as follows: preset x i (t) and is the current solution and reverse solution of the tth iteration of the i-th individual in the particle population, x i,j (t) and is the reverse solution of the t-th iteration of the i-th individual in the particle population in the j-th dimension; m elite individuals in the entire particle population are selected as Define the inverse solution of the j-th dimension of the ith individual.
[0077] Preferably, the reverse solution of the j-th dimension of the ith individual is defined as follows:
[0078]
[0079] in, is the reverse solution of the jth dimension of the ith individual, γ is a random number between 0 and 1, a j (t) = min{p 1,j (t),p 2,j (t),L,p m,j (t)},b j (t) = max{p 1,j (t),p 2,j (t),L,p m,j (t)}; In a j (t) and b j within the range of (t).
[0080] Preferably, the updating method of the particle speed in S6 is as follows:
[0081] v i =ω×v i +c1×rand()×(pbest i -x i )+c2×rand()×(gbest i -x i )
[0082] Among them, v i is the speed of the particle, ω is the inertia factor, c1 and c2 are the individual and group learning factors, rand() is a random number between 0 and 1, Pbest i is the individual extreme value, Gbesti is the group extreme value.
[0083] Preferably, the updating method of the particle position in S6 is as follows:
[0084] x t+1,i =x t,i +v i
[0085] Among them, x t+1,i is the position of the ith particle at the t+1th iteration, v i is the velocity of the particle.
[0086] Preferably, an improved particle swarm algorithm code is written in MATLAB, the improved particle swarm algorithm is used to solve the distributed photovoltaic area optimization model to obtain an optimization solution result, and the optimization solution result is analyzed and verified to be reasonable.
[0087] Embodiment 2
[0088] See also Figure 2 , a distributed photovoltaic area optimization system based on an improved particle swarm algorithm, including a dimensional analysis module for performing dimensional analysis on the optimization calculation model of the distributed photovoltaic area;
[0089] Establish an algorithm module to establish an improved particle swarm algorithm based on chaos mapping and elite reverse learning;
[0090] The model solving module is used to solve the distributed photovoltaic area optimization model using the improved particle swarm algorithm to obtain the distributed photovoltaic area optimization calculation results;
[0091] The specific process of improving the particle swarm algorithm is as follows:
[0092] S1, input initial value;
[0093] S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors;
[0094] S3, using Logistic chaotic mapping to initialize the particle population in the specified search space;
[0095] S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population;
[0096] S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals;
[0097] S6, updating the velocity and position of the particle;
[0098] S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
[0099] Embodiment 3
[0100] The distributed photovoltaic area optimization method based on the improved particle swarm algorithm provided in this embodiment includes the following steps:
[0101] 1. Conduct dimensional analysis on the optimization calculation model of general distributed photovoltaic areas and confirm the improvement ideas of particle swarm algorithm;
[0102] 2. Aiming at the shortcomings of slow calculation and poor convergence of distributed photovoltaic area optimization scheduling calculation, a chaotic mapping strategy is proposed based on the logistic chaotic mapping model to improve the initial diversity of particle population;
[0103] 3. Aiming at the problem that the distributed photovoltaic area optimization model has high dimensions and the computational constraints are difficult to meet, an elite reverse learning strategy is proposed to improve the particle swarm algorithm and solve the dimensionality explosion problem in the model solving process;
[0104] 4. Write algorithm code in MATLAB to solve and verify the optimization model of common distributed photovoltaic stations; Figure 4 As shown;
[0105] 5. Analyze the model solution results and verify whether the results are reasonable.
[0106] This embodiment proposes an improved particle swarm algorithm solution process based on chaotic mapping and elite reverse learning as shown in the attached figure. Figure 3 As shown, the specific implementation steps are as follows:
[0107] S1, input initial value;
[0108] S2. Set the relevant parameters of PSO, set the population size N = 200, the maximum number of iterations Tmax = 200, and the individual and group learning factors to 2;
[0109] S3. Use Logistic chaotic mapping to initialize the particle population in the specified search space:
[0110] As a nonlinear phenomenon, chaos has strong randomness, ergodicity and regularity. If chaos is used as a way to generate the initial population, the diversity of the initial population can be greatly improved. This embodiment uses the Logistic mapping model to generate a chaotic sequence for population initialization, and its mathematical expression is shown in formula (1):
[0111]
[0112] In formula (1), is a chaotic variable whose value is between [0,1], i=1,2,L,n is the serial number of the chaotic variable, j=1,2,L,N is the serial number of the population, and N is the size of the population.
[0113] According to formula (1), we first set the initial values of n chaotic variables to have only slight differences, and then take j = 1, 2, L, N in turn to obtain the chaotic variable individuals of N initial populations. After generating the chaotic population, we use the following formula (2) to map the chaotic variables to the space of optimization variables:
[0114]
[0115] In formula (2), [l i ,u i ] is the search space composed of optimization variables.
[0116] The initial population generated by Logistic chaotic mapping can effectively improve the initial search efficiency of the particle swarm algorithm and can solve some complex high-dimensional problems well.
[0117] S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population;
[0118] S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals:
[0119] In this embodiment, x is set i (t) and is the current solution and reverse solution of the tth iteration of the i-th individual in the particle population, x i,j (t) and is its reverse solution in the jth dimension. m elite individuals in the entire particle population are selected as Then the reverse solution of the j-th dimension of the ith individual is The definition is shown in formula (3):
[0120]
[0121] In formula (3), γ is a random number between 0 and 1, a j (t) = min{p 1,j (t),p 2,j (t),L,p m,j (t)},b j (t) = max{p 1,j (t),p 2,j (t),L,p m,j (t)}.
[0122] if Beyond aj (t) and b j (t), it needs to be limited between these two.
[0123] In this embodiment, m is selected as 10% of the population as elite individuals. According to formula (3), elite reverse learning can combine the excellent dimensions of the current solution and the reverse solution to select excellent individuals and reduce the probability of the algorithm falling into the local optimum. At the same time, this strategy can extract the characteristics of elite individuals in the entire population, which can improve the convergence speed of the algorithm and is significantly helpful for solving high-dimensional optimization problems.
[0124] S6. Update the particle's velocity and position according to equations (4) and (5):
[0125] v i =ω×v i +c1×rand()×(pbest i -x i )+c2×rand()×(gbest i -x i ) (4)
[0126] In formula (4), ω is the inertia factor, c1 and c2 are the individual and group learning factors respectively, and rand() is a random number between 0 and 1.
[0127] x t+1,i =x t,i +v i (5)
[0129] In formula (5), x t+1,i is the position of the ith particle at the t+1th iteration.
[0130] S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
[0131] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take 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.) containing computer-usable program code.
[0132] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.
[0133] 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 including 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.
[0134] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0135] Finally, 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 above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. Distributed photovoltaic area optimization method based on improved particle swarm algorithm, It is characterized in that The following steps are involved: The optimization calculation model of distributed photovoltaic areas is analyzed in dimensions, and an improved particle swarm algorithm based on chaos mapping and elite reverse learning is established. The improved particle swarm algorithm is used to solve the optimization model of distributed photovoltaic areas and obtain the optimization calculation results of distributed photovoltaic areas. The specific process of improving the particle swarm algorithm is as follows: S1, input initial value; S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors; S3, using Logistic chaotic mapping to initialize the particle population in the specified search space; S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population; S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals; S6, updating the velocity and position of the particle; S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
2. According to the distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 1, It is characterized in that S3 is specifically as follows: using the Logistic mapping model to generate a chaotic sequence to initialize the population and generate a chaotic population, and mapping the chaotic variables of the chaotic population to the space of optimization variables to obtain the optimization variables.
3. According to claim 2, the distributed photovoltaic area optimization method based on the improved particle swarm algorithm, It is characterized in that The expression of the Logistic mapping model is as follows: in, is the chaotic variable, The value is between [0,1], i=1,2,L,n is the serial number of the chaotic variable, j=1,2,L,N is the serial number of the population, and N is the size of the population.
4. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 2, It is characterized in that The chaotic variables of the chaotic population are mapped to the space of optimization variables as follows: Among them, [l i ,u i ] is the search space composed of optimization variables, is the chaotic variable, is the optimization variable.
5. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 1, It is characterized in that S5 is specifically: preset x i (t) and is the current solution and reverse solution of the tth iteration of the i-th individual in the particle population, x i,j (t) and is the reverse solution of the t-th iteration of the i-th individual in the particle population in the j-th dimension; m elite individuals in the entire particle population are selected as Define the inverse solution of the j-th dimension of the ith individual.
6. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 5, It is characterized in that The reverse solution of the j-th dimension of the i-th individual is defined as follows: in, is the reverse solution of the jth dimension of the ith individual, γ is a random number between 0 and 1, a j (t) = min{p 1,j (t),p 2,j (t),L,p m,j (t)},b j (t) = max{p 1,j (t),p 2,j (t),L,p m,j (t)}; In a j (t) and b j within the range of (t).
7. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 1, It is characterized in that The update method of the particle speed in S6 is as follows: v i =ω×v i +c 1 ×rand()×(pbest i -x i )+c 2 ×rand()×(gbest i -x i ) Among them, v i is the velocity of the particle, ω is the inertia factor, c 1 and c 2 are the individual and group learning factors, rand() is a random number between 0 and 1, and Pbest i is the individual extreme value, Gbest i is the group extreme value.
8. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 1, It is characterized in that The update method of the particle position in S6 is as follows: x t+1,i =x t,i +v i Among them, x t+1,i is the position of the ith particle at the t+1th iteration, v i is the velocity of the particle.
9. The distributed photovoltaic area optimization method based on improved particle swarm algorithm according to claim 1, It is characterized in that An improved particle swarm algorithm code is written in MATLAB, and the improved particle swarm algorithm is used to solve the distributed photovoltaic area optimization model to obtain the optimization solution result, and the optimization solution result is analyzed and verified whether it is reasonable.
10. Distributed photovoltaic area optimization system based on improved particle swarm algorithm, It is characterized in that It includes a dimensional analysis module for performing dimensional analysis on the optimization calculation model of distributed photovoltaic stations; Establish an algorithm module to establish an improved particle swarm algorithm based on chaos mapping and elite reverse learning; The model solving module is used to solve the distributed photovoltaic area optimization model using the improved particle swarm algorithm to obtain the distributed photovoltaic area optimization calculation results; The specific process of improving the particle swarm algorithm is as follows: S1, input initial value; S2. Set PSO parameters, which include population size, maximum number of iterations, and individual and group learning factors; S3, using Logistic chaotic mapping to initialize the particle population in the specified search space; S4. Calculate the fitness of each individual in the first generation population, and record the global optimal position of each individual and the global optimal position of the population; S5. Use the elite reverse learning strategy to generate the reverse solution of the current individual, merge the reverse population with the current population, and generate excellent individuals; S6, updating the velocity and position of the particle; S7. Determine whether the maximum number of iterations has been reached. If not, proceed to the next iteration; if reached, end the iteration and generate a solution set.
Citation Information
Cited By
Photovoltaic array BIM model construction method and device based on improved particle swarm optimization, storage medium and electronic equipment
CN119180088A
Photovoltaic array BIM model construction method, device, storage medium and electronic device based on improved particle swarm algorithm
CN119180088B
