A photovoltaic power station output prediction method, device, equipment and medium
The clustering algorithm is used to classify the historical data of photovoltaic power stations and establish a prediction model, which solves the problem of photovoltaic power station output prediction relying on external data and achieves efficient and accurate output prediction.
Patent Information
- Application Number
- CN202410174767.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-02-07
AI Technical Summary
The output prediction of existing photovoltaic power stations relies on weather forecast or optical power prediction data, which results in high costs and unsatisfactory prediction results. It is also difficult to accurately determine the maximum power generation power when the power generation of the prototype machine is limited.
By obtaining the historical data of each inverter of the photovoltaic power station, clustering algorithms (such as quantum particle swarm optimization algorithm and improved quantum particle swarm K-means clustering algorithm) are used to classify the data and establish preset photovoltaic inverter output predictions. The model determines the target clustering results based on the weather level and inverter group number of the day to be predicted, and trains the model to predict the output.
It reduces the cost of prediction, improves the accuracy of prediction results, reduces the dependence on external data, and enhances the real-time and accuracy of prediction.
Smart Images

Figure CN118017597B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic power generation prediction, and in particular to a photovoltaic power station output prediction method, device, equipment and medium. Background Art
[0002] With the continuous development of renewable energy power generation, the status of photovoltaic power generation in renewable energy is also constantly improving. Therefore, the calculation of the theoretical active power of new energy photovoltaic power generation stations, that is, the calculation of the output value of power stations, is becoming more and more important. In the field of power generation, the output active power is also called output. When predicting the output of photovoltaic power generation stations, it is usually necessary to obtain the output of the model machine and multiply it by the number of inverters in the station to obtain the theoretical active power of the photovoltaic station, that is, the output value. However, when the model machine is also power-restricted, it is impossible to accurately obtain the maximum power that can be generated by the model machine, which will cause errors in the calculation of the theoretical active power of the station.
[0003] When the power generation of the prototype is limited, the existing technology uses the method of accessing weather forecast or optical power prediction data to obtain the theoretical active power, that is, the power generation output. However, this technology needs to access weather forecast data or optical power prediction data, the access method is complicated, and the forecast or prediction data for the theoretical active power calculated in real time still has a large error.
[0004] In the prior art, when predicting the output of a photovoltaic power plant, it is necessary to access external weather forecast or light power prediction data to predict the output of the photovoltaic power plant. The cost of the prediction is high and the prediction effect is not ideal. Summary of the invention
[0005] In view of this, the present invention provides a photovoltaic power station output prediction method, device, equipment and medium to solve the problems of high cost and poor prediction effect when predicting the power generation output of a photovoltaic power station.
[0006] In a first aspect, the present invention provides a method for predicting output of a photovoltaic power station, the method comprising:
[0007] Acquire historical data of each photovoltaic inverter of the photovoltaic power station, wherein the attributes of the historical data include: group number of the photovoltaic inverter, output information of the photovoltaic inverter on the day, and weather level on the day;
[0008] Clustering the historical data based on a clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes;
[0009] According to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter, a target clustering result corresponding to the sample photovoltaic inverter is determined from each clustering result;
[0010] Training a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model;
[0011] Inputting the weather level of the day to be predicted and the group number of the sample photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the sample photovoltaic inverter;
[0012] The predicted output result of the photovoltaic power station is calculated based on the predicted output information of the sample photovoltaic inverter.
[0013] By obtaining the historical output information of each photovoltaic inverter of the photovoltaic power station, the weather level of the day, and the group number corresponding to each photovoltaic inverter, a large amount of sample data is obtained, and these data are classified by clustering algorithm. Then, according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter, the close data is determined from the clustering results to train the prediction model, so as to predict the output result of the day to be predicted according to the trained prediction model. This method can greatly reduce cost consumption by obtaining historical data to train the model to predict output, and due to the similarity of the training data, the accuracy of the prediction results can be greatly improved.
[0014] In an optional implementation, the clustering algorithm includes: a quantum particle swarm optimization algorithm; the historical data is clustered based on the clustering algorithm and the attributes of the historical data to obtain multiple clustering results, each clustering result contains historical data with similar attributes, including:
[0015] Determine a plurality of cluster centers based on the quantum particle swarm optimization algorithm in the clustering algorithm and the attributes of the historical data;
[0016] Aggregation is performed according to the Euclidean distance between each historical data and the cluster center to obtain multiple clustering results, each of which contains historical data with attributes similar to the cluster center.
[0017] The cluster center is determined by the quantum particle swarm optimization algorithm in the clustering algorithm, so that a large amount of historical data can be aggregated to the close cluster center, which can quickly and effectively classify the data.
[0018] In an optional embodiment, the method further includes:
[0019] After obtaining multiple clustering results, the cluster center is updated according to the mean of the historical data in each clustering result;
[0020] The data are aggregated again according to the Euclidean distance between each historical data and the cluster center, and the clustering result is updated until the sum of the Euclidean distance between the historical data and the cluster center in each clustering result no longer changes.
[0021] After obtaining the clustering results, multiple iterations are performed based on the mean of each clustering result data to further ensure the accuracy of data classification and obtain better classification results.
[0022] In an optional implementation, the step of determining a target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter includes:
[0023] Determine the weather level and group number corresponding to each cluster center;
[0024] Compare the weather level of the day to be predicted and the group number of the sample photovoltaic inverter with the weather level and group number corresponding to each cluster center, and obtain the target cluster center that is closest to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter;
[0025] The clustering result corresponding to the target clustering center is determined as the target clustering result corresponding to the model photovoltaic inverter.
[0026] By comparing the weather level of the day to be predicted and the group number of the model photovoltaic inverter with the weather level and group number corresponding to each cluster center, the closest cluster center and its corresponding clustering result can be determined. The historical data set closest to the day to be predicted and the group number of the model photovoltaic inverter can be obtained for subsequent training, which can ensure the prediction accuracy of the trained prediction model.
[0027] In an optional implementation manner, the weather level of the day is obtained as follows:
[0028] Determine a weather level mapping relationship of the model photovoltaic inverter according to the group number of the model photovoltaic inverter in the photovoltaic inverter, wherein the weather level mapping relationship is used to characterize the weather levels corresponding to different output intervals of the model photovoltaic inverter within a preset time period;
[0029] The weather level for the day is determined based on the output information of the model photovoltaic inverter within the preset time period on the day and the weather level mapping relationship.
[0030] The weather level of the day is determined by the group number of the PV inverter and the output information of the day. The weather level corresponding to the historical data can be determined more quickly without accessing external weather forecast information, and the relationship between the PV inverter group number and output information and the weather level can be established to improve the accuracy of the prediction when predicting the output later.
[0031] In an optional implementation, the model photovoltaic inverter includes: a plurality of first model photovoltaic inverters with different group numbers, and the predicted output result of the photovoltaic power station is calculated based on the predicted output information of the model photovoltaic inverter, including:
[0032] Obtaining the number of photovoltaic inverters in the photovoltaic power station having the same group number as each first sample photovoltaic inverter;
[0033] Based on the predicted output information of the current first model photovoltaic inverter and the number of photovoltaic inverters with the same group number corresponding to the current first model photovoltaic inverter in the photovoltaic power station, the predicted output value corresponding to the photovoltaic inverter with the current group number in the photovoltaic power station is calculated;
[0034] The predicted output values corresponding to photovoltaic inverters of different groups in the photovoltaic power station are summed to obtain the predicted output result of the photovoltaic power station.
[0035] By predicting the output information of multiple sample photovoltaic inverters with different group numbers and the number of photovoltaic inverters of each group number in the photovoltaic power station, the output value of the photovoltaic inverters of each group number is calculated, and the output value of the entire power station is obtained by summing them up. Since the sample photovoltaic inverters of different group numbers are predicted, the accuracy of the output prediction results of the entire photovoltaic power station is guaranteed.
[0036] In an optional implementation, the clustering algorithm is: a K-means clustering algorithm based on an improved quantum particle swarm;
[0037] Clustering the historical data based on a clustering algorithm and attributes of the historical data includes:
[0038] Determining the number of clusters when clustering by the elbow rule, and clustering the historical data based on the number of clusters and the K-means clustering algorithm based on the improved quantum particle swarm;
[0039] The preset photovoltaic inverter output prediction model is: an extreme learning machine prediction model;
[0040] The training of a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result includes:
[0041] Screening the historical data in the target clustering results by using grey correlation analysis method;
[0042] The extreme learning machine prediction model is trained based on the filtered historical data.
[0043] Clustering is performed by improving the K-means clustering algorithm of quantum particle swarm, and the number of clusters is determined by the elbow rule before clustering to further ensure the clustering effect; after obtaining the target clustering results, the data is further screened by the grey correlation analysis method to ensure the accuracy of the data, and the prediction model is trained according to the extreme learning machine to ensure the training effect.
[0044] In a second aspect, the present invention provides a photovoltaic power station output prediction device, the device comprising:
[0045] A data acquisition module is used to acquire historical data of each photovoltaic inverter of the photovoltaic power station, and the attributes of the historical data include: the group number of the photovoltaic inverter, the output information of the photovoltaic inverter on the day, and the weather level on the day;
[0046] A clustering analysis module, used for clustering the historical data based on a clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes;
[0047] A classification determination module, used to determine a target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter;
[0048] A model training module, used to train a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model;
[0049] The output calculation module is used to input the weather level of the predicted day and the group number of the model photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the model photovoltaic inverter; based on the predicted output information of the model photovoltaic inverter, the predicted output result of the photovoltaic power station is calculated.
[0050] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the photovoltaic power station output prediction method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0051] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the photovoltaic power station output prediction method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 is a flow chart of a photovoltaic power station output prediction method according to an embodiment of the present invention;
[0054] Figure 2 is a flow chart of another photovoltaic power station output prediction method according to an embodiment of the present invention;
[0055] Figure 3 is a structural block diagram of a photovoltaic power station output prediction device according to an embodiment of the present invention;
[0056] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0058] When predicting the output of photovoltaic power stations, the current existing technology uses the method of accessing weather forecast or light power prediction data to obtain the theoretical active power, that is, the power generation output. However, this technology requires access to weather forecast data or light power prediction data, the access method is complicated, and the forecast or prediction data for the theoretical active power calculated in real time still has a large error.
[0059] To this end, an embodiment of the present invention provides a photovoltaic power station output prediction method, which obtains a large amount of sample data by obtaining the historical output information of each photovoltaic inverter of the photovoltaic power station, the weather level of the day, and the group number corresponding to each photovoltaic inverter, and classifies these data through a clustering algorithm, and then determines the close data from the clustering results according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter to train the prediction model, so as to predict the output result of the day to be predicted according to the trained prediction model. The embodiment of the present invention can greatly reduce cost consumption by obtaining historical data to train the model to predict the output, and due to the similarity of the training data, the accuracy of the prediction result can be greatly improved.
[0060] According to an embodiment of the present invention, an embodiment of a photovoltaic power station output prediction method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0061] In this embodiment, a photovoltaic power station output prediction method is provided, which can be used for the above photovoltaic power station output prediction. Figure 1 is a flow chart of a photovoltaic power station output prediction method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0062] Step S101, obtaining historical data of each photovoltaic inverter of the photovoltaic power station, the attributes of the historical data include: the group number of the photovoltaic inverter, the output information of the photovoltaic inverter on the day and the weather level on the day.
[0063] In a photovoltaic power station, due to the physical differences of different photovoltaic inverters such as location and quality, the photovoltaic inverters in the photovoltaic power station will be grouped. For example, the quality of photovoltaic inverters in a certain area is the same, and the lighting conditions in the area are also similar. The photovoltaic inverters in this area will be divided into a group, that is, they have the same group number, such as group number 1; photovoltaic inverters in other areas close to this area can be divided into similar group numbers, such as group number 2. Specifically, the entire photovoltaic power station can be divided into 10 areas. The actual number of regional divisions can be determined based on actual conditions and is not limited here.
[0064] The photovoltaic power station can read the historical output of each photovoltaic inverter, such as the output value of a photovoltaic inverter on a certain day in the past. When reading the output value, you can extract an output value of the photovoltaic inverter in each period of the day, such as an output value every five minutes, and finally accumulate it to get the output value of the day. At the same time, you can also count the output conditions of each period of the day to form the output information of the day, that is, the output information can include the total output of the day and the output conditions in each time period. After extracting the output information of the photovoltaic inverter on the day, you will also get the group number corresponding to the photovoltaic inverter and the weather level of the day.
[0065] This information is used as an attribute of historical data to form a historical data. When extracting the historical data of each photovoltaic inverter in the photovoltaic field, the historical data of all photovoltaic inverters in a historical period of time, such as one year or one month, can be obtained for subsequent clustering. It should be noted that in the actual power generation of photovoltaic power stations, power restrictions may occur, resulting in the need to limit the output of photovoltaic inverters. Therefore, in order to predict the maximum output that the photovoltaic power station can actually generate, the historical data we obtain are all historical data under the condition of no power restriction.
[0066] Step S102 , clustering the historical data based on the clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes.
[0067] Each historical data has three attributes, namely, the photovoltaic inverter group number, the weather level of the photovoltaic inverter on that day, and the output information of the photovoltaic inverter on that day. The data acquired in step S101 are clustered according to these attributes through a clustering algorithm to obtain multiple clustering results, so as to classify these data, so that the three attribute values of each historical data in each clustering result are similar, that is, the historical data in each classification result are similar.
[0068] Step S103, determining a target clustering result corresponding to the model photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the model photovoltaic inverter.
[0069] When making a prediction, the weather level of the day to be predicted is first determined. Specifically, when determining the weather level of the day to be predicted, the weather level of the day can be determined based on the output of the model photovoltaic inverter in the photovoltaic power station during a certain period of time on the day to be predicted. For example, the weather level of the day is determined based on the output of the model photovoltaic inverter from 8 to 9 in the morning on the day to be predicted. Specifically, different output intervals can be set to correspond to different weather levels, and the weather level of the day is determined based on the interval where the specific output of the model photovoltaic inverter is located in the time period. It should be noted that when determining the weather level of the day based on the output of a certain time period on the day to be predicted, the time period when there is no power restriction on the day should be selected to determine the weather level of the day, because only when there is no power restriction, the output of the photovoltaic inverter corresponds to the weather conditions. In some cases, the determined weather level can be corrected based on human experience to obtain a more accurate weather level.
[0070] At the same time, the group number of the model photovoltaic inverter to be predicted is determined. According to the group number of the model photovoltaic inverter and the weather level on the day to be predicted, the closest clustering result is determined in the clustering results. The group number attribute and weather level attribute corresponding to the historical data in the clustering result are closest to the group number of the model photovoltaic inverter and the weather level on the day to be predicted. The closest clustering result is determined as the target clustering result.
[0071] Step S104: training a preset photovoltaic inverter output prediction model based on historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model.
[0072] The historical data in the clustering results determined in step S103 are used as sample data to train the preset photovoltaic inverter output prediction model. Specifically, the preset photovoltaic inverter output prediction model can be an extreme learning machine (ELM). During training, the historical data can be divided into training data and test data. After the model is trained, the structure of the model is determined according to the test results of the test data, thereby obtaining a trained target photovoltaic inverter output prediction model.
[0073] Step S105, inputting the weather level of the day to be predicted and the group number of the sample photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the sample photovoltaic inverter.
[0074] After the target photovoltaic inverter output prediction model is trained, the weather level of the day to be predicted and the group number of the model photovoltaic inverter mentioned in step S103 are input into the target photovoltaic inverter output prediction model, and the output of the model photovoltaic inverter is predicted to obtain the output value of the model photovoltaic inverter on the day to be predicted. At the same time, since the predicted output information in the historical data mentioned as training data includes not only the total output value of the historical day, but also the output conditions in each time period of the day, the model trained according to these training data can not only predict the total output of the day to be predicted, but also predict the output conditions in each time period of the day to be predicted.
[0075] Step S106, calculating and obtaining the predicted output result of the photovoltaic power station according to the predicted output information of the sample photovoltaic inverter.
[0076] The output prediction information of the model photovoltaic inverter on the day to be predicted is multiplied by the number of photovoltaic inverters in the photovoltaic power station to obtain the predicted output information of the entire photovoltaic power station. In order to obtain more accurate results, multiple model photovoltaic inverters with different group numbers can be set, and the corresponding historical data can be obtained according to different group numbers. The target photovoltaic inverter output prediction model corresponding to different model photovoltaic inverters can be trained to predict the output values of multiple model photovoltaic inverters with different group numbers on the day to be predicted. Then, according to the number of photovoltaic inverters with each group number, the output values of photovoltaic inverters with different group numbers in the photovoltaic power station are determined, and the sum is obtained to obtain the predicted output value of the entire photovoltaic power station. As above, in addition to predicting the total output of the entire photovoltaic power station on the day to be predicted, the output conditions of each time period can also be predicted.
[0077] The photovoltaic power station output prediction method provided in this embodiment obtains a large amount of sample data by obtaining the historical output information of each photovoltaic inverter of the photovoltaic power station, the weather level of the day, and the group number corresponding to each photovoltaic inverter, and classifies these data through a clustering algorithm, and then determines the close data from the clustering results according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter to train the prediction model, so as to predict the output result of the day to be predicted according to the trained prediction model. The embodiment of the present invention can greatly reduce cost consumption by obtaining historical data to train the model to predict output, and due to the similarity of the training data, the accuracy of the prediction result can be greatly improved.
[0078] According to an embodiment of the present invention, another photovoltaic power station output prediction method embodiment is provided, which can be used for the above-mentioned photovoltaic power station output prediction. Figure 2 FIG. 4 is a flow chart of another photovoltaic power station output prediction method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0079] Step S201, obtaining historical data of each photovoltaic inverter of the photovoltaic power station, the attributes of the historical data include: the group number of the photovoltaic inverter, the output information of the photovoltaic inverter on the day and the weather level on the day.
[0080] Specifically, in step S201, the weather level of the day is obtained as follows:
[0081] Determine a weather level mapping relationship of the model photovoltaic inverter according to the group number of the model photovoltaic inverter in the photovoltaic inverter, wherein the weather level mapping relationship is used to characterize the weather levels corresponding to different output intervals of the model photovoltaic inverter within a preset time period;
[0082] The weather level for the day is determined based on the output information of the model photovoltaic inverter within the preset time period on the day and the weather level mapping relationship.
[0083] As mentioned above, different photovoltaic inverters in a photovoltaic power station are located at different locations, resulting in certain differences in the amount of light they receive. At the same time, the quality, capacity and other physical conditions of the photovoltaic inverters themselves may be different. Therefore, under the same weather conditions, the output information of different photovoltaic inverters will also be different, but the weather level corresponding to the weather conditions of the day is fixed for all photovoltaic inverters. One or more photovoltaic inverters can be selected from the photovoltaic inverters in the photovoltaic power station as model photovoltaic inverters, and the corresponding weather level mapping relationship can be determined according to the group number of the model photovoltaic inverter. This weather level mapping relationship includes the weather levels corresponding to different output intervals of the model photovoltaic inverter in a preset time period, and the weather level of the day is determined according to the output information of the model photovoltaic inverter in the preset time period.
[0084] For example, take 7:00 to 8:00 in the morning of the day as the preset time period, and assume that the weather level mapping relationship of the model photovoltaic inverter in this time period is that the output range is 100kw to 200kw corresponding to the weather level 1, the output range is 200kw to 300kw corresponding to the weather level 2, and so on. If the output of the model photovoltaic inverter is 250kw from 7:00 to 8:00 in the morning, the weather level of the day is level 2.
[0085] For different model photovoltaic inverters, their weather level mapping relationships may be different due to differences in their locations or their own qualities. However, the weather level of the day determined based on the output information of each model photovoltaic inverter during a preset time period and the corresponding weather level mapping relationship is the same.
[0086] When determining the weather level of the day to be predicted later, the weather level of the day can be determined in combination with the judgment rules mentioned in the above content. The output value in a certain time period in the morning of the day to be predicted can be counted, and the weather level of the day can be determined in the same way as above based on the weather level mapping relationship of the model photovoltaic inverter in the time period and the actual output situation in the time period. It should be noted that when selecting a time period to determine the weather level according to the output situation, since there may be power restrictions on the day to be predicted, resulting in the photovoltaic inverter being unable to generate electricity at full capacity, a time period without power restrictions should be selected to determine the weather level.
[0087] In the above method, the historical weather level for each day can be obtained without accessing weather data, which greatly saves resources and establishes a relationship between the photovoltaic inverter group number and output information and the weather level to improve the accuracy of the prediction when predicting the output in the future.
[0088] Step S202 , clustering the historical data based on the clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes.
[0089] Specifically, in step S202, the clustering algorithm includes: quantum particle swarm optimization algorithm; clustering the historical data based on the clustering algorithm and the attributes of the historical data to obtain multiple clustering results, each clustering result contains historical data with similar attributes, including:
[0090] Based on the quantum particle swarm optimization algorithm in the clustering algorithm and the attributes of the historical data, the historical data are clustered to obtain multiple cluster centers;
[0091] The historical data are aggregated according to the Euclidean distance between each cluster center to obtain multiple clustering results, each of which contains historical data with attributes similar to the cluster center.
[0092] The historical data is processed by the quantum particle swarm optimization algorithm in the clustering algorithm to determine multiple cluster centers in the historical data. The Euclidean distance between each historical data and the cluster center is calculated, so that each historical data is assigned to the cluster center closest to it. Clustering is completed and multiple clustering results are obtained. Each clustering result contains historical data with attributes similar to the cluster center.
[0093] The cluster center is determined by the quantum particle swarm optimization algorithm in the clustering algorithm, so that a large amount of historical data can be aggregated to the close cluster center, which can quickly and effectively classify the data.
[0094] Specifically, in step S202, the clustering algorithm is a K-means clustering algorithm based on an improved quantum particle swarm;
[0095] Clustering the historical data based on a clustering algorithm and attributes of the historical data includes:
[0096] The number of clusters during clustering is determined by the elbow rule, and the historical data is clustered based on the number of clusters and the K-means clustering algorithm based on the improved quantum particle swarm.
[0097] Before clustering, the threshold that changes adaptively with different data sets can be determined based on the clustering evaluation index of the elbow rule and the upper limit of the number of clusters, and the lower limit of the number of clusters can be solved by the adaptive threshold; secondly, the silhouette coefficient is calculated within the upper and lower limits of the number of clusters, and the "one maximum value" rule is proposed to avoid calculating all silhouette coefficients and improve the algorithm speed; finally, the silhouette coefficient is used to select the appropriate number of clusters. After obtaining the number of clusters, the historical data is clustered according to the K-means clustering algorithm based on the improved quantum particle swarm. Clustering is performed by improving the K-means clustering algorithm of the quantum particle swarm, and the number of clusters is determined by the elbow rule before clustering, which can further ensure the clustering effect.
[0098] When clustering is performed according to the K-means clustering algorithm based on the improved quantum particle swarm, the specific method is to randomly divide the acquired historical data into K clusters, and calculate the mean of these clusters to form particles, and repeat this process to obtain N particles; calculate the average value and local attractor of the optimal position of all individual particles, and design the population contraction-expansion factor and random variables; calculate the current fitness value of each particle; update the individual optimal value and the global optimal value in the mountain photovoltaic data based on the comparison of the current particle fitness with the individual optimal fitness of the particle and the optimal fitness of the group; update all particle positions and perform boundary mutation processing. If the optimal solution is at the boundary position, it is easy to cause the population to fall into the local optimum. It is necessary to perform mutation processing on the boundary to avoid the particle position being at the maximum position boundary and the minimum position boundary set in the mountain photovoltaic; check whether the end condition is met: if the exit condition cannot be met. That is, if the maximum number of iterations is not reached, repeat the above steps for iteration. If the launch conditions are met, output the global optimal fitness and the global optimal position, that is, the final cluster center. For each data object, calculate the distance to the final cluster center, and determine the clustering division of the data object according to the nearest neighbor rule. Finally, assign all sample data to the corresponding cluster center to complete the clustering.
[0099] The purpose of clustering historical data by the above-mentioned K-means clustering algorithm based on improved quantum particle swarm is to ensure the classification effect of historical data. In specific implementation, other clustering algorithms can also be used to classify historical data, and no specific restrictions are made here.
[0100] Step S203, after obtaining multiple clustering results, updating the cluster center according to the mean of the historical data in each clustering result;
[0101] The data are aggregated again according to the Euclidean distance between each historical data and the cluster center, and the clustering results are updated until the sum of the Euclidean distance between the historical data and the cluster center in each clustering result no longer changes.
[0102] After obtaining the clustering results according to the clustering algorithm, the value of the data corresponding to the cluster center can be updated according to the mean of the historical data in each clustering result. After the update, the data is converged again according to the Euclidean distance between each historical data and the cluster center to obtain the updated clustering results. The clustering results will not be updated until the Euclidean distance from each historical data to the cluster center in each clustering result is not changed by the update again.
[0103] Step S204, determining a target clustering result corresponding to the model photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the model photovoltaic inverter.
[0104] Specifically, in step S204, according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter, the target clustering result corresponding to the sample photovoltaic inverter is determined from each clustering result, including:
[0105] Determine the weather level and group number corresponding to each cluster center;
[0106] The weather level of the day to be predicted and the group number of the sample photovoltaic inverter are compared with the weather level and group number corresponding to each cluster center, and the target cluster center closest to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter is obtained;
[0107] The clustering result corresponding to the target clustering center is determined as the target clustering result corresponding to the sample photovoltaic inverter.
[0108] It can be understood that the data in the clustering results corresponding to different cluster centers are quite different. The weather level and group number corresponding to each cluster center are determined, and compared with the weather level of the day to be predicted and the group number of the sample photovoltaic inverter to be predicted. When comparing, the Euclidean distance between the two can be calculated. The cluster center with the smallest Euclidean distance is the closest cluster center. This cluster center is determined as the target cluster center, and its corresponding historical data is closer to the weather level of the day to be predicted and the sample photovoltaic inverter. The historical data in the clustering results corresponding to the target cluster center is used as sample data to train the prediction model, which can ensure the prediction accuracy of the trained prediction model.
[0109] By comparing the weather level of the day to be predicted and the group number of the model photovoltaic inverter with the weather level and group number corresponding to each cluster center, the closest cluster center and its corresponding clustering result can be determined. The historical data set closest to the day to be predicted and the group number of the model photovoltaic inverter can be obtained for subsequent training, which can ensure the prediction accuracy of the trained prediction model.
[0110] Step S205 , training a preset photovoltaic inverter output prediction model based on historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model.
[0111] Specifically, the preset photovoltaic inverter output prediction model is: an extreme learning machine prediction model;
[0112] The training of a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result includes:
[0113] Screening the historical data in the target clustering results by using grey correlation analysis method;
[0114] The extreme learning machine prediction model is trained based on the filtered historical data.
[0115] It can be understood that the preset photovoltaic inverter output prediction model is constructed based on extreme learning and prediction models. After determining the target clustering results, in addition to directly using the data in the target clustering results as training data to train the model, the historical data in the target clustering results can be further screened through the grey correlation analysis method to obtain data that is closer to the conditions on the day to be predicted, select more appropriate data, and further ensure the prediction effect of the model.
[0116] Step S206: Input the weather level of the day to be predicted and the group number of the sample photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the sample photovoltaic inverter. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0117] Step S207, calculating the predicted output result of the photovoltaic power station according to the predicted output information of the sample photovoltaic inverter.
[0118] Specifically, the sample photovoltaic inverter includes: a plurality of first sample photovoltaic inverters with different group numbers. In the above steps S204 to S206, the first sample photovoltaic inverters with different group numbers are subjected to the above corresponding steps to obtain the cluster centers corresponding to each first sample photovoltaic inverter, thereby determining the corresponding clustering results and the corresponding historical data, and training the prediction models for the first sample photovoltaic inverters with different group numbers based on the historical data corresponding to these different clustering results, and predicting the output values of different sample photovoltaic inverters and the output of the photovoltaic inverters at various time periods on the day based on the weather level on the day to be predicted and the group numbers of each first sample photovoltaic inverter.
[0119] Specifically, in step S207, the predicted output result of the photovoltaic power station is calculated based on the predicted output information of the sample photovoltaic inverter, including:
[0120] Obtain the number of photovoltaic inverters in the photovoltaic power station that have the same group number as each first sample photovoltaic inverter;
[0121] Based on the predicted output information of the current first sample photovoltaic inverter and the number of photovoltaic inverters with the same group number corresponding to the current first sample photovoltaic inverter in the photovoltaic power station, the predicted output value corresponding to the photovoltaic inverter with the current group number in the photovoltaic power station is calculated;
[0122] The predicted output values corresponding to photovoltaic inverters of different groups in the photovoltaic power station are summed to obtain the predicted output result of the photovoltaic power station.
[0123] It can be understood that the number of photovoltaic inverters corresponding to the group number of each first-panel photovoltaic inverter in the photovoltaic power station is obtained. For example, the group numbers of multiple first-panel photovoltaic inverters are 1, 2, and 3 respectively. In the photovoltaic power station, the number of photovoltaic inverters with group number 1 is 10, the number of photovoltaic inverters with group number 2 is 20, and the number of photovoltaic inverters with group number 3 is 30. This is just an example, and the number of photovoltaic inverters with various group numbers is determined according to actual conditions. The output information of the first-panel photovoltaic inverter of each group number, that is, the predicted output value, is multiplied by the corresponding number of photovoltaic inverters with the same group number to calculate the overall predicted output value corresponding to the photovoltaic inverter of the current group number in the photovoltaic power station; finally, the overall predicted output values corresponding to photovoltaic inverters with different group numbers are summed to obtain the predicted output of the entire photovoltaic power station.
[0124] The photovoltaic power station output prediction method provided by the embodiment of the present invention obtains the historical output information of each photovoltaic inverter of the photovoltaic power station, the corresponding group number and the weather level of the day, summarizes a large amount of historical data, and classifies these data through a clustering algorithm, and then finds similar data from the clustering results according to the weather level on the day to be predicted and the group number of the model photovoltaic inverter to be predicted, so as to train and obtain a prediction model corresponding to the model photovoltaic inverter, and finally obtains the predicted output of each model photovoltaic inverter on the day to be predicted, thereby obtaining the predicted output result of the entire power station on the day to be predicted, which can greatly reduce the cost consumption required for output prediction, and due to the similarity of the training data, can greatly improve the accuracy of the prediction result.
[0125] In this embodiment, a photovoltaic power station output prediction device is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0126] This embodiment provides a photovoltaic power station output prediction device, such as Figure 3Shown, including
[0127] The data acquisition module 301 is used to acquire the historical data of each photovoltaic inverter of the photovoltaic power station. The attributes of the historical data include: the group number of the photovoltaic inverter, the output information of the photovoltaic inverter on the day, and the weather level on the day;
[0128] A cluster analysis module 302 is used to cluster the historical data based on a clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes;
[0129] The classification determination module 303 is used to determine the target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter;
[0130] A model training module 304 is used to train a preset photovoltaic inverter output prediction model based on historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model;
[0131] The output calculation module 305 is used to input the weather level of the predicted day and the group number of the model photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the model photovoltaic inverter; based on the predicted output information of the model photovoltaic inverter, the predicted output result of the photovoltaic power station is calculated.
[0132] In some optional implementations, the clustering algorithm includes: a quantum particle swarm optimization algorithm; a clustering analysis module 302 clusters the historical data based on the clustering algorithm and the attributes of the historical data to obtain multiple clustering results, each of which contains historical data with similar attributes, including:
[0133] Determine multiple cluster centers based on the quantum particle swarm optimization algorithm in the clustering algorithm and the attributes of the historical data;
[0134] Aggregation is performed based on the Euclidean distance between each historical data and the cluster center to obtain multiple clustering results, each of which contains historical data with attributes similar to the cluster center.
[0135] In some optional implementations, the cluster analysis module 302, after obtaining a plurality of clustering results, updates the cluster center according to the mean of the historical data in each clustering result;
[0136] The data are aggregated again according to the Euclidean distance between each historical data and the cluster center, and the clustering results are updated until the sum of the Euclidean distance between the historical data and the cluster center in each clustering result no longer changes.
[0137] In some optional implementations, the classification determination module 303 determines the target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter, including:
[0138] Determine the weather level and group number corresponding to each cluster center;
[0139] The weather level of the day to be predicted and the group number of the sample photovoltaic inverter are compared with the weather level and group number corresponding to each cluster center, and the target cluster center closest to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter is obtained;
[0140] The clustering result corresponding to the target clustering center is determined as the target clustering result corresponding to the sample photovoltaic inverter.
[0141] In some optional implementations, in the data acquisition module 301, the weather level of the day is acquired as follows: determining the weather level mapping relationship of the model photovoltaic inverter according to the group number of the model photovoltaic inverter in the photovoltaic inverter, and the weather level mapping relationship is used to characterize the weather level corresponding to different output intervals of the model photovoltaic inverter within a preset time period;
[0142] The weather level for the day is determined based on the output information of the model photovoltaic inverter within the preset time period on the day and the weather level mapping relationship.
[0143] In some optional implementations, the model photovoltaic inverter includes: a plurality of first model photovoltaic inverters with different group numbers, and the output calculation module 305 calculates the predicted output result of the photovoltaic power station according to the predicted output information of the model photovoltaic inverter, including:
[0144] Obtain the number of photovoltaic inverters in the photovoltaic power station that have the same group number as each first sample photovoltaic inverter;
[0145] Based on the predicted output information of the current first sample photovoltaic inverter and the number of photovoltaic inverters with the same group number corresponding to the current first sample photovoltaic inverter in the photovoltaic power station, the predicted output value corresponding to the photovoltaic inverter with the current group number in the photovoltaic power station is calculated;
[0146] The predicted output values corresponding to photovoltaic inverters of different groups in the photovoltaic power station are summed to obtain the predicted output result of the photovoltaic power station.
[0147] In some optional embodiments, the clustering algorithm is: a K-means clustering algorithm based on an improved quantum particle swarm;
[0148] Clustering the historical data based on a clustering algorithm and attributes of the historical data includes:
[0149] Determining the number of clusters when clustering by the elbow rule, and clustering the historical data based on the number of clusters and the K-means clustering algorithm based on the improved quantum particle swarm;
[0150] The preset photovoltaic inverter output prediction model is: an extreme learning machine prediction model;
[0151] The training of a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result includes:
[0152] Screening the historical data in the target clustering results by using grey correlation analysis method;
[0153] The extreme learning machine prediction model is trained based on the filtered historical data.
[0154] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0155] The photovoltaic power station output prediction device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0156] The embodiment of the present invention also provides a computer device having the above Figure 3 The photovoltaic power station output prediction device shown.
[0157] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0158] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0159] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0160] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0161] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0162] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0163] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0164] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0165] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A photovoltaic power station output prediction method, characterized in that: The method comprises: Acquire historical data of each photovoltaic inverter of the photovoltaic power station, wherein the attributes of the historical data include: group number of the photovoltaic inverter, output information of the photovoltaic inverter on the day, and weather level on the day; Clustering the historical data based on a clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes; According to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter, a target clustering result corresponding to the sample photovoltaic inverter is determined from each clustering result; Training a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model; Inputting the weather level of the day to be predicted and the group number of the sample photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the sample photovoltaic inverter; Calculating the predicted output result of the photovoltaic power station according to the predicted output information of the sample photovoltaic inverter; The clustering algorithm includes: quantum particle swarm optimization algorithm; The historical data is clustered based on the clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes, including: Determine a plurality of cluster centers based on the quantum particle swarm optimization algorithm in the clustering algorithm and the attributes of the historical data; Aggregating the historical data according to the Euclidean distance between each historical data and the cluster center to obtain multiple clustering results, each clustering result containing historical data with attributes similar to the cluster center; The step of determining the target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter includes: Determine the weather level and group number corresponding to each cluster center; Compare the weather level of the day to be predicted and the group number of the sample photovoltaic inverter with the weather level and group number corresponding to each cluster center, and obtain the target cluster center that is closest to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter; The clustering result corresponding to the target clustering center is determined as the target clustering result corresponding to the model photovoltaic inverter.
2. The method according to claim 1, characterized in that The method further comprises: After obtaining multiple clustering results, the cluster center is updated according to the mean of the historical data in each clustering result; The data are aggregated again according to the Euclidean distance between each historical data and the cluster center, and the clustering result is updated until the sum of the Euclidean distance between the historical data and the cluster center in each clustering result no longer changes.
3. The method according to claim 1, characterized in that: The weather level of the day is obtained as follows: Determine a weather level mapping relationship of the model photovoltaic inverter according to the group number of the model photovoltaic inverter in the photovoltaic inverter, wherein the weather level mapping relationship is used to characterize the weather levels corresponding to different output intervals of the model photovoltaic inverter within a preset time period; The weather level for the day is determined based on the output information of the model photovoltaic inverter within the preset time period on the day and the weather level mapping relationship.
4. The method according to claim 1, characterized in that: The sample photovoltaic inverter includes: a plurality of first sample photovoltaic inverters with different group numbers, and the predicted output result of the photovoltaic power station is calculated based on the predicted output information of the sample photovoltaic inverter, including: Obtaining the number of photovoltaic inverters in the photovoltaic power station having the same group number as each first sample photovoltaic inverter; Based on the predicted output information of the current first model photovoltaic inverter and the number of photovoltaic inverters with the same group number corresponding to the current first model photovoltaic inverter in the photovoltaic power station, the predicted output value corresponding to the photovoltaic inverter with the current group number in the photovoltaic power station is calculated; The predicted output values corresponding to photovoltaic inverters of different groups in the photovoltaic power station are summed to obtain the predicted output result of the photovoltaic power station.
5. The method according to claim 1, characterized in that The clustering algorithm is: K-means clustering algorithm based on improved quantum particle swarm; Clustering the historical data based on a clustering algorithm and attributes of the historical data includes: Determining the number of clusters when clustering by the elbow rule, and clustering the historical data based on the number of clusters and the K-means clustering algorithm based on the improved quantum particle swarm; The preset photovoltaic inverter output prediction model is: an extreme learning machine prediction model; The training of a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result includes: Screening the historical data in the target clustering results by using grey correlation analysis method; The extreme learning machine prediction model is trained based on the filtered historical data.
6. A photovoltaic power station output prediction device, characterized in that: The device comprises: A data acquisition module is used to acquire historical data of each photovoltaic inverter of the photovoltaic power station, and the attributes of the historical data include: the group number of the photovoltaic inverter, the output information of the photovoltaic inverter on the day, and the weather level on the day; A clustering analysis module, used for clustering the historical data based on a clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes; A classification determination module, used to determine a target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter; A model training module, used to train a preset photovoltaic inverter output prediction model based on the historical data in the target clustering result to obtain a target photovoltaic inverter output prediction model; An output calculation module, used for inputting the weather level of the day to be predicted and the group number of the sample photovoltaic inverter into the target photovoltaic inverter output prediction model to obtain the predicted output information of the sample photovoltaic inverter; and calculating the predicted output result of the photovoltaic power station according to the predicted output information of the sample photovoltaic inverter; The clustering algorithm includes: quantum particle swarm optimization algorithm; The historical data is clustered based on the clustering algorithm and the attributes of the historical data to obtain a plurality of clustering results, each of which contains historical data with similar attributes, including: Determine a plurality of cluster centers based on the quantum particle swarm optimization algorithm in the clustering algorithm and the attributes of the historical data; Aggregating the historical data according to the Euclidean distance between each historical data and the cluster center to obtain multiple clustering results, each clustering result containing historical data with attributes similar to the cluster center; The step of determining the target clustering result corresponding to the sample photovoltaic inverter from each clustering result according to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter includes: Determine the weather level and group number corresponding to each cluster center; Compare the weather level of the day to be predicted and the group number of the sample photovoltaic inverter with the weather level and group number corresponding to each cluster center, and obtain the target cluster center that is closest to the weather level of the day to be predicted and the group number of the sample photovoltaic inverter; The clustering result corresponding to the target clustering center is determined as the target clustering result corresponding to the model photovoltaic inverter.
7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the photovoltaic power station output prediction method according to any one of claims 1 to 5 by executing the computer instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the photovoltaic power station output prediction method according to any one of claims 1 to 5.
