Off-line data driving optimization method and device based on symbol regression

Through the offline data-driven optimization method based on symbolic regression, historical data is used to build a weighted integrated model, and the model structure and parameters are automatically searched. This solves the problems of model structure limitations and insufficient performance in the existing technology, and achieves efficient data-driven optimization. , suitable for both offline and online scenarios of expensive optimization problems.

CN118690835APending Publication Date: 2024-09-24SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410759708.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing data-driven evolutionary optimization methods have problems with model structure limitations and insufficient performance in expensive optimization problems, making it difficult to correctly guide the evolution direction of evolutionary populations. Especially in offline scenarios, there is a lack of new data sampling and evaluation, resulting in low optimization efficiency.

Method used

An offline data-driven optimization method based on symbolic regression is used to obtain historical data, generate multiple data subsets, build a symbolic regression model, evaluate the prediction accuracy, build a weighted integrated model, and combine gene expression programming and differential evolution algorithms. Automatically search model structures and parameters to achieve data-driven evolutionary optimization.

Benefits of technology

There is no need to specify the model structure and parameters in advance, and the model structure is automatically searched, which improves the diversity and prediction performance of the agent model. It can effectively solve expensive optimization problems in the offline environment, and can be extended to the online environment to provide more diverse data-driven optimization. method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690835A
    Figure CN118690835A
Patent Text Reader

Abstract

The invention discloses an offline data driving optimization method and device based on symbol regression, and belongs to the technical field of data driving optimization. The method comprises the following steps: acquiring historical data; generating a plurality of data subsets of the historical data according to the historical data; constructing a plurality of symbol regression models according to the plurality of data subsets; evaluating the prediction accuracy of the symbol regression model according to the plurality of data subsets; constructing an integrated model with a weight according to the obtained prediction accuracy; and realizing data-driven evolutionary optimization according to the integrated model. According to the method, on the basis of existing historical data, a symbol regression model is trained by using a gene expression programming method, a plurality of models are integrated by using an integration method, an integrated model is generated, and an optimal solution of an optimization problem is obtained by using an evolutionary algorithm as an optimizer. Wherein the integrated symbolic regression model is used as an agent model in an expensive optimization problem to guide the search direction of the optimization evolutionary algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data-driven optimization, and in particular to an offline data-driven optimization method and device based on symbolic regression. Background Art

[0002] Expensive optimization problems are very common in industrial production, and because these problems involve the optimization of industrial production, they often do not have explicit analytical expressions to evaluate the objectives. For example, in the optimization of magnesium melting furnaces, the composition of the raw materials not only fluctuates greatly, but also the reaction mechanism of the raw materials is relatively complex, and there is usually no explicit analytical expression to evaluate the objectives. Solving these optimization problems usually involves a large number of computationally intensive numerical simulations or complex physical experiments.

[0003] Data-driven methods provide a solution to the above expensive optimization problems. They build a proxy model based on the collected evaluation data (for example, data that has been evaluated through complex experiments). The proxy model will be used as the target in the optimization process to evaluate the candidate solutions, eliminating the need for numerical simulations or physical experiments, greatly reducing the cost of the entire optimization process. Data-driven solutions are often combined with evolutionary optimization methods to form data-driven evolutionary optimization methods.

[0004] Evolutionary optimization is a very common optimization method. It understands the optimization problem to be solved as a global optimization of a certain goal. It improves the adaptability of candidate solutions through selection, crossover, and mutation mechanisms, iteratively simulates the process of natural evolution, and finally obtains the optimal solution to the optimization problem. Therefore, evolutionary optimization requires a large number of candidate solution evaluations and multiple iterations to solve the optimization problem, which greatly limits the traditional evolutionary optimization method in expensive optimization problems. However, data-driven evolutionary optimization methods evaluate candidate solutions based on surrogate models, thereby avoiding the large cost of evolutionary algorithms in each iteration. Therefore, data-driven evolutionary optimization methods are more efficient and promising than traditional evolutionary optimization methods in the optimization problems of real industrial production.

