Design variable optimization method and system fusing reinforcement learning and CMA-ES

By integrating reinforcement learning and CMA-ES algorithms, combined with Gaussian process agent model and policy network, the problem of inefficient optimization in truss body design is solved, and more efficient design variable optimization is achieved.

CN118965980AActive Publication Date: 2024-11-15BEIJING INST OF TECH +1

Patent Information

Application Number
CN202411016799.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Traditional heuristic algorithms have low adaptability in the lightweight design of truss body structures, resulting in low optimization efficiency and ineffective optimization of design variable parameters.

Method used

Integrate reinforcement learning and CMA-ES algorithms, build Gaussian process agent model, policy network and evaluation network, and combine reinforcement learning to train the policy network, update the evolution path and optimize population parameters, break the inherent rules limitations, and improve adaptability.

Benefits of technology

The optimization efficiency of truss body design variables is improved, the generation of a large amount of invalid data is avoided, and more efficient design variable optimization is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118965980A_ABST
    Figure CN118965980A_ABST
Patent Text Reader

Abstract

The invention discloses a design variable optimization method and system fusing reinforcement learning and CMA-ES, and relates to the field of engineering optimization design, and the method comprises the steps: determining a truss vehicle body design variable; constructing a Gaussian process agent model, a strategy network and an evaluation network; performing iterative updating on the population and state information by adopting a CMA-ES algorithm until a set number of iterations is reached, and outputting a state information sequence under the optimization trajectory; training a strategy network and an evaluation network by adopting reinforcement learning based on the state information sequence, the state value function and the instant reward under the optimization trajectory; judging whether the optimized trajectory reaches a set optimized trajectory training frequency or not; if yes, based on the strategy network trained through reinforcement learning, a CMA-ES algorithm is adopted to conduct iteration updating on the population and state information, and the optimal population is generated after the set iteration number is reached. The optimization efficiency of the truss vehicle body design variable is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of engineering optimization design, and in particular to a design variable optimization method and system integrating reinforcement learning and CMA-ES. Background Art

[0002] In the field of engineering optimization design, the target objects of engineering design are often more complex, and its optimization process is also a process of solving high-dimensional optimization problems. Taking the lightweight design of truss body structure as an example, due to the complexity of the truss body structure, there are many combinations of variable parameters such as length, width, thickness, and material of key parts, which also leads to more than 100 dimensions of truss body design variables.

[0003] In solving high-dimensional optimization problems, traditional heuristic algorithms need to construct a huge solution space, in which there are a large number of invalid variable parameter combinations. Since the heuristic algorithm needs to perform iterative operations on each variable parameter combination, a large number of invalid variable parameter combinations will lead to low adaptability of the heuristic algorithm, thus affecting the optimization efficiency of the variable parameters.

[0004] Therefore, in the existing lightweight design of truss body structures, the traditional heuristic algorithm is obviously not applicable, and it cannot achieve effective optimization of the truss body design variable parameters. Even if the heuristic algorithm can be used to obtain several sets of optimized truss body design variable parameters, its optimization efficiency is also low. Summary of the invention

[0005] The purpose of this application is to provide a design variable optimization method and system that integrates reinforcement learning and CMA-ES, thereby improving the optimization efficiency of truss body design variables.

[0006] To achieve the above objectives, this application provides the following solutions:

[0007] In a first aspect, the present application provides a design variable optimization method integrating reinforcement learning and CMA-ES, wherein the design variable optimization method integrating reinforcement learning and CMA-ES comprises:

[0008] Determine truss body design variables, and take a set of parameters of the truss body design variables as an individual, and take a set of multiple sets of parameters of the truss body optimization variables as a population; the truss body design variables at least include: side length, thickness and material of transverse and longitudinal reinforcement beams;

[0009] Constructing a Gaussian process agent model, a strategy network and an evaluation network; the Gaussian process agent model is used to determine the corresponding truss body mass according to each individual; the strategy network is used to generate the corresponding evolution path change amount according to the state information of each population; the state information includes: the population mean, the population standard deviation and the eigenvalue of the population covariance matrix;

