CN116070672A - Optimization problem solving method based on improved whale optimization algorithm - Google Patents
Optimization problem solving method based on improved whale optimization algorithm Download PDFInfo
- Publication number
- CN116070672A CN116070672A CN202310080915.7A CN202310080915A CN116070672A CN 116070672 A CN116070672 A CN 116070672A CN 202310080915 A CN202310080915 A CN 202310080915A CN 116070672 A CN116070672 A CN 116070672A
- Authority
- CN
- China
- Prior art keywords
- whale
- optimization
- individual
- algorithm
- optimization algorithm
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 120
- 241000283153 Cetacea Species 0.000 title claims abstract description 100
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 100
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000013178 mathematical model Methods 0.000 claims description 25
- 238000013461 design Methods 0.000 claims description 17
- 230000006399 behavior Effects 0.000 claims description 16
- 239000011159 matrix material Substances 0.000 claims description 12
- 230000006835 compression Effects 0.000 claims description 7
- 238000007906 compression Methods 0.000 claims description 7
- 238000013459 approach Methods 0.000 claims description 6
- 238000005187 foaming Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000010355 oscillation Effects 0.000 claims description 3
- 230000008602 contraction Effects 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000012360 testing method Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 16
- 230000000694 effects Effects 0.000 description 3
- 239000002245 particle Substances 0.000 description 3
- 238000010845 search algorithm Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005291 chaos (dynamical) Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013440 design planning Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000019637 foraging behavior Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000011423 initialization method Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 241000894007 species Species 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/04—Constraint-based CAD
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Biophysics (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Computational Linguistics (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to an optimization problem solving method based on an improved whale optimization algorithm, which comprises the following steps: based on the whale optimization algorithm, an improved whale optimization algorithm based on quasi-reflection learning is constructed, and the method comprises the following steps: 1) Initializing a population based on quasi-reflection learning; 2) Optimizing whale individuals in the population by adopting nonlinear convergence factors, and updating the individual positions; 3) Adopting a random individual-based position updating strategy to secondarily update the positions of the population individuals; and solving the engineering field optimization problem by using the obtained improved whale optimization algorithm. The method is beneficial to improving the precision and speed of optimization.
Description
Technical Field
The invention relates to the field of engineering design planning, in particular to an optimization problem solving method based on an improved whale optimization algorithm.
Background
The core problem of many projects is ultimately ascribed to optimization problems. Therefore, optimization has become an indispensable computing tool for engineering technicians. The optimization problem is a problem of determining what values should be taken by some selectable variables under certain constraint conditions to optimize a selected objective function, and is widely applied to the fields of production management, economic planning, engineering design, system control and the like. Considering that the problems to be solved in the real world generally have the characteristics of diversity and complexity, in order to accurately solve the optimization problems, the number of variables or the number of decision variable dimensions in the optimization scheme needs to be continuously increased, which causes the problems of large calculation amount, dimension disaster and the like in the solution of the optimization problems. Therefore, the intelligent optimization algorithm is widely applied due to the characteristics of simple concept, easiness in implementation, no gradient information, avoidance of local optimal solution and the like. The intelligent optimization algorithm is a random search algorithm based on biological intelligence or natural phenomena, and the main idea is to simulate the behavior of some social species in nature to form a mathematical model for solving various problems. The algorithm can search in a global way to a certain extent, find an approximate solution of the optimal solution, and has important application value for solving the optimal solution or satisfactory solution of the complex optimization problem.
The whale optimization algorithm is a biological population intelligent algorithm, and the algorithm is a novel biological population intelligent algorithm which is proposed by Australian scholars Mirjallii and Lewis in 2016 according to unique bubble network foraging behaviors of whales at the head. As a novel biological population intelligent algorithm, the algorithm has good effect on convergence accuracy and convergence speed, but in the optimization solution of the actual problem, the condition that the solution accuracy is poor and the iteration process is easy to fall into local optimum still exists. For these problems, researchers have combined the whale optimization algorithm with differential evolution, and some researchers have proposed whale optimization algorithms based on opposite learning and exponential optimization, and in addition, chaos theory is introduced into the optimization process of whale optimization algorithms. However, these whale optimization algorithm improvements have not completely solved the problem of unbalanced global searching capability and local development capability, and of being prone to local optimality. Therefore, there is a need for improvements to existing whale optimization algorithms to increase the optimization effect based on whale optimization algorithms.
Disclosure of Invention
The invention aims to provide an optimization problem solving method based on an improved whale optimization algorithm, which is beneficial to improving the precision and speed of optimization.
In order to achieve the above purpose, the invention adopts the following technical scheme: an optimization problem solving method based on an improved whale optimization algorithm comprises the following steps:
based on the whale optimization algorithm, an improved whale optimization algorithm based on quasi-reflection learning is constructed, and the method comprises the following steps:
1) Initializing a population based on quasi-reflection learning;
2) Optimizing whale individuals in the population by adopting nonlinear convergence factors, and updating the individual positions;
3) Adopting a random individual-based position updating strategy to secondarily update the positions of the population individuals;
and solving the engineering field optimization problem by using the obtained improved whale optimization algorithm.
Further, in step 1), the implementation method for initializing the population based on quasi-reflection learning is as follows:
wherein ,representing the position of the i-th whale in the j-dimensional space,/I> and />Respectively indicate->And rand (0, 1) is a random number between 0 and 1.
Further, in the step 2), the implementation method for optimizing whale individuals in the population by adopting the nonlinear convergence factor comprises the following steps:
the optimizing process comprises three optimizing modes, namely surrounding a prey, foaming net attack and searching predation;
surrounding the prey: suppose that in d-dimensional space, the current best whale individual X * The position of (2) isWhale individual X j The position of (2) is +.>The next position X of the whale individual under the influence of the optimal position j+1 Is thatThe specific mathematical model is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
wherein ,representing the space coordinate X j+1 The kth component, r 1 and r2 Are all random numbers between 0 and 1, max iter The maximum iteration number is t, and the current iteration number is t;
foaming net attack: two mathematical models were constructed to simulate this predation behavior, respectively:
a) Shrink wrapping; the mathematical model constructed by the predation behavior is almost identical with the mathematical model surrounding the prey, and one difference is A 1 Is a value range of (a); since the contracted envelope is to bring the whale individual at the current position close to the whale individual at the current optimal position, A 1 The value of (a) is in the range from original [ -a, a]Adjust to [ -1,1]Other formulas remain unchanged;
b) Spiral position updating; the predation behavior is that the current whale individual approaches to the current optimal whale individual in a spiral mode, and a specific mathematical model is as follows:
wherein b is a logarithmic spiral shape constant, and l is a random number between-1 and 1;
the whale in the seat not only shrinks the wrapping ring, but also walks in a spiral form towards the prey, so that the position update chooses either to shrink the wrapping ring or to walk in a spiral form towards the prey with 50% probability, respectively, the specific mathematical model is as follows:
searching for predation: in a mathematical model of shrinkage surrounding this predatory behaviour A 1 Is of the value of (2)The range is limited to [ -1,1]But when A 1 The value of (2) is not within [ -1,1]At this time, the current whale individual may not approach the current best whale individual, but randomly select one whale individual from the current whale population; suppose that in d-dimensional space, one whale individual X is randomized in the current whale population rand The position of (2) isWhale individual X j The position of (2) is +.>The mathematical model of search predation behavior is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
further, in step 3), the implementation method of the location update policy based on the random individual is as follows:
each whale individual goes through the phases of surrounding predation, spiral update and hunting, after which each individual updates its position again by a position update strategy based on random individuals, taking the optimal position before and after the update.
Further, the method is applied to channel estimation value optimization in channel estimation; firstCombining LS algorithm and MMSE algorithm to construct a channel estimation valueThere are two unknown parameters x in the constructed channel estimate 1 、x 2 To characterize the transmitted signal; to obtain a more accurate channel estimate, a modified whale optimization algorithm is used to select the appropriate parameter x 1 、x 2 To minimize the mean square error MSE of the estimated and actual channels; the optimization model for channel estimation is as follows:
-1<x 1 <1,-1<x 2 <1
wherein ,representing the channel estimate obtained by improving the whale optimization algorithm, < >>For channel estimation using least squares algorithm LS +.>H is the true channel for channel estimation using minimum mean square error algorithm MMSE, ++>Is a cross-correlation matrix, R HH Is the autocorrelation matrix of the real channel; i is an identity matrix, X is a transmission signal matrix, Y is a reception signal vector, +.>For the power of the transmitted signal, +.>Is the power of the noise signal.
Further, the method is applied to the design of the compression spring; modeling the design of a compression spring as an optimization problem with the design objective of minimizing its mass f (x) under certain constraints, including minimum deflection, strong shear stress, oscillation frequency, and outer diameter limitations of 4 inequality constraints, the average diameter of the spring coil D (x 1 ) Diameter of spring wire d (x) 2 ) The number of effective turns of the spring N (x 3 ) 3 design variables; the correlation model is as follows:
Variable range 0.05≤x 1 ≤2.00
0.25≤x 2 ≤1.30
2.00≤x 3 ≤15.0
solving to obtain the optimal spring design parameters meeting the requirements by improving a whale optimization algorithm: average diameter of spring coil D (x) 1 ) Diameter of spring wire d (x) 2 ) And the effective number of turns of the spring N (x 3 )。
Compared with the prior art, the invention has the following beneficial effects: the method constructs an improved whale optimization algorithm based on quasi-reflection learning, solves the optimization problem in the engineering field through the obtained improved whale optimization algorithm, avoids the problems that the traditional biological population intelligent optimization algorithm is easy to be trapped in local optimization and low in convergence precision, improves the knowledge precision and the convergence speed, and can be widely applied to the fields of solving the optimization problem in engineering design.
Drawings
FIG. 1 is a flow chart of a method implementation of an embodiment of the present invention.
Fig. 2 is a plot of MSE convergence obtained over 30 iterations in an embodiment of the invention.
Fig. 3 is a schematic diagram of the application of the method to a compression spring in an embodiment of the invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present application. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the present application. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
As shown in fig. 1, the present embodiment provides an optimization problem solving method based on an improved whale optimization algorithm, including:
based on the whale optimization algorithm, an improved whale optimization algorithm based on quasi-reflection learning is constructed, and the method comprises the following steps:
1) Population initialization based on quasi-reflection learning is performed.
2) Optimizing whale individuals in the population by using nonlinear convergence factors, and updating the individual positions.
3) And adopting a random individual-based position updating strategy to secondarily update the positions of the population individuals.
And solving the engineering field optimization problem by using the obtained improved whale optimization algorithm.
1. Population initialization
The high-quality initialized population has very important influence on the solving precision of an optimization algorithm. According to whether the population initialization has randomness, the initialization methods are divided into two main categories: random algorithms and deterministic algorithms. Most of the current optimization algorithms use the simplest pseudo-random number generator to initialize a population. But are not sufficiently uniform in population, especially in high-dimensional space, generated by a pseudo-random number generator. In some specific problems, the population generated by the pseudo-random number generator does not allow the algorithm to achieve a good solution. The invention provides a quasi-reflection learning-based population initialization for improving the quality of an initialized population, which comprises the following implementation steps:
wherein ,representing the position of the i-th whale in the j-dimensional space,/I> and />Respectively indicate->And rand (0, 1) is a random number between 0 and 1.
2. Iterative optimization
The iterative optimization is the most core place of the whole optimization algorithm, and the iterative optimization of the biological population intelligent tree algorithm is mainly generated by referring to some activities of living things in the nature. The step size in iterative optimization determines the convergence rate of the algorithm. Most algorithms use a fixed step size for iterative optimization. This causes a situation in which the convergence speed is too slow. The invention provides a method for optimizing whale individuals in a population by adopting nonlinear convergence factors to improve optimizing performance, which comprises the following steps:
the process of optimizing includes three optimizing modes, namely, surrounding the prey, foaming net attack and searching predation.
1. Surrounding the prey: suppose that in d-dimensional space, the current best whale individual X * The position of (2) isWhale individual X j The position of (2) is +.>The next position X of the whale individual under the influence of the optimal position j+1 Is thatThe specific mathematical model is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
wherein ,representing the space coordinate X j+1 The kth component, r 1 and r2 Are all random numbers between 0 and 1, max iter And t is the current iteration number, and is the maximum iteration number.
2. Foaming net attack: two mathematical models were constructed separately to simulate this predation behavior.
a) Shrink wrapping; the mathematical model constructed by the predation behavior is almost identical with the mathematical model surrounding the prey, and one difference is A 1 Is a value range of (a); since the contracted envelope is to bring the whale individual at the current position close to the whale individual at the current optimal position, A 1 The value of (a) is in the range from original [ -a, a]Adjust to [ -1,1]The other formulas remain unchanged.
b) Spiral position updating; the predation behavior is that the current whale individual approaches to the current optimal whale individual in a spiral mode, and a specific mathematical model is as follows:
wherein b is a logarithmic spiral shape constant, and l is a random number between-1 and 1.
The whale in the seat not only shrinks the wrapping ring, but also walks in a spiral form towards the prey, so that the position update chooses either to shrink the wrapping ring or to walk in a spiral form towards the prey with 50% probability, respectively, the specific mathematical model is as follows:
3. searching for predation: in a mathematical model of shrinkage surrounding this predatory behaviour A 1 The range of the value of (C) is limited to [ -1,1]But when A 1 The value of (2) is not within [ -1,1]At this time, the current whale individual may not approach the current best whale individual, but randomly select one whale individual from the current whale population; suppose that in d-dimensional space, one whale individual X is randomized in the current whale population rand The position of (2) isWhale individual X j The position of (2) is +.>The mathematical model of search predation behavior is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
3. location update
The location update is that the algorithm updates the current location of each individual in the population after one iterative optimization. A good location update strategy helps the algorithm jump out of local optimization. A common location update is to directly assign the individual the location generated after iterative optimization, which is the simplest and most direct location update strategy. However, this also results in algorithms that tend to fall into local optima. The invention provides a random individual-based position updating strategy for preventing an algorithm from falling into local optimum. The implementation method of the location updating strategy based on the random individuals comprises the following steps:
each whale individual goes through the phases of surrounding predation, spiral update and hunting, after which each individual updates its position again by a position update strategy based on random individuals, taking the optimal position before and after the update.
Embodiment one:
the 23 reference test functions which are widely used are selected and comprise 7 30-dimensional unimodal test functions, 6 30-dimensional multimodal test functions and 10 fixed-dimensional multimodal test functions for testing, and the correlation functions and the expressions thereof are shown in tables 1, 2 and 3. The unimodal test function has only one optimal solution and is typically used to test the development capabilities of the optimization algorithm. The multimodal test function is characterized by multiple optima, often not easily found, so it is used to detect the ability of the optimization algorithm to explore and jump out of local optima. The fixed dimension multimodal test function has a large number of optimal solutions, but because the dimension is lower, the optimal solution is easier to find, and can be used for testing the stability of an optimization algorithm.
In order to verify the effectiveness and advantages of the improved whale optimization algorithm (QRWOA), the optimization result of the QRWOA is compared with three other optimization algorithms, wherein the three optimization algorithms are respectively as follows: traditional Whale Optimization Algorithm (WOA), differential optimization algorithm (DE) and particle swarm optimization algorithm (PSO). The comparison results are shown in Table 4.
TABLE 1
TABLE 2
TABLE 3 Table 3
Experimental setup and results analysis
The population number is set to 30, the maximum iteration number is set to 300, 40 experiments are performed on each test function, and the final result is presented in the form of average value and standard deviation. The average value represents the convergence performance of the optimization algorithm, and the closer the average value is to the minimum value of the real reference function, the better the convergence performance of the algorithm is. The standard deviation reflects the deviation degree of the algorithm result relative to the average, and the smaller the standard deviation is, the lower the discrete degree of the experimental result is reflected, and the better the stability is.
TABLE 4 Table 4
Table 4 gives a comparison of the results of several algorithms on the optimization of the test functions. From table 4 it can be seen that QRWOA is superior to other optimization algorithms both in terms of optimizing performance as well as stability performance. The unimodal test function (F1-F7) has only one optimal solution, and the optimal solution obtained by the QRWOA is closer to the global optimal solution compared with other optimization algorithms. The multimodal test function (F8-F13) differs from the previous unimodal test function (F1-F7) in that it contains a number of locally optimal solutions, and the number of locally optimal solutions increases exponentially with the number of set variables. QRWOA compares to other algorithms, with the exception that the result of test function F13 is less than DE, the other results are all optimal. A fixed dimension multimodal test function (F14-F23) which also has a number of optimal solutions. But due to the lower dimensionality, the optimal solution is easily found. The standard deviation of the QRWOA is smaller, and the stable performance is better.
In summary, compared with the basic optimization algorithm, the improved optimization algorithm has improved solving precision and stability.
Embodiment two:
the present embodiment applies the method to channel estimation value optimization in channel estimation.
Wireless communication systems typically require detailed channel information to be obtained at the receiving end to ensure proper demodulation of the transmitted signal, and channel estimation is an important component of the wireless communication system. Channel estimation is a process of estimating model parameters of a certain channel model to be assumed from received data. The traditional channel estimation method comprises a least square method channel estimation method LS and a least mean square error channel estimation method MMSE. The LS algorithm has a simple structure, can accurately perform channel estimation, but is easily affected by signal to noise ratio; MMSE algorithms are not susceptible to signal-to-noise ratio. In this embodiment, we first combine LS algorithm and MMSE algorithm to construct a new channel estimation valueThere are two unknown parameters x in the constructed channel estimate 1 、x 2 To describe the characteristics of the transmitted signal. To obtain a more accurate channel estimate, a modified whale optimization algorithm is used to select the appropriate parameter x 1 、x 2 The MSE (mean square error) of the estimated channel and the actual channel is minimized. The optimization model for channel estimation is as follows:
-1<x 1 <1,-1<x 2 <1;
wherein ,representing the channel estimate obtained by improving the whale optimization algorithm, < >>For channel estimation using least squares algorithm LS +.>For channel estimation using minimum mean square error algorithm (MMSE), H is the real channel, +.>Is a cross-correlation matrix, R HH Is the autocorrelation matrix of the real channel. I is an identity matrix, X is a transmission signal matrix, Y is a reception signal vector, +.>For the power of the transmitted signal, +.>Is the power of the noise signal.
Fig. 2 shows a plot of MSE convergence obtained over 30 iterations. From the convergence curve, it can be seen that the MSE can be quickly converged to the minimum value by using the method provided by the invention, so as to obtain the optimal channel estimation value.
Embodiment III:
as shown in fig. 3, this embodiment applies this method to the design of the compression spring.
The compression spring design can be modeled as an optimization problem with the goal of minimizing its mass f (x) under certain constraints, including minimum deflection, strong shear stress, oscillation frequency, and outer diameter limitations of 4 inequality constraints, the average diameter of the spring coil D (x 1 ) Diameter of spring wire d (x) 2 ) The number of effective turns of the spring N (x 3 ) 3 design variables, as shown in fig. 3.
The optimization problem described above can be solved by the following model:
Variable range 0.05≤x 1 ≤2.00,
0.25≤x 2 ≤1.30,
2.00≤x 3 ≤15.0.
by adopting an improved whale optimization algorithm, the results shown in the table 5 can be obtained through 40 experiments and solving of 300 times at most, namely, the optimal spring design parameters meeting the requirements are obtained: average diameter of spring coil D (x) 1 ) Diameter of spring wire d (x) 2 ) And the effective number of turns of the spring N (x 3 )。
TABLE 5
It can be further seen from table 6 that the solution method (QRWOA) proposed by the present invention can effectively solve 3 design variables, and the mean value and standard deviation of the solution result are superior to the original whale optimization algorithm (Whale Optimization Algorithm, WOA), particle swarm optimization algorithm (Particle Swarm optimization, PSO) and gravity search algorithm (Gravitational Search Algorithm, GSA).
TABLE 6
The above description is only a preferred embodiment of the present invention, and is not intended to limit the invention in any way, and any person skilled in the art may make modifications or alterations to the disclosed technical content to the equivalent embodiments. However, any simple modification, equivalent variation and variation of the above embodiments according to the technical substance of the present invention still fall within the protection scope of the technical solution of the present invention.
Claims (6)
1. An optimization problem solving method based on an improved whale optimization algorithm is characterized by comprising the following steps:
based on the whale optimization algorithm, an improved whale optimization algorithm based on quasi-reflection learning is constructed, and the method comprises the following steps:
1) Initializing a population based on quasi-reflection learning;
2) Optimizing whale individuals in the population by adopting nonlinear convergence factors, and updating the individual positions;
3) Adopting a random individual-based position updating strategy to secondarily update the positions of the population individuals;
and solving the engineering field optimization problem by using the obtained improved whale optimization algorithm.
2. The optimization problem solving method based on the improved whale optimization algorithm according to claim 1, wherein in the step 1), the implementation method for initializing the population based on quasi-reflection learning is as follows:
3. The optimization problem solving method based on the improved whale optimization algorithm according to claim 1, wherein in the step 2), the implementation method for optimizing whale individuals in the population by using nonlinear convergence factors is as follows:
the optimizing process comprises three optimizing modes, namely surrounding a prey, foaming net attack and searching predation;
surrounding the prey: suppose that in d-dimensional space, the current best whale individual X * The position of (2) isWhale individual X j The position of (2) is +.>The next position X of the whale individual under the influence of the optimal position j+1 Is thatThe specific mathematical model is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
wherein ,representing the space coordinate X j+1 The kth component, r 1 and r2 Are all random numbers between 0 and 1, max iter The maximum iteration number is t, and the current iteration number is t;
foaming net attack: two mathematical models were constructed to simulate this predation behavior, respectively:
a) Shrink wrapping; the mathematical model constructed by the predation behavior is almost identical with the mathematical model surrounding the prey, and one difference is A 1 Is a value range of (a); since the contracted envelope is to bring the whale individual at the current position close to the whale individual at the current optimal position, A 1 The value of (a) is in the range from original [ -a, a]Adjust to [ -1,1]Other formulas remain unchanged;
b) Spiral position updating; the predation behavior is that the current whale individual approaches to the current optimal whale individual in a spiral mode, and a specific mathematical model is as follows:
wherein b is a logarithmic spiral shape constant, and l is a random number between-1 and 1;
the whale in the seat not only shrinks the wrapping ring, but also walks in a spiral form towards the prey, so that the position update chooses either to shrink the wrapping ring or to walk in a spiral form towards the prey with 50% probability, respectively, the specific mathematical model is as follows:
searching for predation: in a mathematical model of contraction surrounding this-predatory behaviour A 1 The range of the value of (C) is limited to [ -1,1]But when A 1 The value of (2) is not within [ -1,1]At this time, the current whale individual may not approach the current best whale individual, but randomly select one whale individual from the current whale population; suppose that in d-dimensional space, one whale individual X is randomized in the current whale population rand The position of (2) isWhale individual X j The position of (2) is +.>The mathematical model of search predation behavior is as follows:
C 1 =2r 2
A 1 =2a·r 1 -a
4. the optimization problem solving method based on the improved whale optimization algorithm according to claim 1, wherein in the step 3), the implementation method of the location updating strategy based on the random individuals is as follows:
each whale individual goes through the phases of surrounding predation, spiral update and hunting, after which each individual updates its position again by a position update strategy based on random individuals, taking the optimal position before and after the update.
5. The optimization problem solving method based on the improved whale optimization algorithm as claimed in claim 1, wherein the method is applied to channel estimation value optimization in channel estimationThe method comprises the steps of carrying out a first treatment on the surface of the Firstly, combining LS algorithm and MMSE algorithm to construct a channel estimation valueThere are two unknown parameters x in the constructed channel estimate 1 、x 2 To characterize the transmitted signal; to obtain a more accurate channel estimate, a modified whale optimization algorithm is used to select the appropriate parameter x 1 、x 2 To minimize the mean square error MSE of the estimated and actual channels; the optimization model for channel estimation is as follows:
-1<x 1 <1,-1<x 2 <1
wherein ,representing the channel estimate obtained by improving the whale optimization algorithm, < >>For channel estimation using least squares algorithm LS +.>For channel estimation using the minimum mean square error algorithm MMSE, H is the true channel,is a cross-correlation matrix, R HH Is the autocorrelation matrix of the real channel; i is an identity matrix, X is a transmission signal matrix, Y is a reception signal vector, +.>For the power of the transmitted signal, +.>Is the power of the noise signal. />
6. The optimization problem solving method based on the improved whale optimization algorithm according to claim 1, wherein the method is applied to the design of compression springs; modeling the design of a compression spring as an optimization problem with the design objective of minimizing its mass f (x) under certain constraints, including minimum deflection, strong shear stress, oscillation frequency, and outer diameter limitations of 4 inequality constraints, the average diameter of the spring coil D (x 1 ) Diameter of spring wire d (x) 2 ) The number of effective turns of the spring N (x 3 ) 3 design variables; the correlation model is as follows:
Variable range 0.05≤x 1 ≤2.00
0.25≤x 2 ≤1.30
2.00≤x 3 ≤15.0
solving to obtain the optimal spring design parameters meeting the requirements by improving a whale optimization algorithm: average diameter of spring coil D (x) 1 ) Diameter of spring wire d (x) 2 ) And the effective number of turns of the spring N (x 3 )。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310080915.7A CN116070672A (en) | 2023-01-18 | 2023-01-18 | Optimization problem solving method based on improved whale optimization algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310080915.7A CN116070672A (en) | 2023-01-18 | 2023-01-18 | Optimization problem solving method based on improved whale optimization algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116070672A true CN116070672A (en) | 2023-05-05 |
Family
ID=86169559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310080915.7A Pending CN116070672A (en) | 2023-01-18 | 2023-01-18 | Optimization problem solving method based on improved whale optimization algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116070672A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116709240A (en) * | 2023-06-26 | 2023-09-05 | 南京理工大学 | Hierarchical sensor deployment method based on whale optimization algorithm |
CN116721433A (en) * | 2023-06-08 | 2023-09-08 | 吉首大学 | Improved whale optimization algorithm and application method thereof in character recognition |
CN117434829A (en) * | 2023-12-21 | 2024-01-23 | 济南大学 | Aircraft main engine wheel fan PID control method based on improved Jin Chai algorithm |
-
2023
- 2023-01-18 CN CN202310080915.7A patent/CN116070672A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116721433A (en) * | 2023-06-08 | 2023-09-08 | 吉首大学 | Improved whale optimization algorithm and application method thereof in character recognition |
CN116721433B (en) * | 2023-06-08 | 2024-01-30 | 吉首大学 | Improved whale optimization algorithm and application method thereof in character recognition |
CN116709240A (en) * | 2023-06-26 | 2023-09-05 | 南京理工大学 | Hierarchical sensor deployment method based on whale optimization algorithm |
CN116709240B (en) * | 2023-06-26 | 2024-03-12 | 南京理工大学 | Hierarchical sensor deployment method based on whale optimization algorithm |
CN117434829A (en) * | 2023-12-21 | 2024-01-23 | 济南大学 | Aircraft main engine wheel fan PID control method based on improved Jin Chai algorithm |
CN117434829B (en) * | 2023-12-21 | 2024-04-16 | 济南大学 | Aircraft main engine wheel fan PID control method based on improved Jin Chai algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116070672A (en) | Optimization problem solving method based on improved whale optimization algorithm | |
CN105488528B (en) | Neural network image classification method based on improving expert inquiry method | |
CN110443364A (en) | A kind of deep neural network multitask hyperparameter optimization method and device | |
CN110110862A (en) | A kind of hyperparameter optimization method based on adaptability model | |
CN111814966A (en) | Neural network architecture searching method, neural network application method, device and storage medium | |
CN109151727B (en) | WLAN fingerprint positioning database construction method based on improved DBN | |
CN109829477A (en) | More attribute physical layer authentication methods, device and server based on heuristic cluster | |
CN109951846A (en) | Wireless network recognition methods, device, storage medium and computer equipment | |
CN114637881B (en) | Image retrieval method based on multi-agent metric learning | |
CN110738362A (en) | method for constructing prediction model based on improved multivariate cosmic algorithm | |
CN114780879A (en) | Interpretable link prediction method for knowledge hypergraph | |
CN111475158A (en) | Sub-domain dividing method and device, electronic equipment and computer readable storage medium | |
CN113836330A (en) | Image retrieval method and device based on generation antagonism automatic enhanced network | |
Singhal et al. | Greedy Shapley Client Selection for Communication-Efficient Federated Learning | |
CN116010832A (en) | Federal clustering method, federal clustering device, central server, federal clustering system and electronic equipment | |
CN114449536B (en) | 5G ultra-dense network multi-user access selection method based on deep reinforcement learning | |
CN114637720B (en) | On-chip optical network mapping method based on growth type annular SOM neural network | |
Nakashima et al. | Incremental learning of fuzzy rule-based classifiers for large data sets | |
Lazarevic et al. | Data reduction using multiple models integration | |
Li et al. | Particle swarm optimization research base on quantum Q-learning behavior | |
Yamaguchi et al. | Adaptive learning algorithm in tree-structured self-organizing feature map | |
CN117784615B (en) | Fire control system fault prediction method based on IMPA-RF | |
Laskey | Sensitivity analysis for probability assessments in Bayesian networks | |
CN115292611B (en) | Case information processing method and system | |
CN113128706B (en) | Federal learning node selection method and system based on label quantity information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |