A management optimization method for photovoltaic power station settlement system based on rule formalization

By constructing a unified rule base and introducing mathematical models, the photovoltaic power station settlement system is optimized, solving the problems of low settlement accuracy and efficiency caused by static rules, achieving a more efficient and accurate settlement process, and adapting to the rapid development of the photovoltaic power generation industry. .

CN118332316BActive Publication Date: 2024-10-22HUANENG JIANGSU COMPREHENSIVE ENERGY SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749443.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-22
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The rules of the existing photovoltaic power station settlement system are mostly static and difficult to keep up with changes in policies, regulations and market environment, resulting in low settlement accuracy and efficiency, and unable to meet the needs of rapid development.

Method used

By collecting historical data, we build a unified rule base and optimize it based on time characteristics. We combine RIPPER and time series analysis algorithms for rule mining, detect and resolve rule conflicts, and introduce mathematical models to optimize data quality and concurrent execution to improve the intelligence of the settlement system. level.

Benefits of technology

It has significantly improved the accuracy and efficiency of the settlement system, improved the consistency and reliability of the rules, enhanced the adaptability and automation of the system, and met the rapid development needs of the photovoltaic power generation industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332316B_ABST
    Figure CN118332316B_ABST
Patent Text Reader

Abstract

The present invention discloses a photovoltaic power station settlement system management optimization method based on rule formalization, which relates to the field of settlement optimization technology, including collecting historical data to determine data features, and building a unified rule base based on time features; further detecting and judging the conflict type based on the built rule base, determining the rule priority to optimize the rule base; based on the optimized rule base, introducing a mathematical model to optimize the data quality and concurrent execution of the settlement process respectively, and combining the time series to optimize the settlement system. The present invention maximizes the use of time features to build a high-quality rule base, effectively solves the problem of rule conflicts, improves the consistency and reliability of rules, reasonably handles priorities to ensure the controllability of rule execution, introduces mathematical models and time series analysis to optimize settlement accuracy, efficiency and adaptability, significantly improves the intelligence level of the photovoltaic power station settlement system, and ensures the accuracy and reliability of settlement results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of settlement optimization, and in particular to a photovoltaic power station settlement system management optimization method based on rule formalization. Background Art

[0002] At present, the photovoltaic power generation industry is in a period of rapid development. On the one hand, the state has introduced a series of policies to encourage the development of photovoltaic power generation, such as additional subsidies for renewable energy electricity prices, subsidies for distributed photovoltaic power generation, tax and fee reductions, etc., which have created a good policy environment for the construction and operation of photovoltaic power stations. On the other hand, photovoltaic power generation technology continues to innovate, component conversion efficiency continues to improve, and intelligent equipment and operation and maintenance methods are widely used, which has greatly reduced the construction and operation costs of photovoltaic power stations and enhanced their economic efficiency. At the same time, the process of industrialization and urbanization has accelerated, the demand for electricity has continued to rise, and the enhancement of environmental awareness has also promoted the demand for clean energy, creating a broad market space for photovoltaic power generation. The coordinated development of the upstream, midstream and downstream links of the photovoltaic industry chain has formed a relatively complete ecological system, laying the foundation for the sustained and healthy development of the industry.

[0003] In addition, the combined application of photovoltaic power generation and energy storage technology is conducive to solving the intermittent and uncontrollable problems of photovoltaic power generation and improving energy efficiency. Therefore, driven by favorable factors such as policy support, technological progress, and market demand, the photovoltaic power generation industry is experiencing a period of rapid development. However, at the same time, the continuous expansion of the industry scale has also brought huge challenges to the existing settlement management system, and new optimization and upgrading solutions are urgently needed to adapt to development needs.

[0004] However, the corresponding rules in the existing photovoltaic power station settlement system are mostly static, and it is difficult to keep up with the changes in policies and regulations, market environment, user needs, etc. When new rules need to be updated, manual intervention is often required, which takes a long time. There is a lack of scientific evaluation of the scope and probability of application of the rules, which leads to the abuse or omission of many rules, affecting the accuracy of settlement. In addition, during the settlement process, there are often abnormal electricity data and missing weather data. The existing system has poor processing capabilities for such abnormal situations and requires manual intervention. Due to algorithm and model limitations, it is difficult for the existing system to efficiently process large-scale settlement tasks in parallel, which restricts throughput and real-time performance and cannot meet the growing demand. There is an urgent need for an intelligent settlement optimization method that can improve settlement accuracy and efficiency, improve the level of automation, adapt to business changes, and meet the rapid development needs of the photovoltaic power generation industry. Summary of the invention

[0005] In view of the problems existing in the existing photovoltaic power station settlement system management optimization method based on rule formalization, the present invention is proposed.

[0006] Therefore, the problem to be solved by the present invention is how to optimize the settlement system, improve settlement accuracy and efficiency, and meet the rapid development needs of the photovoltaic power generation industry.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] In the first aspect, an embodiment of the present invention provides a photovoltaic power station settlement system management optimization method based on rule formalization, which includes collecting historical data to determine data characteristics, and constructing a unified rule base based on time characteristics; further detecting and judging the conflict type based on the constructed rule base, determining the rule priority to optimize the rule base; based on the optimized rule base, introducing a mathematical model to optimize the data quality and concurrent execution of the settlement process respectively, and optimizing the settlement system in combination with time series.

[0009] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization described in the present invention, the data characteristics include: user characteristics, electricity price characteristics, time characteristics, electricity consumption characteristics, weather characteristics and other characteristics.

[0010] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization of the present invention, wherein: based on the time characteristics, a hybrid algorithm combining RIPPER and a time series analysis algorithm is used to mine rules for the characteristics; wherein the time series analysis algorithm adopts a combination of an ARIMA model and a CNN model, and for each rule r, different ARIMA and CNN models are used to respectively determine its applicable probability p r (t) Modeling is performed to obtain the prediction values ​​of different models; the outputs of different models are weighted averaged to obtain the final integrated prediction; further, the weight coefficient is calculated by cross-validation, including: obtaining training sets and validation sets based on historical data, the training set is used to estimate the parameters of each single model, and the validation set is used to evaluate the performance of the integrated model and optimize the weight coefficient; for each single model, the model parameters are estimated using the training set, and predictions are made on the validation set to obtain the probability p of the model being applicable to the rule r The prediction sequence of (t) is denoted as ;calculate Compared with the true p on the validation set r (t), and obtain an evaluation score s i ; By normalizing the evaluation scores of each model, the initial weight value of the model integration is obtained:

[0011] ,

[0012] Where n is the total number of models, Indicates the probability p that the jth model applies the rule on the validation setr The difference between the predicted sequence and the true value of (t); based on As the initial solution, a random search optimization algorithm is used to optimize the weight coefficient of the integrated model on the validation set. The goal is to minimize the error between the integrated model and the true value. During the optimization process, Constraints of , get the weight coefficient with the best performance on the validation set .

[0013] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization described in the present invention, wherein: the conflict types include logical conflicts and structured conflicts. The logical conflict is determined by formalizing each rule in the rule base into a logical expression or inference rule, and using a logical inference engine for reasoning. If there is a contradiction between the premises of two or more rules and they cannot be satisfied at the same time, or there is a contradiction between the premise and the conclusion of a rule, or there is a contradiction between the conclusions of multiple rules and they cannot be established at the same time, it is determined to be a logical conflict; the structured conflict is determined by directly performing a structured analysis on the premise and conclusion of the rule itself. If there are intersections and overlapping areas between the premises of two rules, or there is an obvious contradiction between the premise of a rule and its conclusion, or there are partial or complete contradictions between the conclusions of multiple rules, it is determined to be a structured conflict. For the logical conflict, the specific rule is retained according to the priority decision of each rule. If the priorities are the same, the rule with high confidence or late update time is retained; if the priorities are different, the high-priority rule is retained, and the low-priority conflicting rule is deleted or downgraded; wherein, the priority is determined as follows: if the rule comes from a regulatory agency or laws and regulations, the priority of the rule is the highest level; if the rule belongs to a core business process or risk prevention and control type, the priority of the rule is lower than the highest level; if the rule is the latest released or updated version, the priority of the rule is higher than the historical version rule; if the scope of action of the two rules is different, the rule with a smaller scope has a higher priority than the rule with a larger scope; if the two rules clearly belong to different types, the mandatory rule has a higher priority than the recommended rule; if the source, version and scope of action of the two rules are the same, the priority is determined according to the rule quality score: if the quality score of rule A is higher than that of rule B, rule A has a higher priority than rule B; if the quality scores of rule A and rule B are the same, the hit rates of the two on historical data are compared, and the rule with a higher hit rate has a higher priority.

[0014] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization of the present invention, the optimization of the settlement system includes the optimization of the billing configuration and the reconciliation efficiency, and the optimization of the billing configuration is to maximize the expected benefit as the objective function, take the power generation forecast, electricity price and user power consumption mode as known input conditions, and use the linear programming model to solve the optimal billing strategy solution under the known input conditions; wherein the objective function is expressed as:

[0015] ,

[0016] Among them, R represents the total revenue, R i is the expected revenue under the i-th charging strategy, x i represents the decision variable, 1 means selecting the i-th billing strategy, 0 means not selecting, n is the total number of candidate billing strategies, C i is the cost / expense of the i-th billing strategy, B is the upper limit of the total cost / expense budget, i represents the billing strategy number index; st represents being subject to subsequent constraints, Indicates that the total cost of the selected billing strategy combination cannot exceed the budget cap B; It is stipulated that the decision variable xi can only take two values ​​0 or 1, 0 means not selecting the i-th billing strategy, and 1 means selecting the i-th billing strategy.

[0017] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization of the present invention, the optimization of the settlement calculation includes, based on the rule knowledge in the rule base, expressing the rules as logical rules or first logical rules, encoding them as regularization terms or constraints of the model, and based on the SVM classification model, the objective function is expressed as:

[0018] ,

[0019] in, is the square of the L2 norm, which represents the measure of model complexity, C represents the penalty parameter, and epsilon i is the slack variable; is the label of sample i, taking +1 or -1, x i is the feature vector of sample i, w is the weight vector of the model, b is the bias term, is the decision function of the model, is the function interval, 1 - epsilon i It is the minimum function interval allowed; by integrating the Bayesian method into the SVM classification model, the model output is corrected and filtered according to the rule knowledge, and the comprehensive decision is output to optimize the settlement calculation.

[0020] As a preferred solution of the photovoltaic power station settlement system management optimization method based on rule formalization described in the present invention, the optimization of the reconciliation efficiency is to generate an initial reconciliation plan according to the problem scale through a genetic algorithm, and use one-to-one matching entry pairs as the initial population; then generate a new generation of population through selection, crossover and mutation operations, and gradually optimize the fitness function to improve the quality of the reconciliation plan.

[0021] In the second aspect, an embodiment of the present invention provides a photovoltaic power station settlement system management optimization system based on rule formalization, which includes: a construction module, which is used to collect historical data to determine data characteristics, and build a unified rule base based on time characteristics; a detection module, which is used to further detect and judge the conflict type according to the constructed rule base, determine the rule priority and optimize the rule base; an optimization module, which is used to introduce a mathematical model to optimize the data quality and concurrent execution of the settlement process according to the optimized rule base, and optimize the settlement system in combination with the time series.

[0022] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, it implements any step of the above-mentioned rule-based formalization-based photovoltaic power station settlement system management optimization method.

[0023] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the above-mentioned rule-based formalization-based photovoltaic power station settlement system management optimization method is implemented.

[0024] The beneficial effects of the present invention are that the present invention combines the time series optimization settlement system, thereby maximizing the use of time characteristics to build a high-quality rule base, effectively solving the rule conflict problem to improve rule consistency and reliability, reasonably handling priorities to ensure the controllability of rule execution, and introducing mathematical models and time series analysis to optimize settlement accuracy, efficiency and adaptability, which significantly improves the intelligence level of the photovoltaic power station settlement system, ensures the accuracy and reliability of settlement results, improves the efficiency and automation of the settlement process, and is conducive to the green and sustainable development of the energy industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0026] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0027] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0029] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0030] Example 1

[0031] Reference Figure 1 , which is the first embodiment of the present invention, and provides a photovoltaic power station settlement system management optimization method based on rule formalization, including:

[0032] S1: Collect historical data and build a unified rule base based on time characteristics.

[0033] Collect data to determine data characteristics, including:

[0034] User characteristics: user type, user location;

[0035] Electricity price characteristics: electricity price policy, tiered electricity prices;

[0036] Time features: month, season, holiday, timestamp, year;

[0037] Electricity consumption features: original electricity consumption, electricity consumption clustering label = KMeans clustering;

[0038] Weather characteristics: temperature, air pressure, precipitation;

[0039] Other features: number of complaints, user service records;

[0040] Use the collected data as training data;

[0041] Furthermore, a hybrid algorithm combining RIPPER and time series analysis algorithm is used to mine rules for features;

[0042] Among them, the input of RIPPER rule induction algorithm is: training data;

[0043] Split the training data set into a growth set and a pruning set;

[0044] The rule set for the growth set is constructed as follows: For each category, the rules are repeatedly constructed as follows: The optimal rule condition is selected in a greedy manner, and the covering examples of the rule are removed until the existing rule cannot be further improved;

[0045] Optimize the rule set for the pruned set, use incremental pruning, and gradually remove redundant rules / rule conditions.

[0046] The output is: IF-THEN rule set R;

