WO2021142916A1 - Proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus - Google Patents

Proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus Download PDF

Info

Publication number
WO2021142916A1
WO2021142916A1 PCT/CN2020/079879 CN2020079879W WO2021142916A1 WO 2021142916 A1 WO2021142916 A1 WO 2021142916A1 CN 2020079879 W CN2020079879 W CN 2020079879W WO 2021142916 A1 WO2021142916 A1 WO 2021142916A1
Authority
WO
WIPO (PCT)
Prior art keywords
data point
type
individual
point set
population
Prior art date
Application number
PCT/CN2020/079879
Other languages
French (fr)
Chinese (zh)
Inventor
吴巽锋
刘群锋
林秋镇
陈剑勇
Original Assignee
深圳大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳大学 filed Critical 深圳大学
Publication of WO2021142916A1 publication Critical patent/WO2021142916A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming

Definitions

  • This application relates to the field of data processing technology, and in particular to an airfoil optimization method, device, computer equipment, and storage medium based on an agent-assisted evolutionary algorithm.
  • FEA finite element analysis
  • CFD computational fluid dynamics
  • agent-assisted evolutionary algorithms that combine agent-assisted and evolutionary algorithms are getting more and more attention in dealing with expensive optimization problems, that is, adding points to sample data points that are lacking in expensive problems to improve sample data points.
  • the total number is important consideration.
  • Point-adding criteria include PoI point-adding criterion (that is, point-adding criterion based on improved probability), ExI-pointing criterion (that is, point-adding criterion based on expected improvement), and LCB-pointing criterion (that is, point-adding criterion based on lower confidence bound), these three points-adding criteria Both effectively enhance the accuracy of the agent model in the application of agent assistance and evolutionary algorithms, thereby accelerating the final convergence of the algorithm.
  • PoI point-adding criterion that is, point-adding criterion based on improved probability
  • ExI-pointing criterion that is, point-adding criterion based on expected improvement
  • LCB-pointing criterion that is, point-adding criterion based on lower confidence bound
  • the above three points-adding criteria simply use a single criterion or combine multiple criteria into a scalar criterion, resulting in a poorer effect of adding sample points in a limited data sample, and the increased sample points have an impact on the proxy model.
  • the increase in accuracy is less.
  • the embodiments of this application provide an airfoil optimization method, device, computer equipment, and storage medium based on the agent-assisted evolutionary algorithm, aiming to solve the problem of using point addition criteria based on improved probability, point addition criteria based on expected improvement, or point addition criteria based on improved probability in the prior art.
  • the lower confidence bound’s adding point criterion simply uses a single criterion or combines multiple criteria into a scalar criterion, which results in a poor effect of adding sample points in a limited data sample.
  • the increased sample points have fewer problems to improve the accuracy of the proxy model.
  • an embodiment of the present application provides an airfoil optimization method based on an agent-assisted evolutionary algorithm, which includes:
  • each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
  • each data point in the initial data point set is used as the training sample of the first agent model to be trained to obtain the corresponding first current
  • the agent model searches the first type final population generated according to the first type of initial population genetic evolution to obtain the first target individual and the second target individual;
  • the data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain the current data point set; wherein the data point corresponding to the first target individual is determined by The first target individual and the first target individual are input to the pre-stored target function for calculation and are composed of the corresponding first true function value; the data point corresponding to the second target individual is composed of the second target individual and the second target individual Input to the objective function corresponding to the second real function value composition;
  • the data point corresponding to the third target individual is added to the current data point set to obtain the final data point set, the final data point set is used as the initial data point set, and the execution is returned to determine the total number of data points in the initial data point set.
  • the initial data point set is sent to the client.
  • an embodiment of the present application provides an airfoil optimization device based on the agent-assisted evolutionary algorithm, which includes a unit for executing the airfoil optimization method based on the agent-assisted evolution algorithm described in the first aspect.
  • an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer The program implements the airfoil optimization method based on the agent-assisted evolution algorithm described in the first aspect above.
  • an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned first On the one hand, the airfoil optimization method based on the agent-assisted evolutionary algorithm.
  • FIG. 1 is a schematic diagram of an application scenario of an airfoil optimization method based on an agent-assisted evolution algorithm provided by an embodiment of the application;
  • FIG. 2 is a schematic flow chart of an airfoil optimization method based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of a sub-process of an airfoil optimization method based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of another sub-process of the airfoil optimization method based on the agent-assisted evolution algorithm provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of another sub-process of the airfoil optimization method based on the agent-assisted evolution algorithm provided by an embodiment of the application;
  • Fig. 6 is a schematic block diagram of an airfoil optimization device based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
  • FIG. 7 is a schematic block diagram of a computer device provided by an embodiment of the application.
  • FIG. 1 is a schematic diagram of an application scenario of an airfoil optimization method based on an agent-assisted evolution algorithm provided by an embodiment of the application
  • FIG. 2 is an airfoil optimization based on an agent-assisted evolution algorithm provided by an embodiment of the application
  • the airfoil optimization method based on the agent-assisted evolutionary algorithm is applied to the server, and the method is executed by the application software installed in the server.
  • the method includes steps S110 to S180.
  • the client can be understood as a user terminal.
  • the user terminal can be a smart phone, tablet computer, notebook computer, desktop computer, personal digital assistant, wearable device and other electronic devices with communication functions.
  • the user terminal sends data points. Add a request to the server.
  • the second is the server.
  • the server receives the data point adding request sent by the client. Based on the initial data point set stored in the server, the initial data point set is selectively added to the sample through the combination of the proxy model and the genetic evolution algorithm. Click to get a collection of data points.
  • the set of data points obtained from the server is sent to the client.
  • the server detects whether the data point addition request sent by the client is received, and when the server receives the data point addition request sent by the client, the subsequent step S120 is executed. When the server does not receive the data point addition request sent by the client When the path planning request is made, step S110 is executed again after waiting for the preset delay time.
  • each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector.
  • the initial total number in the initial data point set in the sample library is known (for example, 70 initial data points), and each data point in the initial data point set includes the corresponding wing geometry control point
  • each data point in the initial data point set includes the corresponding wing geometry control point
  • 14 control points composed of a B-spline curve are used as wing geometry control points.
  • the positions of these 14 control points constitute the decision variable corresponding to a data point in the initial data point set .
  • the evaluation value of each decision variable can be calculated by the following formula (1):
  • f Airfoil_j represents the evaluation value corresponding to the decision variable of the jth data point in the initial data point set
  • D 1j represents the decision variable of the jth data point under the preset fluid dynamics design condition 1
  • the resistance obtained by CFD simulation D 2j represents the resistance obtained by CFD simulation of the decision variable of the jth data point under the preset fluid dynamics design condition 2
  • L 1j represents the decision variable of the jth data point
  • L 2j represents the lift coefficient obtained by CFD simulation under the preset fluid dynamic design condition 2 for the decision variable representing the jth data point
  • the decision variable representing the j-th data point is subjected to CFD simulation under the preset fluid dynamics design condition 1 to obtain the resistance of the baseline design
  • the decision variable representing the j-th data point is subjected to CFD simulation under the preset fluid dynamics design condition 2 to obtain the resistance of the baseline design
  • the decision variable representing the j-th data point is subject
  • the maximum is obtained from the sum of the total number of data points in the initial data point set and the preset total number of optimization points
  • S130 Determine whether the total number of data points in the initial data point set is less than the maximum number of true evaluation times.
  • the subsequent steps S130-S170 need to be iterated multiple times until the initial data point set
  • the total number of middle data points is greater than or equal to the maximum number of real evaluation times, and the initial data point set is sent to the client.
  • each data point in the initial data point set is less than the maximum number of real evaluation times, use each data point in the initial data point set as a training sample of the first agent model to be trained to obtain the corresponding first data point set.
  • a current agent model according to the first current agent model and the preset first individual screening conditions, the first type of final population generated according to the first type of initial population genetic evolution is searched, and the first target individual and the first target individual are obtained. Two target individuals.
  • step S140 exploring the promising search region in the feasible region is the main purpose of the global search stage (that is, the main purpose of step S140). Purpose).
  • a first current agent model is used as the agent model in the global search phase.
  • the evolutionary algorithm begins to search in the entire feasible domain.
  • the surrogate model is used to obtain the predicted value of the target individual, and the uncertainty value corresponding to each target individual is also obtained.
  • the first agent model to be trained includes a first Chriskin model to be trained, a first radial basis function model to be trained, and a first polynomial response surface model to be trained; the first current agent model Including the first Chriskin model, the first radial basis function model, and the first polynomial response surface model.
  • the first Kriging model is the first Kriging model
  • the first radial basis function model to be trained is the first RBF model
  • the first polynomial response surface model is the first PR model.
  • the proxy model is an existing proxy model, and its model expressions will not be repeated here.
  • the final predicted value of a certain data point input to the first current proxy model is the predicted value corresponding to the three models above. Find the weighted sum.
  • step S140 using each data point in the initial data point set as a training sample of the first agent model to be trained to obtain the corresponding first current agent model includes:
  • the decision variable of each data point in the initial data point set is used as the input of the first radial basis function model to be trained, and the evaluation value corresponding to each decision variable is used as the first radial basis function model to be trained.
  • the first polynomial response surface model to be trained is trained to obtain the first polynomial response surface model.
  • all data points included in the initial data point set are used as the first to-be-trained Chriskin model, the first to-be-trained radial basis function model, and the first to-be-trained
  • the training samples of the polynomial response surface model are correspondingly obtained through training to obtain the first Chriskin model, the first radial basis function model, and the first polynomial response surface model.
  • step S140 according to the first current agent model and the preset first individual screening conditions, the final population of the first type generated according to the genetic evolution of the first type of initial population is performed.
  • Search, the first target individual and the second target individual obtained include:
  • each variable solution is the first type of initial population
  • the characteristic dimension of the solution of each variable is the same as the characteristic dimension of the decision variable
  • S1406 Sort each individual in the first-type mixed population in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population;
  • the initial population of the first type is taken as the final population of the first type, and the individual with the smallest predicted value in the final population of the first type is obtained as As the first target individual, and obtain the individual with the largest uncertainty value in the first type of final population as the second target individual.
  • Ng variable solutions are randomly generated through the Latin hypercube design (where the value of Ng is a positive integer).
  • Latin hypercube design is Latin hypercube sampling (that is, m samples are sampled in the n-dimensional vector space).
  • multiple variable solutions can be randomly generated to form the first type of initial population.
  • each variable solution is an individual in the first type of initial population, and the characteristic dimension of each variable solution is the same as the characteristic dimension of the decision variable.
  • the purpose of randomly generating multiple variable solutions through initialization is to generate better target individuals for evolution.
  • steps S1402-S1409 may be performed multiple iterations until the current iteration algebra of the first type reaches the maximum iteration algebra, and the initial population of the first type after multiple iterations is taken as the The first type of final population, the individual with the smallest predicted value in the first type of final population is obtained as the first target individual, and the individual with the largest uncertainty value in the first type of final population is obtained as the second target individual .
  • simulated binary crossover and polynomial mutation are used.
  • the first type of subpopulation is generated by randomly selecting two individuals from the first type of current population to simulate binary crossover until the crossover obtains Ng
  • Ng new individuals of the first type are mutated to obtain the first type of new individuals after Ng polynomial mutations. After these Ng polynomials are mutated, the first type of new individuals form the first type.
  • Subpopulation the process of randomly selecting two individuals in the current population of the first type for binary crossover is also similar to an iterative process. Until the number of new individuals reaches the population size Ng corresponding to the initial population of the first type, the above multiple times are stopped.
  • binary crossover and polynomial mutation are both conventional processing procedures, and will not be repeated here.
  • the first type of subpopulation is obtained according to the first type of initial population, and the two are mixed to obtain the first type of mixed population (the total number of individuals in the first type of mixed population is 2Ng), then the first type of subpopulation
  • Each individual in the first type of mixed population is input to the first current proxy model to obtain a predicted value corresponding to each individual in the first type of mixed population, according to each of the first type of mixed population
  • the predicted value corresponding to the individual obtains the uncertainty value corresponding to each individual.
  • Obtaining the predicted value corresponding to each individual in the first type of mixed population and the uncertainty value corresponding to each individual is also convenient to use the above two values as reference parameters for selecting target data points (ie target individuals) value.
  • each individual in the first-type mixed population is sorted in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population.
  • the first-type sorted mixed population is based on the preset number of groups Q is divided. Since the total number of individuals in the mixed population after sorting of the first type is 2Ng, the number of individuals included in each group of the first type sub-mixed population in the divided Q group is 2Ng/Q.
  • the value of Q is set to Ng, the number of individuals included in each group of the first-type sub-mixed population is 2.
  • each individual in the first type of mixed population is input to the first current agent model to obtain the same value as that in the first type of mixed population.
  • the predicted value corresponding to each individual including:
  • Root square error Indicates that the individual x i corresponds to the predicted value of the first subtype, Indicates that the individual x i corresponds to the predicted value of the second subtype, Indicates that the individual x i corresponds to the predicted value of the third subtype.
  • the individual when calculating the predicted value corresponding to each individual in the first type of mixed population, the individual is first calculated and inputted to the first Chris King model and the first radial basis.
  • the function model and the polynomial response surface model respectively correspond to the predicted value of the first subtype, the predicted value of the second subtype, and the predicted value of the third subtype corresponding to the individual.
  • the predicted value of the first subtype, the predicted value of the second subtype, and the predicted value of the third subtype corresponding to the individual are weighted and summed to obtain the predicted value corresponding to the individual.
  • the weighted summation method can make the predicted value of the individual input to the first current agent model more accurate, which facilitates the subsequent screening of individuals with better performance based on the predicted value as the target individual.
  • obtaining the uncertainty value corresponding to each individual according to the predicted value corresponding to each individual in the first-type mixed population in step S1405 includes:
  • the uncertainty corresponding to each individual in the first type of mixed population is obtained Certainty value (uncertainty is defined as the maximum difference between two predicted values), the process of obtaining the uncertainty value by other individuals in the first type of mixed population refers to the uncertainty value of the individual x 1 in the above example The acquisition process. Obtaining the uncertainty value corresponding to each individual in the first type of mixed population is convenient for subsequent selection of individuals with better performance as target individuals based on the uncertainty value.
  • the data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain a current data point set; wherein, the data corresponding to the first target individual
  • the points are composed of the first target individual and the first real function value obtained by inputting the first target individual to the pre-stored target function for calculation; the data point corresponding to the second target individual is composed of the second target individual, and the second target individual.
  • the target individual inputs to the target function and is composed of the second real function value obtained correspondingly.
  • each data point in the initial data point set includes a decision variable and an evaluation value corresponding to the decision variable
  • a true function value constitutes the data point corresponding to the first target individual
  • the second target individual and the second true function value constitute the data point corresponding to the second target individual.
  • Step S160 When the data points corresponding to the first target individual and the data points corresponding to the second target individual are added to the initial data point set, if the total number of data points is still less than the maximum number of real evaluations, it is still Step S160 and subsequent steps need to be performed until the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, and the initial data point set is sent to the client.
  • steps S140-S150 the first target individual and the second target individual are quickly screened in the first type of final population. The data points corresponding to these two individuals can be added as the two selected data points after this round of iteration.
  • To the initial data point set the current data point set is obtained.
  • the second round of data points to the current data point set is completed through a local search. Click the process of adding points to get the final set of data points after the end of this round of iterative process.
  • step S160 includes:
  • S1601 call a pre-stored second radial basis function model to be trained as the second current agent model
  • a third target individual that satisfies the second individual screening condition is searched for in the current data point set by means of a local search.
  • steps S1604-S1611 may be performed multiple iterations until the current iteration algebra of the second type reaches the maximum iteration algebra, and the initial population of the second type after multiple iterations is taken as the first iteration.
  • the final population of the second type, and the individual with the smallest predicted value in the final population of the second type is obtained as the third target individual.
  • step S1605 includes:
  • Randomly select two individuals in the second type of initial population to perform binary crossover in sequence until M new individuals of the second type after crossover processing are generated, and after M crossover processing, the second type of new individuals are subjected to polynomial mutation, and the polynomial The mutated second-type new individuals form the second-type subpopulation; where M the ranking threshold -1.
  • simulated binary crossover and polynomial mutation are used.
  • the second type of subpopulation is generated by randomly selecting two individuals from the second type of current population to simulate binary crossover until the crossover obtains M
  • the second type of new individuals where the value of M is a positive integer
  • the M second type of new individuals after crossover processing are mutated, and the second type after M polynomial mutation is obtained.
  • Class new individuals, after these M polynomials mutate, the second class new individuals form the second class subpopulation.
  • the process of randomly selecting two individuals in the current population of the second type for binary crossover is also similar to an iterative process, until the number of new individuals reaches the second population size M corresponding to the initial population of the second type, the above process is stopped.
  • the process of multiple binary crossovers is also similar to an iterative process, until the number of new individuals reaches the second population size M corresponding to the initial population of the second type, the above process is stopped.
  • the second type of subpopulation is obtained from the second type of initial population, and the two are mixed to obtain the second type of mixed population (the total number of individuals in the second type of mixed population is 2M)
  • the first Each individual in the second-type mixed population is input to the second current proxy model, and a predicted value corresponding to each individual in the second-type mixed population is obtained.
  • Obtaining the predicted value corresponding to each individual in the second type of mixed population is also convenient to use the predicted value as a reference parameter value for selecting a target data point (that is, a target individual).
  • each individual in the second-type mixed population is sorted in ascending order according to the corresponding predicted value to obtain the second-type sorted mixed population.
  • the ranking in the second-type sorted mixed population is obtained at the ranking threshold.
  • the previous individuals form the current population of the second type, thereby recomposing the current population of the second type including M individuals.
  • steps S1604-S1611 are repeated for multiple times until the current iteration of the second type.
  • the final initial population of the second type is used as the final population of the second type.
  • the individual with the smallest predicted value in the second type of final population is acquired as the third target individual.
  • step S170 Add the data point corresponding to the third target individual to the current data point set to obtain a final data point set, use the final data point set as the initial data point set, and return to step S130; wherein, the third target The data point corresponding to the individual is composed of the third target individual and the third true function value obtained by inputting the third target individual to the target function.
  • Step S120 when the data point corresponding to the third target individual is added to the current data point set, if the total number of data points is still less than the maximum number of true evaluations, then it is necessary to perform the step to return to execution. Step S120 and subsequent steps, until the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client.
  • steps S160-S170 the third target individual can be quickly screened in the second type of final population.
  • the data point corresponding to this third target individual can be used as a selected data point after this round of iteration and added to the current Data point collection, the final data point collection is obtained, and the final data point collection is updated as a new initial data point collection after the end of this round of iteration, and step S120 is returned to.
  • the client after obtaining the initial data point set in the server, it can be sent to the client.
  • the client can further optimize the wing shape based on a larger number of data points in the initial data point set of the final state after multiple iterations.
  • This method realizes the combination of agent-assisted and evolutionary algorithms and considers the predicted value and uncertainty of the agent model at the same time. It quickly increases data points in a limited data sample, and the increased sample points have a significant impact on the accuracy of the agent model. improve.
  • the embodiment of the present application also provides an airfoil optimization device based on the agent-assisted evolution algorithm.
  • the airfoil optimization device based on the agent-assisted evolution algorithm is used to execute any embodiment of the aforementioned airfoil optimization method based on the agent-assisted evolution algorithm.
  • FIG. 6, is a schematic block diagram of an airfoil optimization device based on a proxy-assisted evolution algorithm provided by an embodiment of the present application.
  • the airfoil optimization device 100 based on the agent-assisted evolutionary algorithm can be configured in a server.
  • the airfoil optimization device 100 based on the agent-assisted evolutionary algorithm includes a point addition request detection unit 110, an initial data point set acquisition unit 120, a total number of data point judgment unit 130, a global search unit 140, and the first round of point addition The unit 150, the local search unit 160, the second round adding unit 170, and the collective sending unit 180 after adding the points.
  • the point addition request detection unit 110 is used to determine whether a data point addition request sent by the client is received.
  • the initial data point set obtaining unit 120 is configured to obtain the initial data point set in the sample library if the data point adding request sent by the client is received, and according to the total number of data points in the initial data point set and the preset optimization The total number of points obtains the maximum true evaluation times; among them, each data point includes the decision variable corresponding to the wing geometric shape control point and the evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector .
  • the total number of data points judging unit 130 is configured to judge whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times.
  • the global search unit 140 is configured to use each data point in the initial data point set as a training sample of the first proxy model to be trained if the total number of data points in the initial data point set is less than the maximum number of real evaluations , Obtain the corresponding first current agent model, search according to the first current agent model and preset first individual screening conditions in the first type final population generated according to the first type of initial population genetic evolution, and obtain the first type of final population A target individual and a second target individual.
  • the global search unit 140 includes:
  • the first agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first to-be-trained Chriskin model, and use the evaluation value corresponding to each decision variable as the first Output of the Chris King model to be trained, training the first Chris King model to be trained to obtain the first Chris King model;
  • the second agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first radial basis function model to be trained, and use the evaluation value corresponding to each decision variable as the first An output of the radial basis function model to be trained, training the first radial basis function model to be trained to obtain the first radial basis function model;
  • the third agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first polynomial response surface model to be trained, and use the evaluation value corresponding to each decision variable as the first
  • the output of the polynomial response surface model to be trained is trained on the first polynomial response surface model to be trained to obtain the first polynomial response surface model.
  • the global search unit 140 further includes:
  • the first type of initial population generating unit is used to randomly generate Ng variable solutions in a Latin hypercube design according to the vector feature dimensions of the decision variables in the initial data point set to form the first type of initial population; wherein, each The variable solution is an individual in the first type of initial population, and the characteristic dimension of each variable solution is the same as the characteristic dimension of the decision variable;
  • the first type of current iteration algebra judging unit used to obtain the first type of current iteration algebra, and determine whether the first type of current iteration algebra reaches the preset maximum iteration algebra; wherein the initial value of the first type of current iteration algebra Is 1;
  • the first-type population cross-mutation unit is used to simulate binary crossover and polynomial mutation of the first-type initial population if the current iterative algebra of the first-type does not reach the maximum iterative algebra, to obtain the same as the first-type
  • the initial population has the first type of subpopulation with the same total number of individuals;
  • the first-type mixed population obtaining unit is configured to merge the first-type initial population with the first-type sub-population to obtain the first-type mixed population;
  • the first-type parameter acquisition unit is configured to input each individual in the first-type mixed population into the first current proxy model to obtain a prediction corresponding to each individual in the first-type mixed population Value, obtaining the uncertainty value corresponding to each individual according to the predicted value corresponding to each individual in the first type of mixed population;
  • the first-type sorting unit is configured to sort each individual in the first-type mixed population in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population;
  • the first-type population screening unit is used to obtain the individuals with the smallest uncertainty value in each group of the first-type sub-mixed populations of the Q group to form the first-type current population.
  • the current population of the class is the initial population of the first class;
  • the first-type current iterative algebra secondary judgment unit configured to add one to the first-type current iterative algebra as the first-type current iterative algebra, return to execute to obtain the first-type current iterative algebra, and determine the first-type current iterative algebra Whether the current iteration algebra reaches the preset maximum iteration algebra step;
  • the first-type target individual acquiring unit is configured to, if the current iteration algebra of the first type reaches the maximum iteration algebra, use the first-type initial population as the first-type final population, and obtain the first-type final population
  • the individual with the smallest predicted value in the population is taken as the first target individual, and the individual with the largest uncertainty value in the first type of final population is obtained as the second target individual.
  • the first round of adding points unit 150 is configured to add the data points corresponding to the first target individual and the data points corresponding to the second target individual to the initial data point set to obtain the current data point set; wherein, the The data point corresponding to the first target individual is composed of the first target individual and the first real function value obtained by inputting the first target individual to the pre-stored target function for operation; the data point corresponding to the second target individual is composed of the first Two target individuals, and the second target individual input to the objective function corresponding to the obtained second real function value composition.
  • the local search unit 160 is configured to obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set.
  • Each data point is used as the training sample of the second agent model to be trained, and the corresponding second current agent model is obtained.
  • the second current agent model and the preset second individual screening conditions it is generated according to the genetic evolution of the second type of initial population
  • the second type of final population is searched, and the third target individual is obtained.
  • the local search unit 160 includes:
  • a fourth proxy model acquiring unit configured to call a pre-stored second radial basis function model to be trained as the second current proxy model
  • the fourth agent model training unit is configured to use the decision variable corresponding to each data point in the target data point set as the input of the second radial basis function model to be trained, and use the evaluation value corresponding to each decision variable as the The output of the second radial basis function model to be trained, the second radial basis function model to be trained is trained to obtain a second radial basis function model, and the second radial basis function model is used as the The second current agency model;
  • the second type of initial population generating unit is used to obtain the decision variable corresponding to each data point in the target data point set to form the second type of initial population; wherein, the decision corresponding to each data point in the target data point set The variable corresponds to an individual in the initial population of the second type;
  • the second type of current iteration algebra judging unit used to obtain the second type of current iteration algebra, and determine whether the second type of current iteration algebra reaches the preset maximum iteration algebra; wherein, the initial value of the second type of current iteration algebra Is 1;
  • the second type of population crossover mutation unit is used to simulate binary crossover and polynomial mutation of the second type of initial population if the current iteration algebra of the second type does not reach the maximum iterative algebra to obtain
  • the initial population has the second type of subpopulation with the same total number of individuals;
  • the second-type mixed population obtaining unit is configured to merge the second-type initial population with the second-type sub-population to obtain the second-type mixed population;
  • the second-type parameter acquisition unit is used to input each individual in the second-type mixed population into the second radial basis function model to obtain a corresponding to each individual in the second-type mixed population Predicted value;
  • the second-type sorting unit is configured to sort each individual in the second-type mixed population in ascending order according to the corresponding predicted value to obtain the second-type mixed population after sorting;
  • the second-type population screening unit is used to obtain individuals in the second-type mixed population after sorting that are sorted before the ranking threshold to form a second-type current population, and the second-type current population is regarded as the second type Initial population
  • the second type of current iterative algebra secondary judgment unit used to add one to the second type of current iterative algebra to serve as the second type of current iterative algebra, return to execute the acquisition of the second type of current iterative algebra, and determine the first Steps of whether the current iteration algebra of the second type reaches the preset maximum iteration algebra;
  • the second type of target individual obtaining unit is configured to, if the current iteration algebra of the second type reaches the maximum iteration algebra, use the initial population of the second type as the final population of the second type, and obtain the final population of the second type.
  • the individual with the smallest predicted value in the population is taken as the third target individual.
  • the second round of adding points unit 170 is configured to add data points corresponding to the third target individual to the current data point set to obtain a final data point set, use the final data point set as the initial data point set, and return to execute the judgment
  • the function corresponds to the obtained third real function value composition.
  • the point-added set sending unit 180 is configured to send the initial data point set to the client if the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times.
  • the device realizes the combination of agent assistance and evolutionary algorithms and considers the predicted value and uncertainty of the agent model at the same time. It quickly increases data points in a limited data sample, and the increased sample points have a significant impact on the accuracy of the agent model. improve.
  • the above-mentioned airfoil optimization device based on the agent-assisted evolutionary algorithm may be implemented in the form of a computer program, and the computer program may run on the computer device as shown in FIG.
  • FIG. 7 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 is a server, and the server may be an independent server or a server cluster composed of multiple servers.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the airfoil optimization method based on the agent-assisted evolution algorithm.
  • the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the airfoil optimization method based on the agent-assisted evolution algorithm.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • the structure shown in FIG. 7 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in a memory to implement the airfoil optimization method based on the agent-assisted evolution algorithm disclosed in the embodiment of the present application.
  • the embodiment of the computer device shown in FIG. 7 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or less components than those shown in the figure. Or some parts are combined, or different parts are arranged.
  • the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. 7 and will not be repeated here.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program is executed by a processor to implement the airfoil optimization method based on the agent-assisted evolution algorithm disclosed in the embodiments of the present application.
  • the computer-readable storage medium is a physical, non-transitory storage medium, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk that can store program codes. Physical storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Biomedical Technology (AREA)
  • Genetics & Genomics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Physiology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus, and a computer device, and a storage medium. By performing multiple global searches and local searches on an initial data point set in a sample library, the number of data points in the initial data point set in the sample library is increased to be greater than or equal to the maximum number of real evaluations.