[0005] Data-driven evolutionary optimization methods can be divided into online and offline scenarios according to whether they can actively sample new data and evaluate them in real environments during the optimization process. In offline scenarios, optimization methods cannot sample and evaluate new data. As described earlier, in real expensive optimization problems, evaluating data once consumes a lot of time or resources. Therefore, data-driven optimization in offline scenarios is more common in real life. Solving such problems is of great significance to improving the efficiency of real industrial production.

[0006] Currently, many data-driven evolutionary optimization schemes rely on traditional regression methods to build proxy models, but traditional regression methods have some disadvantages. First, the model structure in traditional regression methods is usually limited, and researchers must have prior knowledge related to specific problems in order to select a suitable model structure or adjust the undetermined parameters in the model. Second, in complex problems, due to the limitations of the model structure, the performance of the model built based on this type of method may not be optimistic, and it is difficult to correctly guide the evolutionary direction of the evolving population in data-driven evolutionary optimization. Summary of the invention

[0007] In order to solve at least one of the technical problems existing in the prior art to a certain extent, the present invention aims to provide an offline data-driven optimization method and device based on symbolic regression in expensive optimization problems.

[0008] The technical solution adopted by the present invention is:

[0009] An offline data-driven optimization method based on symbolic regression includes the following steps:

[0010] Acquire historical data; the historical data includes decision variables and corresponding actual target values, and optimal data in the historical data; the decision variables include the dimensions of the problem and the values ​​of the decision variables in each dimension;

[0011] generating a plurality of data subsets of historical data according to the historical data;

[0012] constructing a plurality of symbolic regression models based on a plurality of said data subsets;

[0013] evaluating the prediction accuracy of the symbolic regression model based on a plurality of the data subsets;

[0014] Build a weighted ensemble model based on the obtained prediction accuracy;

[0015] Data-driven evolutionary optimization is implemented according to the integrated model.

[0016] Further, the data subset includes a training set part and a test set part;

[0017] The step of generating a plurality of data subsets of historical data according to the historical data comprises:

[0018] Randomly sampling the historical data to obtain a training set portion of the data subset;

[0019] The distances from all data in the historical data to the optimal data are calculated, the calculated distance values ​​are sorted, and the corresponding data are obtained as the test set part of the data subset according to the sorting and a preset threshold.

[0020] Furthermore, the calculation formula of the distance from the data to the optimal data is:

[0021]

[0022] In the formula, x i is the i-th data in the historical data, x b is the optimal data, D is the dimension of the decision variable, x i,j and x b,j are respectively the component value of the i-th data in the j-th dimension and the component value of the optimal data in the j-th dimension.

[0023] Furthermore, constructing a plurality of symbolic regression models according to a plurality of the data subsets comprises:

[0024] Configure the symbolic space to be searched for symbolic regression;

[0025] Build and train a symbolic regression model based on a training set of a subset of data;

[0026] Multiple symbolic regression models were obtained for all data subsets.

[0027] Furthermore, constructing and training a symbolic regression model based on a training set of a data subset includes:

[0028] Initialize the initial population of symbolic regression and use the gene expression programming method to represent the individuals in the population;

[0029] The differential evolution algorithm is used to optimize the symbolic regression population iteratively;

[0030] After the iteration meets the preset termination condition, a mathematical expression that can describe the relationship between the decision variables and the target value of the data subset is obtained.

[0031] Furthermore, for a single symbol regression model, the calculation formula for prediction accuracy is:

[0032]

[0033] In the formula, rmse represents the root mean square error of the model, k represents the kth model, and size test is the size of the training set of the data subset corresponding to the kth model, y i is the predicted target value of the model for the i-th data, o i is the true target value of the i-th data.

[0034] Furthermore, constructing a weighted integrated model according to the obtained prediction accuracy includes:

[0035] According to the prediction accuracy of the obtained symbolic regression model, multiple models are sorted in ascending order;

[0036] Divide the models that have been arranged in ascending order into multiple ordered groups through equal-distance division;

[0037] The basic model that constitutes the integrated model is obtained by randomly extracting the models of each group;

[0038] Assign a weight to each extracted base model according to the order in which the groups are ranked;