[0047] Furthermore, for each rule r in the rule set R, based on the currently known time characteristics, the applicability probability p of r at different times t is evaluated. r (t);

[0048] The applicable probability p is determined by combining the ARIMA model and the CNN model. r (t);

[0049] CNN is a powerful sequence model based on deep learning. It can automatically learn feature representations from data, so it has the ability to discover complex nonlinear patterns and is used to capture long-term dependencies and nonlinear patterns in time series data. It can automatically extract high-order feature representations of time series through convolution kernels and multi-layer structures. It has stronger fitting capabilities for non-stationary sequences with noise, missing values, or mutations. For each rule r, we use different ARIMA and CNN models to apply probability p to it respectively. r (t) Modeling is performed to obtain the prediction values ​​of different models; the outputs of these models are weighted averaged to obtain the final integrated prediction. The combination process is a prior art and will not be described in detail here.

[0050] Furthermore, the weight coefficient is calculated by cross-validation, which includes:

[0051] First, we prepare training sets and validation sets from historical data. The training set is used to estimate the parameters of each single model, and the validation set is used to evaluate the performance of the integrated model and optimize the weight coefficients.

[0052] For each single model, use the training set to estimate its parameters and make predictions on the validation set to obtain the probability p of the model being applicable to the rule. r The prediction sequence of (t) is denoted as .

[0053] calculate Compared with the true p on the validation set r (t), and obtain an evaluation score s i The evaluation indicators include root mean square error (RMSE) and mean absolute percentage error (MAPE).

[0054] By normalizing the evaluation scores of each model, the initial weight value of the model integration is obtained as follows:

[0055] ,

[0056] Where n is the total number of models, Indicates the probability p that the jth model applies the rule on the validation set r The difference between the predicted sequence of (t) and the true value is used to evaluate the model with a lower score. The smaller the prediction error of the single model, the larger the initial weight will be given.

[0057] based on As an initial solution, we use the random search optimization algorithm to optimize the weight coefficients of the ensemble model on the validation set, with the goal of minimizing the error between the ensemble model and the true value. During the optimization process, Finally, the weight coefficient with the best performance on the validation set is obtained. .

[0058] Then, by combining ARIMA and CNN in a weighted average way, the linear and nonlinear components of the sequence data are specifically divided and analyzed for the probability p r (t) Complete and accurate modeling and description.

[0059] Furthermore, based on the probability p at different times t r (t), determine the optimal rule r, and then build a rule base, and use statistical models to detect data quality. Specifically, by using Gaussian mixture models to fit the distribution and then find outliers, maximize the use of time characteristics, and build a high-quality rule base for photovoltaic power station settlement.

[0060] S2: Based on the constructed rule base, further detect and judge the conflict type and determine the rule priority.

[0061] Each rule in the rule base is formalized as an inference rule SWRL, and the logical inference engine Pellet is used to reason about them.

[0062] If there is a contradiction between the premises of two or more rules and they cannot be satisfied at the same time, or there is a contradiction between the premise and conclusion of a rule, or there is a contradiction between the conclusions of multiple rules and they cannot be established at the same time, it is judged as a logical conflict.

[0063] For discovered logical conflicts, a decision is automatically made about which rules to keep based on the priority of each rule:

[0064] If the priorities are the same, the rule with higher confidence or later update time is retained; if the priorities are different, the high-priority rule is retained and the low-priority conflicting rule is deleted or downgraded.

[0065] The priority determination includes:

[0066] If the rule comes from a regulatory agency or laws and regulations, the priority of the rule is the highest level;

[0067] If the rule belongs to the core business process or risk prevention type, the priority of the rule is lower than the highest level;

[0068] If the rule is the latest released or updated version, the priority of the rule is higher than the historical old version rule.

[0069] If two rules have different scopes, the rule with the smaller scope takes precedence over the rule with the larger scope.

[0070] If two rules are clearly of different types, the mandatory rule takes precedence over the advisory rule.

[0071] If two rules have the same source, version, and scope, the priority is determined based on the rule quality score:

[0072] If the quality score of rule A is higher than that of rule B, then rule A takes precedence over rule B;

[0073] If the quality scores of rule A and rule B are the same, their hit rates on historical data are compared, and the rule with a higher hit rate has a higher priority.

[0074] If, after the above judgment, the priorities of the two rules are still the same, one of the rules can be manually assigned a higher priority based on the experience of domain experts.

[0075] If a rule belongs to a rule set, the priority of the rule also needs to refer to the overall priority level of the rule set to which it belongs.

[0076] If the system is in a special environment or event, the priority of the rule set related to the environment will be temporarily increased.