Description

基于代理辅助进化算法的翼型优化方法及装置Airfoil optimization method and device based on agent-assisted evolutionary algorithm
本申请要求于2020年1月15日提交中国专利局、申请号为202010041514.7、申请名称为“基于代理辅助进化算法的翼型优化方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on January 15, 2020, the application number is 202010041514.7, and the application title is "Agent-assisted evolutionary algorithm-based airfoil optimization method and device", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及数据处理技术领域,尤其涉及一种基于代理辅助进化算法的翼型优化方法、装置、计算机设备及存储介质。This application relates to the field of data processing technology, and in particular to an airfoil optimization method, device, computer equipment, and storage medium based on an agent-assisted evolutionary algorithm.
背景技术Background technique
进化算法又称元启发式算法,目前已被广泛应用于各种工程优化。然而,如果这些进化算法被应用于涉及计算昂贵模拟的昂贵优化问题时,计算成本将十分巨大。昂贵优化问题和普通的优化问题有很大区别,昂贵优化问题的响应函数通常是一个仿真模型,例如有限元分析(简记为FEA)和计算流体动力学(简记为CFD)。Evolutionary algorithm, also known as meta-heuristic algorithm, has been widely used in various engineering optimizations. However, if these evolutionary algorithms are applied to expensive optimization problems involving computationally expensive simulations, the computational cost will be huge. Expensive optimization problems are very different from ordinary optimization problems. The response function of expensive optimization problems is usually a simulation model, such as finite element analysis (abbreviated as FEA) and computational fluid dynamics (abbreviated as CFD).
目前,将代理辅助和进化算法相结合的代理辅助进化算法在处理昂贵的优化问题上得到越来越多的关注,也就是对昂贵问题中所缺乏的样本数据点进行加点以提升样本数据点的总个数是需要重点考虑的。At present, agent-assisted evolutionary algorithms that combine agent-assisted and evolutionary algorithms are getting more and more attention in dealing with expensive optimization problems, that is, adding points to sample data points that are lacking in expensive problems to improve sample data points. The total number is important consideration.
常用的加点准则有PoI加点准则(即基于改进概率的加点准则),ExI加点准则(即基于期望改进的加点准则)和LCB加点准则(即基于下置信界的加点准则),这三种加点准则都在代理辅助和进化算法的应用中有效地加强代理模型的精度,从而加速算法的最终收敛。但是上述三种加点准则只是简单地使用一个单一的准则或者将多个准则组合成一个标量准则,导致在有限的数据样本中增加样本点的效果较差,而且所增加的样本点对代理模型的精度的提高较少。Commonly used points-adding criteria include PoI point-adding criterion (that is, point-adding criterion based on improved probability), ExI-pointing criterion (that is, point-adding criterion based on expected improvement), and LCB-pointing criterion (that is, point-adding criterion based on lower confidence bound), these three points-adding criteria Both effectively enhance the accuracy of the agent model in the application of agent assistance and evolutionary algorithms, thereby accelerating the final convergence of the algorithm. However, the above three points-adding criteria simply use a single criterion or combine multiple criteria into a scalar criterion, resulting in a poorer effect of adding sample points in a limited data sample, and the increased sample points have an impact on the proxy model. The increase in accuracy is less.
发明内容Summary of the invention
本申请实施例提供了一种基于代理辅助进化算法的翼型优化方法、装置、计算机设备及存储介质,旨在解决现有技术中采用基于改进概率的加点准则、基于期望改进的加点准则或基于下置信界的加点准则在处理昂贵优化问题中的加点时,只是简单地使用一个单一的准则或者将多个准则组合成一个标量准则,导致在有限的数据样本中增加样本点的效果较差,而且所增加的样本点对代理模型的精度的提高较少的问题。The embodiments of this application provide an airfoil optimization method, device, computer equipment, and storage medium based on the agent-assisted evolutionary algorithm, aiming to solve the problem of using point addition criteria based on improved probability, point addition criteria based on expected improvement, or point addition criteria based on improved probability in the prior art. When dealing with the addition of points in expensive optimization problems, the lower confidence bound’s adding point criterion simply uses a single criterion or combines multiple criteria into a scalar criterion, which results in a poor effect of adding sample points in a limited data sample. Moreover, the increased sample points have fewer problems to improve the accuracy of the proxy model.
第一方面,本申请实施例提供了一种基于代理辅助进化算法的翼型优化方法,其包括:In the first aspect, an embodiment of the present application provides an airfoil optimization method based on an agent-assisted evolutionary algorithm, which includes:
判断是否接收到客户端发送的数据点加点请求;Determine whether the data point adding request sent by the client is received;
若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量;If a data point addition request sent by the client is received, the initial data point set in the sample library is obtained, and the maximum number of real evaluations is obtained according to the total number of data points in the initial data point set and the total number of optimized points set in advance; Among them, each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数;Judging whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times;
若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体;If the total number of data points in the initial data point set is less than the maximum number of real evaluations, each data point in the initial data point set is used as the training sample of the first agent model to be trained to obtain the corresponding first current The agent model, according to the first current agent model and preset first individual screening conditions, searches the first type final population generated according to the first type of initial population genetic evolution to obtain the first target individual and the second target individual;
将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加 入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成;The data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain the current data point set; wherein the data point corresponding to the first target individual is determined by The first target individual and the first target individual are input to the pre-stored target function for calculation and are composed of the corresponding first true function value; the data point corresponding to the second target individual is composed of the second target individual and the second target individual Input to the objective function corresponding to the second real function value composition;
获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体;Obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is used as the second target data point set. Train the training samples of the agent model to obtain the corresponding second current agent model, and perform the process on the second type final population generated based on the genetic evolution of the second type initial population according to the second current agent model and preset second individual screening conditions Search to get the third target individual;
将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成;以及The data point corresponding to the third target individual is added to the current data point set to obtain the final data point set, the final data point set is used as the initial data point set, and the execution is returned to determine the total number of data points in the initial data point set. The step of whether the number is less than the maximum number of real evaluation times; wherein the data point corresponding to the third target individual is input by the third target individual and the third target individual to the third true function value corresponding to the target function Composition; and
若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。If the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client.
第二方面,本申请实施例提供了一种基于代理辅助进化算法的翼型优化装置,其包括用于执行上述第一方面所述的基于代理辅助进化算法的翼型优化方法的单元。第三方面,本申请实施例又提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的基于代理辅助进化算法的翼型优化方法。In the second aspect, an embodiment of the present application provides an airfoil optimization device based on the agent-assisted evolutionary algorithm, which includes a unit for executing the airfoil optimization method based on the agent-assisted evolution algorithm described in the first aspect. In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer The program implements the airfoil optimization method based on the agent-assisted evolution algorithm described in the first aspect above.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行上述第一方面所述的基于代理辅助进化算法的翼型优化方法。In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned first On the one hand, the airfoil optimization method based on the agent-assisted evolutionary algorithm.
附图说明Description of the drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of an airfoil optimization method based on an agent-assisted evolution algorithm provided by an embodiment of the application;
图2为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的流程示意图;2 is a schematic flow chart of an airfoil optimization method based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
图3为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的子流程示意图;FIG. 3 is a schematic diagram of a sub-process of an airfoil optimization method based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
图4为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的另一子流程示意图;4 is a schematic diagram of another sub-process of the airfoil optimization method based on the agent-assisted evolution algorithm provided by an embodiment of the application;
图5为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的另一子流程示意图;5 is a schematic diagram of another sub-process of the airfoil optimization method based on the agent-assisted evolution algorithm provided by an embodiment of the application;
图6为本申请实施例提供的基于代理辅助进化算法的翼型优化装置的示意性框图;Fig. 6 is a schematic block diagram of an airfoil optimization device based on an agent-assisted evolutionary algorithm provided by an embodiment of the application;
图7为本申请实施例提供的计算机设备的示意性框图。FIG. 7 is a schematic block diagram of a computer device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
请参阅图1和图2,图1为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的应用场景示意图;图2为本申请实施例提供的基于代理辅助进化算法的翼型优化方法的流程示意图,该基于代理辅助进化算法的翼型优化方法应用于服务器中,该方法通过安装于服务器中的应用软件进行执行。Please refer to FIGS. 1 and 2. FIG. 1 is a schematic diagram of an application scenario of an airfoil optimization method based on an agent-assisted evolution algorithm provided by an embodiment of the application; FIG. 2 is an airfoil optimization based on an agent-assisted evolution algorithm provided by an embodiment of the application A schematic flow diagram of the method. The airfoil optimization method based on the agent-assisted evolutionary algorithm is applied to the server, and the method is executed by the application software installed in the server.
如图2所示,该方法包括步骤S110~S180。As shown in Figure 2, the method includes steps S110 to S180.
S110、判断是否接收到客户端发送的数据点加点请求。S110: Determine whether a data point addition request sent by the client is received.
为了更清楚的理解本申请的技术方案,下面对所涉及到的终端进行介绍。本申请是在服务器的角度描述技术方案。In order to understand the technical solution of the present application more clearly, the terminals involved are introduced below. This application describes the technical solution from the perspective of the server.
第一是客户端,客户端可以理解为用户终端,用户终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备,用户终端发送数据点加点请求至服务器。第二是服务器,服务器接收客户端发送的数据点加点请求,以服务器中已存储的初始数据点集合为基础,通过代理模型和遗传进化算法相结合对初始数据点集合进行有选择性的加入样本点得到数据点集合。服务器中得到数据点集合发送至客户端。The first is the client. The client can be understood as a user terminal. The user terminal can be a smart phone, tablet computer, notebook computer, desktop computer, personal digital assistant, wearable device and other electronic devices with communication functions. The user terminal sends data points. Add a request to the server. The second is the server. The server receives the data point adding request sent by the client. Based on the initial data point set stored in the server, the initial data point set is selectively added to the sample through the combination of the proxy model and the genetic evolution algorithm. Click to get a collection of data points. The set of data points obtained from the server is sent to the client.
在本实施例中,通过服务器检测是否接收到客户端发送的数据点加点请求,当服务器接收到客户端发送的数据点加点请求求时则执行后续的步骤S120,当服务器未接收到客户端发送的路径规划请求时则等待预设的延迟时间后再次执行步骤S110。In this embodiment, the server detects whether the data point addition request sent by the client is received, and when the server receives the data point addition request sent by the client, the subsequent step S120 is executed. When the server does not receive the data point addition request sent by the client When the path planning request is made, step S110 is executed again after waiting for the preset delay time.
S120、若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量。S120. If a data point addition request sent by the client is received, the initial data point set in the sample library is obtained, and the maximum true evaluation is obtained according to the total number of data points in the initial data point set and the total number of optimized points set in advance Times; where each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector.
在本实施例中,样本库中的初始数据点集合中的初始总个数是已知的(例如70个初始数据点),初始数据点集合中每一个数据点包括机翼几何形状控制点对应的决策变量,例如是由一个B-样条曲线组成的14个控制点来作为机翼几何形状控制点,这14个控制点的位置组成了初始数据点集合中的一个数据点对应的决策变量。而且每一决策变量的评估值可以估计如下式(1)进行计算得到:In this embodiment, the initial total number in the initial data point set in the sample library is known (for example, 70 initial data points), and each data point in the initial data point set includes the corresponding wing geometry control point For example, 14 control points composed of a B-spline curve are used as wing geometry control points. The positions of these 14 control points constitute the decision variable corresponding to a data point in the initial data point set . Moreover, the evaluation value of each decision variable can be calculated by the following formula (1):
Figure PCTCN2020079879-appb-000001
Figure PCTCN2020079879-appb-000001
其中,在式(1)中f Airfoil_j表示初始数据点集合第j个数据点的决策变量对应的评估值,D 1j表示第j个数据点的决策变量在预先设置的流体动力学设计条件1下进行CFD模拟得到的阻力,D 2j表示表示第j个数据点的决策变量在预先设置的流体动力学设计条件2下进行CFD模拟得到的阻力,L 1j表示第j个数据点的决策变量在预先设置的流体动力学设计条件1下进行CFD模拟得到的升力系数,L 2j表示表示第j个数据点的决策变量在预先设置的流体动力学设计条件2下进行CFD模拟得到的升力系数;
Figure PCTCN2020079879-appb-000002
表示第j个数据点的决策变量在预先设置的流体动力学设计条件1下进行CFD模拟得到基线设计的阻力,
Figure PCTCN2020079879-appb-000003
表示第j个数据点的决策变量在预先设置的流体动力学设计条件2下进行CFD模拟得到基线设计的阻力,
Figure PCTCN2020079879-appb-000004
表示第j个数据点的决策变量在预先设置的流体动力学设计条件1下进行CFD模拟得到基线设计的升力系数,
Figure PCTCN2020079879-appb-000005
表示第j个数据点的决策变量在预先设置的流体动力学设计条件2下进行CFD模拟得到基线设计的升力系数。
Among them, in formula (1), f Airfoil_j represents the evaluation value corresponding to the decision variable of the jth data point in the initial data point set, and D 1j represents the decision variable of the jth data point under the preset fluid dynamics design condition 1 The resistance obtained by CFD simulation, D 2j represents the resistance obtained by CFD simulation of the decision variable of the jth data point under the preset fluid dynamics design condition 2, L 1j represents the decision variable of the jth data point The lift coefficient obtained by CFD simulation under the set fluid dynamics design condition 1, L 2j represents the lift coefficient obtained by CFD simulation under the preset fluid dynamic design condition 2 for the decision variable representing the jth data point;
Figure PCTCN2020079879-appb-000002
The decision variable representing the j-th data point is subjected to CFD simulation under the preset fluid dynamics design condition 1 to obtain the resistance of the baseline design,
Figure PCTCN2020079879-appb-000003
The decision variable representing the j-th data point is subjected to CFD simulation under the preset fluid dynamics design condition 2 to obtain the resistance of the baseline design,
Figure PCTCN2020079879-appb-000004
The decision variable representing the j-th data point is subjected to CFD simulation under the preset fluid dynamics design condition 1 to obtain the lift coefficient of the baseline design,
Figure PCTCN2020079879-appb-000005
The decision variable representing the jth data point is subjected to CFD simulation under the preset fluid dynamics design condition 2 to obtain the lift coefficient of the baseline design.
而且由于预先设置了优化点总个数(例如优化点总个数为84个),此时由初始数据点集合中数据点的总个数与预先设置的优化点总个数之和,获取最大真实评价次数(例如最大真实评价次数=70+84=154),其中获取所述最大真实 评价次数是为了确定后续步骤S130-S170的迭代次数,从而将样本库中的初始数据点集合增加多个目标数据点,实现对机翼的翼型设计昂贵优化问题中数据点数量不足的缺陷进行改进。And because the total number of optimization points is preset (for example, the total number of optimization points is 84), the maximum is obtained from the sum of the total number of data points in the initial data point set and the preset total number of optimization points The number of true evaluations (for example, the maximum number of true evaluations=70+84=154), where the maximum number of true evaluations is obtained to determine the number of iterations of subsequent steps S130-S170, thereby increasing the initial data point set in the sample library by multiple Target data points to improve the defect of insufficient data points in the costly optimization problem of wing airfoil design.
S130、判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数。S130: Determine whether the total number of data points in the initial data point set is less than the maximum number of true evaluation times.
在本实施例中,由于初始数据点集合中数据点的初始总个数是小于所述最大真实评价次数的,此时需要多次迭代后续的步骤S130-S170,直至若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。通过迭代过程不断的增加性能较好的数据点至初始数据点集合,从而实现昂贵优化问题的数据点加点。In this embodiment, since the initial total number of data points in the initial data point set is less than the maximum number of real evaluations, the subsequent steps S130-S170 need to be iterated multiple times until the initial data point set The total number of middle data points is greater than or equal to the maximum number of real evaluation times, and the initial data point set is sent to the client. Through an iterative process, data points with better performance are continuously added to the initial data point set, so as to realize the addition of data points for expensive optimization problems.
S140、若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体。S140. If the total number of data points in the initial data point set is less than the maximum number of real evaluation times, use each data point in the initial data point set as a training sample of the first agent model to be trained to obtain the corresponding first data point set. A current agent model, according to the first current agent model and the preset first individual screening conditions, the first type of final population generated according to the first type of initial population genetic evolution is searched, and the first target individual and the first target individual are obtained. Two target individuals.
在本实施例中,当所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,此时需以初始数据点集合中数据点为基础,逐渐遗传进化生成多个目标数据点不断增加至初始数据点集合。In this embodiment, when the total number of data points in the initial data point set is less than the maximum number of true evaluations, then it is necessary to use the data points in the initial data point set as the basis for gradual genetic evolution to generate multiple target data The points continue to increase to the initial set of data points.
在机翼的翼形昂贵优化问题中,整个可行域的若干处子区域必然存在更加优越的解个体,所以探索可行域中有前途的搜索区域是全局搜索阶段的主要目的(也即步骤S140的主要目的)。在全局搜索阶段中,使用一个第一当前代理模型来作为全局搜索阶段的代理模型。代理模型建立之后,进化算法开始在整个可行域中进行搜索的过程中,代理模型用来得到目标个体的预测值,同时每个目标个体对应的不确定性值也被获取。In the costly optimization problem of the wing shape of the wing, there must be more superior solution individuals in several sub-regions of the entire feasible region. Therefore, exploring the promising search region in the feasible region is the main purpose of the global search stage (that is, the main purpose of step S140). Purpose). In the global search phase, a first current agent model is used as the agent model in the global search phase. After the surrogate model is established, the evolutionary algorithm begins to search in the entire feasible domain. The surrogate model is used to obtain the predicted value of the target individual, and the uncertainty value corresponding to each target individual is also obtained.
在一实施例中,所述第一待训练代理模型包括第一待训练克里斯金模型、第一待训练径向基函数模型、第一待训练多项式响应面模型;所述第一当前代理模型包括第一克里斯金模型、第一径向基函数模型、第一多项式响应面模型。In an embodiment, the first agent model to be trained includes a first Chriskin model to be trained, a first radial basis function model to be trained, and a first polynomial response surface model to be trained; the first current agent model Including the first Chriskin model, the first radial basis function model, and the first polynomial response surface model.
其中,所述第一克里斯金模型即第一Kriging模型,所述第一待训练径向基函数模型即第一RBF模型,第一多项式响应面模型即第一PR模型,上述三个代理模型是现有的代理模型,此处对其模型表达式不再赘述。The first Kriging model is the first Kriging model, the first radial basis function model to be trained is the first RBF model, and the first polynomial response surface model is the first PR model. The proxy model is an existing proxy model, and its model expressions will not be repeated here.
由于第一当前代理模型包括上述3个代理模型,故为了提高代理模型的精度,某一数据点输入至第一当前代理模型的最终预测值为该数据点输入上述三个模型分别对应的预测值求加权和。Since the first current proxy model includes the above three proxy models, in order to improve the accuracy of the proxy model, the final predicted value of a certain data point input to the first current proxy model is the predicted value corresponding to the three models above. Find the weighted sum.
在一实施例中,步骤S140中以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,包括:In an embodiment, in step S140, using each data point in the initial data point set as a training sample of the first agent model to be trained to obtain the corresponding first current agent model includes:
将所述初始数据点集合中各数据点的决策变量作为所述第一待训练克里斯金模型的输入,将各决策变量对应的评估值作为所述第一待训练克里斯金模型的输出,对所述第一待训练克里斯金模型进行训练,得到第一克里斯金模型;Using the decision variable of each data point in the initial data point set as the input of the first Chriskin model to be trained, and the evaluation value corresponding to each decision variable as the output of the first Chriskin model to be trained, Training the first Chris King model to be trained to obtain the first Chris King model;
将所述初始数据点集合中各数据点的决策变量作为所述第一待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第一待训练径向基函数模型的输出,对所述第一待训练径向基函数模型进行训练,得到第一径向基函数模型;The decision variable of each data point in the initial data point set is used as the input of the first radial basis function model to be trained, and the evaluation value corresponding to each decision variable is used as the first radial basis function model to be trained. Output, training the first radial basis function model to be trained to obtain a first radial basis function model;
将所述初始数据点集合中各数据点的决策变量作为所述第一待训练多项式响应面模型的输入,将各决策变量对应的评估值作为所述第一待训练多项式响应面模型的输出,对所述第一待训练多项式响应面模型进行训练,得到第一多项式响应面模型。Using the decision variable of each data point in the initial data point set as the input of the first polynomial response surface model to be trained, and the evaluation value corresponding to each decision variable as the output of the first polynomial response surface model to be trained, The first polynomial response surface model to be trained is trained to obtain the first polynomial response surface model.
在本实施例中,以所述初始数据点集合中包括的所有数据点作为所述第一待训练克里斯金模型、所述第一待训练径向基函数模型、及所述第一待训练多项式响应面模型的训练样本,通过训练对应得到第一克里斯金模型、第一径向基函数模型、第一多项式响应面模型。通过上述过程,实现第一当前代理模型 的获取。In this embodiment, all data points included in the initial data point set are used as the first to-be-trained Chriskin model, the first to-be-trained radial basis function model, and the first to-be-trained The training samples of the polynomial response surface model are correspondingly obtained through training to obtain the first Chriskin model, the first radial basis function model, and the first polynomial response surface model. Through the above process, the acquisition of the first current agent model is achieved.
在一实施例中,如图3所示,步骤S140中根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体,包括:In one embodiment, as shown in FIG. 3, in step S140, according to the first current agent model and the preset first individual screening conditions, the final population of the first type generated according to the genetic evolution of the first type of initial population is performed. Search, the first target individual and the second target individual obtained include:
S1401、根据所述初始数据点集合中决策变量的向量特征维数,以拉丁超立方体设计随机生成Ng个变量解,以组成第一类初始种群;其中,每一变量解为第一类初始种群中的一个个体,每一变量解的特征维数与决策变量的特征维数相同;S1401, according to the vector feature dimensions of the decision variables in the initial data point set, randomly generate Ng variable solutions in a Latin hypercube design to form the first type of initial population; wherein, each variable solution is the first type of initial population For an individual in, the characteristic dimension of the solution of each variable is the same as the characteristic dimension of the decision variable;
S1402、获取第一类当前迭代代数,判断所述第一类当前迭代代数是否达到预设的最大迭代代数;其中,所述第一类当前迭代代数的初始值为1;S1402. Obtain the current iteration algebra of the first type, and determine whether the current iteration algebra of the first type reaches a preset maximum iteration algebra; wherein, the initial value of the current iteration algebra of the first type is 1.
S1403、若所述第一类当前迭代代数未达到所述最大迭代代数,对所述第一类初始种群进行模拟二进制交叉和多项式变异,得到与所述第一类初始种群有相同个体总个数的第一类子种群;S1403. If the current iteration algebra of the first type does not reach the maximum iteration algebra, perform simulated binary crossover and polynomial mutation on the initial population of the first type to obtain the total number of individuals that are the same as the initial population of the first type The first type of subpopulation;
S1404、将所述第一类初始种群与所述第一类子种群进行合并,得到第一类混合种群;S1404. Combine the first-type initial population with the first-type sub-population to obtain the first-type mixed population;
S1405、将所述第一类混合种群中的每一个个体均输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值;S1405. Input each individual in the first type of mixed population into the first current proxy model to obtain a predicted value corresponding to each individual in the first type of mixed population, and according to the first type The predicted value corresponding to each individual in the quasi-mixed population obtains the uncertainty value corresponding to each individual;
S1406、将所述第一类混合种群中的每一个个体根据对应的不确定性值进行升序排序,得到第一类排序后混合种群;S1406: Sort each individual in the first-type mixed population in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population;
S1407、根据预设的分组数量Q,将所述第一类排序后混合种群进行平均划分,得到Q组第一类子混合种群;其中,Q=Ng;S1407. According to a preset grouping quantity Q, the first-type sorted mixed populations are equally divided to obtain Q groups of first-type sub-mixed populations; where Q=Ng;
S1408、分别获取Q组第一类子混合种群中每一组子混合种群中不确定性值为最小值的个体,以组成第一类当前种群,将所述第一类当前种群作为第一类初始种群;S1408. Obtain the individuals with the smallest uncertainty value in each group of sub-mixed populations of the first type of Q group to form the current population of the first type, and use the current population of the first type as the first type Initial population
S1409、将所述第一类当前迭代代数加一以作为第一类当前迭代代数,返回执行步骤S1402;S1409. Add one to the current iterative algebra of the first type as the current iterative algebra of the first type, and return to step S1402;
S1410、若所述第一类当前迭代代数达到所述最大迭代代数,将所述第一类初始种群作为所述第一类最终种群,获取所述第一类最终种群中预测值最小的个体以作为第一目标个体,并获取所述第一类最终种群中不确定性值最大的个体以作为第二目标个体。S1410. If the current iteration algebra of the first type reaches the maximum iteration algebra, the initial population of the first type is taken as the final population of the first type, and the individual with the smallest predicted value in the final population of the first type is obtained as As the first target individual, and obtain the individual with the largest uncertainty value in the first type of final population as the second target individual.
在本实施例中,由于所述初始数据点集合中决策变量的向量特征维数是已知的,为了生成多个个体的特征维数与所述决策变量的向量特征维数相同,可以参考决策变量的向量特征维数,通过拉丁超立方体设计随机生成Ng个变量解(其中Ng的取值为正整数)。In this embodiment, since the vector feature dimension of the decision variable in the initial data point set is known, in order to generate the feature dimension of multiple individuals the same as the vector feature dimension of the decision variable, you can refer to the decision The vector eigendimensions of the variables, Ng variable solutions are randomly generated through the Latin hypercube design (where the value of Ng is a positive integer).
其中,拉丁超立方体设计即拉丁超立方体抽样(即要在n维向量空间里抽取m个样本),通过这一方式能随机生成多个变量解,以组成第一类初始种群。其中每一变量解为第一类初始种群中的一个个体,每一变量解的特征维数与决策变量的特征维数相同。通过初始化随机生成多个变量解,是为了以此为进化生成性能更佳的目标个体。当获取了第一类初始种群后,可以多次迭代执行步骤S1402-S1409,直至所述第一类当前迭代代数达到所述最大迭代代数,将多次迭代后的第一类初始种群作为所述第一类最终种群,获取所述第一类最终种群中预测值最小的个体以作为第一目标个体,并获取所述第一类最终种群中不确定性值最大的个体以作为第二目标个体。Among them, the Latin hypercube design is Latin hypercube sampling (that is, m samples are sampled in the n-dimensional vector space). In this way, multiple variable solutions can be randomly generated to form the first type of initial population. Among them, each variable solution is an individual in the first type of initial population, and the characteristic dimension of each variable solution is the same as the characteristic dimension of the decision variable. The purpose of randomly generating multiple variable solutions through initialization is to generate better target individuals for evolution. After the initial population of the first type is obtained, steps S1402-S1409 may be performed multiple iterations until the current iteration algebra of the first type reaches the maximum iteration algebra, and the initial population of the first type after multiple iterations is taken as the The first type of final population, the individual with the smallest predicted value in the first type of final population is obtained as the first target individual, and the individual with the largest uncertainty value in the first type of final population is obtained as the second target individual .
在上述种群进化的过程中,采用了模拟二进制交叉和多项式变异,第一类子种群的生成是每次随机从第一类当前种群中选择两个个体进行模拟二进制交叉,直到交叉得到Ng个第一类新个体,再根据变异概率和多项式变异对Ng个第一类新个体进行变异,得到Ng个多项式变异后第一类新个体,这Ng个多项式变异后第一类新个体组成第一类子种群。此处多次随机在第一类当前种群中挑选两个个体进行二进制交叉的过程也类似于一种迭代过程,直到新个体数达 到第一类初始种群对应的种群大小Ng,才停止上述多次二进制交叉的处理过程。另外,二进制交叉和多项式变异均为常规处理过程,此处不再赘述。In the above population evolution process, simulated binary crossover and polynomial mutation are used. The first type of subpopulation is generated by randomly selecting two individuals from the first type of current population to simulate binary crossover until the crossover obtains Ng According to the mutation probability and polynomial mutation, Ng new individuals of the first type are mutated to obtain the first type of new individuals after Ng polynomial mutations. After these Ng polynomials are mutated, the first type of new individuals form the first type. Subpopulation. Here, the process of randomly selecting two individuals in the current population of the first type for binary crossover is also similar to an iterative process. Until the number of new individuals reaches the population size Ng corresponding to the initial population of the first type, the above multiple times are stopped. The process of binary interleaving. In addition, binary crossover and polynomial mutation are both conventional processing procedures, and will not be repeated here.
在根据所述第一类初始种群得到第一类子种群,且将两者进行混合得到第一类混合种群后(该第一类混合种群中个体的总个数为2Ng),此时将第一类混合种群中的每一个体输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值。获取所述第一类混合种群中的每一个个体对应的预测值,及每一个个体对应的不确定性值,也是便于将上述两个值作为挑选目标数据点(也即目标个体)的参考参数值。之后将所述第一类混合种群中的每一个个体根据对应的不确定性值进行升序排序,得到第一类排序后混合种群,此时第一类排序后混合种群中根据预设的分组数量Q进行划分,由于该第一类排序后混合种群中个体的总个数为2Ng,故划分的Q组第一类子混合种群中每一组第一类子混合种群所包括的个体个数为2Ng/Q。较佳的,将Q的取值设置为Ng,则每一组第一类子混合种群所包括的个体个数为2,此时从每一组第一类子混合种群所包括的2个个体中均挑选出不确定性值为最小值的个体,从而重新组成包括Ng个个体的第一类当前种群。此时第一类初始种群经过一次迭代后,若所述第一类当前迭代代数加一后未达到所述最大迭代代数,则重复执行步骤S1403-S1409多次,直至所述第一类当前迭代代数达到所述最大迭代代数,将最终的所述第一类初始种群作为所述第一类最终种群。此时,获取所述第一类最终种群中预测值最小的个体以作为第一目标个体,并获取所述第一类最终种群中不确定性值最大的个体以作为第二目标个体。After the first type of subpopulation is obtained according to the first type of initial population, and the two are mixed to obtain the first type of mixed population (the total number of individuals in the first type of mixed population is 2Ng), then the first type of subpopulation Each individual in the first type of mixed population is input to the first current proxy model to obtain a predicted value corresponding to each individual in the first type of mixed population, according to each of the first type of mixed population The predicted value corresponding to the individual obtains the uncertainty value corresponding to each individual. Obtaining the predicted value corresponding to each individual in the first type of mixed population and the uncertainty value corresponding to each individual is also convenient to use the above two values as reference parameters for selecting target data points (ie target individuals) value. After that, each individual in the first-type mixed population is sorted in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population. At this time, the first-type sorted mixed population is based on the preset number of groups Q is divided. Since the total number of individuals in the mixed population after sorting of the first type is 2Ng, the number of individuals included in each group of the first type sub-mixed population in the divided Q group is 2Ng/Q. Preferably, if the value of Q is set to Ng, the number of individuals included in each group of the first-type sub-mixed population is 2. At this time, from the 2 individuals included in each group of the first-type sub-mixed population The individuals with the smallest uncertainty value are selected in both, so as to reconstitute the current population of the first type including Ng individuals. At this time, after one iteration of the initial population of the first type, if the current iteration algebra of the first type does not reach the maximum iteration algebra after adding one, steps S1403-S1409 are repeated for multiple times until the current iteration of the first type When the number of generations reaches the maximum number of iterations, the final initial population of the first type is used as the final population of the first type. At this time, the individual with the smallest predicted value in the first type of final population is acquired as the first target individual, and the individual with the largest uncertainty value in the first type of final population is acquired as the second target individual.
在一实施例中,如图4所示,步骤S1405中将所述第一类混合种群中的每一个个体均输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,包括:In an embodiment, as shown in FIG. 4, in step S1405, each individual in the first type of mixed population is input to the first current agent model to obtain the same value as that in the first type of mixed population. The predicted value corresponding to each individual, including:
S14051、将所述第一类混合种群中的每一个个体均输入至所述第一克里斯金模型,得到与所述第一类混合种群中的每一个个体对应的第一子类型预测值;S14051. Input each individual in the first type of mixed population to the first Chris King model to obtain a first subtype prediction value corresponding to each individual in the first type of mixed population;
S14052、将所述第一类混合种群中的每一个个体均输入至所述第一径向基函数模型,得到与所述第一类混合种群中的每一个个体对应的第二子类型预测值;S14052. Input each individual in the first type of mixed population into the first radial basis function model to obtain a second subtype prediction value corresponding to each individual in the first type of mixed population ;
S14053、将所述第一类混合种群中的每一个个体均输入至所述第一多项式响应面模型,得到与所述第一类混合种群中的每一个个体对应的第三子类型预测值;S14053. Input each individual in the first type of mixed population into the first polynomial response surface model to obtain a third subtype prediction corresponding to each individual in the first type of mixed population value;
S14054、获取所述第一克里斯金模型对应的第一权重值,获取所述第一径向基函数模型对应的第二权重值,并获取所述第一多项式响应面模型对应的第三权重值;S14054. Obtain a first weight value corresponding to the first Chriskin model, obtain a second weight value corresponding to the first radial basis function model, and obtain a first weight value corresponding to the first polynomial response surface model. Three-weight value;
S14055、调用预先存储的预测值权值求和模型获取所述混合种群中每一个体对应的预测值;所述预测值权值求和模型为:S14055. Invoke a pre-stored predicted value weight summation model to obtain a predicted value corresponding to each individual in the mixed population; the predicted value weight summation model is:
Figure PCTCN2020079879-appb-000006
Figure PCTCN2020079879-appb-000006
其中,
Figure PCTCN2020079879-appb-000007
表示所述混合种群中的个体x i对应的预测值;
in,
Figure PCTCN2020079879-appb-000007
Represents the predicted value corresponding to the individual x i in the mixed population;
Figure PCTCN2020079879-appb-000008
e 1为所述第一克里斯金模型的均方根误差,e 2为所述第一径向基函数模型的均方根误差,e 3为所述第一多项式响应面模型的均方根误差,
Figure PCTCN2020079879-appb-000009
表示个体x i对应第一子类型预测值,
Figure PCTCN2020079879-appb-000010
表示个体x i对应第二子类型预测值,
Figure PCTCN2020079879-appb-000011
表示个体x i对应第三子类型预测值。
Figure PCTCN2020079879-appb-000008
e 1 is the root mean square error of the first Chriskin model, e 2 is the root mean square error of the first radial basis function model, and e 3 is the mean square error of the first polynomial response surface model. Root square error,
Figure PCTCN2020079879-appb-000009
Indicates that the individual x i corresponds to the predicted value of the first subtype,
Figure PCTCN2020079879-appb-000010
Indicates that the individual x i corresponds to the predicted value of the second subtype,
Figure PCTCN2020079879-appb-000011
Indicates that the individual x i corresponds to the predicted value of the third subtype.
在本实施例中,在计算所述第一类混合种群中的每一个个体对应的预测值时,是先计算该个体分别输入至所述第一克里斯金模型、所述第一径向基函数模型及所述多项式响应面模型后,分别对应得到的与该个体对应的第一子类型预测值、第二子类型预测值、及第三子类型预测值。此时对该个体对应的第一 子类型预测值、第二子类型预测值、及第三子类型预测值进行加权求和,即可得到该个体对应的预测值,具体计算过程参照步骤S14055。而且通过加权求和之一方式,能使得该个体输入至所述第一当前代理模型得到的预测值准确度更高,便于后续以预测值为标准筛选出性能较佳的个体作为目标个体。In this embodiment, when calculating the predicted value corresponding to each individual in the first type of mixed population, the individual is first calculated and inputted to the first Chris King model and the first radial basis. After the function model and the polynomial response surface model, respectively correspond to the predicted value of the first subtype, the predicted value of the second subtype, and the predicted value of the third subtype corresponding to the individual. At this time, the predicted value of the first subtype, the predicted value of the second subtype, and the predicted value of the third subtype corresponding to the individual are weighted and summed to obtain the predicted value corresponding to the individual. For the specific calculation process, refer to step S14055. In addition, the weighted summation method can make the predicted value of the individual input to the first current agent model more accurate, which facilitates the subsequent screening of individuals with better performance based on the predicted value as the target individual.
在一实施例中,步骤S1405中根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值,包括:In an embodiment, obtaining the uncertainty value corresponding to each individual according to the predicted value corresponding to each individual in the first-type mixed population in step S1405 includes:
重复执行获取所述第一类混合种群中的个体x i对应的第一子类型预测值
Figure PCTCN2020079879-appb-000012
第二子类型预测值
Figure PCTCN2020079879-appb-000013
及第三子类型预测值
Figure PCTCN2020079879-appb-000014
两两之间的最大差值,以作为所述第一类混合种群中的个体x i对应的不确定性值U ens(x i)的步骤,直至获取所述第一类混合种群中的每一个个体对应的不确定性值;其中,i的取值范围为[1,2Ng]。
Repeated execution to obtain the predicted value of the first subtype corresponding to the individual x i in the first type of mixed population
Figure PCTCN2020079879-appb-000012
Predicted value of the second subtype
Figure PCTCN2020079879-appb-000013
And the third sub-type predicted value
Figure PCTCN2020079879-appb-000014
The maximum difference between the two is used as the uncertainty value U ens (x i ) corresponding to the individual x i in the first type of mixed population, until each of the first type of mixed populations is obtained. The uncertainty value corresponding to an individual; among them, the value range of i is [1,2Ng].
在本实施例中,获取所述第一类混合种群中的每一个个体对应的不确定性
Figure PCTCN2020079879-appb-000015
确定性值(不确定性被定义为两个预测值之间的最大差异),所述第一类混合种群中其他个体获取不确定性值的过程参照上述举例的个体x 1的不确定性值的获取过程。获取所述第一类混合种群中各个体对应的不确定性值,便于后续以不确定性值为标准筛选出性能较佳的个体作为目标个体。
In this embodiment, the uncertainty corresponding to each individual in the first type of mixed population is obtained
Figure PCTCN2020079879-appb-000015
Certainty value (uncertainty is defined as the maximum difference between two predicted values), the process of obtaining the uncertainty value by other individuals in the first type of mixed population refers to the uncertainty value of the individual x 1 in the above example The acquisition process. Obtaining the uncertainty value corresponding to each individual in the first type of mixed population is convenient for subsequent selection of individuals with better performance as target individuals based on the uncertainty value.
S150、将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成。S150. The data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain a current data point set; wherein, the data corresponding to the first target individual The points are composed of the first target individual and the first real function value obtained by inputting the first target individual to the pre-stored target function for calculation; the data point corresponding to the second target individual is composed of the second target individual, and the second target individual. The target individual inputs to the target function and is composed of the second real function value obtained correspondingly.
在本实施例中,由于初始数据点集合中的每一数据点都包括决策变量和与决策变量对应的评估值,故在获取了所述第一目标个体和所述第二目标个体后,分别计算第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值、和第二目标个体输入至所述目标函数对应得到的第二真实函数值,由第一目标个体及第一真实函数值组成所述第一目标个体对应的数据点,由第二目标个体及第二真实函数值组成所述第二目标个体对应的数据点。In this embodiment, since each data point in the initial data point set includes a decision variable and an evaluation value corresponding to the decision variable, after acquiring the first target individual and the second target individual, Calculate the first true function value corresponding to the input of the first target individual to the pre-stored target function for operation, and the second true function value corresponding to the input of the second target individual to the target function, and the first target individual and the second target individual A true function value constitutes the data point corresponding to the first target individual, and the second target individual and the second true function value constitute the data point corresponding to the second target individual.
当在初始数据点集合中加入了所述第一目标个体对应的数据点和所述第二目标个体对应的数据点后,若总数据点个数还是小于所述最大真实评价次数,此时还需执行步骤S160及其之后的步骤,直至所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。通过步骤S140-S150,实现了在第一类最终种群快速筛选得到第一目标个体和第二目标个体,这两个个体对应的数据点可作为此轮迭代结束后被选中的两个数据点增加至所述初始数据点集合,得到当前数据点集合。When the data points corresponding to the first target individual and the data points corresponding to the second target individual are added to the initial data point set, if the total number of data points is still less than the maximum number of real evaluations, it is still Step S160 and subsequent steps need to be performed until the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, and the initial data point set is sent to the client. Through steps S140-S150, the first target individual and the second target individual are quickly screened in the first type of final population. The data points corresponding to these two individuals can be added as the two selected data points after this round of iteration. To the initial data point set, the current data point set is obtained.
S160、获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体。S160. Obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is taken as the first 2. The training samples of the agent model to be trained are obtained, and the corresponding second current agent model is obtained. According to the second current agent model and the preset second individual screening conditions, the final second type generated according to the genetic evolution of the second type initial population The population searches to get the third target individual.
在本实施例中,当通过全局搜索完成了对所述初始数据点集合的第一轮数据点加点过程后,此时再通过局部搜索的方式完成对所述当前数据点集合的第二轮数据点加点过程,从而得到此轮迭代过程结束后的最终数据点集合。In this embodiment, after the first round of adding points to the initial data point set is completed through a global search, at this time, the second round of data points to the current data point set is completed through a local search. Click the process of adding points to get the final set of data points after the end of this round of iterative process.
在一实施例中,如图5所示,步骤S160包括:In an embodiment, as shown in FIG. 5, step S160 includes:
S1601、调用预先存储的第二待训练径向基函数模型以作为所述第二当前代理模型;S1601, call a pre-stored second radial basis function model to be trained as the second current agent model;
S1602、将所述目标数据点集合中各数据点对应的决策变量作为所述第二待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第二待训练径向基函数模型的输出,对所述第二待训练径向基函数模型进行训练,得到第二径向基函数模型,以将所述第二径向基函数模型作为所述第二当前代理模型;S1602, using the decision variable corresponding to each data point in the target data point set as the input of the second radial basis function model to be trained, and using the evaluation value corresponding to each decision variable as the second radial basis function to be trained An output of a function model, training the second radial basis function model to be trained to obtain a second radial basis function model, so as to use the second radial basis function model as the second current proxy model;
S1603、获取所述目标数据点集合中各数据点对应的决策变量,以组成第二类初始种群;其中,所述目标数据点集合中每一数据点对应的决策变量与所述第二类初始种群中的一个个体相对应;S1603. Obtain a decision variable corresponding to each data point in the target data point set to form a second type of initial population; wherein, the decision variable corresponding to each data point in the target data point set is the same as the second type of initial population. Corresponding to an individual in the population;
S1604、获取第二类当前迭代代数,判断所述第二类当前迭代代数是否达到预设的最大迭代代数;其中,所述第二类当前迭代代数的初始值为1;S1604. Obtain the current iteration algebra of the second type, and determine whether the current iteration algebra of the second type reaches a preset maximum iteration algebra; wherein the initial value of the current iteration algebra of the second type is 1.
S1605、若所述第二类当前迭代代数未达到所述最大迭代代数,对所述第二类初始种群进行模拟二进制交叉和多项式变异,得到与所述第二类初始种群有相同个体总个数的第二类子种群;S1605. If the current iteration algebra of the second type does not reach the maximum iteration algebra, perform simulated binary crossover and polynomial mutation on the initial population of the second type to obtain the total number of individuals that are the same as the initial population of the second type The second type of subpopulation;
S1606、将所述第二类初始种群与所述第二类子种群进行合并,得到第二类混合种群;S1606. Combine the initial population of the second type with the sub-population of the second type to obtain a mixed population of the second type.
S1607、将所述第二类混合种群中的每一个个体均输入至所述第二径向基函数模型,得到与所述第二类混合种群中的每一个个体对应的预测值;S1607: Input each individual in the second type of mixed population into the second radial basis function model to obtain a predicted value corresponding to each individual in the second type of mixed population;
S1608、将所述第二类混合种群中的每一个个体根据对应的预测值进行升序排序,得到排序后第二类混合种群;S1608. Sort each individual in the second type of mixed population in ascending order according to the corresponding predicted value to obtain the second type of mixed population after sorting;
S1609、获取所述排序后第二类混合种群中排序在所述排名阈值之前的个体,以组成第二类当前种群,将所述第二类当前种群作为第二类初始种群;S1609. Obtain individuals in the second-type mixed population that are sorted before the ranking threshold to form a second-type current population, and use the second-type current population as the second-type initial population;
S1610、将所述第二类当前迭代代数加一以作为第二类当前迭代代数,返回执行步骤S1604;S1610: Add one to the current iteration algebra of the second type as the current iteration algebra of the second type, and return to step S1604;
S1611、若所述第二类当前迭代代数达到所述最大迭代代数,将所述第二类初始种群作为所述第二类最终种群,获取所述第二类最终种群中预测值最小的个体以作为第三目标个体。S1611. If the current iteration algebra of the second type reaches the maximum iteration algebra, use the initial population of the second type as the final population of the second type, and obtain the individual with the smallest predicted value in the final population of the second type. As the third target individual.
在本实施例中,通过局部搜索的方式在所述当前数据点集合中搜索满足第二个体筛选条件的第三目标个体。获取第三目标个体的具体过程中,先是获取所述当前数据点集合中各数据点按真实函数值进行升序排序、且排序在预设的排名阈值之前的数据点以组成目标数据点集合,然后以所述目标数据点集合中各数据点对应的决策变量,组成第二类初始种群。获取了第二类初始种群后,可以多次迭代执行步骤S1604-S1611,直至所述第二类当前迭代代数达到所述最大迭代代数,将多次迭代后的第二类初始种群作为所述第二类最终种群,获取所述第二类最终种群中预测值最小的个体以作为第三目标个体。In this embodiment, a third target individual that satisfies the second individual screening condition is searched for in the current data point set by means of a local search. In the specific process of obtaining the third target individual, first obtain the data points in the current data point set in ascending order according to the true function value and sort the data points before the preset ranking threshold to form the target data point set, and then The decision variables corresponding to each data point in the target data point set are used to form the second type of initial population. After the initial population of the second type is obtained, steps S1604-S1611 may be performed multiple iterations until the current iteration algebra of the second type reaches the maximum iteration algebra, and the initial population of the second type after multiple iterations is taken as the first iteration. The final population of the second type, and the individual with the smallest predicted value in the final population of the second type is obtained as the third target individual.
在一实施例中,步骤S1605中包括:In an embodiment, step S1605 includes:
在所述第二类初始种群中任意挑选两个个体以依次进行二进制交叉,直到生成M个交叉处理后第二类新个体,对M个交叉处理后第二类新个体进行多项式变异,由多项式变异后的第二类新个体组成第二类子种群;其中,M=所述排名阈值-1。Randomly select two individuals in the second type of initial population to perform binary crossover in sequence until M new individuals of the second type after crossover processing are generated, and after M crossover processing, the second type of new individuals are subjected to polynomial mutation, and the polynomial The mutated second-type new individuals form the second-type subpopulation; where M=the ranking threshold -1.
其中,在上述种群进化的过程中,采用了模拟二进制交叉和多项式变异,第二类子种群的生成是每次随机从第二类当前种群中选择两个个体进行模拟二进制交叉,直到交叉得到M个交叉处理后第二类新个体(其中M的取值为正整数),再根据变异概率和多项式变异对M个第交叉处理后第二类新个体进行变异,得到M个多项式变异后第二类新个体,这M个多项式变异后第二类新个体组成第二类子种群。此处多次随机在第二类当前种群中挑选两个个体进行二进制交叉的过程也类似于一种迭代过程,直到新个体数达到第二类初始种群对应的第二种群大小M,才停止上述多次二进制交叉的处理过程。Among them, in the above-mentioned population evolution process, simulated binary crossover and polynomial mutation are used. The second type of subpopulation is generated by randomly selecting two individuals from the second type of current population to simulate binary crossover until the crossover obtains M After crossover processing, the second type of new individuals (where the value of M is a positive integer), and then according to the mutation probability and polynomial mutation, the M second type of new individuals after crossover processing are mutated, and the second type after M polynomial mutation is obtained. Class new individuals, after these M polynomials mutate, the second class new individuals form the second class subpopulation. Here, the process of randomly selecting two individuals in the current population of the second type for binary crossover is also similar to an iterative process, until the number of new individuals reaches the second population size M corresponding to the initial population of the second type, the above process is stopped. The process of multiple binary crossovers.
在根据所述第二类初始种群得到第二类子种群,且将两者进行混合得到第二类混合种群后(该第二类混合种群中个体的总个数为2M),此时将第二类混合种群中的每一个体输入至所述第二当前代理模型,得到与所述第二类混合种群中的每一个个体对应的预测值。获取所述第二类混合种群中的每一个个体对 应的预测值,也是便于将预测值作为挑选目标数据点(也即目标个体)的参考参数值。之后将所述第二类混合种群中的每一个个体根据对应的预测值进行升序排序,得到第二类排序后混合种群,此时在第二类排序后混合种群中获取排序在所述排名阈值之前的个体,以组成第二类当前种群,从而重新组成包括M个个体的第二类当前种群。此时第二类初始种群经过一次迭代后,若所述第二类当前迭代代数加一后未达到所述最大迭代代数,则重复执行步骤S1604-S1611多次,直至所述第二类当前迭代代数达到所述最大迭代代数,将最终的所述第二类初始种群作为所述第二类最终种群。此时,获取所述第二类最终种群中预测值最小的个体以作为第三目标个体。After the second type of subpopulation is obtained from the second type of initial population, and the two are mixed to obtain the second type of mixed population (the total number of individuals in the second type of mixed population is 2M), then the first Each individual in the second-type mixed population is input to the second current proxy model, and a predicted value corresponding to each individual in the second-type mixed population is obtained. Obtaining the predicted value corresponding to each individual in the second type of mixed population is also convenient to use the predicted value as a reference parameter value for selecting a target data point (that is, a target individual). After that, each individual in the second-type mixed population is sorted in ascending order according to the corresponding predicted value to obtain the second-type sorted mixed population. At this time, the ranking in the second-type sorted mixed population is obtained at the ranking threshold. The previous individuals form the current population of the second type, thereby recomposing the current population of the second type including M individuals. At this time, after one iteration of the initial population of the second type, if the current iteration algebra of the second type plus one does not reach the maximum iteration algebra, steps S1604-S1611 are repeated for multiple times until the current iteration of the second type When the number of generations reaches the maximum number of iterations, the final initial population of the second type is used as the final population of the second type. At this time, the individual with the smallest predicted value in the second type of final population is acquired as the third target individual.
S170、将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行步骤S130;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成。S170. Add the data point corresponding to the third target individual to the current data point set to obtain a final data point set, use the final data point set as the initial data point set, and return to step S130; wherein, the third target The data point corresponding to the individual is composed of the third target individual and the third true function value obtained by inputting the third target individual to the target function.
在本实施例中,当在当前数据点集合中加入了所述第三目标个体对应的数据点后,若总数据点个数还是小于所述最大真实评价次数,此时还需执行步骤返回执行步骤S120及其之后的步骤,直至所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。通过步骤S160-S170,实现了在第二类最终种群快速筛选得到第三目标个体,这一第三目标个体对应的数据点可作为此轮迭代结束后被选中的一个数据点增加至所述当前数据点集合,得到最终数据点集合,并将最终数据点集合在此轮迭代结束后更新作为新的初始数据点集合,返回执行步骤S120。In this embodiment, when the data point corresponding to the third target individual is added to the current data point set, if the total number of data points is still less than the maximum number of true evaluations, then it is necessary to perform the step to return to execution. Step S120 and subsequent steps, until the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client. Through steps S160-S170, the third target individual can be quickly screened in the second type of final population. The data point corresponding to this third target individual can be used as a selected data point after this round of iteration and added to the current Data point collection, the final data point collection is obtained, and the final data point collection is updated as a new initial data point collection after the end of this round of iteration, and step S120 is returned to.
S180、若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。S180: If the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, send the initial data point set to the client.
在本实施例中,当在服务器中完成了初始数据点集合的获取之后,即可发送至客户端。客户端可根据多次迭代后最终状态的初始数据点集合中更多个数的数据点进一步进行机翼的翼形优化。In this embodiment, after obtaining the initial data point set in the server, it can be sent to the client. The client can further optimize the wing shape based on a larger number of data points in the initial data point set of the final state after multiple iterations.
该方法实现了由代理辅助和进化算法相结合并同时考虑代理模型的预测值和不确定性的方式,对有限的数据样本中快速增加数据点,而且所增加的样本点对代理模型的精度有提高。This method realizes the combination of agent-assisted and evolutionary algorithms and considers the predicted value and uncertainty of the agent model at the same time. It quickly increases data points in a limited data sample, and the increased sample points have a significant impact on the accuracy of the agent model. improve.
本申请实施例还提供一种基于代理辅助进化算法的翼型优化装置,该基于代理辅助进化算法的翼型优化装置用于执行前述基于代理辅助进化算法的翼型优化方法的任一实施例。具体地,请参阅图6,图6是本申请实施例提供的基于代理辅助进化算法的翼型优化装置的示意性框图。该基于代理辅助进化算法的翼型优化装置100可以被配置于服务器中。The embodiment of the present application also provides an airfoil optimization device based on the agent-assisted evolution algorithm. The airfoil optimization device based on the agent-assisted evolution algorithm is used to execute any embodiment of the aforementioned airfoil optimization method based on the agent-assisted evolution algorithm. Specifically, please refer to FIG. 6, which is a schematic block diagram of an airfoil optimization device based on a proxy-assisted evolution algorithm provided by an embodiment of the present application. The airfoil optimization device 100 based on the agent-assisted evolutionary algorithm can be configured in a server.
如图6所示,基于代理辅助进化算法的翼型优化装置100包括加点请求检测单元110、初始数据点集合获取单元120、数据点总个数判断单元130、全局搜索单元140、第一轮加点单元150、局部搜索单元160、第二轮加点单元170、及加点后集合发送单元180。As shown in FIG. 6, the airfoil optimization device 100 based on the agent-assisted evolutionary algorithm includes a point addition request detection unit 110, an initial data point set acquisition unit 120, a total number of data point judgment unit 130, a global search unit 140, and the first round of point addition The unit 150, the local search unit 160, the second round adding unit 170, and the collective sending unit 180 after adding the points.
其中,加点请求检测单元110,用于判断是否接收到客户端发送的数据点加点请求。Wherein, the point addition request detection unit 110 is used to determine whether a data point addition request sent by the client is received.
初始数据点集合获取单元120,用于若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量。The initial data point set obtaining unit 120 is configured to obtain the initial data point set in the sample library if the data point adding request sent by the client is received, and according to the total number of data points in the initial data point set and the preset optimization The total number of points obtains the maximum true evaluation times; among them, each data point includes the decision variable corresponding to the wing geometric shape control point and the evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector .
数据点总个数判断单元130,用于判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数。The total number of data points judging unit 130 is configured to judge whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times.
全局搜索单元140,用于若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及 预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体。The global search unit 140 is configured to use each data point in the initial data point set as a training sample of the first proxy model to be trained if the total number of data points in the initial data point set is less than the maximum number of real evaluations , Obtain the corresponding first current agent model, search according to the first current agent model and preset first individual screening conditions in the first type final population generated according to the first type of initial population genetic evolution, and obtain the first type of final population A target individual and a second target individual.
在一实施例中,所述全局搜索单元140,包括:In an embodiment, the global search unit 140 includes:
第一代理模型训练单元,用于将所述初始数据点集合中各数据点的决策变量作为所述第一待训练克里斯金模型的输入,将各决策变量对应的评估值作为所述第一待训练克里斯金模型的输出,对所述第一待训练克里斯金模型进行训练,得到第一克里斯金模型;The first agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first to-be-trained Chriskin model, and use the evaluation value corresponding to each decision variable as the first Output of the Chris King model to be trained, training the first Chris King model to be trained to obtain the first Chris King model;
第二代理模型训练单元,用于将所述初始数据点集合中各数据点的决策变量作为所述第一待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第一待训练径向基函数模型的输出,对所述第一待训练径向基函数模型进行训练,得到第一径向基函数模型;The second agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first radial basis function model to be trained, and use the evaluation value corresponding to each decision variable as the first An output of the radial basis function model to be trained, training the first radial basis function model to be trained to obtain the first radial basis function model;
第三代理模型训练单元,用于将所述初始数据点集合中各数据点的决策变量作为所述第一待训练多项式响应面模型的输入,将各决策变量对应的评估值作为所述第一待训练多项式响应面模型的输出,对所述第一待训练多项式响应面模型进行训练,得到第一多项式响应面模型。The third agent model training unit is configured to use the decision variable of each data point in the initial data point set as the input of the first polynomial response surface model to be trained, and use the evaluation value corresponding to each decision variable as the first The output of the polynomial response surface model to be trained is trained on the first polynomial response surface model to be trained to obtain the first polynomial response surface model.
在一实施例中,所述全局搜索单元140,还包括:In an embodiment, the global search unit 140 further includes:
第一类初始种群生成单元,用于根据所述初始数据点集合中决策变量的向量特征维数,以拉丁超立方体设计随机生成Ng个变量解,以组成第一类初始种群;其中,每一变量解为第一类初始种群中的一个个体,每一变量解的特征维数与决策变量的特征维数相同;The first type of initial population generating unit is used to randomly generate Ng variable solutions in a Latin hypercube design according to the vector feature dimensions of the decision variables in the initial data point set to form the first type of initial population; wherein, each The variable solution is an individual in the first type of initial population, and the characteristic dimension of each variable solution is the same as the characteristic dimension of the decision variable;
第一类当前迭代代数判断单元,用于获取第一类当前迭代代数,判断所述第一类当前迭代代数是否达到预设的最大迭代代数;其中,所述第一类当前迭代代数的初始值为1;The first type of current iteration algebra judging unit, used to obtain the first type of current iteration algebra, and determine whether the first type of current iteration algebra reaches the preset maximum iteration algebra; wherein the initial value of the first type of current iteration algebra Is 1;
第一类种群交叉变异单元,用于若所述第一类当前迭代代数未达到所述最大迭代代数,对所述第一类初始种群进行模拟二进制交叉和多项式变异,得到与所述第一类初始种群有相同个体总个数的第一类子种群;The first-type population cross-mutation unit is used to simulate binary crossover and polynomial mutation of the first-type initial population if the current iterative algebra of the first-type does not reach the maximum iterative algebra, to obtain the same as the first-type The initial population has the first type of subpopulation with the same total number of individuals;
第一类混合种群获取单元,用于将所述第一类初始种群与所述第一类子种群进行合并,得到第一类混合种群;The first-type mixed population obtaining unit is configured to merge the first-type initial population with the first-type sub-population to obtain the first-type mixed population;
第一类参数获取单元,用于将所述第一类混合种群中的每一个个体均输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值;The first-type parameter acquisition unit is configured to input each individual in the first-type mixed population into the first current proxy model to obtain a prediction corresponding to each individual in the first-type mixed population Value, obtaining the uncertainty value corresponding to each individual according to the predicted value corresponding to each individual in the first type of mixed population;
第一类排序单元,用于将所述第一类混合种群中的每一个个体根据对应的不确定性值进行升序排序,得到第一类排序后混合种群;The first-type sorting unit is configured to sort each individual in the first-type mixed population in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population;
第一类种群划分单元,用于根据预设的分组数量Q,将所述第一类排序后混合种群进行平均划分,得到Q组第一类子混合种群;其中,Q=Ng;The first-type population dividing unit is configured to divide the first-type sorted mixed populations evenly according to the preset grouping quantity Q to obtain the first-type sub-mixed populations of the Q group; where Q=Ng;
第一类种群筛选单元,用于分别获取Q组第一类子混合种群中每一组子混合种群中不确定性值为最小值的个体,以组成第一类当前种群,将所述第一类当前种群作为第一类初始种群;The first-type population screening unit is used to obtain the individuals with the smallest uncertainty value in each group of the first-type sub-mixed populations of the Q group to form the first-type current population. The current population of the class is the initial population of the first class;
第一类当前迭代代数二次判断单元,用于将所述第一类当前迭代代数加一以作为第一类当前迭代代数,返回执行获取第一类当前迭代代数,判断所述第一类当前迭代代数是否达到预设的最大迭代代数的步骤;The first-type current iterative algebra secondary judgment unit, configured to add one to the first-type current iterative algebra as the first-type current iterative algebra, return to execute to obtain the first-type current iterative algebra, and determine the first-type current iterative algebra Whether the current iteration algebra reaches the preset maximum iteration algebra step;
第一类目标个体获取单元,用于若所述第一类当前迭代代数达到所述最大迭代代数,将所述第一类初始种群作为所述第一类最终种群,获取所述第一类最终种群中预测值最小的个体以作为第一目标个体,并获取所述第一类最终种群中不确定性值最大的个体以作为第二目标个体。The first-type target individual acquiring unit is configured to, if the current iteration algebra of the first type reaches the maximum iteration algebra, use the first-type initial population as the first-type final population, and obtain the first-type final population The individual with the smallest predicted value in the population is taken as the first target individual, and the individual with the largest uncertainty value in the first type of final population is obtained as the second target individual.
第一轮加点单元150,用于将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体 对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成。The first round of adding points unit 150 is configured to add the data points corresponding to the first target individual and the data points corresponding to the second target individual to the initial data point set to obtain the current data point set; wherein, the The data point corresponding to the first target individual is composed of the first target individual and the first real function value obtained by inputting the first target individual to the pre-stored target function for operation; the data point corresponding to the second target individual is composed of the first Two target individuals, and the second target individual input to the objective function corresponding to the obtained second real function value composition.
局部搜索单元160,用于获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体。The local search unit 160 is configured to obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set. Each data point is used as the training sample of the second agent model to be trained, and the corresponding second current agent model is obtained. According to the second current agent model and the preset second individual screening conditions, it is generated according to the genetic evolution of the second type of initial population The second type of final population is searched, and the third target individual is obtained.
在一实施例中,所述局部搜索单元160,包括:In an embodiment, the local search unit 160 includes:
第四代理模型获取单元,用于调用预先存储的第二待训练径向基函数模型以作为所述第二当前代理模型;A fourth proxy model acquiring unit, configured to call a pre-stored second radial basis function model to be trained as the second current proxy model;
第四代理模型训练单元,用于将所述目标数据点集合中各数据点对应的决策变量作为所述第二待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第二待训练径向基函数模型的输出,对所述第二待训练径向基函数模型进行训练,得到第二径向基函数模型,以将所述第二径向基函数模型作为所述第二当前代理模型;The fourth agent model training unit is configured to use the decision variable corresponding to each data point in the target data point set as the input of the second radial basis function model to be trained, and use the evaluation value corresponding to each decision variable as the The output of the second radial basis function model to be trained, the second radial basis function model to be trained is trained to obtain a second radial basis function model, and the second radial basis function model is used as the The second current agency model;
第二类初始种群生成单元,用于获取所述目标数据点集合中各数据点对应的决策变量,以组成第二类初始种群;其中,所述目标数据点集合中每一数据点对应的决策变量与所述第二类初始种群中的一个个体相对应;The second type of initial population generating unit is used to obtain the decision variable corresponding to each data point in the target data point set to form the second type of initial population; wherein, the decision corresponding to each data point in the target data point set The variable corresponds to an individual in the initial population of the second type;
第二类当前迭代代数判断单元,用于获取第二类当前迭代代数,判断所述第二类当前迭代代数是否达到预设的最大迭代代数;其中,所述第二类当前迭代代数的初始值为1;The second type of current iteration algebra judging unit, used to obtain the second type of current iteration algebra, and determine whether the second type of current iteration algebra reaches the preset maximum iteration algebra; wherein, the initial value of the second type of current iteration algebra Is 1;
第二类种群交叉变异单元,用于若所述第二类当前迭代代数未达到所述最大迭代代数,对所述第二类初始种群进行模拟二进制交叉和多项式变异,得到与所述第二类初始种群有相同个体总个数的第二类子种群;The second type of population crossover mutation unit is used to simulate binary crossover and polynomial mutation of the second type of initial population if the current iteration algebra of the second type does not reach the maximum iterative algebra to obtain The initial population has the second type of subpopulation with the same total number of individuals;
第二类混合种群获取单元,用于将所述第二类初始种群与所述第二类子种群进行合并,得到第二类混合种群;The second-type mixed population obtaining unit is configured to merge the second-type initial population with the second-type sub-population to obtain the second-type mixed population;
第二类参数获取单元,用于将所述第二类混合种群中的每一个个体均输入至所述第二径向基函数模型,得到与所述第二类混合种群中的每一个个体对应的预测值;The second-type parameter acquisition unit is used to input each individual in the second-type mixed population into the second radial basis function model to obtain a corresponding to each individual in the second-type mixed population Predicted value;
第二类排序单元,用于将所述第二类混合种群中的每一个个体根据对应的预测值进行升序排序,得到排序后第二类混合种群;The second-type sorting unit is configured to sort each individual in the second-type mixed population in ascending order according to the corresponding predicted value to obtain the second-type mixed population after sorting;
第二类种群筛选单元,用于获取所述排序后第二类混合种群中排序在所述排名阈值之前的个体,以组成第二类当前种群,将所述第二类当前种群作为第二类初始种群;The second-type population screening unit is used to obtain individuals in the second-type mixed population after sorting that are sorted before the ranking threshold to form a second-type current population, and the second-type current population is regarded as the second type Initial population
第二类当前迭代代数二次判断单元,用于将所述第二类当前迭代代数加一以作为第二类当前迭代代数,返回执行所述获取第二类当前迭代代数,判断所述第二类当前迭代代数是否达到预设的最大迭代代数的步骤;The second type of current iterative algebra secondary judgment unit, used to add one to the second type of current iterative algebra to serve as the second type of current iterative algebra, return to execute the acquisition of the second type of current iterative algebra, and determine the first Steps of whether the current iteration algebra of the second type reaches the preset maximum iteration algebra;
第二类目标个体获取单元,用于若所述第二类当前迭代代数达到所述最大迭代代数,将所述第二类初始种群作为所述第二类最终种群,获取所述第二类最终种群中预测值最小的个体以作为第三目标个体。The second type of target individual obtaining unit is configured to, if the current iteration algebra of the second type reaches the maximum iteration algebra, use the initial population of the second type as the final population of the second type, and obtain the final population of the second type. The individual with the smallest predicted value in the population is taken as the third target individual.
第二轮加点单元170,用于将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成。The second round of adding points unit 170 is configured to add data points corresponding to the third target individual to the current data point set to obtain a final data point set, use the final data point set as the initial data point set, and return to execute the judgment The step of determining whether the total number of data points in the initial data point set is less than the maximum number of true evaluation times; wherein, the data points corresponding to the third target individual are input to the target by the third target individual and the third target individual The function corresponds to the obtained third real function value composition.
加点后集合发送单元180,用于若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。The point-added set sending unit 180 is configured to send the initial data point set to the client if the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times.
该装置实现了由代理辅助和进化算法相结合并同时考虑代理模型的预测值和不确定性的方式,对有限的数据样本中快速增加数据点,而且所增加的样本 点对代理模型的精度有提高。The device realizes the combination of agent assistance and evolutionary algorithms and considers the predicted value and uncertainty of the agent model at the same time. It quickly increases data points in a limited data sample, and the increased sample points have a significant impact on the accuracy of the agent model. improve.
上述基于代理辅助进化算法的翼型优化装置可以实现为计算机程序的形式,该计算机程序可以在如图7所示的计算机设备上运行。The above-mentioned airfoil optimization device based on the agent-assisted evolutionary algorithm may be implemented in the form of a computer program, and the computer program may run on the computer device as shown in FIG.
请参阅图7,图7是本申请实施例提供的计算机设备的示意性框图。该计算机设备500是服务器,服务器可以是独立的服务器,也可以是多个服务器组成的服务器集群。Please refer to FIG. 7, which is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 is a server, and the server may be an independent server or a server cluster composed of multiple servers.
参阅图7,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。Referring to FIG. 7, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行基于代理辅助进化算法的翼型优化方法。The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the airfoil optimization method based on the agent-assisted evolution algorithm.
该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。The processor 502 is used to provide calculation and control capabilities, and support the operation of the entire computer device 500.
该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行基于代理辅助进化算法的翼型优化方法。The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the airfoil optimization method based on the agent-assisted evolution algorithm.
该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现本申请实施例公开的基于代理辅助进化算法的翼型优化方法。Wherein, the processor 502 is configured to run a computer program 5032 stored in a memory to implement the airfoil optimization method based on the agent-assisted evolution algorithm disclosed in the embodiment of the present application.
本领域技术人员可以理解,图7中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图7所示实施例一致,在此不再赘述。Those skilled in the art can understand that the embodiment of the computer device shown in FIG. 7 does not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or less components than those shown in the figure. Or some parts are combined, or different parts are arranged. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. 7 and will not be repeated here.
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
在本申请的另一实施例中提供计算机可读存储介质。该计算机可读存储介质可以为非易失性的计算机可读存储介质。该计算机可读存储介质存储有计算机程序,其中计算机程序被处理器执行时实现本申请实施例公开的基于代理辅助进化算法的翼型优化方法。In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, where the computer program is executed by a processor to implement the airfoil optimization method based on the agent-assisted evolution algorithm disclosed in the embodiments of the present application.
所述计算机可读存储介质为实体的、非瞬时性的存储介质,例如可以是U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的实体存储介质。The computer-readable storage medium is a physical, non-transitory storage medium, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk that can store program codes. Physical storage media.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described equipment, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (10)

  1. 一种基于代理辅助进化算法的翼型优化方法,其中,包括:An airfoil optimization method based on agent-assisted evolutionary algorithm, which includes:
    判断是否接收到客户端发送的数据点加点请求;Determine whether the data point adding request sent by the client is received;
    若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量;If a data point addition request sent by the client is received, the initial data point set in the sample library is obtained, and the maximum number of real evaluations is obtained according to the total number of data points in the initial data point set and the total number of optimized points set in advance; Among them, each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
    判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数;Judging whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times;
    若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体;If the total number of data points in the initial data point set is less than the maximum number of real evaluations, each data point in the initial data point set is used as the training sample of the first agent model to be trained to obtain the corresponding first current The agent model, according to the first current agent model and preset first individual screening conditions, searches the first type final population generated according to the first type of initial population genetic evolution to obtain the first target individual and the second target individual;
    将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成;The data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain the current data point set; wherein the data point corresponding to the first target individual is determined by The first target individual and the first target individual are input to the pre-stored target function for calculation and are composed of the corresponding first true function value; the data point corresponding to the second target individual is composed of the second target individual and the second target individual Input to the objective function corresponding to the second real function value composition;
    获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体;Obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is used as the second target data point set. Train the training samples of the agent model to obtain the corresponding second current agent model, and perform the process on the second type final population generated based on the genetic evolution of the second type initial population according to the second current agent model and preset second individual screening conditions Search to get the third target individual;
    将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成;以及The data point corresponding to the third target individual is added to the current data point set to obtain the final data point set, the final data point set is used as the initial data point set, and the execution is returned to determine the total number of data points in the initial data point set. The step of whether the number is less than the maximum number of real evaluation times; wherein the data point corresponding to the third target individual is input by the third target individual and the third target individual to the third true function value corresponding to the target function Composition; and
    若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。If the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client.
  2. 根据权利要求1所述的基于代理辅助进化算法的翼型优化方法,其中,所述第一待训练代理模型包括第一待训练克里斯金模型、第一待训练径向基函数模型、第一待训练多项式响应面模型;所述第一当前代理模型包括第一克里斯金模型、第一径向基函数模型、第一多项式响应面模型;The airfoil optimization method based on the agent-assisted evolutionary algorithm according to claim 1, wherein the first agent model to be trained includes a first Chriskin model to be trained, a first radial basis function model to be trained, and a first A polynomial response surface model to be trained; the first current agent model includes a first Chriskin model, a first radial basis function model, and a first polynomial response surface model;
    所述以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,包括:The step of using each data point in the initial data point set as a training sample of the first agent model to be trained to obtain the corresponding first current agent model includes:
    将所述初始数据点集合中各数据点的决策变量作为所述第一待训练克里斯金模型的输入,将各决策变量对应的评估值作为所述第一待训练克里斯金模型的输出,对所述第一待训练克里斯金模型进行训练,得到第一克里斯金模型;Using the decision variable of each data point in the initial data point set as the input of the first Chriskin model to be trained, and the evaluation value corresponding to each decision variable as the output of the first Chriskin model to be trained, Training the first Chris King model to be trained to obtain the first Chris King model;
    将所述初始数据点集合中各数据点的决策变量作为所述第一待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第一待训练径向基函数模型的输出,对所述第一待训练径向基函数模型进行训练,得到第一径向基函数模型;The decision variable of each data point in the initial data point set is used as the input of the first radial basis function model to be trained, and the evaluation value corresponding to each decision variable is used as the first radial basis function model to be trained. Output, training the first radial basis function model to be trained to obtain a first radial basis function model;
    将所述初始数据点集合中各数据点的决策变量作为所述第一待训练多项式响应面模型的输入,将各决策变量对应的评估值作为所述第一待训练多项式响应面模型的输出,对所述第一待训练多项式响应面模型进行训练,得到第一多 项式响应面模型。Using the decision variable of each data point in the initial data point set as the input of the first polynomial response surface model to be trained, and the evaluation value corresponding to each decision variable as the output of the first polynomial response surface model to be trained, The first polynomial response surface model to be trained is trained to obtain the first polynomial response surface model.
  3. 根据权利要求2所述的基于代理辅助进化算法的翼型优化方法,其中,所述根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体,包括:The airfoil optimization method based on the agent-assisted evolution algorithm according to claim 2, wherein the first current agent model and the preset first individual screening condition are generated according to the first type of initial population genetic evolution. The first type of final population is searched, and the first target individual and the second target individual obtained include:
    根据所述初始数据点集合中决策变量的向量特征维数,以拉丁超立方体设计随机生成Ng个变量解,以组成第一类初始种群;其中,每一变量解为第一类初始种群中的一个个体,每一变量解的特征维数与决策变量的特征维数相同;According to the vector feature dimensions of the decision variables in the initial data point set, Ng variable solutions are randomly generated in a Latin hypercube design to form the first type of initial population; wherein, each variable solution is the first type of initial population For an individual, the characteristic dimension of the solution of each variable is the same as the characteristic dimension of the decision variable;
    获取第一类当前迭代代数,判断所述第一类当前迭代代数是否达到预设的最大迭代代数;其中,所述第一类当前迭代代数的初始值为1;Acquire the current iterative algebra of the first type, and determine whether the current iterative algebra of the first type reaches the preset maximum iterative algebra; wherein, the initial value of the current iterative algebra of the first type is 1;
    若所述第一类当前迭代代数未达到所述最大迭代代数,对所述第一类初始种群进行模拟二进制交叉和多项式变异,得到与所述第一类初始种群有相同个体总个数的第一类子种群;If the current iteration algebra of the first type does not reach the maximum iteration algebra, perform simulated binary crossover and polynomial mutation on the initial population of the first type to obtain the first population that has the same total number of individuals as the initial population of the first type. One type of subpopulation;
    将所述第一类初始种群与所述第一类子种群进行合并,得到第一类混合种群;Combining the first-type initial population with the first-type sub-population to obtain the first-type mixed population;
    将所述第一类混合种群中的每一个个体均输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值;Each individual in the first type of mixed population is input into the first current proxy model to obtain a predicted value corresponding to each individual in the first type of mixed population, and the prediction value corresponding to each individual in the first type of mixed population is obtained according to the first type of mixed population. The predicted value corresponding to each individual in the population obtains the uncertainty value corresponding to each individual;
    将所述第一类混合种群中的每一个个体根据对应的不确定性值进行升序排序,得到第一类排序后混合种群;Sort each individual in the first-type mixed population in ascending order according to the corresponding uncertainty value to obtain the first-type sorted mixed population;
    根据预设的分组数量Q,将所述第一类排序后混合种群进行平均划分,得到Q组第一类子混合种群;其中,Q=Ng;According to the preset grouping quantity Q, divide the mixed populations of the first type sorted evenly to obtain the first type sub-mixed populations of group Q; where Q=Ng;
    分别获取Q组第一类子混合种群中每一组子混合种群中不确定性值为最小值的个体,以组成第一类当前种群,将所述第一类当前种群作为第一类初始种群;Obtain the individuals with the smallest uncertainty value in each group of sub-mixed populations of the Q group of the first-type sub-mixed populations to form the first-type current population, and use the first-type current population as the first-type initial population ;
    将所述第一类当前迭代代数加一以作为第一类当前迭代代数,返回执行判断所述第一类当前迭代代数是否达到预设的最大迭代代数的步骤;Adding one to the current iterative algebra of the first type as the current iterative algebra of the first type, and return to execute the step of judging whether the current iterative algebra of the first type reaches the preset maximum iterative algebra;
    若所述第一类当前迭代代数达到所述最大迭代代数,将所述第一类初始种群作为所述第一类最终种群,获取所述第一类最终种群中预测值最小的个体以作为第一目标个体,并获取所述第一类最终种群中不确定性值最大的个体以作为第二目标个体。If the current iteration algebra of the first type reaches the maximum iteration algebra, the initial population of the first type is taken as the final population of the first type, and the individual with the smallest predicted value in the final population of the first type is obtained as the first A target individual, and obtain the individual with the largest uncertainty value in the first type of final population as the second target individual.
  4. 根据权利要求3所述的基于代理辅助进化算法的翼型优化方法,其中,所述将所述第一类混合种群中的每一个个体均输入至所述第一当前代理模型,得到与所述第一类混合种群中的每一个个体对应的预测值,包括:The airfoil optimization method based on the agent-assisted evolutionary algorithm according to claim 3, wherein each individual in the first type of mixed population is input into the first current agent model to obtain The predicted value corresponding to each individual in the first type of mixed population includes:
    将所述第一类混合种群中的每一个个体均输入至所述第一克里斯金模型,得到与所述第一类混合种群中的每一个个体对应的第一子类型预测值;Inputting each individual in the first type of mixed population into the first Chris King model to obtain a first subtype prediction value corresponding to each individual in the first type of mixed population;
    将所述第一类混合种群中的每一个个体均输入至所述第一径向基函数模型,得到与所述第一类混合种群中的每一个个体对应的第二子类型预测值;Inputting each individual in the first type of mixed population into the first radial basis function model to obtain a second subtype prediction value corresponding to each individual in the first type of mixed population;
    将所述第一类混合种群中的每一个个体均输入至所述第一多项式响应面模型,得到与所述第一类混合种群中的每一个个体对应的第三子类型预测值;Inputting each individual in the first type of mixed population into the first polynomial response surface model to obtain a third subtype prediction value corresponding to each individual in the first type of mixed population;
    获取所述第一克里斯金模型对应的第一权重值,获取所述第一径向基函数模型对应的第二权重值,并获取所述第一多项式响应面模型对应的第三权重值;Obtain the first weight value corresponding to the first Chriskin model, obtain the second weight value corresponding to the first radial basis function model, and obtain the third weight value corresponding to the first polynomial response surface model value;
    调用预先存储的预测值权值求和模型获取所述混合种群中每一个体对应的预测值;所述预测值权值求和模型为:The pre-stored prediction value weight summation model is called to obtain the prediction value corresponding to each individual in the mixed population; the prediction value weight summation model is:
    Figure PCTCN2020079879-appb-100001
    Figure PCTCN2020079879-appb-100001
    其中,
    Figure PCTCN2020079879-appb-100002
    表示所述混合种群中的个体x i对应的预测值;
    in,
    Figure PCTCN2020079879-appb-100002
    Represents the predicted value corresponding to the individual x i in the mixed population;
    Figure PCTCN2020079879-appb-100003
    e 1为所述第一克里斯金模型的均方根误差,e 2为所述第一径向基函数模型的均方根误 差,e 3为所述第一多项式响应面模型的均方根误差,
    Figure PCTCN2020079879-appb-100004
    表示个体x i对应第一子类型预测值,
    Figure PCTCN2020079879-appb-100005
    表示个体x i对应第二子类型预测值,
    Figure PCTCN2020079879-appb-100006
    表示个体x i对应第三子类型预测值。
    Figure PCTCN2020079879-appb-100003
    e 1 is the root mean square error of the first Chriskin model, e 2 is the root mean square error of the first radial basis function model, and e 3 is the mean square error of the first polynomial response surface model. Root square error,
    Figure PCTCN2020079879-appb-100004
    Indicates that the individual x i corresponds to the predicted value of the first subtype,
    Figure PCTCN2020079879-appb-100005
    Indicates that the individual x i corresponds to the predicted value of the second subtype,
    Figure PCTCN2020079879-appb-100006
    Indicates that the individual x i corresponds to the predicted value of the third subtype.
  5. 根据权利要求4所述的基于代理辅助进化算法的翼型优化方法,其中,所述根据所述第一类混合种群中的每一个个体对应的预测值获取每一个个体对应的不确定性值,包括:The airfoil optimization method based on the agent-assisted evolutionary algorithm according to claim 4, wherein said obtaining the uncertainty value corresponding to each individual according to the predicted value corresponding to each individual in the first type of mixed population, include:
    重复执行获取所述第一类混合种群中的个体x i对应的第一子类型预测值
    Figure PCTCN2020079879-appb-100007
    第二子类型预测值
    Figure PCTCN2020079879-appb-100008
    及第三子类型预测值
    Figure PCTCN2020079879-appb-100009
    两两之间的最大差值,以作为所述第一类混合种群中的个体x i对应的不确定性值U ens(x i)的步骤,直至获取所述第一类混合种群中的每一个个体对应的不确定性值;其中,i的取值范围为[1,2Ng]。
    Repeated execution to obtain the predicted value of the first subtype corresponding to the individual x i in the first type of mixed population
    Figure PCTCN2020079879-appb-100007
    Predicted value of the second subtype
    Figure PCTCN2020079879-appb-100008
    And the third sub-type predicted value
    Figure PCTCN2020079879-appb-100009
    The maximum difference between the two is used as the uncertainty value U ens (x i ) corresponding to the individual x i in the first type of mixed population, until each of the first type of mixed populations is obtained. The uncertainty value corresponding to an individual; among them, the value range of i is [1, 2Ng].
  6. 根据权利要求3所述的基于代理辅助进化算法的翼型优化方法,其中,所述以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体,包括:The airfoil optimization method based on the agent-assisted evolutionary algorithm according to claim 3, wherein each data point in the target data point set is used as a training sample of the second agent model to be trained to obtain the corresponding second current agent model , According to the second current agent model and the preset second individual screening conditions, searching for the second type final population generated according to the genetic evolution of the second type initial population to obtain the third target individual, including:
    调用预先存储的第二待训练径向基函数模型以作为所述第二当前代理模型;Calling a pre-stored second radial basis function model to be trained as the second current agent model;
    将所述目标数据点集合中各数据点对应的决策变量作为所述第二待训练径向基函数模型的输入,将各决策变量对应的评估值作为所述第二待训练径向基函数模型的输出,对所述第二待训练径向基函数模型进行训练,得到第二径向基函数模型,以将所述第二径向基函数模型作为所述第二当前代理模型;The decision variable corresponding to each data point in the target data point set is used as the input of the second radial basis function model to be trained, and the evaluation value corresponding to each decision variable is used as the second radial basis function model to be trained To train the second radial basis function model to be trained to obtain a second radial basis function model, so as to use the second radial basis function model as the second current agent model;
    获取所述目标数据点集合中各数据点对应的决策变量,以组成第二类初始种群;其中,所述目标数据点集合中每一数据点对应的决策变量与所述第二类初始种群中的一个个体相对应;The decision variable corresponding to each data point in the target data point set is obtained to form a second type of initial population; wherein, the decision variable corresponding to each data point in the target data point set is the same as that in the second type of initial population Corresponds to an individual of;
    获取第二类当前迭代代数,判断所述第二类当前迭代代数是否达到预设的最大迭代代数;其中,所述第二类当前迭代代数的初始值为1;Acquire the current iteration algebra of the second type, and determine whether the current iteration algebra of the second type reaches the preset maximum iteration algebra; wherein, the initial value of the current iteration algebra of the second type is 1;
    若所述第二类当前迭代代数未达到所述最大迭代代数,对所述第二类初始种群进行模拟二进制交叉和多项式变异,得到与所述第二类初始种群有相同个体总个数的第二类子种群;If the current iteration algebra of the second type does not reach the maximum iteration algebra, perform simulated binary crossover and polynomial mutation on the initial population of the second type to obtain the first population that has the same total number of individuals as the initial population of the second type. The second type of subpopulation;
    将所述第二类初始种群与所述第二类子种群进行合并,得到第二类混合种群;Combining the initial population of the second type with the sub-population of the second type to obtain a mixed population of the second type;
    将所述第二类混合种群中的每一个个体均输入至所述第二径向基函数模型,得到与所述第二类混合种群中的每一个个体对应的预测值;Inputting each individual in the second type of mixed population into the second radial basis function model to obtain a predicted value corresponding to each individual in the second type of mixed population;
    将所述第二类混合种群中的每一个个体根据对应的预测值进行升序排序,得到排序后第二类混合种群;Sort each individual in the second-type mixed population in ascending order according to the corresponding predicted value to obtain the second-type mixed population after sorting;
    获取所述排序后第二类混合种群中排序在所述排名阈值之前的个体,以组成第二类当前种群,将所述第二类当前种群作为第二类初始种群;Acquiring individuals in the second-type mixed population after the ranking that are ranked before the ranking threshold to form a second-type current population, and the second-type current population is used as the second-type initial population;
    将所述第二类当前迭代代数加一以作为第二类当前迭代代数,返回执行判断所述第二类当前迭代代数是否达到预设的最大迭代代数的步骤;Adding one to the current iterative algebra of the second type as the current iterative algebra of the second type, and return to execute the step of judging whether the current iterative algebra of the second type reaches the preset maximum iterative algebra;
    若所述第二类当前迭代代数达到所述最大迭代代数,将所述第二类初始种群作为所述第二类最终种群,获取所述第二类最终种群中预测值最小的个体以作为第三目标个体。If the current iteration algebra of the second type reaches the maximum iteration algebra, the initial population of the second type is taken as the final population of the second type, and the individual with the smallest predicted value in the final population of the second type is obtained as the first Three target individuals.
  7. 根据权利要求6所述的基于代理辅助进化算法的翼型优化方法,其中,所述对所述第二类初始种群进行模拟二进制交叉和多项式变异,得到与所述第二类初始种群有相同个体总个数的第二类子种群,包括:The airfoil optimization method based on the agent-assisted evolution algorithm according to claim 6, wherein the simulated binary crossover and polynomial mutation are performed on the second type of initial population to obtain the same individuals as the second type of initial population The total number of subpopulations of the second category includes:
    在所述第二类初始种群中任意挑选两个个体以依次进行二进制交叉,直到生成M个交叉处理后第二类新个体,对M个交叉处理后第二类新个体进行多项式变异,由多项式变异后的第二类新个体组成第二类子种群;其中,M=所述排名阈值-1。Randomly select two individuals in the second type of initial population to perform binary crossover in sequence until M new individuals of the second type after crossover processing are generated, and after M crossover processing, the second type of new individuals are subjected to polynomial mutation, and the polynomial The mutated second-type new individuals form the second-type subpopulation; where M=the ranking threshold -1.
  8. 一种基于代理辅助进化算法的翼型优化装置,其中,包括:An airfoil optimization device based on agent-assisted evolutionary algorithm, which includes:
    加点请求检测单元,用于判断是否接收到客户端发送的数据点加点请求;The point addition request detection unit is used to determine whether the data point addition request sent by the client is received;
    初始数据点集合获取单元,用于若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量;The initial data point set acquisition unit is used to obtain the initial data point set in the sample library if the data point addition request sent by the client is received, and the total number of data points in the initial data point set and the preset optimization point The total number obtains the maximum number of true evaluations; among them, each data point includes the decision variable corresponding to the wing geometric shape control point and the evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
    数据点总个数判断单元,用于判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数;A total number of data points judging unit, configured to judge whether the total number of data points in the initial data point set is less than the maximum number of true evaluation times;
    全局搜索单元,用于若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体;The global search unit is configured to use each data point in the initial data point set as a training sample of the first proxy model to be trained if the total number of data points in the initial data point set is less than the maximum number of real evaluation times, Obtain the corresponding first current agent model, search according to the first current agent model and preset first individual screening conditions in the first type final population generated according to the genetic evolution of the first type initial population, and obtain the first Target individual and second target individual;
    第一轮加点单元,用于将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成;The first round of adding points unit is used to add the data points corresponding to the first target individual and the data points corresponding to the second target individual to the initial data point set to obtain the current data point set; wherein The data point corresponding to a target individual is composed of the first target individual and the first real function value obtained by inputting the first target individual to the pre-stored target function and performing calculation; the data point corresponding to the second target individual is composed of the second The target individual and the second target individual input to the target function corresponding to the second real function value composition;
    局部搜索单元,用于获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体;The local search unit is used to obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is The data points are used as the training samples of the second to-be-trained agent model to obtain the corresponding second current agent model. According to the second current agent model and the preset second individual screening conditions, the data points are generated according to the genetic evolution of the second type of initial population The second type of final population is searched and the third target individual is obtained;
    第二轮加点单元,用于将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成;以及The second round of adding points unit is used to add the data points corresponding to the third target individual to the current data point set to obtain the final data point set, use the final data point set as the initial data point set, and return to execute the judgment of the initial data point set. The step of determining whether the total number of data points in the data point set is less than the maximum number of true evaluation times; wherein, the data point corresponding to the third target individual is input to the target function by the third target individual and the third target individual Correspondingly obtained third real function value composition; and
    加点后集合发送单元,用于若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。The point-added collection sending unit is configured to send the initial data point collection to the client if the total number of data points in the initial data point collection is greater than or equal to the maximum number of real evaluation times.
  9. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the following steps when the processor executes the computer program:
    判断是否接收到客户端发送的数据点加点请求;Determine whether the data point adding request sent by the client is received;
    若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量;If a data point addition request sent by the client is received, the initial data point set in the sample library is obtained, and the maximum number of real evaluations is obtained according to the total number of data points in the initial data point set and the total number of optimized points set in advance; Among them, each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
    判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数;Judging whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times;
    若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体;If the total number of data points in the initial data point set is less than the maximum number of real evaluations, each data point in the initial data point set is used as the training sample of the first agent model to be trained to obtain the corresponding first current The agent model, according to the first current agent model and preset first individual screening conditions, searches the first type final population generated according to the first type of initial population genetic evolution to obtain the first target individual and the second target individual;
    将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应 的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成;The data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain the current data point set; wherein the data point corresponding to the first target individual is determined by The first target individual and the first target individual are input to the pre-stored target function for calculation and are composed of the corresponding first true function value; the data point corresponding to the second target individual is composed of the second target individual and the second target individual Input to the objective function corresponding to the second real function value composition;
    获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体;Obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is used as the second target data point set. Train the training samples of the agent model to obtain the corresponding second current agent model, and perform the process on the second type final population generated based on the genetic evolution of the second type initial population according to the second current agent model and preset second individual screening conditions Search to get the third target individual;
    将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成;以及The data point corresponding to the third target individual is added to the current data point set to obtain the final data point set, the final data point set is used as the initial data point set, and the execution is returned to determine the total number of data points in the initial data point set. The step of whether the number is less than the maximum number of real evaluation times; wherein the data point corresponding to the third target individual is input by the third target individual and the third target individual to the third true function value corresponding to the target function Composition; and
    若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。If the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下操作:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the following operations:
    判断是否接收到客户端发送的数据点加点请求;Determine whether the data point adding request sent by the client is received;
    若接收到客户端发送的数据点加点请求,获取样本库中的初始数据点集合,及根据初始数据点集合中数据点的总个数和预先设置的优化点总个数获取最大真实评价次数;其中,每一数据点包括机翼几何形状控制点对应的决策变量和与决策变量对应的评估值,每一决策变量为n维行向量或n维列向量;If a data point addition request sent by the client is received, the initial data point set in the sample library is obtained, and the maximum number of real evaluations is obtained according to the total number of data points in the initial data point set and the total number of optimized points set in advance; Among them, each data point includes a decision variable corresponding to the wing geometric shape control point and an evaluation value corresponding to the decision variable, and each decision variable is an n-dimensional row vector or an n-dimensional column vector;
    判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数;Judging whether the total number of data points in the initial data point set is less than the maximum number of real evaluation times;
    若所述初始数据点集合中数据点的总个数小于所述最大真实评价次数,以所述初始数据点集合中各数据点作为第一待训练代理模型的训练样本,得到对应的第一当前代理模型,根据所述第一当前代理模型及预设的第一个体筛选条件在根据第一类初始种群遗传进化生成的第一类最终种群进行搜索,得到的第一目标个体和第二目标个体;If the total number of data points in the initial data point set is less than the maximum number of real evaluations, each data point in the initial data point set is used as the training sample of the first agent model to be trained to obtain the corresponding first current The agent model, according to the first current agent model and preset first individual screening conditions, searches the first type final population generated according to the first type of initial population genetic evolution to obtain the first target individual and the second target individual;
    将所述第一目标个体对应的数据点和所述第二目标个体对应的数据点均加入所述初始数据点集合,得到当前数据点集合;其中,所述第一目标个体对应的数据点由第一目标个体、及第一目标个体输入至预先存储的目标函数进行运算对应得到的第一真实函数值组成;所述第二目标个体对应的数据点由第二目标个体、及第二目标个体输入至所述目标函数对应得到的第二真实函数值组成;The data points corresponding to the first target individual and the data points corresponding to the second target individual are both added to the initial data point set to obtain the current data point set; wherein the data point corresponding to the first target individual is determined by The first target individual and the first target individual are input to the pre-stored target function for calculation and are composed of the corresponding first true function value; the data point corresponding to the second target individual is composed of the second target individual and the second target individual Input into the second real function value composition obtained corresponding to the objective function;
    获取所述当前数据点集合中各数据点按真实函数值进行升序排序且排序在预设的排名阈值之前的数据点以组成目标数据点集合,以目标数据点集合中各数据点作为第二待训练代理模型的训练样本,得到对应的第二当前代理模型,根据所述第二当前代理模型及预设的第二个体筛选条件在根据第二类初始种群遗传进化生成的第二类最终种群进行搜索,得到第三目标个体;Obtain the data points in the current data point set that are sorted in ascending order according to the true function value and sorted before the preset ranking threshold to form a target data point set, and each data point in the target data point set is used as the second target data point set. Train the training samples of the agent model to obtain the corresponding second current agent model, and perform the process on the second type final population generated based on the genetic evolution of the second type initial population according to the second current agent model and preset second individual screening conditions Search to get the third target individual;
    将所述第三目标个体对应的数据点加入所述当前数据点集合,得到最终数据点集合,将最终数据点集合作为初始数据点集合,返回执行判断所述初始数据点集合中数据点的总个数是否小于所述最大真实评价次数的步骤;其中,所述第三目标个体对应的数据点由第三目标个体、及第三目标个体输入至所述目标函数对应得到的第三真实函数值组成;以及The data point corresponding to the third target individual is added to the current data point set to obtain the final data point set, the final data point set is used as the initial data point set, and the execution is returned to determine the total number of data points in the initial data point set. The step of whether the number is less than the maximum number of real evaluation times; wherein the data point corresponding to the third target individual is input by the third target individual and the third target individual to the third true function value corresponding to the target function Composition; and
    若所述初始数据点集合中数据点的总个数大于或等于所述最大真实评价次数,将所述初始数据点集合发送至所述客户端。If the total number of data points in the initial data point set is greater than or equal to the maximum number of real evaluation times, the initial data point set is sent to the client.
