Maintenance and Operation Optimization Algorithm of PV Plants under Multiconstraint Conditions

With the rapid increase in the photovoltaic (PV) plants, the real-time operation and maintenance of photovoltaic power generation equipment is very important. (e maintenance and dispatching of decentralized power stations is still one of the key issues affecting the operation safety of photovoltaic power stations. However, most of the photovoltaic power stations in China fail to rationally optimize the utilization of resources and time.(e current study puts forward effort implementation via genetic algorithm-based multiconstrained optimization methodology. (e proposed study optimally overrides the traditional PV plant operation and maintenance dispatching operations with automation and reliability. (e proposed study is also applicable to multiple PV plants, multiple maintainers, multipoint departure, different dispatching conditions, and cost considerations. We propose an MOOA algorithm to solve this issue, and we strongly believe that, by defining a suitable fitness function, the convergence speed and optimization ability can be greatly improved, and this study puts a forward step.


Introduction
Photovoltaic (PV) power plants are the core component of the smart grid [1,2]. Because of its dispersed geographical location, complex structure, large number of equipment, and t complicated daily operation and maintenance procedures [3,4], all these routine operations greatly affect the smooth operation of the smart grid. At present, the maintenance of PV plants [5][6][7] is mainly carried out in accordance with the regular maintenance stipulated by the state.
ere exist a number of problems which lead to excessive cost maintenance, such as insufficient maintenance, poor reliability, wasting of resources, and increasing maintenance costs. erefore, operation and maintenance dispatch has become the core problem of an intelligent operation system of PV plants [8,9]. Operation and maintenance assignment is essentially an extension of the assignment problem. e assignment of n tasks to n persons belongs to balanced assignment; otherwise, it belongs to an unbalanced assignment [10]. In the process of operation and maintenance of PV plants, the number of maintainers is less than that of power plants, which leads to the unbalanced assignment problem. Balanced assignment problem can be well solved by the Hungarian algorithm, eliminating heights and shrinking matrix analysis [11], while unbalanced assignment problem is an objective function optimization problem with constraints, and constraints and objective functions may not be linearized, so it is difficult to solve the problem. A couple of research studies have put forward efforts to solve an unbalanced assignment problem [12,13], such as dual transportation method [14][15][16][17] and fuzzy Hungarian algorithm [18]. However, the solving process is complex and does not have robustness and adaptability. e machine learning especially deep learning also provides a solution to the unbalanced assignment problem [19]. In this paper, a genetic algorithm is presented to solve the unbalanced assignment problem of operation and maintenance dispatch.
is method can optimize the operation and maintenance dispatch of multiple PV plants, multiple maintainers, and multipoint departure. It can set different assignment constraints or cost considerations and accelerate the convergence speed and improve the optimization ability of the algorithm.

Establishment of Operational and Maintenance Model of PV Plants
e assignment problem takes the matching of tasks and maintainers as the research object to optimize the utilization of resources [20,21]. e mathematical model of operation and maintenance dispatch for PV plants is described as follows.
Assuming that the number of maintainers is m and the number of tasks is n at a certain time, it obtains m ≤ n by considering the maintenance cost, and one plant is only maintained by one maintainer; the maintainers will perform the next task according to the algorithm hints after the accomplishment of last PV plant's maintenance. In this paper, the optimal path of operation and maintenance dispatch is given to minimize the time spent by maintainers on the road. c ij represents the time consuming on the road between two maintained PV plants, i.e., en, the mathematical model of multiobjective unbalanced assignment for m maintainers to n PV plants is as follows: c ij x ij , i � 1, 2, . . . , m; j � 1, 2, . . . , n; where x ij � 1 means that the i maintainer completes the j task and x ij � 0 means that no task is assigned. In order to solve the unbalanced assignment in (2), it makes an equivalent exchange for (2), that is, n − m maintainers are added to make up m maintainers. In essence, the added maintainers are only considered in the calculation and will not be shown in dispatch route planning; moreover, the added maintainers will not affect the objective function and constraints, so the essence of the unbalanced assignment problem has not changed. e original unbalanced assignment problem is equivalent to the balanced assignment problem, that is, m maintainers are responsible for the operation and maintenance of n PV plants.

Optimization Algorithm of Maintainers Dispatching
e bases of the genetic algorithm for solving the optimal maintenance strategy of PV plants are as follows: First, the genetic algorithm solves various TSP problems with many results [22][23][24] and is mature and reliable. Second, the genetic algorithm satisfies the solution of different problems; for instances, the problem of multipoint departure and multiperson operation and maintenance can be assigned by adjusting the chromosome coding method, and the operation and maintenance strategy with uncertain time constraints and cost calculation methods can be made by adjusting the fitness function. ird, the genetic algorithm is easy to iterate, which meets the new demands emerging from the operation and maintenance environment of actual PV plants [25,26].
As shown in Figure 1, the fault diagnosis process of PV array is described.
is paper designs the optimal distribution of voltage sensors according to the distribution of PV plants by equivalent analysis of the weight matrix. rough regression analysis of state data [27,28], the location of the fault point is obtained by analyzing the voltage signal detected via the voltage sensor. e fault diagnosis model of PV arrays is designed and carried out. is model classifies the types of fault points [29][30][31]. Based on the concept of equipment lifecycle management [32,33], this paper establishes the equipment status data model, obtains the information of equipment management, establishes the health history of equipment status, refers to the provisions of equipment manufacturers on their design life, effective operation life, maximum allowable life, and the sample 2 Complexity statistical data of their actual service life, and achieves the assistant decision making of equipment condition monitoring in photovoltaic power plants. e following steps are used to optimize the operation and maintenance dispatch of PV plants: Step 1. Input the fault information to be solved, including the number of faults l, the location of the faulty power station k, the installed capacity of the faulty power station c, the fault grade of the faulty power station g, the remaining maintenance waiting time of the faulty power station t, and the fault flow number s.
Step 2. e path optimization algorithm is obtained by the genetic algorithm.
① Input the traffic cost matrix, that is, the traffic cost between the fault location and the departure location. ② Random sequencing of fault pipeline numbers constitutes the initial gene as follows: gene � s a1 , s a2 , · · · , s an .
③ Repeat ② for N times to form N initial genes: gene 1 , gene 2 , . . . , gene n ; N initial genes constitute the initial population Q. ④ Construct fitness function Ψ(gene): where gene represents the gene of fitness function to evaluate fitness, s i represents the fault flow number in the gene, C s i ,s i+1 represents the traffic cost between the two fault locations determined by the fault flow number and the traffic cost matrix C, n−1 i�1 C s i ,s i+1 represents the total traffic cost of maintenance in the represents the penalty coefficient of the traffic cost; the default is 1000; the larger m is, the lower the route of the traffic cost will be preferred, and b represents the penalty coefficient of the installed capacity; the default is 100; the larger b is, the preferred choice will be made. For a power station with large installed capacity, c means the penalty coefficient of the fault grade. e bigger c is, the higher the penalty coefficient of maintenance time will be. d means the penalty coefficient of maintenance time. e bigger d is, the lower the waiting time of maintenance will be.
⑤ n 1 individuals were randomly selected from the population Q, and the probability of individual gene i being selected was as follows: that is, the greater the fitness, the higher the probability of being selected, and the new individuals selected are inserted into the new population Q ′ . ⑥ e probability P c is used to randomly select n 2 individuals from the population Q, which is even and convenient for crossover operation. e crossover operation is carried out by randomly extracting a number of individual gene fragments and pairing individuals to form a new individual to join the population Q ′ . In the optimization process Complexity of operation and maintenance of PV plants, P c is set to 0.75.
In the new population Q ′ , the probability P m is used to randomly select n 3 individuals, which is for mutation. at is to say, two gene fragments are randomly selected, and their positions are exchanged to form n 3 new individuals to join the population Q ′ . In the optimization process of operation and maintenance of PV plants, P m is set to 0.01. e crossover method and the mutation method are shown in Figure 2. Two individuals were selected randomly with probability P c to perform crossover operation. e offspring inherited part of the genes from their parents and kept the same sequence as their parents are as shown in Figure 2. Some genes of Parent 1, such as 678, crossed with Parent 2 were selected randomly, and the crossover results are shown in Figure 2. e probability P m of mutation occurs. Because each city only passes through once in TSP problem, the mutation should not change the value of one position in the gene sequence (which will cause a city to pass through twice) but should exchange the values of two positions randomly, as shown in Figure 2; the positions of 3 and 8 should be exchanged. ⑦ Repeat ⑤ and ⑥ until the maximum number of iterations is reached, or the fitness function of an individual reaches a given threshold. ⑧ For the individual with the largest output fitness, the sequence of flow numbers is the maintenance sequence given by the algorithm.
Step 3. e optimal operation and maintenance scheme is output by the path optimization algorithm.
Step 4. If when the maintainers implement the optimal path, the operation and maintenance time consuming does not match the expected time consuming or new faults occur during the operation and maintenance period; we need to update the information to solve the fault and repeat Steps 2-4 again, until the maintainers successfully implement the optimal path.

Experiments and Implementation Verification
e experimental environment uses MATLAB 6.0 to construct 36 random points as the distribution of PV plants in the region and triangulate the points, and the time spent on the road is the sum of the edge lengths of the triangle experienced between the two points; construct the weight matrix of the operation and maintenance process, randomly select a number of points from the points as maintenance objects, and set them up again every 1 minute from the points. Randomly select 0 to 1 point as a new maintenance object to join the maintenance queue. Suppose a maintainer is at a fixed speed between the set of points in the operation and maintenance, and the speed per minute does not exceed the length of the maximum edge of the triangle. As shown in Figure 3, randomly generate points, triangulate points, and construct maintenance site.
In the experiment, the maintenance of PV plants can be well carried out by implementing one maintainer and three maintainers, respectively. By implementing a genetic algorithm, the optimal dispatching path of maintainers can be saved, especially when facing 38 photovoltaic power stations, no more than three maintainers can be maintained.
In order to better prove the rationality of the optimization method of operation and maintenance dispatch of PV plants based on genetic algorithm, random method, greedy algorithm, and genetic algorithm were used to carry out experiments. e time consuming on the road between two places of a company's PV plants in Zhejiang province is shown in Table 1, including Hangzhou, Deqing, Haining, Huzhou, Jiande, Kaihua, Kecheng, Linan, Linhai, Longquan, Pan'an, Quzhou, Shangyu, Shaoxing, Shengzhou, Taizhou, Tiantai, Tonglu, Tongxiang, Yuyao, and Zhuji. e PV plants in all areas are repaired and maintained once to find an appropriate operation and maintenance path. e average travel time for each region is 159 minutes, of which (1) e average total time of 21 horizons patrol by the random route method is 3340 minutes. (2) Using a greedy algorithm (the next destination is the nearest location from the current location), the route is selected as follows:   Compared with the optimal path obtained by the exhaustive wet method, it is confirmed that the improved genetic algorithm can obtain the optimal path for 21 operation and maintenance routes. e coding method of the genetic algorithm and the definition of fitness function in [34,35] were used to solve the operation and maintenance route planning of PV plants.
Comparing with this algorithm, as shown in Figure 4, [35] needs 81 iterations, [34] needs 44 iterations, while this algorithm only needs 34 iterations, and the final operation and maintenance path takes 1278 minutes. By defining an appropriate fitness function, the strategy of a genetic algorithm to optimize the operation and maintenance path presented in this paper can accelerate the convergence speed and searchability of the genetic algorithm.   for M-TSP is applied to provide an optimal path for maintainers dispatched for PV plants. It supports the optimization of operation and maintenance dispatch of multiple PV plants, multimaintainer, multiobjective, and multipoint departure. By multitype cost function, different assignment constraints or cost considerations can be set, such as arrival within a specified time or minimum time cost of transportation costs. We ascertain that the proposed model will lead the way.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare that they have no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.