[0077] If a new rule base version is released, the rules with priority changes must be manually reviewed to confirm the rationality of the priority adjustment and the impact assessment before they can take effect.

[0078] Furthermore, a structured analysis is directly performed on the premises and conclusions of the rules themselves. If there are intersections and overlapping areas between the premises of two rules, or there is an obvious contradiction between the premise of a rule and its conclusion, or there are partial or complete contradictions between the conclusions of multiple rules, it is judged to be a structured conflict.

[0079] At this time, the conflict details are presented graphically and intuitively, and the conflicting precondition areas are highlighted using Venn diagrams.

[0080] Further, conflict resolution includes:

[0081] Merge conflicting rules and modify premises and conclusions to eliminate contradictions;

[0082] Split a rule into two or more non-conflicting rules;

[0083] Simply delete the conflicting rules.

[0084] Furthermore, the rules are analyzed for coverage, including:

[0085] Collect and formalize typical business scenarios and decision cases, build automated scenario generation tools, and expand test cases.

[0086] Assign a unique ID to each rule. During the execution of each test case, record the rule ID that is hit and count the coverage of each rule (number of hits / total number of test cases).

[0087] Rules with detection coverage of 0 are marked as redundant rules. Test cases that are not covered by any rules in each scenario are analyzed. For these test cases, new rules are prompted to be added.

[0088] Optimize the analyzed rules, including:

[0089] Mining rule sets that produce the same conclusions in different scenarios, clustering analysis of equivalent rules based on the semantic similarity of rule preconditions, merging equivalent rules, and reducing the redundancy of the rule base.

[0090] The rule base is modeled as a set covering problem, and the optimal coverage is solved using heuristic or approximate algorithms to obtain a minimum rule subset that covers all scenarios.

[0091] Based on the accuracy of the rules in the evaluation set and other indicators, the machine learning algorithm is used to select high-quality rules and optimize the conditions and conclusion parameters of low-quality rules;

[0092] Delete the low-scoring and redundant rules, normalize the format of the optimized rules, and form the final rule base.

[0093] S3: Based on the constructed rule base, mathematical models are introduced to optimize data quality and concurrent execution respectively, and the settlement system is optimized in combination with time series.

[0094] The data quality is optimized through the Bayesian network model. The nodes that affect data quality are determined, and the dependencies between the nodes are determined. Then, the conditional probability table is learned and the posterior probability distribution of each node under given evidence (input data) is calculated by variable elimination method. The comprehensive quality score of the entire data set is calculated by weighted average of the quality scores of each node.

[0095] For discrete classification node variables, a classification test is performed, and a contingency table with R rows and C columns is constructed. The square of the deviation of the difference between the observed value and the expected value of each cell is calculated, and then divided by the expected value of the cell to standardize the contribution of large and small cells. The standardized deviation values ​​of all cells are summed to obtain the chi-square statistic. If the chi-square statistic is greater than the critical value, the original hypothesis of "the categories are independent of each other" is rejected and it is determined that there are outliers.

[0096] For the marked abnormal data, normalization repair operations are performed, or the abnormal values ​​are retained and treated differently in subsequent processing.

[0097] The Markov chain model is used to analyze the consistency probability and optimize concurrent execution. Suppose there are n transactions {X1,...,X n}, each transaction consists of a sequence of operations. Let S be the system state space, define the Markov chain {Xt}, and its state transition probability:

[0098] ,

[0099] in, By using the priority scheduling strategy, X t It represents the state of the system at time t, i and j are two different states of the system.

[0100] Then at time t, after k steps, the probability of state j is:

[0101] ,

[0102] in, is the k-step transition probability, calculated by matrix power, and S is the set of all possible states.

[0103] By analyzing the steady-state distribution π of the Markov chain, the encounter probability of state j can be obtained as:

[0104] πj = lim(t→∞) P(Xt=j) ,

[0105] If the consistency state is regarded as an absorbing state, then πj corresponds to the probability of eventually achieving consistency under a given scheduling strategy, and the k-step probability can analyze the risk of inconsistency after k transactions are executed, thereby achieving high concurrent consistency.

[0106] Optimization of the settlement system includes optimization of billing configuration, settlement calculation and reconciliation efficiency;

[0107] Among them, the optimization of billing configuration is based on the maximization of expected benefits as the objective function, and the power generation forecast, electricity price, and user electricity consumption pattern are taken as known input conditions. The linear programming model is used to solve the optimal billing strategy solution under the known input conditions.

[0108] Among them, the objective function is expressed as:

[0109] ,