[0039] A weighted integrated model is obtained based on all basic models to replace the stage where real target evaluation is required in subsequent offline evolutionary optimization.

[0040] Furthermore, the calculation formula of the weight of the basic model is:

[0041]

[0042] In the formula, w k Represents the weight of the k-th basic model, rank i Indicates that the i-th model is in M′ sr The sorting number in , g represents the number of basic models in the integrated model;

[0043] The calculation formula for the predicted value of the weighted integrated model is:

[0044]

[0045] In the formula, f(x i ) is the overall integrated proxy model for each basic model and the data x i The predicted value, f k (x i ) is the k-th basic model for data x i The predicted value, w k is the weight value of the th basic model.

[0046] Furthermore, the integrated model is updated in the following manner:

[0047] Obtain evolutionary optimized offspring population through crossover and mutation;

[0048] Evaluate the population based on the obtained integrated agent model to obtain the best predicted solution and the next generation population;

[0049] The weighted ensemble model is rebuilt based on the best predicted solution to obtain an updated ensemble model.

[0050] Another technical solution adopted by the present invention is:

[0051] An offline data-driven optimization device based on symbolic regression, comprising:

[0052] at least one processor;

[0053] at least one memory for storing at least one program;

[0054] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0055] Compared with the prior art, the present invention has the following advantages and effects:

[0056] 1) The present invention does not need to specify the structure and parameters of the model in advance when constructing the proxy model. Based on the gene expression programming method, the model structure can be automatically searched in the symbolic space, and the threshold for use is low.

[0057] 2) The present invention generates a weighted integrated model based on a given finite data set, selects the basic model based on the prediction accuracy of the symbolic regression model, and ensures that the selected model has diversity. At the same time, the weight is used to control the influence of the basic model on the integrated model to ensure that the integrated model has good prediction performance.

[0058] 2) The present invention can support the solution of expensive optimization problems in offline environments, and can also be extended to solve optimization problems in online environments, and has strong practicality. Moreover, the proxy model construction method in the method can be conveniently combined with other existing optimization methods to provide a more diverse data-driven optimization method. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0060] Figure 1 is a flowchart of the steps of an offline data-driven optimization method based on symbolic regression in an embodiment of the present invention;

[0061] Figure 2 It is a schematic diagram of an expression tree corresponding to the symbolic regression model in an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0063] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0064] In the description of the present invention, the meaning of "several" is one or more, the meaning of "more" is two or more, and the meanings of "greater than", "less than", "exceed" and the like are understood as not including the number itself, and the meanings of "above", "below", "within" and the like are understood as including the number itself. If there is a description of the first and the second, it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. In addition, "and / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

[0065] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0066] like Figure 1 As shown, this embodiment provides an offline data-driven optimization method based on symbolic regression, comprising the following steps:

[0067] S1. Obtain historical data.

[0068] As an optional implementation, historical data is obtained by physical experiments, daily data collection, etc. The historical data includes decision variables and corresponding actual target values, as well as optimal data in the historical data. The decision variables include the dimensions of the problem and the values ​​of the decision variables in each dimension.

[0069] S2. Generate multiple data subsets of historical data based on the historical data.

[0070] The data subset includes a training set part and a test set part. In some embodiments, the data subset of historical data is obtained by the following steps:

[0071] S21, obtaining a training set portion of a data subset by randomly sampling historical data;

[0072] S22, by calculating the distance between the data in the historical data and the optimal data;

[0073] S23. A batch of data closest to the optimal data is obtained by sorting the distance values ​​of all data, and the data is used as a test set part of the data subset.

[0074] Specifically, the distance from the data in the historical data to the optimal data is defined as follows:

[0075]

[0076] Among them, x i is the i-th data in the historical data, x b is the optimal data, D is the dimension of the decision variable, x i,j and x b,j are respectively the component value of the i-th data in the j-th dimension and the component value of the optimal data in the j-th dimension.

[0077] S3. Construct multiple symbolic regression models based on the multiple data subsets.

[0078] In some embodiments, multiple symbolic regression models are obtained by:

[0079] S31, configuring the symbol space to be searched for symbolic regression;

[0080] S32, constructing a symbolic regression model for a training set of a certain data subset by gene expression programming method;

[0081] S33. Construct symbolic regression models based on all data subsets to obtain a batch of symbolic regression models.

[0082] Specifically, the construction of the symbolic regression proxy model includes the following steps:

[0083] 1) Set the operator symbol set in the symbol space to The symbol "exp" represents exponential operation with e as the base, the symbol "ln" represents logarithmic operation with e as the base, and the symbol Represents the square root operation.

[0084] 2) Set the termination symbol set in the symbol space to Γ = {x1, x2, x3, ..., x D}, where D represents the dimension of the decision variable.

[0085] 3) Initialize the initial population of symbolic regression and use the gene expression programming method to represent the individuals in the population.

[0086] 4) The differential evolution algorithm is used to optimize and iterate the population of symbolic regression.

[0087] 5) After the iteration meets the termination condition, a mathematical expression that can describe the relationship between the decision variables and the target value of the data subset in step S2 is obtained.

[0088] S4. Evaluate the prediction accuracy of the symbolic regression model based on the multiple data subsets.

[0089] For a single symbol regression model, the prediction accuracy is calculated as follows:

[0090]

[0091] In the formula, rmse represents the root mean square error of the model, k represents the kth model, and size test is the size of the training set of the data subset corresponding to the kth model, y i is the predicted target value of the model for the i-th data, o i is the true target value of the i-th data.

[0092] S5. Build a weighted ensemble model based on the obtained prediction accuracy.

[0093] As an optional implementation, the weighted integrated model is obtained by the following method:

[0094] S51, sorting the multiple models in ascending order based on the prediction accuracy of the symbolic regression model obtained in step S4;

[0095] S52, dividing the models arranged in ascending order into a plurality of ordered groups by equal distance division;

[0096] S53, randomly extracting the models of each group to obtain the basic model that constitutes the integrated model;

[0097] S54. Assign a weight to each extracted basic model according to the arrangement order of the groups.

[0098] S55. Obtain a weighted integrated model to replace the stage where real target evaluation is required in subsequent offline evolutionary optimization.

[0099] Specifically, the basic model weights of the weighted ensemble model are as follows:

[0100]

[0101] Among them, w k Represents the weight of the k-th basic model, rank i Indicates that the i-th model is in M′ sr The sorting number in , g represents the number of basic models in the integrated model.

[0102] The predicted values ​​of the weighted ensemble model are as follows:

[0103]

[0104] Among them, f(x i ) is the overall integrated proxy model for each basic model and the data x i The predicted value, f k (x i ) is the k-th basic model for data x i The predicted value, w k is the weight value of the th basic model.

[0105] S6. Implement data-driven evolutionary optimization based on the integrated model.

[0106] As an optional implementation, the integrated proxy model update is obtained by the following method:

[0107] S61. Obtain an evolutionarily optimized offspring population through crossover and mutation;

[0108] S62. Evaluate the population through the integrated agent model obtained in step S5 to obtain the best predicted solution and the next generation population.

[0109] S63. Execute steps S5 and S6 again using the predicted best solution to obtain an updated integrated model.

[0110] The above method is explained in detail below with reference to the accompanying drawings and specific embodiments.

[0111] The embodiment of the present invention assumes that the collected historical data 〈X, Y〉 contains decision variables X={x1,x2,...,x set_size} and the corresponding true target value Y = {y1, y2, ..., y set_size}, where x i ={x j |j=1,2,...,D}, set_size is the number of historical data, and D is the dimension of the decision variable. Each historical data x i There is a corresponding true target value y set_sizeThe best individual in the historical data, that is, the individual with the smallest corresponding target value, is denoted as x b The embodiment of the present invention assumes that the symbol space of symbolic regression search is The symbol "exp" represents exponential operation with e as the base, the symbol "ln" represents logarithmic operation with e as the base, and the symbol The embodiment of the present invention assumes that the termination symbol space of the symbol regression search is Γ = {x1, x2, x3, ..., x D}, where D represents the dimension of the decision variable.

