Machine tool stand column structure self-adaptive optimization design method oriented to high-dimension mixed variables
By adopting a mixed Gaussian process kernel with a sparse activation mechanism and a gradient-based multi-point restart acquisition function optimization strategy in high-dimensional mixed variable optimization, the problems of high computational cost and low efficiency in high-dimensional mixed variable optimization are solved, and rapid Convergence to the optimal solution of the optimization problem.
Patent Information
- Application Number
- CN202410801102.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-17
AI Technical Summary
Existing optimization methods have limitations when dealing with high-dimensional and highly nonlinear problems, especially when dealing with expensive optimization problems with high-dimensional mixed variables. The computational cost and time cost are high, and the traditional Bayesian optimization algorithm has problems with high-dimensional data. The cost of surrogate model construction and training increases exponentially during processing, making it difficult to adapt to the multi-modal mixed space.
A mixed Gaussian process kernel with a sparse activation mechanism is used, combined with a category sample similarity capture mechanism, to reduce the complexity of the agent model. Through a multi-point restart acquisition function optimization strategy based on gradient information, the search efficiency and sampling efficiency are improved, and an improved shell is proposed. The Yessian optimization framework quickly converges to the optimal solution of the optimization problem.
In high-dimensional mixed variable scenarios, the optimization efficiency is significantly improved, the computational cost is reduced, and the optimal solution to the optimization problem can be quickly found under limited computing resources, especially when the number of samples is limited.
Smart Images