PCT/CN2020/079879 2020-01-15 2020-03-18 Proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus WO2021142916A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010041514.7A CN111241751B (en) 2020-01-15 2020-01-15 Wing profile optimization method and device based on agent assisted evolution algorithm
CN202010041514.7 2020-01-15

Publications (1)

Publication Number Publication Date
WO2021142916A1 true WO2021142916A1 (en) 2021-07-22

Family

ID=70873357

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079879 WO2021142916A1 (en) 2020-01-15 2020-03-18 Proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus

Country Status (2)

Country Link
CN (1) CN111241751B (en)
WO (1) WO2021142916A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486600A (en) * 2021-09-07 2021-10-08 深圳领威科技有限公司 Method, device, equipment and storage medium for constructing die-casting production proxy model
CN113777925A (en) * 2021-09-13 2021-12-10 华东交通大学 Method and system for determining content of rare earth extraction component
CN114169100A (en) * 2021-12-08 2022-03-11 西安交通大学 Method and system for optimizing efficient design of ultra-large variable impeller machinery and application
CN114741961A (en) * 2022-03-30 2022-07-12 华中科技大学 Method and system for optimizing wing type fin arrangement structure of printed circuit board type heat exchanger
CN114818509A (en) * 2022-05-17 2022-07-29 中国南方电网有限责任公司超高压输电公司检修试验中心 Filter parameter design method, filter parameter design device, computer equipment and storage medium
CN115482655A (en) * 2022-04-18 2022-12-16 同济大学 Path induction method based on partial least square Kriging model
CN116305534A (en) * 2022-02-07 2023-06-23 西北工业大学 Efficient coaxial rigid rotor wing type multi-target robust design method
CN116483881A (en) * 2023-04-26 2023-07-25 北京远舢智能科技有限公司 Data sampling method, device, electronic equipment and medium based on pull Ding Chao cube
CN116882305A (en) * 2023-09-08 2023-10-13 中国石油大学(华东) Carbon dioxide and water gas alternative oil displacement multi-objective optimization method based on pre-search acceleration
CN117352111A (en) * 2023-12-06 2024-01-05 城资泰诺(山东)新材料科技有限公司 Composite material layering design optimization method and system
CN117610437A (en) * 2024-01-24 2024-02-27 青岛理工大学 Prediction method and device for evacuation high-risk area of underground station in flood scene

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111832117B (en) * 2020-06-09 2021-05-11 东风商用车有限公司 Design method and device of frame mounting hole site
CN112241811B (en) * 2020-10-20 2024-04-16 浙江大学 Layered hybrid performance prediction method for customized product in Internet +' environment
CN112465198B (en) * 2020-11-16 2023-07-28 湖南大学 Double-agent assisted search energy optimization method for small sample data of park
CN115238613B (en) * 2022-09-19 2022-12-09 齐鲁工业大学 Fan blade shape optimization method and system, storage medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334449A (en) * 2019-07-04 2019-10-15 南京航空航天大学 A kind of aerofoil profile Fast design method based on online agent model algorithm
CN110610225A (en) * 2019-08-28 2019-12-24 吉林大学 Multi-objective particle swarm optimization algorithm based on kriging proxy model plus-point strategy

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2639775A1 (en) * 2007-09-24 2009-03-24 Solido Design Automation Inc. Model-building optimization
CN109117491B (en) * 2018-06-15 2023-04-07 北京理工大学 Agent model construction method of high-dimensional small data fusing expert experience
CN109063355A (en) * 2018-08-15 2018-12-21 北京理工大学 Near-optimal method based on particle group optimizing Yu Kriging model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110334449A (en) * 2019-07-04 2019-10-15 南京航空航天大学 A kind of aerofoil profile Fast design method based on online agent model algorithm
CN110610225A (en) * 2019-08-28 2019-12-24 吉林大学 Multi-objective particle swarm optimization algorithm based on kriging proxy model plus-point strategy

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI LINGJIE; LIN QIUZHEN; WANG JIA; CHEN JIANYONG; MING ZHONG: "A Novel Multiobjective Particle Swarm Optimization Algorithm with Dynamic Resource Allocation", 2019 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), IEEE, 10 June 2019 (2019-06-10), pages 904 - 911, XP033592096, DOI: 10.1109/CEC.2019.8790313 *
TAO LINGBAO: "Research on Dynamic Surrogate Models Assisted Particle Swarm Optimization", INFORMATION SCIENCE AND TECHNOLOGY, CHINESE MASTER’S THESES FULL-TEXT DATABASE, 15 April 2019 (2019-04-15), XP055829899 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486600A (en) * 2021-09-07 2021-10-08 深圳领威科技有限公司 Method, device, equipment and storage medium for constructing die-casting production proxy model
CN113777925A (en) * 2021-09-13 2021-12-10 华东交通大学 Method and system for determining content of rare earth extraction component
CN114169100A (en) * 2021-12-08 2022-03-11 西安交通大学 Method and system for optimizing efficient design of ultra-large variable impeller machinery and application
CN114169100B (en) * 2021-12-08 2024-03-01 西安交通大学 Efficient design optimization method and system for super-large variable impeller machinery and application
CN116305534B (en) * 2022-02-07 2023-09-22 西北工业大学 Efficient coaxial rigid rotor wing type multi-target robust design method
CN116305534A (en) * 2022-02-07 2023-06-23 西北工业大学 Efficient coaxial rigid rotor wing type multi-target robust design method
CN114741961A (en) * 2022-03-30 2022-07-12 华中科技大学 Method and system for optimizing wing type fin arrangement structure of printed circuit board type heat exchanger
CN115482655A (en) * 2022-04-18 2022-12-16 同济大学 Path induction method based on partial least square Kriging model
CN115482655B (en) * 2022-04-18 2023-08-29 同济大学 Path induction method based on partial least square Kriging model
CN114818509A (en) * 2022-05-17 2022-07-29 中国南方电网有限责任公司超高压输电公司检修试验中心 Filter parameter design method, filter parameter design device, computer equipment and storage medium
CN116483881A (en) * 2023-04-26 2023-07-25 北京远舢智能科技有限公司 Data sampling method, device, electronic equipment and medium based on pull Ding Chao cube
CN116483881B (en) * 2023-04-26 2024-05-03 北京远舢智能科技有限公司 Data sampling method and device based on pull Ding Chao cube, electronic equipment and medium
CN116882305A (en) * 2023-09-08 2023-10-13 中国石油大学(华东) Carbon dioxide and water gas alternative oil displacement multi-objective optimization method based on pre-search acceleration
CN116882305B (en) * 2023-09-08 2023-11-17 中国石油大学(华东) Carbon dioxide and water gas alternative oil displacement multi-objective optimization method based on pre-search acceleration
CN117352111A (en) * 2023-12-06 2024-01-05 城资泰诺(山东)新材料科技有限公司 Composite material layering design optimization method and system
CN117352111B (en) * 2023-12-06 2024-03-08 城资泰诺(山东)新材料科技有限公司 Composite material layering design optimization method and system
CN117610437A (en) * 2024-01-24 2024-02-27 青岛理工大学 Prediction method and device for evacuation high-risk area of underground station in flood scene