[0110] Among them, R represents the total revenue, R i is the expected revenue under the i-th charging strategy, x i represents the decision variable, 1 means selecting the i-th billing strategy, 0 means not selecting, n is the total number of candidate billing strategies, C i is the cost / expense of the i-th billing strategy, B is the upper limit of the total cost / expense budget, i represents the billing strategy number index; st represents being subject to subsequent constraints, Indicates that the total cost of the selected billing strategy combination cannot exceed the budget cap B; It is stipulated that the decision variable xi can only take two values ​​0 or 1, 0 means not selecting the i-th billing strategy, and 1 means selecting the i-th billing strategy.

[0111] By using a linear programming model to solve the optimal strategy under known input conditions, the advantages of different billing strategies can be maximized. According to real-time conditions such as power generation, electricity prices, and electricity usage patterns, a refined billing plan that maximizes profits can be automatically configured to comprehensively improve the economic benefits of the power station.

[0112] Optimizations to settlement calculations include:

[0113] Based on the rule knowledge in the rule base, the rules are expressed as logical rules or first logical rules, encoded as regularization terms or constraints of the model. Based on the SVM classification model, the objective function is expressed as:

[0114] ,

[0115] in, is the square of the L2 norm, which represents the measure of model complexity, C represents the penalty parameter, and epsilon i is the slack variable; is the label of sample i, taking +1 or -1, x i is the feature vector of sample i, w is the weight vector of the model, b is the bias term, is the decision function of the model, is the function interval, 1 - epsilon i is the minimum allowed function interval;

[0116] By integrating the Bayesian method into the SVM classification model, the factors affecting the settlement amount and the rule knowledge such as power generation, electricity price policy, and electricity consumption pattern are encoded as constraints or regular terms of the SVM model, thereby guiding the training of the SVM model and improving the prediction accuracy. The model output is corrected and filtered according to the rule knowledge, and a comprehensive decision is output to optimize the settlement calculation.

[0117] Furthermore, a heuristic algorithm is used to find the optimal solution for the reconciliation scheme to improve the efficiency of reconciliation, specifically:

[0118] A genetic algorithm is used to generate a better initial reconciliation plan based on the scale of the problem, and the one-to-one matching entry pairs are used as the initial population; then a new generation of population is iteratively generated through selection, crossover, mutation and other operations, and the fitness function is gradually optimized to improve the quality of the reconciliation plan.

[0119] The genetic algorithm's reconciliation plan is used as the initial solution, and the current reconciliation plan is used as the starting point. A new solution is generated through random perturbations, and the scoring function value of the new solution is calculated. The new solution is accepted (if it is better) or the original solution is retained (if it is worse but there is a certain probability of accepting it to avoid falling into the local optimum) according to probability. The temperature parameter is slowly lowered in each iteration of simulated annealing to reduce the probability of accepting suboptimal solutions, and finally the optimal solution of the reconciliation plan is gradually approached in multiple iterations.

[0120] Simulated annealing has the ability to temporarily accept suboptimal solutions with a certain probability, which can effectively jump out of the local minimum and thus have a greater chance of converging to the vicinity of the global optimal solution.

[0121] At this point, even if a better reconciliation solution has been obtained, there may still be a small number of errors (wrong matches). Further training of machine learning models to automatically identify errors:

[0122] From the annotated reconciliation results, the extracted features include: amount difference, description text similarity, and timestamp difference;

[0123] Use the decision tree classification algorithm to train the binary classifier model; give each reconciliation pair a probability score of whether it is a correct match or an error match. For item pairs with lower scores, mark them as suspected errors and review them separately.

[0124] Continuously learn new difference patterns, including:

[0125] Obtain the latest annotation data from the manual review results;

[0126] Incrementally train the classification model to learn new decision tree node segmentation rules;

[0127] For some statistical features, rolling calculations are updated in real time;

[0128] At the same time, the feature weight parameters are adjusted, including reducing the weight of stable features and increasing the weight of changing features.

[0129] In summary, the present invention combines the time series optimization settlement system to maximize the use of time characteristics to build a high-quality rule base, effectively solve the rule conflict problem to improve the consistency and reliability of rules, reasonably handle the priority to ensure the controllability of rule execution, and introduce mathematical models and time series analysis to optimize settlement accuracy, efficiency and adaptability. It significantly improves the intelligence level of the photovoltaic power station settlement system, ensures the accuracy and reliability of the settlement results, improves the efficiency and automation of the settlement process, and is conducive to the green and sustainable development of the energy industry.

[0130] Example 2

[0131] Reference Figure 1 Based on the first embodiment, this embodiment further provides a photovoltaic power station settlement system management optimization system based on rule formalization, including:

[0132] The construction module is used to collect historical data to determine data characteristics and build a unified rule base based on time characteristics;

[0133] The detection module is used to further detect and judge the conflict type based on the constructed rule base, determine the rule priority and optimize the rule base;

[0134] The optimization module is used to introduce mathematical models to optimize the data quality and concurrent execution of the settlement process according to the optimized rule base, and optimize the settlement system in combination with time series.

[0135] This embodiment also provides a computer device, which is suitable for the case of a photovoltaic power station settlement system management optimization method based on rule formalization, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the photovoltaic power station settlement system management optimization method based on rule formalization as proposed in the above embodiment.

[0136] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0137] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the photovoltaic power station settlement system management optimization method based on rule formalization as proposed in the above embodiment is implemented.

[0138] The storage medium proposed in this embodiment and the data storage method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0139] Example 3

[0140] On the basis of the previous two embodiments, this embodiment provides a photovoltaic power station settlement system management optimization method based on rule formalization. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through simulation experiments.

[0141] The settlement data of photovoltaic power stations in three different regions from 2018 to 2022 were selected, and the ratio of training set to validation set of each data set was 7:3.

[0142] The comparison methods include:

[0143] Single RIPPER rule model;

[0144] Single ARIMA time series model;

[0145] Single CNN model;

[0146] Integration of RIPPER+ARIMA models;

[0147] RIPPER+CNN two-model integration;

[0148] The method of the present invention is an integration of three models of RIPPER+ARIMA+CNN, denoted as Proposed;

[0149] The comparison results are shown in Table 1:

[0150] Table 1 Comparison of experimental results:

[0151] method Rule hit rate Settlement Amount MAE Settlement amount MAPE Number of structured conflicts Logical conflicts RIPPER 0.826 615.4 8.32% 72 36 ARIMA 0.841 538.7 7.15% - - CNN 0.853 492.6 6.28% - - RIPPER+ARIMA 0.867 475.3 6.07% 59 27 RIPPER+CNN 0.879 439.8 5.36% 48 19 Proposed 0.908 382.6 4.57% 32 11

[0152] It can be seen that the proposed method of the present invention is significantly better than other baseline comparison methods in all evaluation indicators, especially in structuring and logical conflict processing. The two-to-two model integration has a certain improvement compared to the single model, but it is still lower than the three-model integration method.

[0153] The rule model is good at processing business rules, the time series model is good at time series prediction, and the CNN model is good at mining features from complex data. The effective integration of the three can make full use of their respective advantages and greatly reduce the number of structured and logical conflicts through efficient processing of conflicting rules, improve the consistency and accuracy of the rule base, and lay the foundation for subsequent applications.