[0010] The CMA-ES algorithm is used to iteratively update the population and state information until the set number of iterations is reached, and the state information sequence under this optimization trajectory is output; the evolution path update formula in the CMA-ES algorithm adds the strategy network; the determination process of the elite individuals of the population in the CMA-ES algorithm applies the Gaussian process agent model; the state information sequence includes state information under different numbers of iterations;

[0011] Inputting the state information sequence under this optimization trajectory into the evaluation network to obtain the state value function under this optimization trajectory;

[0012] Based on the state information sequence, state value function and instant reward under this optimization trajectory, the strategy network and the evaluation network are trained by reinforcement learning;

[0013] Determine whether this optimization trajectory reaches the set optimization trajectory training times; if so, obtain the policy network trained by reinforcement learning; if not, return to step "using the CMA-ES optimization algorithm to iteratively update the population and state information until the maximum number of iterations is reached, and then output the state information sequence under this optimization trajectory";

[0014] Based on the policy network trained by reinforcement learning, the CMA-ES algorithm is used to iteratively update the population and state information until an optimal population is generated after a set number of iterations is reached; the optimal population contains multiple optimal individuals; the optimal individuals represent a set of optimal parameters of the truss body design variables.

[0015] Optionally, the evolution path update formula is:

[0016]

[0017] In the formula, is the evolution path of the tth iteration, is the evolution path of the t+1th iteration, α σ is the weight occupied by the historical evolution path, action is the change in the evolution path corresponding to the state information of the population at the tth iteration output by the strategy network, μ (t) is the population mean of the tth iteration, μ (t+1) is the population mean of the t+1th iteration, σ (t) is the population standard deviation at the tth iteration.

[0018] Optionally, the construction process of the Gaussian process proxy model specifically includes:

[0019] Based on the geometric structure of the truss body, a parametric model is established according to the truss body design variables;

[0020] With the goal of minimizing the mass of the truss body, finite element simulation is performed on the parameter model to generate a structural performance data set; the structural performance data set includes: multiple groups of parameters of the truss body design variables, and the mass of the truss body corresponding to each group of parameters;

[0021] A set of parameters of the truss body design variables is used as input, the mass of the truss body is used as output, and a Gaussian process is used to fit the structural performance data set to obtain a Gaussian process proxy model.

[0022] Optionally, two hidden layers are provided in the policy network and the evaluation network, and the number of nodes in each hidden layer is 128; and the learning rate of the policy network and the evaluation network is 0.001.

[0023] Optionally, the activation function of the policy network and the evaluation network is ReLU; and the loss function of the policy network and the evaluation network is AdamOptimizer.

[0024] Optionally, the CMA-ES algorithm is used to iteratively update the population and state information, specifically including:

[0025] Initializing population information; the population information at least includes: population size, variable boundaries and initial population covariance matrix;

[0026] Perform eigendecomposition on the population covariance matrix to obtain eigenvalues ​​and eigenvectors;

[0027] Based on the eigenvalue, the eigenvector and the standard normal distribution, the population mean and the population standard deviation are combined to obtain the population individual distribution;

[0028] Performing random sampling among the individuals in the population to obtain a contemporary population;

[0029] Based on the Gaussian process agent model, the mass of the truss body corresponding to each individual in the contemporary population is evaluated, and the first λ individuals are selected from the contemporary population as elite individuals of the population; λ is an integer greater than 0;

[0030] Based on the current elite individuals, evolutionary path, state information and update formula of the population, the next generation population covariance matrix, population mean, population standard deviation and evolutionary path are calculated; the update formula at least includes the evolutionary path update formula;

[0031] Based on the population covariance matrix, population mean, population standard deviation, and evolution path of the next generation, return and re-execute the step "perform eigendecomposition on the population covariance matrix to obtain eigenvalues ​​and eigenvectors."

[0032] Optionally, the strategy network and the evaluation network are trained using reinforcement learning, specifically including:

[0033] Calculate the advantage function and action value function based on the state value function and immediate reward;

[0034] Using the root mean square error between the action value function and the state value function as the evaluation network loss function, and back-propagating to train the evaluation network;