[0112] In the proxy model construction stage, we first randomly sample the historical data <X, Y> multiple times to generate Q data subsets, each of which contains a training set and a test set. The data set obtained by random sampling can ensure the diversity of data sets when training different proxy models. For these Q data subsets, the gene expression programming method is used to construct a symbolic regression model for each data subset, thereby generating Q models, denoted as M sr ={M1, M2, ..., M Q}. Each model will be recorded in the form of a string, and each bit of the string is an operation symbol or a termination symbol, for example:

[0113] [+,x1,×,x2,x5] (5)

[0114] The above string represents a symbolic regression model. The model can be converted into Figure 2 By traversing the expression tree, we can easily obtain the mathematical expression corresponding to the model in formula (5), which is x1+x2×x5.

[0115] Then, calculate the time from each data in the historical data X to x b The Euclidean distance of each data in the offline data X to x b The calculation formula is as follows:

[0116]

[0117] where x i is the i-th data in the offline data X. Based on each data to x b The Euclidean distance of x is selected from all historical data, and the T data with the smallest Euclidean distance and its corresponding target value are used as the test set for evaluating the symbolic regression model. That is, T data with the smallest Euclidean distance x are selected from the historical data. b The most recent data. These T data records are <X T , Y T >, where X T={x1, x2, ..., x T},Y T ={y1, y2, ..., y T}. Based on <X T , Y T >, evaluate M sr The prediction accuracy of each symbolic regression model in . The prediction accuracy of the model is calculated as the root mean square error of the model, and the calculation formula is:

[0118]

[0119] Among them, rmse k Represents the root mean square error of the k-th model. A low root mean square error value indicates that the prediction accuracy of the symbolic regression model is high and the prediction performance is good; a high root mean square error value indicates that the prediction accuracy of the symbolic regression model is low and the prediction performance is poor.

[0120] Arrange the root mean square error values ​​of all models in ascending order to achieve sr All models in are arranged in order of prediction accuracy from low to high, and the sorted M sr Next, M sr Divide into g groups with equal spacing, where g satisfies g<Q, and each group contains models (except the last group, which may contain fewer models than ). Then, a model is randomly selected from each group as the base model of the subsequent ensemble model. Therefore, a total of g base models can be selected from g groups, denoted as M′ sr . Due to M′ sr The serial number of the model in the original M sr The serial number in the set, such as M′ sr ={M 18 , M1, ...}. In order to facilitate the subsequent operations, we keep M′ sr The model sequence in the middle is re-encoded from the number 1, that is, M′ after the re-encoded number sr ={M1, M2, ..., M g}.

[0121] Due to the different data subsets in the initial training, the prediction performance of the symbolic regression model obtained is also different. In order to achieve the diversification of the basic models in the integrated model while ensuring the overall prediction ability of the integrated model, according to the basic model in M′ sr The model is assigned weights based on the order in which the weights are calculated. The weight calculation formula is as follows:

[0122]

[0123] Among them, rank i Indicates that the i-th model is in M′ sr The smaller the ranking number, the higher the model's position after being sorted by prediction accuracy, and its prediction performance is better, so it will have a larger weight in the overall integrated model; the smaller the ranking number, the lower the model's position after being sorted by prediction accuracy, and its prediction performance is worse, so it has a smaller weight in the overall integrated model. Finally, each model forms an integrated proxy model according to the weight. The prediction value of the integrated proxy model for a certain input data is calculated as the weighted average of the prediction values ​​of all basic models, thereby comprehensively considering the prediction performance and specific prediction value of each basic model. The calculation formula is:

[0124]

[0125] Among them, f(x i ) is the overall integrated proxy model for each basic model and the data x i The predicted value, f k (x i ) is the k-th basic model for data x i The predicted value, w k is the weight value of the th basic model.

