A reoptimized bacterial foraging algorithm for feature family processing scheme selection
Through the feature family-oriented re-optimization bacterial foraging algorithm, the problem of local optimal solution and low efficiency in the selection of multi-feature processing solutions in mechanical processing is solved, more efficient processing solution selection and multi-objective optimization are achieved, and processing efficiency is improved. and program quality.
Patent Information
- Application Number
- CN202311788309.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-12-25
AI Technical Summary
Existing machining plan selection methods have local optimal solution problems when processing parts with multiple features. The convergence speed is slow, and it is difficult to reflect the diversity of machining plans. It cannot effectively meet the processing requirements of multiple features, resulting in low efficiency.
A re-optimized bacterial foraging algorithm oriented to feature families is proposed. By establishing a multi-objective optimization model and combining the trend, fine-tuning, replication and adaptive migration processes in bacterial foraging behavior, a re-optimized bacterial foraging algorithm is designed to optimize features. The family processing scheme improves the convergence speed and global optimization capabilities of the algorithm.
It realizes the simultaneous decision-making of processing plans for multiple features, improves the selection efficiency, outputs better processing plans, and accelerates the convergence speed, which can better meet the needs of multi-objective optimization.
Smart Images

Figure CN117742270B
Abstract
Description
Technical Field
[0001] The invention relates to a re-optimized bacterial foraging algorithm, in particular to a re-optimized bacterial foraging algorithm for feature family processing scheme selection. Background Art
[0002] The selection of processing solutions for part features is crucial in the manufacturing system, directly affecting the production efficiency and even the market competitiveness of the enterprise. Production efficiency needs to consider many factors, such as processing cost, processing time, processing quality, resource utilization, and production stability, so the selection of processing solutions is a multi-objective optimization problem. In the process of feature processing, the processing solutions available are often not unique. In order to ensure the optimization of production efficiency, each processing feature needs to find the corresponding optimal processing solution, which is the core of the selection of processing solutions.
[0003] There are two main methods for machining scheme selection (MSS): one is a decision-making technology based on feature parameters and machining schemes, and the other is an optimization technology based on experience and knowledge. The former mainly uses rough sets, extended rough sets, variable precision rough sets, and decomposition and reorganization methods to process machining data through the analysis of historical cases, and mines the correlation between machining feature parameters and machining schemes, and then decides the machining scheme corresponding to the features. However, this method has a large demand for historical data, and the constraint rules are very strict, requiring human intervention, and has certain limitations in application. The latter applies digital simulation and optimization technology to machining scheme selection, and constantly considers various evaluation factors. So far, various mathematical models have been developed based on different evaluation schemes, and the widely used optimization algorithms include: genetic algorithm (GA), ant colony algorithm (ACO), particle swarm algorithm (PSO), artificial neural network, etc., to achieve machining scheme selection under different backgrounds. These algorithms can be widely used in machining scheme selection, mainly because of their relatively fast convergence speed. Therefore, GA, ACO, PSO, etc. have also been continuously improved and combined with each other to solve such problems.
[0004] Although the above algorithms have made some progress in multi-objective optimization, due to the defects of the algorithm itself and the conflict between requirements and constraints, there are local optimal solutions in the MSS problem solving process, which cannot fully reflect the diversity of processing solutions. Therefore, the processing solutions obtained by using only the traditional natural evolution algorithm are not very ideal. In comparison, the Bacterial Foraging Algorithm (BFA) has an integrated structure and low coupling, which not only has powerful computing power, but also can break through the local optimal solution.
[0005] So far, the bacterial foraging algorithm has made certain breakthroughs in practical engineering and computational models, and has been applied to complex function optimization, steel structure design, wireless sensor networks, PID controllers and other fields. Gradually, a group of scholars combined the bacterial foraging algorithm with the ant colony algorithm, incorporated ideas such as roulette, and improved the migration behavior to elimination and propagation, so that its convergence performance is improved, the solution quality is better, and various path planning problems are effectively solved; in recent years, researchers have continued to improve the bacterial foraging algorithm, proposed an adaptive bacterial foraging algorithm, optimized the bacterial swimming step length and migration probability formula, effectively improved the search accuracy and convergence performance, and applied it in the field of workshop scheduling. Although the above-mentioned bacterial foraging algorithm and its improved algorithm have achieved certain results, the convergence speed is not ideal, and the convergence effect still needs to be improved.
[0006] In addition, the above-mentioned MSS mainly targets single features or single-type features, and is unable to meet the size and processing requirements of multiple features in parts, and the final result of the processing scheme is uncertain, time-consuming and inefficient. To this end, the present invention proposes the definition of a feature family, that is, a collection of all processing features of the same type in a part, for example, a hole feature family, a slot feature family, a boss feature family, etc. Taking the hole feature family as an example, a part may have a hole feature A with a diameter of 10 mm, an accuracy grade of IT7, and a surface roughness of Ra3.2; there may also be a hole feature B with a diameter of 40 mm, an accuracy grade of IT8, and a surface roughness of Ra6.3. If the traditional method is used to select the processing scheme for each feature one by one, it is both laborious and time-consuming and inefficient. Therefore, there is an urgent need for a method that can face multiple features in a feature family and make a one-time decision on the processing scheme for each feature. Summary of the invention
[0007] In order to address the shortcomings of the above-mentioned technologies, the present invention provides a re-optimization of bacterial foraging algorithm (RBFA) for feature family processing scheme selection to solve the problem of slow convergence speed of traditional bacterial foraging algorithms, and proposes the concept of feature family, facing multiple features in the feature family, to decide the processing scheme for each feature at one time.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is: a re-optimized bacterial foraging algorithm for feature family processing scheme selection, comprising the following steps:
[0009] Step S1, establishing a multi-objective optimization model for feature family processing scheme selection: based on the three principles of lowest processing cost, shortest processing time and best processing quality, a multi-objective optimization model is established;
[0010] Step S2, solving the multi-objective optimization model based on bacterial fine-tuning and re-optimized bacterial foraging algorithm: referring to the bacterial foraging behavior, establishing a re-optimized bacterial foraging algorithm, solving the minimum value of the multi-objective optimization function model and obtaining the optimal processing plan of the corresponding feature family;
[0011] Step S3, verifying the optimal processing scheme of the feature family, and verifying the effectiveness and superiority of the algorithm through two groups of comparative experiments: verifying through self-comparison experiments with different weights, and mutual comparison experiments of different algorithms;
[0012] Step S4: Apply the multi-objective optimization model to the selection of feature family processing solutions.
[0013] Preferably, a total of 13 detailed indicators are considered in step S1, namely: machine tool use cost, tool use cost, coolant use cost, manual operation cost, loading and unloading time, machine operation time, tool change time, cutting time, downtime, accuracy grade, surface roughness, shape tolerance and position tolerance.
[0014] Preferably, in step S1, a multi-objective optimization function model of a feature family processing scheme is established according to the differences in manufacturing processes and manufacturing resources in the machining process:
[0015]
[0016]
[0017]
[0018] In the formula, C represents the total cost of the entire processing process, T represents the total time required for the entire processing process, Q represents the comprehensive processing quality of the processing features after the processing is completed, and C ij Indicates that in the manufacturing process p i Using manufacturing resources j The relative reference value of each cost required, T ij Indicates that in the manufacturing process p i Using manufacturing resources j The time consumed is relative to the reference value, Q 1ij , Q 2ij , Q 3ij , Q 4ij Respectively represent the manufacturing process p i Using manufacturing resources j The achievable accuracy level, surface roughness, shape tolerance, and position tolerance relative to the reference value;
[0019] F1, F2, and F3 represent three sub-objective optimization functions. F1 is the optimization function corresponding to the minimum processing cost, F2 is the optimization function corresponding to the shortest processing time, and F3 is the optimization function corresponding to the best processing quality. ij The value is 0 or 1, as follows:
[0020]
[0021] F3 is processed as follows:
[0022]
[0023] Assume that the weights corresponding to the above three sub-objective optimization functions are ω1, ω2, and ω3 respectively. According to the linear weighted method, the multi-objective optimization function model of the final feature family processing scheme is obtained as follows:
[0024]
[0025] Preferably, in step S2, based on the bacterial coding, a typical feature family processing scheme of the spacecraft is selected through a migration behavior optimization algorithm after bacterial tendency, fine-tuning, replication and re-optimization. The specific process is as follows:
[0026] Firstly, the concept of bacterial foraging is defined and a mapping relationship is established to map the processing scheme selection to the bacterial foraging process;
[0027] Secondly, re-optimize the bacterial foraging algorithm process. The specific steps are as follows:
[0028] Step 1) Bacteria encoding: Encoding the bacterial position, which is represented by the bacterial position encoding vector X in the algorithm iteration;
[0029] Step 2) Initialization of bacterial population: By setting the critical fitness threshold F bound The threshold coefficient α constrains the initial population and limits the average fitness of the initial population;
[0030] Step 3) Calculation of bacterial population update based on directional movement: Using the typical directional movement formula X i (j+1,k,l) is used for calculation, the population is continuously updated, and the algorithm is iteratively optimized;
[0031] Step 4) Bacteria fine-tuning: When individual bacteria exceed the bacterial activity area, they need to be adjusted to the bacterial activity area through the bacteria fine-tuning link;
[0032] Step 5) Bacterial replication: introducing fitness The first half of the bacteria with high health are retained and reproduced to reach a certain population size; (the first half of the bacteria with high health are retained, and the second half are eliminated. After the retained bacteria are reproduced, the size of the bacterial population remains the same as before. That is, the size of the bacterial population is a certain value, which is maintained at S.)
[0033] Step 6) Reoptimization process based on adaptive bacterial migration: define the adaptive migration probability P ed (i) Accurately determine the bacterial individuals that need to migrate; for the bacterial individuals that meet the probability, optimize the new bacteria through the ternary tournament method after migration
[0034] Preferably, in step 1), the processing scheme corresponding to each processing feature in the feature family is encoded by integer encoding to obtain a bacterial encoding vector, as shown in formula 8-9:
[0035] X=(x1,x2,…,x n ) (8)
[0036] Y=(y1,y2,…,y n ) (9)
[0037] Where X represents the bacterial position encoding vector, x i represents a positive integer, indicating the processing method position corresponding to the i-th feature type in the feature family; Y represents the bacterial scheme encoding vector, y i Represents a positive integer, indicating the processing plan number corresponding to the i-th feature type in the feature family. X and Y are in one-to-one correspondence.
[0038] Preferably, step 2) specifically comprises the following steps:
[0039] i. Calculate the average fitness F of the first generated population ave , as shown in formula 10;
[0040]
[0041] ii. Set the critical fitness threshold F of the bacterial population bound , as shown in formula 11;
[0042] F bound =αF ave (11)
[0043] In the formula, α represents the threshold coefficient, which is set at about 0.95; F i represents the fitness of the i-th bacterial individual in the population;
[0044] iii. Regenerate bacterial population: If the average fitness of the newly generated bacterial population is lower than the threshold F bound, then the condition is met and it is used as the initial bacterial population for subsequent calculations; otherwise, it is regenerated until it is met. The final initial population is shown in Formula 12:
[0045]
[0046] Among them, X i It represents the i-th bacterial individual in the population, represented by the bacterial position encoding vector, and S represents the number of bacterial individuals in the population.
[0047] Preferably, in step 3), the directional movement of bacteria is expressed as follows:
[0048]
[0049] Where, X i (j, k, l) represents the spatial position of the i-th bacterium when it performs directional movement j times, replication movement k times, and migration movement l times. Δ(i) represents the D-dimensional random direction vector, D is the number of processed features in the feature family, and C(i) represents the swimming step length, which is 1 here.
[0050] After the rotational motion is completed, compare the objective function value. If F(X i (j+1,k,l))<F(X i (j,k,l)), indicating that the objective function is moving in the direction of minimization, and the bacteria will swim and continuously update their positions.
[0051] Preferably, step 5) introduces a health function formula, as shown in formula 14:
[0052]
[0053] In the formula, represents the health of bacteria i, N c Indicates the number of bacterial directional behaviors and health The larger it is, the stronger the foraging ability of the corresponding bacteria is;
[0054] By health Sort the bacteria in the population from large to small, retain the first S / 2 bacteria with larger health, and eliminate the last S / 2 bacteria with smaller health, where S represents the size of the population;
[0055] At the same time, the bacteria that remain are replicated, with each bacterium generating a new bacterium that is exactly like itself, with exactly the same foraging ability and fitness as the original bacterium.
[0056] Preferably, the formula for bacterial migration in step 6) is:
[0057]
[0058] Where P ed represents the migration probability, q represents a random number in [0,1], N c Indicates the number of bacterial tropism behaviors, N re represents the number of bacterial replication behaviors, represents the new position of bacterium i, P i (N c ,N re ,l) represents N c Migration, N re The position of bacterium i after l replications and l migrations;
[0059] The adaptive migration probability is introduced, as shown in Formula 16:
[0060]
[0061] The bacterial adaptive migration process includes the following steps:
[0062] Step 1: Identification of migrating bacteria: For bacterial populations, before bacterial migration, first determine the locations of bacteria that meet the conditions;
[0063] Step 2: Bacterial recombination optimization: The bacteria at the position in step 1 die or migrate, and other bacteria take over the vacant positions in turn. At the same time, new bacteria are generated at the new positions and re-optimized to improve their own fitness.
[0064] Step 3: Formation of new populations: The reoptimized new bacteria are recombined with the non-migrated bacteria to form a new bacterial population.
[0065] Preferably, step 2 uses the ternary tournament method to reoptimize new bacteria, and the specific steps are as follows:
[0066] The first step is to calculate the average fitness of migrating bacteria and save it:
[0067]
[0068] In the formula, m is the number of migrating bacteria;
[0069] In the second step, the ternary tournament method is used to generate new bacteria from the original population and calculate their fitness:
[0070]
[0071] The third step is to compare the results of the first and second steps. If New bacteria are then generated again until all new bacteria at new locations meet the conditions.
[0072] Compared with the prior art, the present invention has the following beneficial effects:
[0073] (1) Re-optimization of bacterial foraging algorithm: The bacterial foraging theory is mapped to the processing scheme selection, and a re-optimization bacterial foraging algorithm is designed. The bacterial fine-tuning behavior is added, and an adaptive bacterial migration re-optimization process is proposed, which improves the algorithm's optimization performance and accelerates the algorithm's convergence speed.
[0074] (2) Multi-feature processing scheme selection: The concept of feature family is proposed and applied to the processing scheme selection. Multiple feature processing schemes can be selected at one time, which greatly improves the selection efficiency.
[0075] (3) Extensive experimental research: Two sets of comparative experiments were designed to verify the algorithm from the perspectives of effectiveness and superiority. RBFA can not only efficiently output feature family processing solutions according to different requirements, but also has better optimization performance than BFA and GA, and outputs better processing solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A dendrogram of influencing factors for selecting the processing scheme of the present invention;
[0077] Figure 2 It is a schematic diagram of bacterial fine-tuning of the present invention;
[0078] Figure 3 A schematic diagram of fine-tuning the bacterial encoding vector of the present invention;
[0079] Figure 4 This is a diagram of the adaptive bacterial reoptimization process of the present invention;
[0080] Figure 5 This is a flow chart of the re-optimized bacterial foraging algorithm of the present invention;
[0081] Figure 6 It is a characteristic schematic diagram of the parts of the steering gear cabin body of the present invention;
[0082] Figure 7 It is a diagram of the optimization process of the self-comparison experiment with different weights of the present invention.
[0083] Figure 8 This is a diagram of the optimization process of the present invention for different algorithms. DETAILED DESCRIPTION
[0084] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0085] The present invention proposes a re-optimized bacterial foraging algorithm for feature family processing scheme selection, which solves the problem of processing scheme selection for multiple similar features in a part and recommends the optimal processing scheme.
[0086] Firstly, based on the three principles of lowest processing cost, shortest processing time and best processing quality, a multi-objective optimization model is constructed, considering 13 detailed indicators in three categories to cope with the complexity of the processing plan.
[0087] Secondly, the processing plan is optimized based on the bacterial foraging behavior. The processes of tendency, fine-tuning, replication, adaptive migration and re-optimization are considered. A re-optimized bacterial foraging algorithm model is designed to supplement the bacterial fine-tuning link and the adaptive bacterial migration re-optimization process to improve the global optimization ability and convergence speed of the algorithm.
[0088] Finally, taking the hole feature family processing scheme selection of spacecraft rudder cabin parts as an example, two groups of comparative experimental cases are designed to verify the effectiveness and superiority of the algorithm through self-comparison experiments with different weights and mutual comparison experiments of different algorithms. The experimental results not only comprehensively consider multiple evaluation indicators, but also meet the preferences of various demanders through weight distribution.
[0089] A reoptimized bacterial foraging algorithm for feature family processing scheme selection includes the following steps:
[0090] 1. Establish a multi-objective optimization model for feature family processing scheme selection
[0091] There are many target requirements to be considered in the general product processing process, the most common ones are: cost minimization, performance maximization, quality optimization, etc. However, these requirements are difficult to be met at the same time, and enterprises generally sacrifice some requirements to achieve the overall optimization. The present invention considers the most commonly used indicators in actual production, establishes a multi-objective function model with the lowest cost, shortest time and best quality as the goals, and uses the re-optimized bacterial foraging optimization algorithm to solve it, and obtains the optimal processing plan corresponding to each hole feature in the hole feature family.
[0092] The multi-objective function model is constrained according to the following three principles. The specific framework is as follows: Figure 1 As shown:
[0093] (1) Principle of minimum processing cost: The processing of mechanical products involves a lot of equipment and labor costs, mainly including machine tool use costs, tool use costs, cutting fluid costs, labor operation costs, etc. Factors with less impact, such as repair costs and lubricant costs, are ignored.
[0094] (2) Principle of shortest processing time: The time consumed in the process of machining mechanical parts mainly includes loading and unloading time, machine operation time, tool change time, cutting time, and downtime. Among them, loading and unloading time includes the time of clamping and unloading the workpiece to be processed, machine operation time includes the time of operating the machine tool, debugging processing parameters, and auxiliary operations such as trial cutting, tool change time includes tool replacement and tool arrangement time, and downtime includes machine tool rest and operator rest time. Factors with less influence, such as machine tool wiping and workpiece size measurement, are ignored.
[0095] (3) The highest principle of processing quality: After feature processing is completed, the final processing quality mainly depends on the accuracy level, surface roughness, shape tolerance, position tolerance, etc. Other factors that have a minor impact on processing quality are not considered.
[0096] During the machining process, parts need to go through multiple manufacturing processes from the initial blank to the final product, which are recorded as follows:
[0097] P={p1,p2,p3,···,p n} (1)
[0098] Among them, p i represents the i-th manufacturing process. A certain amount of manufacturing resources will be used in the manufacturing process, including machine tools, cutting tools, etc., which are recorded as follows:
[0099] R={r1,r2,r3,···,r n} (2)
[0100] Among them, r j It represents the manufacturing resources used in the jth manufacturing process. For the same part and the same feature, if different processing methods are selected, the corresponding manufacturing processes will also be different.
[0101] Under the constraints of the above rules, according to the different manufacturing processes and manufacturing resources in the machining process, a multi-objective optimization function model of the feature family machining plan is established, as shown in Formula 3-5:
[0102]
[0103]
[0104]
[0105] In the formula, C represents the total cost of the entire processing process, T represents the total time required for the entire processing process, Q represents the comprehensive processing quality of the processing features after the processing is completed, and C ij Indicates that in the manufacturing process p i Using manufacturing resources jThe relative reference value of each cost required, T ij Indicates that in the manufacturing process p i Using manufacturing resources j The time consumed is relative to the reference value, Q 1ij , Q 2ij , Q 3ij , Q 4ij Respectively represent the manufacturing process p i Using manufacturing resources j The achievable accuracy level, surface roughness, shape tolerance, and position tolerance are relative to the reference value.
[0106] F1, F2, and F3 represent three sub-objective optimization functions. F1 is the optimization function corresponding to the minimum processing cost, F2 is the optimization function corresponding to the shortest processing time, and F3 is the optimization function corresponding to the best processing quality. ij The value is 0 or 1, as follows:
[0107]
[0108] In order to make the optimization direction of each sub-objective function consistent without loss of generality, some functions are preprocessed, all objectives are converted into minimization types, and F3 is processed as follows: Represents the inverse of the sub-objective optimization function F3.
[0109]
[0110] Assume that the weights corresponding to the above three sub-objective optimization functions are ω1, ω2, and ω3 respectively. According to the linear weighted method, the multi-objective optimization function model of the final feature family processing scheme is obtained as follows:
[0111]
[0112] 2. Solving the multi-objective optimization model based on bacterial fine-tuning and re-optimization of bacterial foraging algorithm
[0113] 1. Describe the concept and mapping relationship of bacterial foraging, and map the processing scheme selection to the bacterial foraging process.
[0114] The bacterial foraging algorithm (BFA) is a new type of swarm intelligence algorithm proposed by Passino et al. in 2002 by simulating the foraging behavior of Escherichia coli. The main idea of this algorithm is to simulate the process of Escherichia coli in the foraging process, by controlling its own movement mode (swimming and turning) to constantly move towards the nutrient area and avoid the harmful area, so as to find nutritious food and absorb more nutrients. Compared with traditional genetic algorithms, particle swarm algorithms, ant colony algorithms, etc., which are based on higher organisms, the bacterial foraging algorithm simulates the process of microbial foraging, mainly including the steps of tendency, replication and migration. It is a global random search algorithm with simple operation and easy to jump out of the local optimal solution.
[0115] Bacterial foraging algorithms and their improved algorithms have achieved remarkable results in many fields, such as structural design optimization, workshop scheduling optimization, and image retrieval. Similarly, in the problem of selecting processing solutions for typical feature families of spacecraft, each processing feature in the feature family may correspond to multiple processing solutions. The use of conventional algorithms is likely to fall into local optimal solutions, resulting in some processing features not corresponding to the optimal processing solution. The present invention borrows the idea of bacterial foraging, designs a re-optimized bacterial foraging algorithm, solves the minimum value of the multi-objective function and obtains the corresponding optimal processing solution for the feature family. Based on bacterial coding, the spacecraft typical feature family processing solution selection is performed through the migration behavior optimization algorithm after bacterial tendency, fine-tuning, replication, and re-optimization.
[0116] The following defines the main concept mapping of typical feature processing solutions in the RBFA algorithm:
[0117] (1) Bacteria: It represents the set of processing solutions corresponding to each processing feature of the feature family, which can be represented by a vector.
[0118] (2) Bacterial population: a group of individual bacteria, that is, a collection of processing schemes.
[0119] (3) Trend, replication, and migration: This means changing the set of processing solutions through the movement of trend, replication, and migration.
[0120] (4) Bacterial foraging process: the process whose characteristics correspond to the processing scheme.
[0121] 2. Re-optimize the bacterial foraging algorithm process, create a bacterial fine-tuning link based on the traditional bacterial foraging algorithm to avoid overflow of processing scheme coding; design an adaptive bacterial foraging re-optimization process to accurately determine migratory bacteria and improve the global optimization ability and iteration speed. Figure 5 As shown, the specific steps are:
[0122] 1) Bacterial coding
[0123] For the processing scheme coding corresponding to each processing feature in the feature family, the present invention uses integer coding to represent it, and obtains the bacterial coding vector, as shown in formula 8-9:
[0124] X=(x1,x2,…,x n ) (8)
[0125] Y=(y1,y2,…,y n ) (9)
[0126] Where X represents the bacterial position encoding vector, x i represents a positive integer, indicating the processing method position corresponding to the i-th feature type in the feature family; Y represents the bacterial scheme encoding vector, y i Represents a positive integer, indicating the processing plan number corresponding to the i-th feature type in the feature family.
[0127] X and Y are in one-to-one correspondence. In Table 1, if there are 8 types of characteristic holes in the hole feature family, when the bacterial position encoding vector is X = (1,1,1,1,1,1,1,1), it means that types 1 to 8 all choose the first processing scheme of their respective types; when the bacterial scheme encoding vector is Y = (1,2,4,6,8,7,5,3), it means that type 1 chooses processing scheme 1, type 2 chooses processing scheme 2, type 3 chooses processing scheme 4, type 4 chooses processing scheme 6, type 5 chooses processing scheme 8, type 6 chooses processing scheme 7, type 7 chooses processing scheme 5, and type 8 chooses processing scheme 3. In essence, these two representation methods correspond one to one and both represent the same processing scheme.
[0128] Table 1 Examples of optional processing solutions for feature families
[0129]
[0130]
[0131] According to the above method, the subsequent algorithm design process mainly uses the bacterial position encoding vector, especially in the algorithm update and iteration process, the scheme encoding vector is only used when the result is output.
[0132] 2. Initialization of bacterial population
[0133] The bacterial population initialization of the present invention is a random generation process based on bacterial coding. In the bacterial foraging process, the quality of the initialized population directly affects the convergence of the algorithm. Often, a better initialized population has fewer iterations and higher optimization efficiency. For the convenience of calculation and solution, the multi-objective optimization function of formula (7) is directly set as the fitness function, so the smaller the fitness value of the bacterial population, the better. In order to obtain a high-quality primary population, the following design is performed:
[0134] i. Calculate the average fitness F of the first generated population ave , as shown in formula 10;
[0135]
[0136] ii. Set the critical fitness threshold F of the bacterial population bound , as shown in formula 11;
[0137] F bound =αF ave (11)
[0138] In the formula, α represents the threshold coefficient, which is set at around 0.95. i Represents the fitness of the i-th bacterial individual in the population.
[0139] iii. Regenerate the bacterial population. If the average fitness of the newly generated bacterial population is lower than the threshold F bound , then the condition is met and it is used as the initial bacterial population for subsequent calculations; otherwise, it is regenerated until it is met. The final initial population is shown in formula 12:
[0140]
[0141] Among them, X i It represents the i-th bacterial individual in the population, represented by the bacterial position encoding vector, and S represents the number of bacterial individuals in the population.
[0142] 3. Calculation of bacterial population update based on directional movement
[0143] There are two types of directional movement: rotation and swimming. Rotation refers to the change in the direction of bacterial movement, and swimming refers to the movement of bacteria in a certain direction. Generally speaking, when the environment in which bacteria live is poor and there are fewer nutrients, the bacteria will rotate continuously; on the contrary, in an environment rich in nutrients, bacteria are more inclined to swim. The more frequent the directional movement, the stronger the ability of bacteria to find nutrients, and the faster the bacterial population is updated. Its directional movement can be expressed as follows:
[0144]
[0145] Where, X i(j, k, l) represents the spatial position of the i-th bacterium when it performs j-times of directional movement, k-times of replication movement, and l-times of migration movement. Δ(i) represents the D-dimensional random direction vector, D is the number of processed features in the feature family, and C(i) represents the swimming step length. Since integer encoding is used, the swimming step length here is 1. Here T represents vector transposition, which is a mathematical symbol and generally does not need to be explained. Δ T (i) is the transpose of Δ(i).
[0146] After the rotational motion is completed, compare the objective function value. If F(X i (j+1,k,l))<F(X i (j,k,l)), indicating that the objective function is moving in the direction of minimization, and the bacteria will swim and continuously update their positions. During the entire objective function optimization process, the bacteria will continue to repeat the rotation and swimming operations until F(X i (j,k,l)) is minimized or the upper limit of the number of trend movements is reached.
[0147] 4. Bacteria fine-tuning: When bacteria exceed the bacterial activity area, they need to be adjusted to the bacterial activity area through the bacteria fine-tuning link. This is reflected in the problem of processing plan selection, that is, to avoid the overflow of processing plan code.
[0148] During the process of bacterial foraging, bacteria generally move within the bacterial activity area, including the nutrient area and the non-nutrient area. The area beyond the bacterial activity area is the non-bacterial area, and bacteria cannot go to this area. When bacteria are foraging, bacteria may leave the given area. To address this situation, a bacterial fine-tuning link is added on the basis of the traditional algorithm, such as Figure 2 shown.
[0149] The above behavior is manifested in the feature family processing scheme selection problem as follows: the processing scheme position code corresponding to a certain type of processing feature in the bacteria exceeds the maximum value of the processing feature of this type or is lower than the minimum value of the processing feature of this type. The approach for such a situation is: if the processing scheme position code exceeds the maximum value of the position, then the position code is set to the maximum value; if the processing scheme position code is lower than the minimum value of the position, then the position code is set to the minimum value. After fine-tuning the bacteria, the correctness and rationality of the bacteria coding can be better guaranteed. For example Figure 3 As shown in the figure, if there are only 5 optional processing schemes for encoding position 3, but after multiple tending movements, 6 options appear at encoding position 3, which is not in line with the actual situation. Therefore, fine-tuning is performed on this situation, and the code at encoding position 3 is set to the maximum value of this position.
[0150] 5. Bacterial replication
[0151] Replication behavior describes the natural selection process of organisms in nature. After a period of nutrient selection, some bacteria with weak foraging ability will be eliminated, and bacteria with strong foraging ability will be retained. However, in order to keep the size of the entire bacterial population unchanged, bacteria with strong foraging ability will reproduce, and bacteria with weak foraging ability will be eliminated.
[0152] This section introduces the health function formula, as shown in Formula 14:
[0153]
[0154] In this formula, represents the health of bacteria i, N c Indicates the number of bacterial directional behaviors and health The larger the value, the stronger the foraging ability of the corresponding bacteria. Sort the bacteria in the population from large to small, keep the first S / 2 bacteria with higher health, and eliminate the last S / 2 bacteria with lower health. At the same time, replicate the remaining bacteria, and each bacterium generates a new bacterium that is exactly the same as itself, with the same foraging ability and health as the original bacteria.
[0155] 6. Reoptimization process based on adaptive bacterial migration
[0156] Migration behavior is a unique part of the bacterial foraging algorithm, which describes the change in the spatial position of individual bacteria when they are disturbed by the outside world. In common cases, when the nutrients in the area where the bacteria are located are exhausted or the temperature at the location increases sharply, the bacteria will die or migrate. The specific formula is as follows:
[0157]
[0158] Where P ed represents the migration probability, q represents a random number in [0,1], N c Indicates the number of bacterial tropism behaviors, N re represents the number of bacterial replication behaviors, represents the new position of bacterium i, P i (N c ,N re ,l) represents N c Migration, N re The position of bacterium i after l replications and l migrations.
[0159] In the above formula, the migration probability P of the traditional bacterial foraging algorithm is edis a fixed value, which will cause some elite bacterial individuals to be lost during the operation of the algorithm, which is not conducive to the convergence of the algorithm. To solve this problem, the adaptive migration probability is introduced, as shown in Formula 16. This formula satisfies that the higher the health of the bacterial individual, the lower the possibility of bacterial migration, and the more it can guarantee the survival of the elite bacterial individuals, which greatly improves the convergence speed of the algorithm.
[0160]
[0161] like Figure 4 As shown in Figure 1, the process of bacterial adaptive migration is shown in the following steps:
[0162] Step 1: Determine the migrating bacteria. For the bacterial population, before the bacteria migrate, first determine the bacteria that meet the condition q<P ed (i) bacterial location;
[0163] Step 2: Bacterial recombination optimization. The bacteria at the position in step 1 die or migrate, and other bacteria take over the vacant positions in turn. At the same time, new bacteria are generated at the new positions, and these bacteria are re-optimized to improve their fitness;
[0164] Step 3: Formation of new populations. The reoptimized new bacteria are recombined with the non-migrated bacteria to form a new bacterial population.
[0165] After the adaptive migration movement, more bacteria are guaranteed to remain in the nutrient-rich area. For the optimization process, this process makes it easier for the algorithm to jump out of the local optimal solution and find the global optimal solution. However, the fitness of the new bacteria after migration is often not ideal, resulting in an increase in the number of algorithm iterations and a longer iteration time. In order to improve the convergence speed of the algorithm, the ternary tournament method is used to re-optimize the new bacteria during the execution of step 2 above, and the foraging ability of the new bacteria is continuously enhanced, thereby enhancing the optimization speed of the algorithm. The specific steps are as follows:
[0166] The first step is to calculate the average fitness of migrating bacteria and save it:
[0167]
[0168] Where m is the number of migrating bacteria.
[0169] In the second step, the ternary tournament method is used to generate new bacteria from the original population and calculate their fitness:
[0170]
[0171] The third step is to compare the results of the first and second steps. If New bacteria will be regenerated until all new bacteria in new positions meet the conditions;
[0172] After the above steps, the re-optimization process of adaptive bacterial migration is completed.
[0173] 7. Re-optimize the bacterial foraging algorithm process
[0174] Re-optimize the bacterial foraging algorithm process as follows Figure 5 As shown. First, the bacterial position is encoded, the initialization process of the feature family processing scheme is defined, and the bacterial population is initialized. Then, the bacterial population evolves, which can be divided into three layers of loops. The innermost loop is a trending operation, which is accompanied by bacterial fine-tuning and continuous bacterial updates; the middle layer loop is bacterial replication, retaining elite individuals and eliminating weak individuals; the outermost loop is mainly a migration operation, which determines the migrating bacteria through adaptive migration probability, and these bacteria are then re-optimized to complete the entire process. The algorithm ends after the loop is completed, and the optimal solution of the bacterial population is output, that is, the minimum value of the multi-objective optimization function model is solved and the corresponding feature family optimal processing scheme is obtained.
[0175] 3. Experimental verification: Two sets of comparative experiments are used to verify the effectiveness and superiority of the algorithm, and the multi-objective optimization model is applied to the selection of feature family processing solutions.
[0176] First, experimental data preparation is carried out: common processing schemes are summarized and sorted out, and the normalized multi-objective evaluation index values in step S1 are obtained as data input according to the factory processing conditions. The hole feature family processing scheme selection in the spacecraft rudder cabin body parts is used as an example for the experiment.
[0177] Next, three groups of different weights were set and self-comparison experiments with different weights were conducted. The results showed that the emphasis on sub-targets was different, and the final recommended processing plans were also different, proving the effectiveness of the re-optimized bacterial foraging algorithm.
[0178] Finally, by conducting experiments comparing different algorithms with genetic algorithms and traditional bacterial foraging algorithms, the iterative images show that the re-optimized bacterial foraging algorithm has better optimization results and faster speed, proving the superiority of the re-optimized bacterial foraging algorithm.
[0179] 1. Experimental data preparation
[0180] There are many factors that affect the hole feature family processing method, including diameter, depth, diameter-to-depth ratio, surface roughness, precision level, production batch, etc. Combined with a large number of workshop production processes, the hole diameter, precision level and surface roughness are important indicators of hole processing and are also essential manufacturing requirements in processing. Based on historical processing technology data, the commonly used hole processing solutions are summarized, as shown in Table 2:
[0181] Table 2 Common processing solutions and their demand constraints
[0182]
[0183]
[0184] Among all types of spacecraft cabins, the number and types of hole features of the steering gear cabin parts are large, and the specific parts are as follows: Figure 6 As shown in the figure, the effectiveness and superiority of the algorithm are verified by taking the selection of processing scheme of hole feature family as an example. Figure 6 There are 8 types of feature holes H1-H8 in the medium hole feature family, and the processing requirements of each type of hole feature are different. In Table 2, by retrieving the key information of diameter, accuracy level, and surface roughness, all available processing solutions for each type of hole feature are obtained, and the final results are shown in Table 3.
[0185] Table 3 Cabin hole feature families and available processing solutions
[0186]
[0187] When calculating the multi-objective function, the unit type and data range of each sub-objective of processing cost, processing time and processing quality are not unified, so they cannot be calculated directly. Therefore, the evaluation indicators of all processing methods are normalized according to the actual operation situation and manual experience estimation. The specific data are shown in Table 4. It is worth noting that the processing quality is taken in the reciprocal in the multi-objective optimization function. In order to make the optimization direction of the three sub-objectives consistent and the numerical range uniform, the values of each indicator under the processing quality are [1,10], and after taking the reciprocal, the range is [0.1,1], which is consistent with the range of each indicator of processing cost and processing time.
[0188] Table 4 Multi-objective evaluation index values
[0189]
[0190] 2. Experiment 1: Self-comparison experiment with different weights
[0191] In order to prove the effectiveness of the bacterial foraging algorithm, three groups of weights for processing cost, processing time and processing quality were set according to the tendency of product demand of different enterprises, and self-comparison experiments with different weights were conducted. Enterprise demand mainly focuses on the following three aspects:
[0192] (1) Cost priority principle: For some small-scale manufacturing plants with low output, especially when funds are insufficient, cost is always the first priority when processing parts, followed by processing time and processing quality.
[0193] (2) Time priority principle: For some parts that are urgently needed, parts that are on a deadline, or parts that have temporary production needs, the task often needs to be completed within a specified time. At this time, production time is the most important, followed by processing cost and processing quality.
[0194] (3) Quality first principle: For some special parts, scarce parts, and parts with high performance requirements, they play a significant role in the operation of the entire mechanical product and often require higher processing quality, while processing cost and processing time are relatively secondary.
[0195] Under different production requirements, three different values of ω1, ω2, and ω3 are assigned according to the cost priority principle, time priority principle, and quality priority principle (the one with priority is given a greater weight), as shown in Table 5:
[0196] Table 5 Multi-objective weight parameter settings
[0197]
[0198] In the self-comparison experiment with different weights, the initial parameter settings of the re-optimized bacterial foraging algorithm are shown in Table 6. The iterative optimization process of the algorithm under different weights is shown in Table 6. Figure 7 In order to make the results more universal and credible, 10 optimization results were recorded respectively, and finally the optimal processing scheme of each feature of the hole feature family was output, as shown in Table 7.
[0199] Figure 7 The horizontal axis represents the number of iterations, and the vertical axis represents the value of the multi-objective function. Among them, the blue line represents the iterative process of the reoptimized bacterial foraging algorithm under the weight ω1=0.6, ω2=ω3=0.2, and its optimal function value is 21.010. Under this weight, the optimal recommended processing scheme for the hole feature family is: [13-11-12-2-9-11-8-13]; the green line represents the iterative process of the reoptimized bacterial foraging algorithm under the weight ω2=0.6, ω1=ω3=0.2, and its optimal function value is 23.706. Under this weight, the optimal recommended processing scheme for the hole feature family is: [3-11-12-2-9-10-14-3]; the yellow line represents the iterative process of the reoptimized bacterial foraging algorithm under the weight ω3=0.6, ω1=ω2=0.2, and its optimal function value is 19.888. Under this weight, the optimal recommended processing scheme for the hole feature family is: [3-11-12-3-9-11-16-3]. The experimental results show that after the weights of the multi-objective function are changed, the emphasis on the objectives is different, and the final recommended processing scheme is also different. Therefore, it also proves that the algorithm can recommend suitable feature family processing schemes for products at one time according to the different production needs of the factory, verifying the effectiveness of the algorithm.
[0200] Table 6 Initial parameter settings
[0201]
[0202] Table 7. Experimental results of self-comparison with different weights
[0203]
[0204] 3. Experiment 2: Comparison experiment of different algorithms
[0205] In order to prove the superiority of the re-optimized bacterial foraging algorithm, the weights of each sub-goal were set and the genetic algorithm and the traditional bacterial foraging algorithm were used for comparative experiments. The main initial parameter settings of each optimization algorithm are shown in Table 8. The optimization process is as follows Figure 8 In the iterative optimization process, 10 optimization results are also recorded, and the average value is finally taken, as shown in Table 9.
[0206] Figure 8 The horizontal axis represents the number of iterations, and the vertical axis represents the value of the multi-objective function. Among them, the blue dotted line (GA) represents the iterative process solved by the genetic algorithm, and its optimal solution interval is [21.693, 21.973], and the optimal average value is 21.766; the green dotted line (BFA) represents the iterative process solved by the traditional bacterial foraging algorithm, and its optimal solution interval is [21.676, 21.860], and the optimal average value is 21.749. The red solid line (RBFA) represents the iterative process solved by the reoptimized bacterial foraging algorithm, and its optimal solution interval is [21.610, 21.710], and the optimal average value is 21.655. It can be seen from the iterative graph that the initial values of the genetic algorithm and the traditional bacterial foraging algorithm are both higher than 22.3, while the initial value of the reoptimized bacterial foraging algorithm is close to 22.2, so the initial population of the reoptimized bacterial foraging algorithm is better, resulting in a lower initial value. At the same time, the image is steeper within 50 iterations of the re-optimized bacterial foraging algorithm, and the optimal solution is found after about 100 iterations, while the genetic algorithm and the traditional bacterial foraging algorithm require nearly 150 and nearly 200 iterations respectively to find the optimal solution. The average value of the optimal solution of the re-optimized bacterial foraging algorithm is smaller than that of the other two algorithms. Therefore, the iteration speed of the re-optimized bacterial foraging algorithm is faster and the optimization performance is better.
[0207] Table 8 Initial parameter settings
[0208]
[0209] Table 9 Experimental results of different algorithms compared with each other
[0210]
[0211] From the above experimental data, we can see that the average values of the optimal solutions of the traditional bacterial foraging algorithm and the genetic algorithm are very close, while the average value of the optimal solution of the reoptimized bacterial foraging algorithm is smaller, and the optimal solution interval is relatively smaller. Through the iterative process, it can be seen that the iteration speed of the reoptimized bacterial foraging algorithm is the fastest, followed by the genetic algorithm, and the traditional bacterial foraging algorithm is the worst. Therefore, the traditional bacterial foraging algorithm does not show a very obvious advantage in solving this type of problem. The reoptimized bacterial foraging algorithm has a low iterative starting point and a higher convergence speed due to the superior initial bacterial population. At the same time, the adaptive bacterial migration reoptimization process enhances its global search ability and greatly improves the optimization performance. Compared with the other two algorithms, the optimization results are more ideal, which effectively proves the superiority of the reoptimized bacterial foraging algorithm.
[0212] In view of the inefficiency of traditional feature processing scheme selection, this paper proposes a re-optimization algorithm based on the bacterial foraging process to solve the problem of selecting hole feature family processing schemes. First, based on the three principles of processing cost, processing time and processing quality, a total of 13 detailed indicators are considered to establish a multi-objective optimization model; secondly, based on the bacterial foraging behavior, the processes of tendency, fine-tuning, replication, adaptive migration and re-optimization are considered to construct a re-optimized bacterial foraging algorithm model to improve the global optimization ability and convergence speed of the algorithm; finally, taking the selection of hole feature family processing schemes for spacecraft rudder cabin body parts as an example, two groups of comparative experiments are set up. Through self-comparison experiments with different weights and comparison experiments with different algorithms, the effectiveness and superiority of the algorithm are fully demonstrated.
[0213] The above implementation modes are not limitations of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the scope of the technical solution of the present invention also belong to the protection scope of the present invention.
Claims
1. A reoptimized bacterial foraging algorithm for feature family processing scheme selection, Features: The following steps are involved: Step S1, establishing a multi-objective optimization model for feature family processing scheme selection: based on the three principles of lowest processing cost, shortest processing time and best processing quality, a multi-objective optimization model is established; Step S2, solving the multi-objective optimization model based on bacterial fine-tuning and re-optimized bacterial foraging algorithm: referring to the bacterial foraging behavior, establishing a re-optimized bacterial foraging algorithm, solving the minimum value of the multi-objective optimization function model and obtaining the optimal processing plan of the corresponding feature family; Step S3, verifying the optimal processing scheme of the feature family, and verifying the effectiveness and superiority of the algorithm through two groups of comparative experiments: verifying through self-comparison experiments with different weights, and mutual comparison experiments of different algorithms; Step S4, applying the multi-objective optimization model to feature family processing scheme selection; In step S2, the process of reoptimizing the bacterial foraging algorithm by fine-tuning the bacteria is as follows: If the position code of the feature family processing scheme exceeds the maximum value of the position, the position code is set to the maximum value. If the position code of the processing scheme is lower than the minimum value of the position, the position code is set to the minimum value. After bacterial fine-tuning, the correctness and rationality of the bacterial coding are guaranteed; In step S2, the bacterial migration behavior optimization algorithm is used, and the bacterial migration formula is: (15) In the formula, represents the migration probability, represents a random number in [0,1], Indicates the number of bacterial tropism behaviors, represents the number of bacterial replication behaviors, Indicates bacteria The new location, express Migration, Replication and Bacteria after migration location; Introducing Adaptive Migration Probability , as shown in Formula 16: (16) In the formula, Indicates bacteria health, represents the maximum fitness of all individuals in the bacterial population, Represents the minimum fitness of all individuals in the bacterial population; The bacterial adaptive migration process includes the following steps: Step 1: Identification of migrating bacteria: For bacterial populations, before bacterial migration, first determine the locations of bacteria that meet the conditions; Step 2: Bacterial recombination optimization: The bacteria at the position in step 1 die or migrate, and other bacteria take over the vacant positions in turn. At the same time, new bacteria are generated at the new positions and re-optimized to improve their own fitness. Step 3: Formation of new populations: The reoptimized new bacteria are recombined with the non-migrated bacteria to form a new bacterial population.
2. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 1, Features: The step S1 considers 13 detailed indicators, namely: machine tool use cost, tool use cost, coolant use cost, manual operation cost, loading and unloading time, machine operation time, tool change time, cutting time, downtime, accuracy level, surface roughness, shape tolerance and position tolerance.
3. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 2, Features: In step S1, a multi-objective optimization function model of the hole feature family processing scheme is established according to the differences in manufacturing processes and manufacturing resources in the machining process: (3) (4) (5) In the formula, Represents the total cost required in the entire processing process, Indicates the total time required for the entire processing process. Indicates the comprehensive processing quality of the processing features after processing is completed. Indicates the manufacturing process Using manufacturing resources The relative reference values of various costs required, Indicates the manufacturing process Using manufacturing resources The time consumed is relative to the reference value. , , , Indicates the manufacturing process Using manufacturing resources The achievable accuracy level, surface roughness, shape tolerance, and position tolerance relative to the reference value; , , Represents three sub-objective optimization functions, is the optimization function corresponding to the minimum processing cost, is the optimization function corresponding to the shortest processing time, is the optimization function corresponding to the optimal processing quality; The value is 0 or 1, as follows: , right Perform the following processing: (6) Assume that the weights corresponding to the above three sub-objective optimization functions are , , According to the linear weighted method, the multi-objective optimization function model of the final feature family processing plan is: (7) 。 4. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 1, Features: In step S2, based on the bacterial coding, a typical feature family processing scheme of the spacecraft is selected through a migration behavior optimization algorithm after bacterial tendency, fine-tuning, replication and re-optimization. The specific process is as follows: Firstly, the concept of bacterial foraging is defined and a mapping relationship is established to map the processing scheme selection to the bacterial foraging process; Secondly, re-optimize the bacterial foraging algorithm process. The specific steps are as follows: Step 1) Bacteria encoding: Encode the bacterial position and use the bacterial position encoding vector in the algorithm iteration express; Step 2) Initialization of bacterial population: by setting the critical fitness threshold and threshold coefficient Constrain the initial population to limit the average fitness of the initial population; Step 3) Calculation of bacterial population update based on tropism: Using the typical tropism formula Perform calculations, continuously update the population, and perform algorithm iterative optimization; Step 4) Bacteria fine-tuning: When individual bacteria exceed the bacterial activity area, they need to be adjusted to the bacterial activity area through the bacteria fine-tuning link; Step 5) Bacterial replication: introducing fitness , retain the first half of the bacterial individuals with high fitness and reproduce them to reach a certain population size; Step 6) Reoptimization process based on adaptive bacterial migration: Defining adaptive migration probability , accurately determine the bacterial individuals that need to migrate; for the bacterial individuals that meet the probability, optimize the new bacteria through the ternary tournament method after migration .
5. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 4, Features: In the step 1), the processing scheme corresponding to each processing feature in the feature family is encoded by integer encoding to obtain the bacterial encoding vector, as shown in formula 8-9: (8) (9) In the formula, X represents the bacterial position encoding vector, Represents a positive integer, indicating the first The processing method position corresponding to each feature type; Y represents the bacterial scheme encoding vector, Represents a positive integer, indicating the first The processing plan number corresponding to each feature type, X and Y It is a one-to-one correspondence.
6. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 4, Features: The step 2) specifically includes the following steps: i. Calculate the average fitness of the first generated population , as shown in formula 10; (10) ii. Setting the critical fitness threshold of bacterial population , as shown in formula 11; (11) In the formula, represents the threshold coefficient, which is set at around 0.95; Indicates the population i The fitness of individual bacteria; iii. Regenerate the bacterial population: If the average fitness of the newly generated bacterial population is lower than the threshold , then the condition is met and it is used as the initial bacterial population for subsequent calculations; otherwise, it is regenerated until it is met. The final initial population is shown in Formula 12: (12) in, Indicates the population i Bacterial individuals are represented by bacterial position encoding vectors. S represents the number of bacterial individuals in the population, that is, the total number of bacteria in the population, M represents the total number of features in the feature family, Indicates bacteria S No. M The processing plan position corresponding to each feature.
7. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 4, Features: In step 3), the directional movement of bacteria is expressed as follows: (13) In the formula, Indicates i Bacteria perform tropism j Second, copy movement k Second, migration movement l The spatial position at the next time, express D dimensional random direction vector, D is the number of machining features in the feature family, Indicates the walking step length, where the walking step length is 1; After the rotational motion is completed, compare the objective function value. If , indicating that the objective function is moving in the direction of minimization, and the bacteria will swim and continuously update their positions.
8. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 4, Features: The step 5) introduces the health function formula, as shown in formula 14: (14) In the formula, Indicates bacteria i health, Indicates the number of bacterial directional behaviors and health The larger it is, the stronger the foraging ability of the corresponding bacteria is; It represents the fitness of the i-th bacterium after j times of tropism, k times of replication and l times of migration; By health Sort the bacteria in the population from largest to smallest, keeping the top The bacteria with higher health degree are eliminated. bacteria with low fitness, S represents the size of the population; At the same time, the bacteria that remain are replicated, with each bacterium generating a new bacterium that is exactly like itself, with exactly the same foraging ability and fitness as the original bacterium.
9. The reoptimized bacterial foraging algorithm for feature family processing scheme selection according to claim 8, Features: Step 2 uses the ternary tournament method to reoptimize new bacteria, and the specific steps are as follows: The first step is to calculate the average fitness of migrating bacteria and save it: (17) In the formula, m is the number of migrating bacteria; In the second step, the ternary tournament method is used to generate new bacteria from the original population and calculate their fitness: (18) The third step is to compare the results of the first and second steps. If , new bacteria are regenerated until all new bacteria in new positions meet the conditions.