[0035] The strategy network is trained by back propagation by taking the average value of the minimized product of the advantage function and the importance ratio as the strategy network loss function.

[0036] In a second aspect, the present application provides a computer system, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the design variable optimization method of integrating reinforcement learning and CMA-ES.

[0037] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0038] The design variable optimization method proposed in this application, which integrates reinforcement learning and covariance matrix adaptive evolution strategy (Covariance Matrix Adaptation Evolution Strategies, CMA-ES), combines the high-dimensional search capability of the CMA-ES algorithm and utilizes the serialized decision-making capability of reinforcement learning. By adding a policy network to the evolution path update formula of the CMA-ES algorithm and training this policy network based on reinforcement learning, the limitations of the inherent rules in the original evolution path update formula are broken, the adaptive ability of the policy network is improved, and the generation of a large amount of invalid data is avoided. Therefore, this application improves the optimization efficiency of the truss body design variables. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0040] Figure 1A first flow chart of a design variable optimization method integrating reinforcement learning and CMA-ES provided in an embodiment of the present application;

[0041] Figure 2 Flowchart of the execution of the CMA-ES algorithm provided in the embodiment of the present application;

[0042] Figure 3 A second flow chart of the design variable optimization method integrating reinforcement learning and CMA-ES provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the internal structure of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] The purpose of this application is to provide a design variable optimization method and system that integrates reinforcement learning and CMA-ES, thereby improving the optimization efficiency of truss body design variables.

[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0047] Example 1

[0048] like Figure 1 As shown, this embodiment provides a design variable optimization method integrating reinforcement learning and CMA-ES, which specifically includes:

[0049] Step S1: Determine the truss body design variables, and take a set of parameters of the truss body design variables as an individual, and take a set of multiple sets of parameters of the truss body optimization variables as a population; the truss body design variables include at least: the side length, thickness and material of the transverse and longitudinal reinforcement beams.

[0050] Step S2: construct a Gaussian process agent model, a policy network and an evaluation network; the Gaussian process agent model is used to determine the corresponding truss body mass according to each individual; the policy network is used to generate the corresponding evolution path change according to the state information of each population; the evaluation network is used to generate the corresponding state value function according to the state information sequence; the state information includes: the population mean, the population standard deviation and the eigenvalue of the population covariance matrix; the state information sequence includes the state information under different numbers of iterations.

[0051] As a preferred implementation method, the construction process of the Gaussian process proxy model specifically includes:

[0052] Step S21: Based on the geometric structure of the truss body, a parameter model is established according to the truss body design variables.

[0053] In this embodiment, the transverse and longitudinal reinforcement beams of the load-bearing truss body are selected as optimization objects, the geometric structure of the load-bearing truss body is simplified, and only the side length, thickness and material selection of the transverse and longitudinal reinforcement beams are considered. A parameter model is established based on the simplified geometric structure.

[0054] Step S22: with the goal of minimizing the mass of the truss body, finite element simulation is performed on the parameter model to generate a structural performance data set; the structural performance data set includes: multiple groups of parameters of the truss body design variables, and the mass of the truss body corresponding to each group of parameters.

[0055] In this embodiment, by changing the parameter combinations of different side lengths, thicknesses and materials, the parameter model is subjected to multiple finite element simulations to obtain multiple sets of parameter data.

[0056] Step S23: Taking a set of parameters of the truss body design variables as input and the truss body mass as output, a Gaussian process is used to fit the structural performance data set to obtain a Gaussian process proxy model. The details are as follows:

[0057] The first step is to initialize the Gaussian process proxy model. Set the input variable X as multiple sets of parameters of the truss body design variables, and the output variable y is the mass of the truss body corresponding to each set of parameters. Select the radial basis function k(·) as the kernel function, which determines the smoothness and complexity of the Gaussian process;

[0058] The second step is Gaussian process regression. First, the covariance matrix K of the training samples (i.e., a set of parameters and their corresponding truss body mass) in the structural performance data set is calculated based on the radial basis function, and then the model hyperparameter θ is optimized by maximizing the likelihood function logp(y|X,θ). The calculation formula of the likelihood function is:

[0059]

[0060] in, is the noise variance, I is the identity matrix, and n is the number of training samples;

[0061] The third step is to evaluate the quality of the truss body. Calculate the new input parameter x * Covariance vector k with X * =(x * ,X), using the Gaussian process proxy model to * Make a prediction and get the mean value μ(x* ) and variance σ 2 (x * ):

[0062]

[0063] The fourth step is to use the mean μ(x * ) and variance σ 2 (x * ) construct a new input x * Corresponding distribution of truss body mass assessment prediction Under this distribution, we can obtain the predicted value y * (i.e. x * corresponding truss body mass).

[0064] As a preferred implementation method, the hyper parameters in the constructed strategy network and evaluation network are shown in Table 1:

[0065] Table 1 Hyperparameters of strategy-evaluation network

[0066]

[0067] Among them, the role of the strategy network is to generate actions, that is, to select actions according to the current state. The input of the strategy network is the current state, which corresponds to a set of parameters of the side length, thickness and material of the transverse and longitudinal reinforcement beam; the output is the action action under the current state, which corresponds to the change in the evolution path.

[0068] The role of the evaluation network is to evaluate the quality of an action. The evaluation network estimates the value of this combination based on the combination of the current state and action. Specifically, the policy network generates an action based on the current state, and then passes this action to the environment (that is, the process of the CMA-ES algorithm), and the environment will return the next state and immediate reward. The evaluation network receives the next state and immediate reward, and uses them to evaluate the action selection value of the policy network, that is, the state value function. The difference between the expected value of the immediate reward and the state value evaluation function made by the evaluation network is used to update the parameters of the policy network and the evaluation network, so that the action selected by the policy network can obtain as high an immediate reward as possible. The input of the evaluation network is the state information sequence under the current optimization trajectory, and the output is the state value function under the current optimization trajectory.

[0069] Step S3: Use the CMA-ES algorithm to iteratively update the population and state information until the set number of iterations is reached, and then output the state information sequence under this optimization trajectory; the evolution path update formula in the CMA-ES algorithm adds a strategy network; the Gaussian process agent model is applied to the determination process of the elite individuals in the population in the CMA-ES algorithm; the state information sequence includes state information under different numbers of iterations.

[0070] like Figure 2 As shown, the CMA-ES algorithm is used to iteratively update the population and state information, including:

[0071] Step S31: Initialize population information; the population information includes: population size, variable boundaries, initial population covariance matrix and population standard deviation boundaries, etc.

[0072] Step S32: Population sampling:

[0073] The first step is to perform eigendecomposition on the population covariance matrix C to obtain the eigenvalue D and eigenvector B; among which, the population covariance matrix C of the initial iteration is the initial population covariance matrix;

[0074] The second step is based on the eigenvalue D, eigenvector B and standard normal distribution Combining the population mean μ and the population standard deviation σ, we can get the individual distribution of the population x i is the i-th individual in the population;

[0075] The third step is the distribution of individuals in the population. Random sampling is carried out in the population, and the number of samples is the population size, so as to obtain the contemporary population.

[0076] Step S33: Update various parameters in the CMA-ES algorithm:

[0077] In the first step, based on the Gaussian process proxy model, the truss body mass corresponding to each individual in the contemporary population is evaluated, and the first λ individuals are selected from the contemporary population as the population elite individuals; λ is an integer greater than 0; the population elite individuals are obtained according to the ranking of the truss body mass corresponding to each individual in the contemporary population;

[0078] The second step is to calculate the population covariance matrix, population mean, population standard deviation and evolution path of the next generation based on the current population elite individuals, evolution path, state information and update formula; the update formula specifically includes:

[0079] Population mean update formula: In the formula, μ (t+1) is the population mean of the t+1th iteration, μ (t) is the population mean of the tth iteration, α μ Let α be the learning rate of the population mean. μ ≤1 to control the update speed of the population mean, is the elite individual of the ith population in the t+1th iteration;