[0126] After the integrated agent model is built, the offline evolutionary optimization stage is entered. The main task of this stage is to perform evolutionary operations on the population and use the integrated agent model built earlier to evaluate the individuals in the generated population, so as to select the better individuals in the prediction to form the next generation of population. Through the above process, multiple population iterations are performed to finally obtain the optimal solution to the optimization problem. In this offline evolutionary optimization stage, an improved classical genetic algorithm can be used for population optimization. The specific algorithm process is as follows:

[0127] 1) Randomly generate an initial population and use the classic Latin hypercube sampling method to perform random sampling in the solution search space. The population size is denoted as pop_size, and the generated initial population is denoted as pop0.

[0128] 2) Enter the cyclic iteration process of the population, where the tth generation population is recorded as pop t .

[0129] 3) Population t Perform crossover and mutation operations, and use the classic simulated binary crossover method and polynomial mutation method to achieve crossover and mutation, and generate the offspring population pop′.

[0130] 4) Use the integrated agent model M′ sr To evaluate the population pop tand the set of offspring populations pop′, that is, pop t ∪pop′. The fitness value of each individual is calculated according to formula (9) as the weighted target prediction value of the integrated agent model for the individual.

[0131] 5) The individual with the smallest predicted value is recorded as x b , according to formula (6) and formula (7), reselect g basic models to update the integrated proxy model M′ sr And recalculate M′ according to formula (8) sr The weights of the base model in .

[0132] 6) Select the first pop_size individuals with the smallest fitness value to form the next generation population.

[0133] 7) Repeat steps 3) to 6) until the conditions for stopping iterative optimization are met (for example, iterative optimization is terminated after 100 generations in advance), and finally the optimal solution x of the optimization problem is obtained. b .

[0134] Through the construction of the above integrated symbolic regression agent model and the offline evolutionary optimization method, we can quickly obtain the optimal solution to expensive optimization problems based only on the data collected in historical activities without the need for real physical experiments or complex data simulations, thereby greatly shortening the optimization cycle of real industrial production optimization problems.

[0135] In summary, the present invention proposes an offline data-driven evolutionary optimization method based on symbolic regression. This method can make full use of existing historical data to construct a proxy model when the evaluation of the objective function is very expensive, and at the same time enhance the proxy model's ability to fit historical data. The characteristics of the present invention are: based on the existing historical data, a gene expression programming method is used to train a symbolic regression model, and an integration method is used to integrate multiple models and generate an integrated model, and an evolutionary algorithm is used as an optimizer to obtain the optimal solution to the optimization problem. Among them, the integrated symbolic regression model will serve as a proxy model in the expensive optimization problem to guide the search direction of the optimization evolutionary algorithm. It should be noted that the method of the present invention can be easily combined with other existing optimization methods to generate a variety of methods that can effectively solve expensive optimization problems.

[0136] This embodiment also provides an offline data-driven optimization device based on symbolic regression, comprising:

[0137] at least one processor;

[0138] at least one memory for storing at least one program;

[0139] When the at least one program is executed by the at least one processor, the at least one processor implements Figure 1 The method shown.

[0140] An offline data-driven optimization device based on symbolic regression in this embodiment can execute an offline data-driven optimization method based on symbolic regression provided by an embodiment of the method of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0141] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 1 The method shown.

[0142] This embodiment also provides a storage medium, which stores instructions or programs that can execute an offline data-driven optimization method based on symbolic regression provided by an embodiment of the method of the present invention. When the instructions or programs are run, any combination of implementation steps of the method embodiment can be executed, and the corresponding functions and beneficial effects of the method can be obtained.

[0143] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0144] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0145] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0146] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0147] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0148] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0149] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0150] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0151] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. An offline data-driven optimization method based on symbolic regression, characterized in that: The following steps are involved: Acquire historical data; the historical data includes decision variables and corresponding actual target values, and optimal data in the historical data; the decision variables include the dimensions of the problem and the values ​​of the decision variables in each dimension; generating a plurality of data subsets of historical data according to the historical data; constructing a plurality of symbolic regression models based on a plurality of said data subsets; evaluating the prediction accuracy of the symbolic regression model based on a plurality of the data subsets; Build a weighted ensemble model based on the obtained prediction accuracy; Data-driven evolutionary optimization is implemented according to the integrated model.