[0154] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A photovoltaic power station settlement system management optimization method based on rule formalization, characterized by: include, Collect historical data to determine data characteristics, and build a unified rule base based on time characteristics; Based on the constructed rule base, further detect and judge the conflict type, determine the rule priority and optimize the rule base; Based on the optimized rule base, mathematical models are introduced to optimize the data quality and concurrent execution of the settlement process, and the settlement system is optimized in combination with time series; The data characteristics include: user characteristics, electricity price characteristics, time characteristics, electricity consumption characteristics, weather characteristics and other characteristics; Based on the time features, a hybrid algorithm combining RIPPER and a time series analysis algorithm is used to mine rules on the features; Among them, the time series analysis algorithm adopts the combination of ARIMA model and CNN model. For each rule r, we use ARIMA and CNN models to apply the probability p to it respectively. r (t) Modeling is performed to obtain the prediction values ​​of different models; the outputs of these models are weighted averaged to obtain the final integrated prediction; The weight coefficient is calculated by cross-validation, including: Based on historical data, training sets and validation sets are obtained. The training sets are used to estimate the parameters of each single model, and the validation sets are used to evaluate the performance of the integrated model and optimize the weight coefficients. For each single model, the parameters of the single model are estimated using the training set, and predictions are made on the validation set to obtain the probability p of the model being applicable to the rule. r The prediction sequence of (t) is denoted as ; calculate Compared with the true p on the validation set r (t), and obtain an evaluation score s i ; By normalizing the evaluation scores of each model, the initial weight value of the model integration is obtained as follows: , Where n is the total number of models, Indicates the probability p that the jth model applies the rule on the validation set r The difference between the predicted sequence and the true value of (t); based on As the initial solution, a random search optimization algorithm is used to optimize the weight coefficient of the integrated model on the validation set. The goal is to minimize the error between the integrated model and the true value. During the optimization process, Constraints of , get the weight coefficient with the best performance on the validation set ; The conflict types include logical conflicts and structural conflicts. The determination of the logical conflict is to formalize each rule in the rule base into a logical expression or inference rule, and use a logical inference engine to perform inference. If there is a contradiction between the premises of two or more rules and they cannot be satisfied at the same time, or there is a contradiction between the premise and conclusion of a rule, or there is a contradiction between the conclusions of multiple rules and they cannot be established at the same time, it is determined to be a logical conflict; The determination of the structured conflict is to directly perform structured analysis on the premises and conclusions of the rules. If there are intersections and overlapping areas between the premises of two rules, or there is a contradiction between the premise of a rule and its conclusion, or there are partial or complete contradictions between the conclusions of multiple rules, it is determined to be a structured conflict. For the logical conflict, the specific rule is retained according to the priority of each rule. If the priorities are the same, the rule with high confidence or later update time is retained; if the priorities are different, the high priority rule is retained, and the low priority conflicting rule is deleted or downgraded; The priority determination includes: If the rule comes from a regulatory agency or laws and regulations, the priority of the rule is the highest level; If the rule belongs to the core business process or risk prevention type, the rule has a higher priority; If the rule is the latest released or updated version, the priority of the rule is higher than the historical old version rule; If two rules have different scopes, the rule with a smaller scope and more specific coverage will take precedence over the general rule with a larger scope. If two rules are clearly of different types, the mandatory rule takes precedence over the advisory rule; If all the above conditions of two rules are the same, the priority is determined based on the rule quality score: If the quality score of rule A is higher than that of rule B, then rule A takes precedence over rule B; If the quality scores of rule A and rule B are the same, their hit rates on historical data are compared, and the rule with a higher hit rate has a higher priority; The optimization of the settlement system includes the optimization of billing configuration, settlement calculation and reconciliation efficiency. The optimization of the billing configuration is to maximize the expected benefit as the objective function, take the power generation forecast, electricity price and user power consumption pattern as known input conditions, and use the linear programming model to solve the optimal billing strategy solution under the known input conditions; Among them, the objective function is expressed as: , Among them, R represents the total revenue, R i is the expected revenue under the i-th charging strategy, x i represents the decision variable, 1 means selecting the i-th billing strategy, 0 means not selecting, n is the total number of candidate billing strategies, C i is the cost / expense of the i-th billing strategy, B is the upper limit of the total cost / expense budget, i represents the billing strategy number index; st represents being subject to subsequent constraints, Indicates that the total cost of the selected billing strategy combination cannot exceed the budget cap B; It is stipulated that the decision variable xi can only take the value of 0 or 1, 0 means not selecting the i-th billing strategy, and 1 means selecting the i-th billing strategy; The optimization of the settlement calculation includes: Based on the rule knowledge in the rule base, the rules are expressed as logical rules or first logical rules, encoded as regularization terms or constraints of the model. Based on the SVM classification model, the objective function is expressed as: , in, is the square of the L2 norm, which represents the measure of model complexity, C represents the penalty parameter, and epsilon i is the slack variable; is the label of sample i, taking +1 or -1, x i is the feature vector of sample i, w is the weight vector of the model, b is the bias term, is the decision function of the model, is the function interval, 1 - epsilon i is the minimum allowed function interval; By integrating the Bayesian method into the SVM classification model, the model output is corrected and filtered according to rule knowledge, and a comprehensive decision is output to optimize the settlement calculation.

2. The photovoltaic power station settlement system management optimization method based on rule formalization according to claim 1 is characterized in that: The optimization of the reconciliation efficiency is to generate an initial reconciliation plan according to the problem scale through a genetic algorithm, and use one-to-one matching entry pairs as the initial population; then generate a new generation of population through selection, crossover and mutation operations, and gradually optimize the fitness function to improve the quality of the reconciliation plan.

3. A photovoltaic power station settlement system management optimization system based on rule formalization, based on the photovoltaic power station settlement system management optimization method based on rule formalization according to any one of claims 1 and 2, characterized in that: include, The construction module is used to collect historical data to determine data characteristics and build a unified rule base based on time characteristics; The detection module is used to further detect and judge the conflict type based on the constructed rule base, determine the rule priority and optimize the rule base; The optimization module is used to introduce mathematical models to optimize the data quality and concurrent execution of the settlement process according to the optimized rule base, and optimize the settlement system in combination with time series.

4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the photovoltaic power station settlement system management optimization method based on rule formalization are implemented as described in any one of claims 1 and 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the photovoltaic power station settlement system management optimization method based on rule formalization as described in any one of claims 1 and 2 are implemented.