Figure CN118657053A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of expensive optimization problems in the field of engineering optimization, and in particular to an adaptive optimization design method for a machine tool column structure facing high-dimensional mixed variables. Background Art
[0002] In the field of modern engineering optimization, especially in the design of complex structures, there is a challenge to comprehensively consider categorical and continuous variables. These design problems often exhibit black-box properties, non-convexity, high nonlinearity, and the computational cost of the objective function is high, which is often referred to as expensive optimization problems. As the number of variables in the design space increases, the complexity of the optimization task grows exponentially, placing higher demands on computing resources and time.
[0003] Existing optimization methods, such as derivative-based optimization algorithms (e.g., gradient descent) and meta-heuristic algorithms (e.g., particle swarm optimization, differential evolution), have limitations in dealing with high-dimensional and highly nonlinear problems. Derivative-based methods require derivative information of the objective function, but in many cases, this information is difficult to obtain or the computational cost is too high. Although meta-heuristic algorithms can handle high-dimensional problems, they often require a large number of objective function evaluations, resulting in high time costs and are not suitable for situations where computing resources are limited.
[0004] As a sequential model optimization method, the Bayesian optimization algorithm approximates the true objective function by constructing a surrogate model and uses the acquisition function to guide the search process, effectively balancing exploration and utilization and improving optimization efficiency. However, when the traditional Bayesian optimization algorithm processes high-dimensional data, the construction and training costs of the surrogate model increase exponentially with the increase of the input dimension, and the difficulty of global optimization of the acquisition function also increases. In addition, when the optimization problem involves a multimodal mixed space of continuous and categorical variables, traditional methods face major challenges in terms of variable representation, search space complexity, and algorithm adaptability. Summary of the invention
[0005] In order to solve the limitations of the prior art, the present invention proposes a novel optimization method for high-dimensional multimodal mixed variables. This method adopts a mixed Gaussian process kernel with a sparse activation mechanism, which combines the sparse activation mechanism and the category sample similarity capture mechanism, effectively adapts to the non-stationary smoothness of the objective function in different category spaces, and improves the modeling and prediction accuracy of high-dimensional mixed variable functions. High-dimensional mixed variables include categorical variables and high-dimensional continuous variables.
[0006] The core of the present invention is a unique Gaussian process kernel design, which can effectively model categorical variables while retaining the ability to process high-dimensional continuous variables. The method reduces the complexity of the proxy model and the training cost by introducing a sparse activation mechanism, and improves the search efficiency and sampling efficiency through a multi-point restart acquisition function optimization strategy based on gradient information, especially when the number of samples is limited.
[0007] In addition, the present invention also proposes an improved Bayesian optimization framework, which can quickly converge to the optimal solution of the optimization problem through a small number of objective function evaluations under limited computing resources. Through experimental verification in the structural optimization engineering case of the machine tool column of the gantry machining center, the method proposed in the present invention has shown significant advantages in improving optimization efficiency and reducing computing costs.
[0008] In order to achieve the above object, the present invention adopts the following technical solution:
[0009] An adaptive optimization design method for a machine tool column structure facing high-dimensional mixed variables specifically comprises the following steps:
[0010] Step 1, algorithm initialization;
[0011] Step 1.1, determine the objective function to be optimized (i.e., high-dimensional mixed variable function) f(x h ) and the mixed variable x h , let the mixed variable x h =[x con ,x cat ], x con is the mixed variable x h The continuous part, x cat is the mixed variable x h The categorical variable part of the corresponding value is [c1,c2,...,c j ] Determine the mixed variable x h The value range of is used to obtain the mixed variable design space Ω.
[0012] Step 1.2, determine the initial sample size and the maximum number of iterations of this optimization algorithm;
[0013] Step 1.3, use Latin hypercube sampling technology to sample in the mixed variable design space to form an initial sample point set {X}, and calculate the high-dimensional mixed variable function value {y} corresponding to each sample point as the initial observation data set {X, y};
[0014] Step 2, establish the agent model;
[0015] Step 2.1, select the Gaussian process model as the probability proxy model, that is, given a set of observations x1:n and the corresponding function value f(x 1:n ), the objective function follows a Gaussian distribution
[0016]
[0017] Step 2.2, propose a Gaussian process kernel to capture data similarity and intrinsic non-stationarity between categorical variables. The specific method is:
[0018] Constructing the covariance function k of the Gaussian process model h (x h ,x' h ), specifically:
[0019] k h (x h ,x′ h )=(1-λ)k1(x h ,x′ h )+λk2(x h ,x′ h )
[0020] Where λ is the trade-off k1(x h ,x′ h ) and k2(x h ,x′ h ) weight relationship and λ∈[0,1]; k1(x h ,x′ h ) is used to encode the coupling between continuous and categorical variables and is defined as follows:
[0021] k1(x h ,x′ h )=k1([x con ,x cat ],[x′ con ,x′ cat ])=k1([x con ,i],[x′ con ,j])=k RBF (x con ,x′ con )·m ij
[0022] Among them, k RBF (x con ,x′ con ) is k (1) (x h ,x' h ) to calculate the input variable x h ,x' h Continuous part x con ,x'con The covariance function of the correlation is where x con,d ,x' con,d For x con ,x' con The d-th dimension parameter, i, j is the input variable x h ,x′ h The corresponding specific category, is a hyperparameter that controls the variance, ρ d Used to control the validity and smoothness of the dth continuous dimension, where D is the continuous part of the input variable x con or x' con The total dimension of m ij For the element in the i-th row and j-th column of M, define the correlation between the i-th and j-th categories, with a value range between [0,1] and satisfying m ij =m ji , set all elements in M as hyperparameters; M is a real symmetric semi-positive definite l-order matrix that measures the similarity between different categories, defined as:
[0023]
[0024] k2(x h ,x′ h ) is used to capture the non-stationary smoothness of high-dimensional mixed variable functions under different categories and is defined as follows:
[0025]
[0026] Among them, for each category variable l, a separate radial basis kernel function is established Only calculate the continuous part x con ,x' con The correlation of x con,d ,x' con,d For x con ,x' con The d-th dimension parameter, i, j is the input variable x h ,x′ h The corresponding specific category, is a hyperparameter that controls the variance. Used to control the validity and smoothness of the dth continuous dimension, where D is the continuous part of the input variable x con or x' con The total dimension of k2(x h ,x′ h ) in calculating the mixed variable x h and x′ h When the correlation between x h and x′ hBelong to the same category l (i.e. i = j = l), then the radial basis kernel function of the corresponding category is activated And output the correlation; if x h and x′ h do not belong to the same category (i.e., i≠j), then k (2) (x h ,x' h ) is assigned to 0. This mechanism effectively establishes independent Gaussian processes for different categories, facilitating the non-stationary smoothness adaptation of the objective function under each category without the need for information exchange between categories.
[0027] Step 3, setting the proxy model prior;
[0028] A sparse activation mechanism is proposed to optimize the covariance function k in the Gaussian process model constructed in step 2. h (x h ,x' h ) with prior information for all hyperparameter settings.
[0029] Specifically, for k1(x h ,x′ h ), set the kernel variance Right now Obey the log-normal distribution and set the smoothness parameter ρ of each dimension of the continuous part m It follows a semi-Cauchy distribution, that is, α is the global shrinkage scale parameter, and the value of α is 0.001;
[0030] For k2(x h ,x′ h ) each corresponds to a different category of radial basis kernel function Setting the kernel variance Right now Obey the lognormal distribution and set the smoothness parameters of each dimension of the continuous part It follows a semi-Cauchy distribution, that is, α (l) is the global shrinkage scale parameter, and α (l) The value is 0.001.
[0031] Step 4: Optimize the hyperparameters of the proxy model;
[0032] Based on the maximum a posteriori estimate MAP and the observed data set {X, y}, all hyperparameters ψ in step 2 and step 3 are optimized to quickly identify the most relevant low-dimensional subspace, thereby facilitating accurate modeling and prediction of high-dimensional mixed variable functions. The hyperparameter optimization is:
[0033]
[0034] ψ is the Gaussian process kernel k h (x h ,x' h ), is the optimized hyperparameter.
[0035] In the sparse activation mechanism in step 3, due to the properties of the semi-Cauchy prior, the inverse square length scale ρ i The semi-Cauchy prior is influenced by the semi-Cauchy prior, causing them to go to zero. Therefore, most dimensions are closed. The semi-Cauchy prior has a heavy-tailed property, which means that if there is enough posterior evidence in the observations y, the inverse square scaling parameter ρ will be i will move away from 0, thus activating more dimensions.
[0036] Covariance function k h (x h ,x' h ) first part k1(x h ,x′ h ) ij is the element in the i-th row and j-th column of the matrix M, defining the correlation between the i-th and j-th categories, with a value range between [0,1] and satisfying m ij =m ji ; M is a real symmetric semi-positive definite l-order matrix that measures the similarity between different categories.
[0037] Covariance function k h (x h ,x' h ) where the hyperparameter λ controls k1(x h ,x′ h ) and k2(x h ,x′ h ), where k1(x h ,x′ h ) captures the similarities between different categories and can combine information from within and between categories, k2(x h ,x′ h ) is responsible for capturing the non-stationary smoothness of the objective function across categories, while no information is shared between different categories. During the hyperparameter optimization process, the λ hyperparameter can be adaptively adjusted based on the non-stationary smoothness of the objective function across categories. Specifically, when the non-stationary smoothness of the objective function across categories is weak, the kernel function k h (x h ,x' h ) is mainly composed of k1(x h ,x′ h ), at which point λ tends to 0. On the contrary, when the objective function has strong non-stationary smoothness across categories, the kernel function kh (x h ,x' h ) is mainly composed of k2(x h ,x′ h ), at this time λ tends to 1.
[0038] Step 5: Optimize the acquisition function.
[0039] Step 5.1, select the global expected improvement function EI as the acquisition function to evaluate the variables in the mixed variable space x The expected improvement brought by the objective function value of
[0040]
[0041] where f min is the currently found optimal objective function value, μ(x) is the proxy model prediction x The mean of , σ(x) is the proxy model prediction x The standard deviation of , Φ(·) and are the cumulative distribution function and probability density function of the unit normal distribution, respectively.
[0042] Step 5.2, a gradient-based multi-point restart acquisition function optimization strategy is proposed to optimize (i.e. maximize) the global expected improvement function EI, output the next newly added sample point and calculate the high-dimensional mixed variable function value corresponding to the sample point, add it to the observation data set, and increase the number of iterations by 1; the specific method is:
[0043] Step 5.2.1, use Latin hypercube sampling in the mixed variable space to generate P sample points {x 1:P}. Calculate the global expected improvement function value EI corresponding to these sample points, and select K-1 sample points {x 1:K-1 Compared with random sampling, sample points with higher EI values show higher reliability and optimization potential in high-dimensional space.
[0044] Step 5.2.2: The optimal observation point x in the current observation data set is * Add the K-1 sample points {x 1:K-1} to form K initial starting points {x 1:K}.
[0045] Step 5.2.3, due to the properties of the kernel function proposed in step 2, the EI function is only applied to the mixed variable x h The continuous part x con Differentiable. Fixed K initial starting points {x 1:K The discrete part x of cat , calculate the EI function relative to {x1:K} Gradient information of the continuous part, using Adam optimizer to update the initial starting point {x 1:K} to maximize the EI value.
[0046] Step 5.2.4, at K initial starting points {x 1:K} Select the coordinate point x corresponding to the maximum EI value after gradient optimization in step 5.2.3 max As the next new attachment point x next , calculate the corresponding objective function value y next , x next and next Add to the observation data set {X,y}, that is, {X,y}={X,y}∪{x next ,y next}, number of iterations + 1.
[0047] Step 6: Determine whether the process is terminated.
[0048] If the number of iterations is ≤ the preset maximum number of iterations, proceed to step 2; otherwise, the operation is completed and the optimal solution in the observation data set (i.e., the optimal observation point and its corresponding high-dimensional mixed variable function value) is output.
[0049] The advantages of the present invention are:
[0050] The present invention proposes a novel Gaussian process kernel to capture the data similarity and intrinsic non-stationarity between categorical variables, proposes a sparse activation mechanism to quickly and adaptively identify the most relevant low-dimensional subspace, thereby promoting accurate modeling and prediction of high-dimensional mixed variable functions, and proposes a multi-point restart acquisition function optimization algorithm based on gradient information to achieve efficient optimization of the global expectation improvement function in high-dimensional mixed variable scenarios; the optimization algorithm of the present invention can speed up the optimization efficiency to a certain extent and reduce the waste of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A 3D model (a) and finite element analysis results (b) of a gantry machining center machine column;
[0052] Figure 2 It is a convergence curve diagram of the method of the present invention and the traditional sequential model optimization in a case of the structure optimization of the column of a gantry machining center machine tool;
[0053] Figure 3 It is a box plot of the final convergence results of the method of the present invention and the traditional sequential model optimization in a case of the structure optimization of a column of a gantry machining center machine tool; DETAILED DESCRIPTION
[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0055] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0056] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0057] The following is an implementation of the machine tool column structure adaptive optimization design method (HDMBO) for high-dimensional mixed variables proposed by the present invention in the following example. Figure 1 In the specific gantry machining center machine tool column structure optimization case shown, the comparative example uses the Bayesian optimization algorithm (StandardBO) based on the traditional Gaussian model and the expected improvement criterion to optimize the structure of the machine tool column. By comparing the convergence curves between the embodiment and the comparative example and the box plot of the final convergence results, it can be confirmed that the adaptive optimization design method (HDMBO) for machine tool column structure for high-dimensional mixed variables proposed in the present invention has a performance advantage over the Bayesian optimization algorithm (StandardBO) based on the traditional Gaussian model and the expected improvement criterion.
[0058] The specific implementation of the present invention is described more completely and clearly in conjunction with the accompanying drawings, and includes the following steps:
[0059] Step 1, algorithm initialization;
[0060] Step 1.1, determine the objective function f(x h ) and the mixed variable x h .
[0061] For the machine tool column case, the objective function to be optimized is f(x h )for Figure 1 The global maximum deformation Y of the machine tool column under given constraints and loads is shown. The smaller the global maximum deformation, the better the stiffness performance of the machine tool column. The hybrid variable x to be optimized h is the shape parameter x of the machine column con and material parameters x cat , where the shape parameter x con There are 30 dimensions in total, and the value range is shown in Table 1. Material parameter x cat There is 1 dimension in total, and the value range is shown in Table 1, thus obtaining the mixed variable design space Ω, and defining the optimization problem as:
[0062]
[0063] where x i is the shape parameter x con The i-th dimension component (i=1,2,...,30) of i ),UB(x i ) are x i The lower and upper bounds of x 31 is the material parameter x cat , (v1,v2,v3,v4) is x 31 The specific value of
[0064] Step 1.2, determine the initial sample size to be 40, and determine the maximum number of iterations of Bayesian optimization to be 100;
[0065] Step 1.3, using Latin hypercube sampling technology to sample in the mixed variable design space Ω to form an initial sample point set and calculate the global maximum deformation of the corresponding machine tool column under given constraints and loads in the finite element analysis software; the generated initial sample point set and the corresponding deformation are used as the initial observation set of the machine tool column structure optimization algorithm;
[0066] Table 1 Mixed design space of machine tool columns
[0067]
[0068]
[0069] Step 2, establish the agent model;
[0070] Step 2.1, select the Gaussian process model as the probability proxy model, that is, given a set of observations x 1:n and the corresponding function value f(x 1:n ), the objective function follows a Gaussian distribution
[0071]
[0072] Step 2.2, propose a Gaussian process kernel to capture data similarity and intrinsic non-stationarity between categorical variables. The specific method is:
[0073] Constructing the covariance function k of the Gaussian process model h (x h ,x' h ), specifically:
[0074] k h (x h ,x′ h )=(1-λ)k1(x h ,x′ h )+λk2(x h ,x′ h )
[0075] Where λ is the trade-off k1(x h ,x′ h ) and k2(x h ,x′ h ) weight relationship and λ∈[0,1]; k1(x h ,x′ h ) is used to encode the coupling between continuous and categorical variables and is defined as follows:
[0076] k1(x h ,x′ h )=k1([x con ,x cat ],[x′ con ,x′ cat ])=k1([x con ,i],[x′ con ,j])=k RBF (x con ,x′ con )·m ij
[0077] Among them, k RBF (x con ,x′ con ) is k1(x h ,x′ h ) in the calculation of the shape parameters x of the column of the machine tool con ,x' con The covariance function of the correlation is where x con,d ,x' con,d For x con ,x' con The d-th dimension parameter, i, j is the input variable x h ,x′h The corresponding specific category, is a hyperparameter that controls the variance, ρ d Used to control the effectiveness and smoothness of the dth continuous dimension, ρ d In this case, it is the parameter that controls the validity and smoothness of the shape parameters of the d-th machine tool column; m ij For the element in the i-th row and j-th column of M, define the correlation between the i-th and j-th categories. In this example, m ij Define the correlation between the i-th material parameter and the j-th material parameter, the value range is between [0,1], and satisfies m ij =m ji , set all elements in M as hyperparameters; M is a real symmetric semi-positive 4-order matrix that measures the similarity between different categories, defined as:
[0078]
[0079] k2(x h ,x′ h ) is used to capture the non-stationary smoothness of high-dimensional mixed variable functions under different categories and is defined as follows:
[0080]
[0081] For each material parameter l, a separate radial basis kernel function is established Only calculate the continuous part x con ,x' con The correlation of x con,d ,x' con,d For x con ,x' con The d-th dimension parameter, i, j is the input variable x h ,x′ h The corresponding specific material category, is a hyperparameter that controls the variance. Used to control the validity and smoothness of the dth continuous dimension, In this case, it is the parameter that controls the validity and smoothness of the shape parameters of the d-th machine column. h ,x′ h ) in calculating the mixed variable x h and x′ h When the correlation between x h and x′ h Belong to the same category l (i.e. i = j = l), then the radial basis kernel function of the corresponding category is activated And output the correlation; if x h and x′ h do not belong to the same category (i.e., i≠j), then k(2) (x h ,x' h ) is assigned to 0. This mechanism effectively establishes independent Gaussian processes for different categories, facilitating the non-stationary smoothness adaptation of the objective function under each category without the need for information exchange between categories.
[0082] Step 3, setting the proxy model prior;
[0083] A sparse activation mechanism is proposed to optimize the covariance function k in the Gaussian process model constructed in step 2. h (x h ,x' h ) with prior information for all hyperparameter settings.
[0084] Specifically, for k1(x h ,x′ h ), set the kernel variance Right now Obey the log-normal distribution and set the smoothness parameter ρ of each dimension of the continuous part m It follows a semi-Cauchy distribution, that is, α is the global shrinkage scale parameter, and the value of α is 0.001;
[0085] For k2(x h ,x′ h ) each corresponds to a different category of radial basis kernel function Setting the kernel variance Right now Obey the lognormal distribution and set the smoothness parameters of each dimension of the continuous part It follows a semi-Cauchy distribution, that is, α (l) is the global shrinkage scale parameter, and α (l) The value is 0.001.
[0086] Step 4: Optimize the hyperparameters of the proxy model.
[0087] Based on the maximum a posteriori estimate MAP and the observed data set {X, y}, all hyperparameters ψ in step 2 and step 3 are optimized to quickly identify the most relevant low-dimensional subspace, thereby facilitating accurate modeling and prediction of high-dimensional mixed variable functions. The hyperparameter optimization is:
[0088]
[0089] X is all observed data, y is the objective function value corresponding to the observed data, and ψ is the Gaussian process kernel k h (x h ,x' h ), is the optimized hyperparameter.
[0090] In the sparse activation mechanism in step 3, due to the properties of the semi-Cauchy prior, the inverse square length scale ρ i The semi-Cauchy prior is influenced by the semi-Cauchy prior, causing them to go to zero. Therefore, most dimensions are closed. The semi-Cauchy prior has a heavy-tailed property, which means that if there is enough posterior evidence in the observations y, the inverse square scaling parameter ρ will be i will move away from 0, thus activating more dimensions.
[0091] The covariance function k in step 2.2 h (x h ,x' h ) first part k1(x h ,x′ h ) ij is the element in the i-th row and j-th column of the matrix M, defining the correlation between the i-th and j-th categories, with a value range between [0,1] and satisfying m ij =m ji ; M is a real symmetric semi-positive 4-order matrix that measures the similarity between different material categories. In the hyperparameter optimization process, the element m in M ij The correlation between material categories i, j will be adaptively weighed.
[0092] The covariance function k in step 2.2 h (x h ,x' h ) where the hyperparameter λ controls k1(x h ,x′ h ) and k2(x h ,x′ h ), where k1(x h ,x′ h ) captures the similarities between different material categories and can combine information from within and between categories, k2(x h ,x′ h ) is responsible for capturing the non-stationary smoothness of the objective function across categories, while no information is shared between different categories. During the hyperparameter optimization process, the λ hyperparameter can be adaptively adjusted based on the non-stationary smoothness of the objective function across categories. Specifically, when the non-stationary smoothness of the objective function across categories is weak, the kernel function k h (x h ,x' h ) is mainly composed of k1(x h ,x′ h ), at which point λ tends to 0. On the contrary, when the objective function has strong non-stationary smoothness across categories, the kernel function k h (xh ,x' h ) is mainly composed of k2(x h ,x′ h ), at this time λ tends to 1.
[0093] Step 5: Optimize the acquisition function.
[0094] Step 5.1, select the global expected improvement function EI as the acquisition function to evaluate the variables in the mixed variable space x The expected improvement brought by the objective function value of
[0095]
[0096] where f min is the currently found optimal objective function value, μ(x) is the proxy model prediction x The mean of , σ(x) is the proxy model prediction x The standard deviation of , Φ(·) and are the cumulative distribution function and probability density function of the unit normal distribution, respectively.
[0097] Step 5.2, using a gradient-based multi-point restart acquisition function optimization algorithm, optimize the global expected improvement function EI (i.e., maximize the global expected improvement function EI), output the next newly added sample point and calculate the high-dimensional mixed variable function value corresponding to the sample point, add it to the observation data set, and increase the number of iterations by 1. The specific steps are as follows:
[0098] Step 5.2.1, use Latin hypercube sampling in the mixed variable space to generate P sample points {x 1:P}. Calculate the global expected improvement function value EI corresponding to these sample points, and select K-1 sample points {x 1:K-1 Compared with random sampling, sample points with higher EI values show higher reliability and optimization potential in high-dimensional space.
[0099] Step 5.2.2: The optimal observation point x in the current observation data set is * Add the K-1 sample points {x 1:K-1} to form K initial starting points {x 1:K}.
[0100] Step 5.2.3, due to the properties of the kernel function proposed in step 2, the EI function is only applied to the mixed variable x h The continuous part x con Differentiable. Fixed K initial starting points {x 1:K The discrete part x of cat , calculate the EI function relative to {x1:K} Gradient information of the continuous part, using Adam optimizer to update the initial starting point {x 1:K} to maximize the EI value.
[0101] Step 5.2.4, at K initial starting points {x 1:K} Select the coordinate point x corresponding to the maximum EI value after gradient optimization in step 5.2.3 max As the next new attachment point x next , calculate the corresponding objective function value y next , x next and next Add to the observation data set {X,y}, that is, {X,y}={X,y}∪{x next ,y next}, number of iterations + 1.
[0102] Step 6: Determine whether the process is terminated.
[0103] If the number of iterations is ≤ the preset maximum number of iterations, proceed to step 2; otherwise, the operation is completed and the optimal solution in the observation data set (i.e., the optimal observation point and its corresponding high-dimensional mixed variable function value) is output.
[0104] In order to reduce the influence of randomness in point selection of the optimal Latin hypercube method, 5 groups of tests were conducted on the embodiment and the comparative example. For the machine tool column case, the deformation of the 5 groups of machine tool columns obtained by optimization and the number of iterations to obtain the minimum deformation were statistically compared in the form of convergence curves and box plots of the final convergence results. Among them, the convergence curve of the machine tool column structure optimization is shown in Figure 2 As shown, the final convergence result box plot is as follows Figure 3 Among them, StandardBO represents the data of the comparative example, and HDMBO represents the data of the embodiment.
[0105] For the machine tool column case, Figure 3 The figure shows the range of the mean, median and standard deviation of the five test result data. The deformation of the machine tool column optimized by the embodiment is significantly smaller than that of the comparative example in terms of both the median and the mean. Figure 2 It can be seen that the number of iterations for obtaining the minimum deformation of the machine tool column in the embodiment is significantly less than that in the comparative example. In the 5 groups of tests, the average initial deformation of the machine tool column was 32.56 microns, the average deformation after optimization in the embodiment was 25.30 microns, and the average deformation after optimization in the comparative example was 27.73 microns. The deformation of the machine tool column in the embodiment was reduced by an average of 7.26 microns compared with that before optimization, and the deformation of the machine tool column in the comparative example was reduced by an average of 4.83 microns compared with that before optimization.
[0106] By analyzing the optimization comparison results of the machine tool column case, it can be seen that the performance of the high-dimensional mixed variable sequential model optimization (HDMBO) based on sparse activation and non-stationary mixed Gaussian process kernel of the present invention is significantly better than the sequential model optimization (StandardBO) of the traditional expectation improvement criterion.
[0107] Through the comparison of the embodiments and the comparative examples, it can be seen that the main technical contributions of the optimization method of the present application are: a novel Gaussian process kernel is proposed to capture the data similarity and intrinsic non-stationarity between categorical variables, a sparse activation mechanism is proposed to quickly and adaptively identify the most relevant low-dimensional subspaces, thereby promoting accurate modeling and prediction of high-dimensional mixed variable functions, and a multi-point restart acquisition function optimization algorithm based on gradient information is proposed to achieve efficient optimization of the global expectation improvement function in high-dimensional mixed variable scenarios; therefore, the optimization algorithm of the present invention can speed up the optimization efficiency to a certain extent and reduce the waste of computing resources.
[0108] The above specification and description of the embodiments are used to explain the protection scope of the present application, but do not constitute a limitation on the protection scope of the present application.
Claims
1. A method for adaptive optimization design of machine tool column structure for high-dimensional mixed variables, characterized in that: The specific steps include: Step 1: determine the high-dimensional mixed variable function, mixed variables and their value ranges that need to be optimized, obtain the mixed variable design space, and determine the initial sample size; Sampling in the mixed variable design space to form an initial sample point set and calculating the high-dimensional mixed variable function value corresponding to each sample point as an observation data set; the high-dimensional mixed variable includes a categorical variable and a high-dimensional continuous variable; Step 2, selecting a Gaussian process model as a probabilistic proxy model, proposing a Gaussian process kernel for capturing data similarity and intrinsic non-stationarity between categorical variables; setting sparse activation prior information for all hyperparameters of the Gaussian process kernel; Step 3: Optimize all hyperparameters in step 2 based on the maximum a posteriori estimation and the observed data set, and adaptively identify the most relevant low-dimensional subspace, so as to achieve accurate modeling and prediction of high-dimensional mixed variable functions; Step 4: Select the global expectation lifting function as the acquisition function, propose a multi-point restart acquisition function optimization strategy based on gradient information, optimize the global expectation lifting function, output the next newly added sample point and calculate the high-dimensional mixed variable function value corresponding to the sample point, add it to the observation data set, and increase the number of iterations by 1; Step 5, determine whether the process is terminated: if the number of iterations is ≤ the preset maximum number of iterations, go to step 2; otherwise, the operation is completed and the optimal solution in the observation data set is output.
2. The method for adaptive optimization design of machine tool column structure facing high-dimensional mixed variables according to claim 1, characterized in that: In step 2, the Gaussian process kernel used to capture data similarity and intrinsic non-stationarity between categorical variables is specifically: k h (x h ,x′ h )=(1-λ)k1(x h ,x′ h )+λk2(x h ,x′ h ) Among them, k h (x h ,x' h ) is the covariance function of the Gaussian process model, and λ is the weight k1(x h ,x′ h ) and k2(x h ,x′ h ) weight relationship and λ∈[0,1]; k1(x h ,x′ h ) is used to encode the coupling between continuous and categorical variables and is defined as follows: k1(x h ,x′ h )=k1([x con ,x cat ],[x′ con ,x′ cat ])=k1([x con ,i],[x′ con ,j])=k RBF (x con ,x′ con )·m ij Among them, k RBF (x con ,x′ con ) is k1(x h ,x′ h ) to calculate the input variable x h ,x' h Continuous part x con ,x' con The covariance function of the correlation is where x con,d ,x' con,d For x con ,x' con The d-th dimension parameter, i, j is the input variable x h ,x′ h The corresponding specific category, is a hyperparameter that controls the variance, ρ d is a parameter that controls the effectiveness and smoothness of the dth continuous dimension, D is the continuous part of the input variable x con or x' con The total dimension of m ij is the element in the i-th row and j-th column of the matrix M, defining the correlation between the i-th and j-th categories, with a value range between [0,1] and satisfying m ij =m ji , set all elements in M as hyperparameters; M is a real symmetric semi-positive definite l-order matrix that measures the similarity between different categories, defined as: k2(x h ,x′ h ) is used to capture the non-stationary smoothness of high-dimensional mixed variable functions under different categories and is defined as follows: in, is the radial basis kernel function of the categorical variable l, used to calculate the continuous part x con ,x' con The correlation of x con,d ,x' con,d For x con ,x' con The dth dimension parameter; i, j are input variables x h ,x′ h The specific category that corresponds to; is a hyperparameter that controls the size of the variance; is a parameter that controls the effectiveness and smoothness of the dth continuous dimension; D is the continuous part of the input variable x con or x' con The total dimension of k2(x h ,x′ h ) in calculating the mixed variable x h and x′ h When the correlation between x h and x′ h Belong to the same category l (i.e. i = j = l), then the radial basis kernel function of the corresponding category is activated And output the correlation; if x h and x′ h do not belong to the same category, that is, i≠j, then k2(x h ,x′ h ) is assigned a value of 0.
3. The method for adaptive optimization design of machine tool column structure facing high-dimensional mixed variables according to claim 2, characterized in that: In step 2, sparse activation prior information is set for all hyperparameters of the Gaussian process kernel, and the specific method is as follows: For k1(x h ,x′ h ), set the kernel variance Right now Obey the log-normal distribution and set the smoothness parameter ρ of each dimension of the continuous part m It follows a semi-Cauchy distribution, that is, α is the global shrinkage scale parameter, and the value of α is 0.001; For k2(x h ,x′ h ) each corresponds to a different category of radial basis kernel function Setting the kernel variance Right now Obey the lognormal distribution and set the smoothness parameters of each dimension of the continuous part It follows a semi-Cauchy distribution, that is, α (l) is the global shrinkage scale parameter, and α (l) The value is 0.
001.
4. The method for adaptive optimization design of machine tool column structure facing high-dimensional mixed variables according to claim 1, characterized in that: In step 4, a multi-point restart acquisition function optimization strategy based on gradient information is proposed to optimize the global expected improvement function. The specific method is: sample and generate P sample points {x 1:P }, calculate the global expected improvement function EI value corresponding to these sample points, and select K-1 sample points {x 1:K-1 }, the optimal observation point x in the current observation data set * Add to {x 1:K-1 } to form K initial starting points {x 1:K }; Fixed K initial starting points {x 1:K }, calculate the EI value relative to {x 1:K } Gradient information of the continuous part, using Adam optimizer to update the initial starting point {x 1:K }, thereby maximizing the EI value; select the coordinate point x corresponding to the maximum EI value after optimization max As the next new sample point.
Citation Information
Cited By
Proxy model generation method for mechanical structure dynamic effect containing non-uniform level factors
CN119670509A
A surrogate model generation method for dynamic effects of mechanical structures with non-uniform horizontal factors
CN119670509B
Neural network model-based optimization method and device, medium and program product
CN120822384A