[0080] Evolution path update formula: In the formula, is the evolution path of the t+1th iteration, is the evolution path of the tth iteration, α σ is the weight occupied by the historical evolution path, action is the change in the evolution path corresponding to the state information of the population at the tth iteration output by the strategy network, σ (t) is the population standard deviation of the tth iteration;

[0081] Population standard deviation update formula: Where, d σ is the standard deviation damping coefficient, which controls the scaling speed of σ. is the expectation of the evolution path of the t+1th iteration, is the mathematical expectation of the L2 Euclidean norm of a random variable that obeys a standard normal distribution;

[0082] Population covariance matrix update formula:

[0083]

[0084] In the above formula part, trying to solve the problem caused by The symbol loss problem caused by the phenomenon is solved, so another evolution path p is adopted. c To record the symbol problem, and the other evolution path p c The update formula is Partially referenced λ All historical data of} are used to estimate C. After many generations, the Make an estimate; α cp For history c The weight, α cλ ,α c1 are the learning rates of their respective parts;

[0085] The third step is to repeat steps S32 to S33 based on the population covariance matrix, population mean, population standard deviation and evolution path of the next generation until the set number of iterations is reached.

[0086] Step S4: Input the state information sequence under this optimization trajectory into the evaluation network to obtain the state value function under this optimization trajectory.

[0087] Step S5: Based on the state information sequence, state value function and immediate reward under this optimization trajectory, reinforcement learning is used to train the strategy network and the evaluation network.

[0088] like Figure 3 As shown, each time the above step S3 reaches the set number of iterations, a state information sequence S = {s1, ..., sn}, and because the reinforcement learning training of the policy network and the evaluation network also needs to reach the set optimization trajectory training times before it can be completed, it is necessary to repeatedly iterate through the above steps S3~S4 to obtain the state information sequence and state value function under different optimization trajectories, so as to realize the reinforcement learning training of the policy network and the evaluation network.

[0089] In this embodiment, the process of strengthening learning to train the strategy network and the evaluation network specifically includes:

[0090] Step S51: Use the state value function V(s t ) and the instant reward r of this optimization trajectory t , calculate the advantage function A(s t ,a t ) and the action-value function Q(s t ,a t ).

[0091] Among them, the action value function Q(s t ,a t ) indicates that a specific action is performed in a certain state. t The expected reward value is the instant reward and the expected reward from the current state to the end of this optimization trajectory. The calculation formula is Q(s t ,a t )=r t +γ*V(s t+1 );

[0092] Advantage function A(s t ,a t ) means in state s t Perform a specific action a t The difference between the reward value brought by and the expected reward value brought by executing all actions is calculated as A(s t ,a t )=Q(s t ,a t )-V(s t ). If the advantage function is positive, then it proves that performing a specific action a t will bring positive rewards; if the advantage function is negative, it proves that performing a specific action a t It will bring negative rewards. By using the advantage function, a relative reward function, the model can be better trained.

[0093] Step S52: Use the action value function Q(s t ,a t ) and the state value function V(s t) is used as the evaluation network loss function, and the evaluation network is updated through back propagation. The loss function of the evaluation network is specifically:

[0094] Step S53: Set the state information sequence S = {s1, ..., s n} Input the strategy network, obtain the evolution path change under this optimization trajectory and construct a normal distribution, calculate the logarithmic probability density P of the action sequence corresponding to the state information sequence under the normal distribution θ (s t ,a t ); the state sequence S = {s1,...,s n} Input the strategy network before the update, obtain the evolution path change under this optimization trajectory and construct a normal distribution, calculate the logarithmic probability density P of the action sequence corresponding to the state information sequence under the normal distribution θ' (s t ,a t ); θ (s t ,a t ) / P θ' (s t ,a t ) is used as the importance sampling of the training process, recorded as the importance ratio. Importance sampling allows the samples generated by the old policy to estimate the expected return of the new policy to solve the delay problem of the policy. To prevent the high variance problem caused by importance sampling, a clipping strategy is used to limit the importance ratio to keep it in a certain range [1-,1+], which helps to stabilize the learning process and avoid the negative impact of extreme weight values ​​on the learning process.