Also Published As

Publication number Publication date
CN111241751B (en) 2022-03-22
CN111241751A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2021142916A1 (en) Proxy-assisted evolutionary algorithm-based airfoil optimization method and apparatus
US11816544B2 (en) Composite machine learning system for label prediction and training data collection
US11704541B2 (en) Graph neural network systems for generating structured representations of objects
US10621493B2 (en) Multiple record linkage algorithm selector
CN110263938B (en) Method and apparatus for generating information
CN110532376B (en) Classifying text to determine a target type for selecting machine learning algorithm results
WO2018149292A1 (en) Object clustering method and apparatus
CN111222976B (en) Risk prediction method and device based on network map data of two parties and electronic equipment
KR20210092699A (en) Classification model training and use methods and apparatuses, device, and medium
CN110704640A (en) Representation learning method and device of knowledge graph
CN111199474B (en) Risk prediction method and device based on network map data of two parties and electronic equipment
CN114580651A (en) Federal learning method, device, equipment, system and computer readable storage medium
CN114706992B (en) Event information processing system based on knowledge graph
US20190304573A1 (en) Adaptive weighting of similarity metrics for predictive analytics of a cognitive system
CN112000763B (en) Method, device, equipment and medium for determining competition relationship of interest points
CN113656698B (en) Training method and device for interest feature extraction model and electronic equipment
CN110633717A (en) Training method and device for target detection model
Pakgohar et al. A comparative study of hard clustering algorithms for vegetation data
CN113656315B (en) Data testing method and device, electronic equipment and storage medium
WO2021098265A1 (en) Missing information prediction method and apparatus, and computer device and storage medium
CN110334104A (en) A kind of list update method, device, electronic equipment and storage medium
CN115759183B (en) Correlation method and correlation device for multi-structure text graph neural network
Shin et al. Prediction of local quality of protein structure models considering spatial neighbors in graphical models
de Araujo et al. Impact of feature selection methods on the classification of DDoS attacks using XGBoost
CN116796282A (en) Molecular screening method, training device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20914658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.11.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20914658

Country of ref document: EP

Kind code of ref document: A1