2. The offline data-driven optimization method based on symbolic regression according to claim 1, characterized in that: The data subset includes a training set part and a test set part; The step of generating a plurality of data subsets of historical data according to the historical data comprises: Randomly sampling the historical data to obtain a training set portion of the data subset; The distances from all data in the historical data to the optimal data are calculated, the calculated distance values ​​are sorted, and the corresponding data are obtained as the test set part of the data subset according to the sorting and a preset threshold.

3. The offline data-driven optimization method based on symbolic regression according to claim 2, characterized in that: The calculation formula of the distance from the data to the optimal data is: In the formula, x i is the i-th data in the historical data, x b is the optimal data, D is the dimension of the decision variable, x i,j and x b,j are respectively the component value of the i-th data in the j-th dimension and the component value of the optimal data in the j-th dimension.

4. The offline data-driven optimization method based on symbolic regression according to claim 1, characterized in that: The step of constructing a plurality of symbolic regression models according to the plurality of data subsets comprises: Configure the symbolic space to be searched for symbolic regression; Build and train a symbolic regression model based on a training set of a subset of data; Multiple symbolic regression models were obtained for all data subsets.

5. The offline data-driven optimization method based on symbolic regression according to claim 4, characterized in that: The method of constructing and training a symbolic regression model based on a training set of a data subset includes: Initialize the initial population of symbolic regression and use the gene expression programming method to represent the individuals in the population; The differential evolution algorithm is used to optimize the symbolic regression population iteratively; after the iteration meets the preset termination condition, a mathematical expression that can describe the relationship between the decision variables of the data subset and the target value is obtained.

6. The offline data-driven optimization method based on symbolic regression according to claim 1, characterized in that: For a single symbol regression model, the prediction accuracy is calculated as: In the formula, rmse represents the root mean square error of the model, k represents the kth model, and size test is the size of the training set of the data subset corresponding to the kth model, y i is the predicted target value of the model for the i-th data, o i is the true target value of the i-th data.

7. The offline data-driven optimization method based on symbolic regression according to claim 1, characterized in that: The step of constructing a weighted integrated model according to the obtained prediction accuracy includes: According to the prediction accuracy of the obtained symbolic regression model, multiple models are sorted in ascending order; Divide the models that have been arranged in ascending order into multiple ordered groups through equal-distance division; The basic model that constitutes the integrated model is obtained by randomly extracting the models of each group; Assign a weight to each extracted base model according to the order in which the groups are ranked; A weighted integrated model is obtained based on all basic models to replace the stage where real target evaluation is required in subsequent offline evolutionary optimization.

8. The offline data-driven optimization method based on symbolic regression according to claim 7, characterized in that: The calculation formula of the weight of the basic model is: In the formula, w k represents the weight of the k-th basic model, ranki i Indicates that the i-th model is in M′ sr The sorting number in , g represents the number of basic models in the integrated model; The calculation formula for the predicted value of the weighted integrated model is: In the formula, f(x i ) is the overall integrated proxy model for each basic model and the data x i The predicted value, f k (x i ) is the k-th basic model for data x i The predicted value, w k is the weight value of the th basic model.

9. The offline data-driven optimization method based on symbolic regression according to claim 1, characterized in that: The integrated model is updated in the following way: Obtain evolutionary optimized offspring population through crossover and mutation; Evaluate the population based on the obtained integrated agent model to obtain the best predicted solution and the next generation population; The weighted ensemble model is rebuilt based on the best predicted solution to obtain an updated ensemble model.

10. An offline data-driven optimization device based on symbolic regression, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Lightning early warning method, device and equipment based on weight integrated neural network

    CN119415897A

  • A Lightning Warning Method, Device and Equipment Based on Weight Integrated Neural Network

    CN119415897B

  • Steel structure building state evaluation method and system based on multi-source environment sensing data

    CN120611202A

  • Steel structure building state evaluation method and system based on multi-source environment sensing data

    CN120611202B

  • Oil and gas reservoir production decline curve modeling method, device and equipment based on prefabricated search space symbol regression algorithm, medium and product

    CN120974449A