[0095] Calculate the policy network loss function and back-propagate to update the policy network. The policy network loss function is specifically L actor =mean(min(ratio*advantage,clip(ratio,1-,1+))), where ratio is the importance ratio, advantage is the advantage function, and clip is the clipping strategy.

[0096] Step S6: Determine whether the optimization trajectory has reached the set optimization trajectory training times; if so, obtain the policy network trained by reinforcement learning; if not, return to step "using the CMA-ES optimization algorithm to iteratively update the population and state information until the maximum number of iterations is reached, and then output the state information sequence under this optimization trajectory", and re-execute Figure 3 Each step in the process.

[0097] In this embodiment, the evaluation network is mainly used to facilitate the evaluation and training of the policy network. In the actual application process, only the policy network trained by reinforcement learning needs to be used to assist the population iterative update of the CMA-ES algorithm, and the evaluation network trained by reinforcement learning is no longer needed.

[0098] Step S7: Based on the policy network trained by reinforcement learning, the CMA-ES algorithm is used to iteratively update the population and state information until an optimal population is generated after reaching a set number of iterations; the optimal population contains multiple optimal individuals; the optimal individuals represent a set of optimal parameters of the truss body design variables.

[0099] As a preferred implementation method, the original evolution path update formula in the CMA-ES algorithm is: in, Some are fixed rules, mainly depending on the hyperparameter α σ , and λ, the optimization efficiency is often low when facing complex engineering problems. The main reason can be attributed to the low adaptability caused by the fixed rules in the original evolution path update formula.

[0100] In order to solve this problem, this application uses the reinforcement learning method to train the policy network by relying on serialized decision data, replacing some of the fixed rules in the original evolution path update formula, that is, modifying the evolution path update formula to In addition, in the process of training the policy network, a large amount of serialized decision data ensures the applicability of the policy network under different input conditions. The addition of the policy network breaks through the limitations of the original fixed rules and improves the overall optimization efficiency.

[0101] Step S7 is to use the policy network trained by reinforcement learning to determine the action, and reuse the CMA-ES algorithm to iteratively update the population and state information until the optimal population is selected. Because the individuals in the optimal population have been optimized to the maximum, it is only necessary to select the optimal individual from the optimal population, and design the truss body structure based on the side length, thickness and material parameters of the transverse and longitudinal reinforcement beams corresponding to the optimal individual, which can ensure the lightest truss body weight.

[0102] Example 2

[0103] This embodiment provides a computer system, which may be a server or a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer system includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer system is used to provide computing and control capabilities. The memory of the computer system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer system is used to store video tag processing data. The input / output interface of the computer system is used to exchange information between the processor and an external device. The communication interface of the computer system is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a design variable optimization method that integrates reinforcement learning and CMA-ES is implemented.

[0104] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer system to which the scheme of the present application is applied. The specific computer system may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0106] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0107] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0108] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A design variable optimization method integrating reinforcement learning and CMA-ES, characterized in that: The design variable optimization method integrating reinforcement learning and CMA-ES includes: Determine truss body design variables, and take a set of parameters of the truss body design variables as an individual, and take a set of multiple sets of parameters of the truss body optimization variables as a population; the truss body design variables at least include: side length, thickness and material of transverse and longitudinal reinforcement beams; Constructing a Gaussian process agent model, a strategy network and an evaluation network; the Gaussian process agent model is used to determine the corresponding truss body mass according to each individual; the strategy network is used to generate the corresponding evolution path change amount according to the state information of each population; the state information includes: the population mean, the population standard deviation and the eigenvalue of the population covariance matrix; The CMA-ES algorithm is used to iteratively update the population and state information until the set number of iterations is reached, and the state information sequence under this optimization trajectory is output; the evolution path update formula in the CMA-ES algorithm adds the strategy network; the determination process of the elite individuals of the population in the CMA-ES algorithm applies the Gaussian process agent model; the state information sequence includes state information under different numbers of iterations; Inputting the state information sequence under this optimization trajectory into the evaluation network to obtain the state value function under this optimization trajectory; Based on the state information sequence, state value function and instant reward under this optimization trajectory, the strategy network and the evaluation network are trained by reinforcement learning; Determine whether this optimization trajectory reaches the set optimization trajectory training times; if so, obtain the policy network trained by reinforcement learning; if not, return to step "using the CMA-ES optimization algorithm to iteratively update the population and state information until the maximum number of iterations is reached, and then output the state information sequence under this optimization trajectory"; Based on the policy network trained by reinforcement learning, the CMA-ES algorithm is used to iteratively update the population and state information until an optimal population is generated after a set number of iterations is reached; the optimal population contains multiple optimal individuals; the optimal individuals represent a set of optimal parameters of the truss body design variables.

2. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: The evolution path update formula is: In the formula, is the evolution path of the tth iteration, is the evolution path of the t+1th iteration, α σ is the weight occupied by the historical evolution path, action is the change in the evolution path corresponding to the state information of the population at the tth iteration output by the strategy network, μ (t) is the population mean of the tth iteration, μ (t+1) is the population mean of the t+1th iteration, σ (t) is the population standard deviation at the tth iteration.

3. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: The construction process of the Gaussian process proxy model specifically includes: Based on the geometric structure of the truss body, a parametric model is established according to the truss body design variables; With the goal of minimizing the mass of the truss body, finite element simulation is performed on the parameter model to generate a structural performance data set; the structural performance data set includes: multiple groups of parameters of the truss body design variables, and the mass of the truss body corresponding to each group of parameters; A set of parameters of the truss body design variables is used as input, the mass of the truss body is used as output, and a Gaussian process is used to fit the structural performance data set to obtain a Gaussian process proxy model.

4. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: The strategy network and the evaluation network are both provided with 2 hidden layers, and the number of nodes in each hidden layer is 128; the learning rate of the strategy network and the evaluation network is 0.

001.

5. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: The activation function of the policy network and the evaluation network is ReLU; the loss function of the policy network and the evaluation network is AdamOptimizer.

6. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: The CMA-ES algorithm is used to iteratively update the population and status information, including: Initializing population information; the population information at least includes: population size, variable boundaries and initial population covariance matrix; Perform eigendecomposition on the population covariance matrix to obtain eigenvalues ​​and eigenvectors; Based on the eigenvalue, the eigenvector and the standard normal distribution, the population mean and the population standard deviation are combined to obtain the population individual distribution; Performing random sampling among the individuals in the population to obtain a contemporary population; Based on the Gaussian process agent model, the mass of the truss body corresponding to each individual in the contemporary population is evaluated, and the first λ individuals are selected from the contemporary population as elite individuals of the population; λ is an integer greater than 0; Based on the current elite individuals, evolutionary path, state information and update formula of the population, the next generation population covariance matrix, population mean, population standard deviation and evolutionary path are calculated; the update formula at least includes the evolutionary path update formula; Based on the population covariance matrix, population mean, population standard deviation, and evolution path of the next generation, return and re-execute step "Perform eigendecomposition on the population covariance matrix to obtain eigenvalues ​​and eigenvectors".

7. The design variable optimization method integrating reinforcement learning and CMA-ES according to claim 1, characterized in that: Reinforcement learning is used to train the strategy network and the evaluation network, specifically including: Calculate the advantage function and action value function based on the state value function and immediate reward; Using the root mean square error between the action value function and the state value function as the evaluation network loss function, and back-propagating to train the evaluation network; The strategy network is trained by back propagation by taking the average value of the minimized product of the advantage function and the importance ratio as the strategy network loss function.

8. A computer system comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the design variable optimization method of integrating reinforcement learning and CMA-ES as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Light source mask optimization method based on covariance matrix adaptive evolutionary strategy algorithm

    CN111781804A

  • Unmanned aerial vehicle trajectory planning method based on continuous action dominant function learning

    CN116700327A

  • Apparatus and method for training reinforcement learning model for use in combinatorial optimization

    US20210374604A1

Cited By

  • Body-in-white structure process parameter optimization model training and application method and device

    CN119538421A