Heat pipe constraint assembly layout optimization method and system based on parallel evolutionary algorithm
By converting the heat pipe constrained component layout problem into a dual population solution problem and utilizing a parallel processing strategy, the problem of long calculation time in the existing technology is solved, and efficient heat pipe constrained component layout optimization is achieved, which is suitable for complex high-dimensional problems.
Patent Information
- Application Number
- CN202310555834.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-05-17
AI Technical Summary
When the existing technology handles the layout optimization of heat pipe constrained components, the calculation time is long, the solution efficiency is low, and there is a lack of parallel application, which limits the promotion and application of high-dimensional complex problems.
Using a method based on parallel evolutionary algorithms, the heat pipe constrained component layout problem is transformed into a dual population solution problem. By dividing the process of finding the optimal layout solution into multiple stages and assigning them to distributed nodes in stages, distributed node parallelism is used. Processing, combined with the optimization goal updates of population X and population Y, finally obtain the optimal feasible solution of the heat pipe constraint component.
It significantly shortens the calculation time without affecting the solution accuracy, improves the efficiency of heat pipe constraint component layout, has a wide range of applications, and can effectively handle complex high-dimensional HCLO problems.
Smart Images

Figure CN116796506B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of heat pipe assembly layout, and in particular to a heat pipe constraint assembly layout optimization method and system based on a parallel evolutionary algorithm. Background Art
[0002] As electronic devices develop towards integration, miniaturization and high functionality, component layout optimization (CLO) has become an important factor affecting device performance. Component layout optimization (HCLO) with heat pipe constraints is a new type of component layout optimization problem. This problem is mainly aimed at application scenarios that rely on heat pipes for component heat dissipation. It aims to solve the component layout solution that optimizes the heat dissipation performance of electronic equipment under complex constraints such as the thermal conductivity of heat pipes. This optimization problem has a wide range of engineering applications. In order to meet the quality characteristics, thermal performance and other performance requirements of the entire satellite system, it is necessary to optimize the specific installation position of on-board instruments and equipment, and meet a series of complex constraints such as component geometric non-interference, system center of mass, and heat pipe thermal conductivity.
[0003] At present, metaheuristic algorithms are the most commonly used methods for solving CLO problems, such as genetic algorithms (GA), particle swarm optimization (PSO) and differential evolution (DE). However, the iterative evolution process of the population is very time-consuming. This defect becomes more and more prominent as the scale and complexity of the problem increase. Take the fourth set of problems (Problem 4) of the IEEE CEC HCLO competition as an example. This problem contains 90 components in 4 layout areas. During the search, 5000×180=900000 candidate layout solutions need to be generated, each of which contains 180 design variables. For each candidate solution, in order to ensure that the components are not repeated, 90×91 / 2=4095 component judgments must be performed, and this is just one type of constraint in the HCLO problem.
[0004] At the same time, the rapid development of computer technology has made the use of high-performance computers increasingly popular. In order to improve the computing speed, parallel optimization strategies have received more and more attention. In the field of intelligent algorithms, genetic algorithms are one of the earliest algorithms to adopt parallel strategies, and have been applied to problems such as path optimization and ship predictive control. Experiments have shown that the use of parallel strategies can achieve multi-point parallel search in space, which is significantly better than serial methods in terms of solution efficiency.
[0005] Depending on the hardware, the parallel implementation of metaheuristic algorithms includes: multi-core, multi-GPU, distributed parallelism, etc. Among them, technologies based on multi-threading, multi-core CPU and multi-core GPU are closely related to the performance of a single hardware, and their scalability is poor. In contrast, developers can flexibly build cluster-based parallel applications through parallel frameworks such as Hadoop MapReduce and Spark. In addition, according to the different parallel granularity, it can be divided into multiple parallel models such as inter-population parallelism, solution-level parallelism, and evolutionary operator-level parallelism. In summary, although there are many parallel technologies at present, research shows that parallel algorithms based on memory computing models (such as Spark) have better solving effects on certain optimization problems (such as the traveling salesman problem).
[0006] In summary, component layout optimization (HCLO) with heat pipe constraints is a new type of component layout optimization problem. The research on this problem has just started. Most of the existing research on component layout optimization does not consider heat pipe constraints and cannot be directly applied to the HCLO problem. Although recently proposed algorithms specifically for solving HCLO problems, the above algorithms all adopt serial solution strategies. In the process of dealing with high-dimensional complex HCLO problems, these methods require a lot of solution time and the solution efficiency is not high. In addition, there are currently no relevant parallel applications specifically for CLO or HCLO problems. As more and more components need to be installed in electronic devices, the above defects seriously limit the promotion and application of existing algorithms in high-dimensional complex heat pipe component layout problems. Summary of the invention
[0007] To this end, the technical problem to be solved by the present invention is to overcome the deficiencies in the prior art and provide a heat pipe constraint component layout optimization method and system based on a parallel evolutionary algorithm, which can effectively handle the HCLO problem through a parallel implementation strategy, shorten the calculation time and improve efficiency while ensuring accuracy.
[0008] In order to solve the above technical problems, the present invention provides a heat pipe constraint assembly layout optimization method based on a parallel evolutionary algorithm, comprising:
[0009] S1: Establish an x-axis and a y-axis in two directions perpendicular and parallel to the direction of the heat pipe, respectively, establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly, the population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction, and set distributed nodes;
[0010] S2: The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis based on the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
[0011] In one embodiment of the present invention, the process of searching for the optimal layout solution of population X and population Y is converted into an unconstrained optimization problem, population X and population Y are used as clans, and an evolutionary algorithm is used to search for the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
[0012] In one embodiment of the present invention, the evolutionary algorithm is a meta-heuristic algorithm, or a combination of multiple meta-heuristic algorithms, or a combination of a meta-heuristic algorithm and other algorithms.
[0013] In one embodiment of the present invention, when the search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to the distributed nodes in stages, the number of clans divided and the search for the optimal layout solution are balanced, and the search for the optimal layout solution of population X on the x-axis is divided into multiple stages according to the dynamic changes in the number of clans.
[0014] In one embodiment of the present invention, the search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis according to the optimal layout solution of population X on the x-axis. The optimal feasible solution for the layout of the heat pipe constraint assembly is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis, which is specifically:
[0015] S2-1: Set the distributed nodes including working nodes and master nodes, the maximum number of function evaluations, initialize the number of used function evaluations, the clan size, initialize population X and population Y, and divide the search for the optimal layout solution of population X on the x-axis into three stages;
[0016] S2-2: Evaluate population X. If the number of evaluations does not reach the maximum number of function evaluations, execute S2-3; if the number of evaluations reaches the maximum number of function evaluations, execute S2-14;
[0017] S2-3: Enter the first stage, divide the population X into clans, and evenly distribute the clans to each working node;
[0018] S2-4: Each working node works in parallel, using the evolutionary algorithm to find the optimal layout solution of population X on the x-axis and update population X;
[0019] S2-5: After reaching the threshold of the first stage, each working node stops working, and the master node collects and merges the population X at this time and divides it into a new clan;
[0020] S2-6: Enter the second stage, and evenly distribute the clans at this time to each working node;
[0021] S2-7: Execute S2-4 until the threshold of the second stage is reached, each working node stops working, and the master node collects and merges the population X at this time;
[0022] S2-8: Enter the third stage, and evenly distribute the population X at this time to each working node;
[0023] S2-9: Execute S2-4 until the threshold of the third stage is reached, each working node stops working, and the master node collects and merges the population X at this time;
[0024] S2-10: Determine whether it is the first time to obtain the optimal layout solution X of population X on the x-axis elite Or get a better X elite If yes, execute S2-11, if no, execute S2-8;
[0025] S2-11: Activate population Y, create new processes and assign them to working nodes;
[0026] S2-12: The working node uses the evolutionary algorithm to update the optimal layout solution of population Y on the y-axis;
[0027] S2-13: Determine whether the current population Y has obtained a feasible solution on the y-axis. If so, record the feasible solution and the population Y enters sleep mode. If not, execute S2-12.
[0028] S2-14: Output the solution with the smallest objective value from the stored feasible solution set, thereby obtaining the optimal feasible solution for the layout of the heat pipe constraint component.
[0029] In one embodiment of the present invention, in the first stage, the population X is divided into multiple clans and uniformly allocated to the working nodes, and the number of clans is greater than the number of working nodes;
[0030] In each working node, an evolutionary algorithm is used to guide the evolution of each clan. When the threshold of the first stage is reached, the clans are merged and the first stage is ended. No combination operation is run in the first stage.
[0031] In one embodiment of the present invention, in the second stage, the number of working nodes is reduced until it is consistent with the number of the merged clans, and there is no interaction between the working nodes;
[0032] When all the merged clans reach the threshold of the second stage, the second stage ends.
[0033] In one embodiment of the present invention, in the third stage, all clans in the second stage are merged into one clan, the entire clan is evenly distributed to each working node, and a local iteration is run in each working node.
[0034] In one embodiment of the present invention, the optimization process of population Y is evolved independently of the optimization process of population X, and the optimization process of population X and the optimization process of population Y are asynchronously parallelized using parallel technology.
[0035] The present invention also provides a heat pipe constraint assembly layout optimization system based on a parallel evolutionary algorithm, comprising:
[0036] Distributed nodes,
[0037] A population establishment module is used to establish an x-axis and a y-axis respectively in two directions perpendicular and parallel to the direction of the heat pipe, and to establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly, wherein the population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, and the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction;
[0038] Distribution setting module, used to set distributed nodes;
[0039] The heat pipe constraint component layout module is used to divide the search for the optimal layout solution of population X on the x-axis into multiple stages and distribute them to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and find the optimal layout solution of population Y on the y-axis based on the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
[0040] The above technical solution of the present invention has the following advantages compared with the prior art:
[0041] The present invention transforms the problem of heat pipe constraint assembly layout into a dual-population solution problem, and on this basis divides the process of finding the optimal layout solution into multiple stages and distributes them to distributed nodes in stages. The HCLO problem is effectively processed through a parallel implementation strategy, which effectively reduces the solution time without affecting the solution accuracy, improves the layout efficiency of the heat pipe constraint assembly, and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein:
[0043] Figure 1 It is a flow chart of the present invention.
[0044] Figure 2 It is a parallel framework diagram of the present invention.
[0045] Figure 3 It is a schematic diagram of the three-stage parallel operation of population X in the present invention. DETAILED DESCRIPTION
[0046] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0047] The HCLO problem can be formalized as a single-objective optimization problem with continuous constraints, which requires minimizing the maximum heat generation power borne by the heat pipe under non-overlapping constraints, system center of mass constraints, component-heat pipe overlap constraints, and heat dissipation capacity constraints.
[0048] The non-overlapping constraint requires that there should be no overlap between different components or between components and layout domains, and the overlapping volume should be strictly equal to 0 to ensure the feasibility of the layout solution. Therefore, the non-overlapping constraint g1(X) can be expressed as:
[0049]
[0050] Where, ΔV ij (i, j>0, i!= j) represents the overlapping area between component i and component j, N c is the total number of components.
[0051] In order to ensure the static stability of the layout area, the system center of mass constraint must be met: in the O-xy system, the center of mass of the effective load in the layout area along the Y axis is required to be controlled within the allowable range, that is, the deviation of the system center of mass should be within the predefined offset range. Based on this, the system center of mass constraint g2(X) can be expressed as:
[0052] g2(X)=|y c -y e |-δy r ≤0,
[0053] in, is the current Y-axis system center of mass, y e is the expected Y-axis system center of mass, δy e is the maximum allowable center of mass deviation, the mass of the i-th component is mi , the center of mass is y i , N c is the number of components.
[0054] In order to ensure effective heat conduction, the foot area of the component must be placed horizontally on top of any one or several heat pipes, that is, effective heat conduction can only be performed when the component completely spans the entire heat pipe. Based on this, the component-heat pipe overlap constraint g3(X) can be expressed as:
[0055]
[0056] Among them, d i represents the distance from the outer boundary of the heat pipe closest to the i-th component. If the i-th component effectively spans at least one heat pipe, then d i Will remain at 0.
[0057] The maximum heat dissipation power of each heat pipe is In order for the entire heat conduction system to work properly, it is necessary to ensure that the actual total heat dissipation power of each heat pipe is not greater than its maximum heat dissipation power. The actual heat dissipation power of a heat pipe depends on the heat accumulation of the components that effectively cross the heat pipe. If a component effectively crosses multiple heat pipes, its heat will be evenly accumulated on each crossed heat pipe. Based on this, the heat dissipation capacity constraint g4(X) can be expressed as:
[0058]
[0059] Among them, P j hp represents the actual heat dissipation power of the jth heat pipe, represents the set of components that effectively span the jth heat pipe, P i represents the heat generated by the i-th component that effectively crosses the current heat pipe, Indicates the total number of heat pipes that the component effectively spans, Indicates the maximum heat dissipation power of each heat pipe, N hp Indicates the total number of heat pipes in the current layout domain. When solving the DFH-4 problem, the heat pipe will run through the entire board along the x-axis, that is, two layout domains. The calculation of the actual heat pipe heat dissipation power should be performed based on the layout of the components in the two layout domains at the same time.
[0060] In the HCLO problem, optimizing the component layout along both the X-axis and the Y-axis usually creates more obstacles. Compared with individuals that meet the constraints but have poor target values, individuals with good thermal performance but temporarily violate the constraints may lose competitiveness. This phenomenon seriously reduces the solution effect of the algorithm. Therefore, the HCLO problem is decomposed in the present invention to eradicate such problems. The optimization goal and component-heat pipe overlap constraint of the HCLO problem only depend on the component distribution on the x-axis, because all heat pipes are evenly distributed along the x-axis, the components must be placed orthogonally and rotation is technically not allowed. The heat dissipation capacity constraint also has such a characteristic, which only depends on the component x-axis distribution, but when minimizing the optimization goal, the heat dissipation capacity constraint can be naturally satisfied. In addition, the system centroid constraint only depends on the component distribution in the y-axis direction, while the non-overlap constraint imposes restrictions on the placement of components in both the x-axis and y-axis directions. Therefore, the present invention decomposes the HCLO problem into two sub-problems: first, find an ideal x-axis component layout, and then search for a suitable y-axis component layout on this basis, so that it becomes a completely feasible solution.
[0061] In view of the difficulty of the HCLO problem, the present invention has designed a genetic algorithm-based heat pipe constraint component layout optimization method (patent CN115329710A), which improves the algorithm's local search capability through a dual population-clan framework and improved genetic operators, and can obtain a better layout solution. However, similar to other methods currently under study, this method is a serial optimization method. During the population iteration process, each solution performs crossover, mutation, selection and other operations in turn. On this basis, the present invention designs a parallel implementation strategy (PBCGA, Parallel Bi-population Clan-based Genetic Algorithm), which aims to implement a parallel strategy, greatly shorten the calculation time without affecting the accuracy, and improve the solution efficiency.
[0062] Embodiment 1
[0063] Reference Figure 1-Figure 2 As shown, the present invention discloses a heat pipe constraint assembly layout optimization method based on a parallel evolutionary algorithm, comprising the following steps:
[0064] S1: Establish an x-axis and a y-axis in two directions perpendicular and parallel to the direction of the heat pipe respectively, establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly, the population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction, and set distributed nodes.
[0065] S2: The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis based on the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
[0066] The process of finding the optimal layout solution for population X and population Y is converted into an unconstrained optimization problem. Population X and population Y are used as clans, and an evolutionary algorithm is used to find the optimal layout solution for population X on the x-axis and the optimal layout solution for population Y on the y-axis. The evolutionary algorithm can be a meta-heuristic algorithm such as a genetic algorithm, an ant colony algorithm, a particle swarm algorithm, a fireworks algorithm, or a combination of meta-heuristic algorithms such as a genetic algorithm and a fireworks algorithm, or a combination of multiple other algorithms such as a genetic algorithm, a fireworks algorithm, and a tournament algorithm.
[0067] Due to the multi-constraint and multi-dimensional limitations, it is very difficult to optimize the component layout on these two coordinate axes. Therefore, the present invention divides the HCLO problem into two sub-problems: First, find a good x-axis component layout Then combine it with a good y-axis component layout Note that the objective function f of the HCLO problem and the component-heat pipe overlap constraint completely depend on the component distribution along the x-axis. Therefore, the subproblem of finding a good x-axis component layout can be transformed into an unconstrained optimization problem. On the other hand, due to When the component-heat pipe overlap constraint is satisfied, the best target value can be obtained so far. Therefore, population Y is responsible for the remaining non-overlapping constraints, system center of mass constraints, and heat dissipation capacity constraints, so as to find a complete layout solution with the best target value and all constraints satisfied. In this way, the subproblem of finding an elite y-axis layout can also be transformed into an unconstrained optimization problem. After population Y eliminates the constraints, will be retained as a complete feasible solution.
[0068] When the search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to the distributed nodes in stages, both the number of divided clans and the search for the optimal layout solution are balanced, and the search for the optimal layout solution of population X on the x-axis is divided into multiple stages according to the dynamic changes in the number of clans.
[0069] According to the clan-based hybrid algorithm of the present invention, several clans are initialized and merged during the search process, making a trade-off between developing and exploring the optimal solution. One of its typical characteristics is that the tribes do not need to interact before merging. This means that once the number of tribes is less than the number of nodes, evolution can be achieved by each node without communication, such as exchanging knowledge. Therefore, according to the dynamic changes in the number of clans, three stages of different parallel operations are designed instead of simply assigning the population to each node.
[0070] After the HCLO problem is decomposed, a suitable algorithm needs to be designed for each sub-problem. In order to better guide the population search, the present invention uses two populations, population X on the x-axis and population Y on the y-axis, as clans CL. Assuming that the population size is 32 and every two individuals form a clan, 32 / 2=16 clans are initialized. After reaching the iteration threshold, every two clans will merge, so the number of clans is updated to 32 / 4=8. Unlike the traditional method in which the evolution operator acts on the entire population, the clan strategy limits the evolution operator to run only within the clan. Due to the independence of the clan, the search information of a clan can be undisturbed by other clans, which is conducive to deep search in a small local area. In addition, through clan merging, the population can naturally expand the original search space, thereby realizing the fusion of search information, which is conducive to exploration in a larger range. Algorithm verification shows that the above-mentioned dual-population-clan framework can obtain feasible solutions with better target values and shorter time consumption compared with the algorithms for CLO and HCLO problems in recent years. The present invention aims to design a parallel framework strategy for the above dual population strategy and clan-based framework.
[0071] Unlike the existing method where the population must evolve as a whole, both population X and population Y can evolve independently according to the dual population strategy of the present invention. In addition, according to the clan framework of the present invention, the population can be naturally divided into several sub-populations. The operation process of the parallel framework of the present invention is as follows: Figure 2 As shown, due to different parallel requirements, population X and population Y are implemented through different parallelization.
[0072] In this embodiment, a combination of a genetic algorithm, a fireworks algorithm, and a tournament algorithm is used as an example to describe a specific implementation process. The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis according to the optimal layout solution of population X on the x-axis. The optimal feasible solution for the layout of the heat pipe constraint assembly is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis, which is specifically:
[0073] S2-1: Set the distributed nodes including working nodes and master nodes, the maximum number of function evaluations, initialize the number of used function evaluations, the clan size, randomly initialize population X and population Y, and divide the search for the optimal layout solution of population X on the x-axis into three stages;
[0074] S2-2: Evaluate population X. If the number of evaluations does not reach the maximum number of function evaluations, execute S2-3; if the number of evaluations reaches the maximum number of function evaluations, execute S2-14;
[0075] S2-3: Enter the first stage, divide the population X into clans, and evenly distribute the clans to each working node;
[0076] In the first stage, the population X at this time is divided into multiple clans and uniformly assigned to the working nodes, and the number of clans is greater than the number of working nodes; in each working node, an evolutionary algorithm is used, that is, a combination of a genetic algorithm, a fireworks algorithm and a tournament selection operator in this embodiment to guide the evolution of each clan, and when the threshold of the first stage is reached, the clans are merged and the first stage is ended. Since individuals between clans do not need to interact, no combination operation is performed in the first stage.
[0077] S2-4: Each working node works in parallel, combining the genetic algorithm, the fireworks algorithm and the tournament selection operator to find the optimal layout solution of population X on the x-axis and update population X;
[0078] S2-4-1: Get the size of population X (i.e., the t-th generation population X) at this time, set the parameters required by the operator; construct all clans in population X, and obtain the offspring of all clans by simulating the binary crossover operator (clan-based SBX);
[0079] S2-4-2: Update the offspring based on polynomial mutation and / or exchange mutation, map the decision variables of all individuals in the clan to the feasible domain, that is, obtain feasible solutions based on the update results of all individuals in the clan, and use the optimal solution among all feasible solutions as the fireworks solution;
[0080] Update offspring based on polynomial mutation and / or crossover mutation, specifically:
[0081] Spark solution will perform mutation operator to increase diversity. Considering that the use of Gaussian mutation may make the adjustment of some dimensions close to zero. In order to avoid such problems, the present invention uses a hybrid mutation operator that considers both polynomial mutation and exchange mutation to update the offspring, that is:
[0082] The combined polynomial mutation and swap mutation are used to obtain a hybrid mutation operator. The parameters required to execute the hybrid mutation operator are calculated based on the offspring of all clans. Individuals perform the PLM mutation operation with probability p and the swap mutation operation with probability 1 - p in each generation according to the hybrid mutation operator.
[0083] S2-4-3: Calculate the number of spark solutions and the explosion amplitude for each fireworks solution. The number of spark solutions is used to determine how many neighbor solutions are generated for each fireworks solution in the fireworks algorithm, and the explosion amplitude is used to determine the displacement radius of the component x-axis coordinate. A set of spark solutions is generated based on the number of spark solutions and the explosion amplitude;
[0084] S2-4-3-1: Calculate the number of spark solutions and the explosion amplitude for each fireworks solution:
[0085] Since the present invention hopes that better layout solutions can generate more neighbors, the calculation method for the number of spark solutions is as follows:
[0086]
[0087] where n f is the number of spark solutions to be generated, n e is a constant used to control the number of spark solutions, which is related to the size of each tribe. In this embodiment is the number of individuals in the current clan. For example C1(XF) is the objective value of the fireworks solution, where XF represents the layout solution with the smallest objective value in the population, and n is the population size; is the objective value corresponding to the layout solution with the largest objective value in the population; C1(X i ) is the objective value of the i-th layout solution, and ε is a small constant used to avoid division by zero; To prevent the number of spark solutions from being too large or too small, the boundary is set to n f ∈[an e , bn e , where a and b are constants adjusted according to the actual situation, and a < b < 1. In this embodiment, a = 0.1 and b = 0.2.
[0088] Since the present invention hopes to find better layout solutions in a smaller neighborhood, the calculation method for the explosion amplitude is as follows:
[0089]
[0090] where r f represents the maximum adjustment amount of the x-axis, which is related to the interval between adjacent two heat pipes; r e is a constant used to control the explosion range, is the objective value of the layout solution with the smallest objective value in the population.
[0091] S2-4-3-2: Considering r f As the number of iterations increases, the neighborhood will become smaller during the search process, resulting in spark solutions being generated within a very small neighborhood, making the present invention ineffective. Therefore, in order to avoid excessive spark decryption and improve exploration performance, the adjustment amount for the explosion amplitude is set, specifically:
[0092] Considering that the interval between adjacent heat pipes is fixed, the size of the square root is well suited to problems of different scales and complexities. Therefore, based on the characteristics of the problem, the explosion amplitude is adjusted to:
[0093]
[0094] in, is the explosion amplitude after adjustment, d hp Represents the distance between two adjacent heat pipes, round(r f ) represents r f Round down;
[0095] There may be multiple fireworks solutions in the population. In order to enable the better fireworks solution to generate neighbor solutions in a smaller area, thereby better realizing the local search in a small area, and the worse fireworks solution to find new layout solutions in a larger range, thus improving the exploration performance, the explosion amplitude is further adjusted according to the performance of the fireworks solution as follows:
[0096]
[0097] in, is the explosion amplitude after secondary adjustment; α cf , β cf , α f and β f is a constant that adjusts the dynamic explosion amplitude according to actual conditions; FEs represents the number of target value calculations used; MaxFEs is the total number of target value calculations; since there may be multiple clans in a population and each clan has a fireworks solution, there may be multiple fireworks solutions in a population, and core firework represents the fireworks with the lowest target value. In this embodiment, α cf =0.5, β cf =0.3, α f =1, β f =1.5, MaxFEs=5000D where D is the number of decision variables in the HCLO problem (i.e., 2*number of components).
[0098] S2-4-3-3: Generate spark solution set according to the number of spark solutions and explosion amplitude:
[0099] S2-4-3-3-1: The generated n f Each spark solution in the spark solutions represents a neighbor layout solution generated by the best layout solution. k (k=1,…,n f ), firstly, it is initialized by copying the fireworks solution, and then the component set Del that needs to be adjusted is randomly selected from all candidate components;
[0100] S2-4-3-3-2: For the components belonging to the Del set, adjust the x-axis coordinate of the component according to the explosion amplitude:
[0101]
[0102] Among them, XS kj represents the x-axis coordinate of the j component in the k-th spark solution, is a and A random number between XF j Indicates the jth in the fireworks solution XF th The x-axis coordinate of the component, D sel is a set of randomly selected dimensions;
[0103] S2-4-3-3-3: Finally, since the component layout exceeds the boundary, it will lead to an infeasible solution. Therefore, it is necessary to adjust the component layout to a reasonable range to obtain the final spark solution set. The component layout is adjusted to a reasonable range to maintain feasibility. Specifically:
[0104] XS kj =max(min(XS kj ,u j ), l j )
[0105] Among them, XS kj represents the x-axis coordinate of the j-th component in the k-th spark solution; u j and l j is the upper and lower limits of the x-axis value of the jth component. In this embodiment, u j , l j Depending on the problem, it is the layout boundary. For example, for test problem 1, u j =-40, l j =40.
[0106] S2-4-4: Combine the descendants of the clan generated by the genetic algorithm (GA) and the spark solution set, select the solution with the smallest target value as the elite solution in the current generation, i.e., the t-th generation population X, and use the elite solution in the current generation population X as the optimal layout solution of the current generation population X on the x-axis;
[0107] S2-4-5: Execute the tournament selection operator to obtain the next generation, i.e., the t+1 generation population X. Specifically:
[0108] After the spark solution set is generated, the original population and the newly generated spark solution set are used as candidates to select the next generation population. Unlike other algorithms, due to the uncertainty of the size of the spark solution set, the number of candidates in this invention changes dynamically. In view of this feature, a selection operator based on the improved tournament is designed.
[0109] Assume that the size of the candidate solution set is N candidate , you need to select The solution is used to guide the next round of iteration; A solution, build Championships;
[0110] First, each tournament is randomly selected. candidate solutions; secondly, the remaining The candidate solutions will be evenly distributed to the tournaments; finally, the population with the smallest target value in each tournament is selected and released into the next generation population CL t+1 .
[0111] The above selection method has two advantages. First, this strategy can ensure that the current optimal solution can be retained in the next iteration because all candidate solutions have participated in the tournament. Second, since the candidate population is distributed as evenly as possible, it helps to maintain population diversity and avoid premature convergence.
[0112] S2-4-6: When updating the optimal layout solution of population X on the x-axis, a feedback mechanism is designed to further improve the possibility of finding a better layout solution and jump out of the local optimal layout solution. After each iterative update, the distance vector between the current optimal layout solution and the optimal layout solution of the previous iteration is calculated:
[0113]
[0114] Among them, Δfb t is a distance vector, which indicates the offset between the current best layout solution and the previous best layout solution. represents the current best layout solution, that is, the solution with the smallest objective value in the tth generation, represents the best layout solution of the previous generation, that is, the best layout solution of the t-1 generation, FEs t Indicates the number of target value calculations used up to the current time, that is, up to the tth generation, FEs t-1 Indicates the number of target value calculations used up to the previous generation, that is, up to the t-1 generation;
[0115] Apply the distance vector to the optimal layout solution in the current iteration to obtain a new layout solution X new :
[0116]
[0117] Unlock the new layout new The worst solution in the replacement population X.
[0118] S2-5: After reaching the threshold of the first stage, each working node stops working, and the master node collects and merges the population X at this time and divides it into a new clan;
[0119] S2-6: Enter the second stage, and evenly distribute the clans at this time to each working node;
[0120] At the end of the first stage, there is still one clan in each node, and each clan reaches its maximum number of function evaluations (i.e. reaches the threshold of the first stage). Therefore, in the second stage, due to the merging of clans, the number of clans is less than the number of working nodes. In order to avoid interactions between nodes, the number of working nodes is reduced until it is consistent with the number of merged clans. There is no interaction between working nodes, which can save exchange costs; when the merged clans have reached the threshold of the second stage (i.e. each clan has reached its maximum function value), the second stage ends.
[0121] S2-7: Execute S2-4 until the threshold of the second stage is reached, each working node stops working, and the master node collects and merges the population X at this time;
[0122] S2-8: Enter the third stage, and evenly distribute the population X at this time to each working node;
[0123] In the third stage, all clans in the second stage are merged into one clan. In order to make full use of the nodes, the entire clan is evenly distributed to each working node. In addition, in order to reduce the frequency of division and combination operations, the hybrid algorithm of the present invention runs a local iteration in each working node. In this way, the master node will only generate communication after a given number of iterations, thereby improving the computing efficiency.
[0124] S2-9: Execute S2-4 until the threshold of the third stage is reached, each working node stops working, and the master node collects and merges the population X at this time;
[0125] S2-10: Determine whether it is the first time to obtain the optimal layout solution X of population X on the x-axis elite Or get a better X elite If yes, execute S2-11, if no, execute S2-8;
[0126] S2-11: Activate population Y, create new processes and assign them to working nodes;
[0127] S2-12: The working node combines the genetic algorithm and the tournament selection operator to update the optimal layout solution of population Y on the y-axis;
[0128] S2-4-1 to S2-4-5 output the best solution in the current generation population and the next generation population, which is applicable to population X. For the update of population Y, the FWA operator is not executed, so the process of combining the genetic algorithm and the tournament selection operator to update the optimal layout solution of population Y on the y axis, that is, a round of iteration in population Y, is specifically as follows:
[0129] S2-12-1: Get the size of population Y (i.e., the t-th generation population Y) at this time, set the parameters required by the operator; construct all clans in population Y, and obtain the offspring of all clans by simulating the binary crossover operator (clan-based SBX) for each clan;
[0130] S2-12-2: Update the offspring based on polynomial mutation and / or exchange mutation, map the decision variables of all individuals in the clan to the feasible domain, that is, obtain a feasible solution based on the update results of all individuals in the clan;
[0131] S2-12-3: Select the solution with the smallest C2 target value from the offspring solution set of the clan generated by the genetic algorithm (GA) as the elite solution in the current generation, i.e., the t-th generation population Y, and use the elite solution in the current generation population Y as the optimal layout solution of the current generation population Y on the y-axis;
[0132] S2-12-4: Execute the tournament selection operator to obtain the next generation, i.e., the t+1 generation population Y.
[0133] S2-12-5: When updating the optimal layout solution of population Y on the y-axis, a feedback mechanism is designed to further improve the possibility of finding a better layout solution and jump out of the local optimal layout solution. After each iterative update, the distance vector between the current optimal layout solution and the optimal layout solution of the previous iteration is calculated:
[0134]
[0135] Among them, Δfb t is a distance vector, which indicates the offset between the current best layout solution and the previous best layout solution. represents the current best layout solution, that is, the y-axis layout solution with the smallest C2 target value in the t-th generation population Y. represents the best layout solution of the previous generation, that is, the best layout solution of the t-1 generation, FEs t Indicates the number of target value calculations used up to the current time, that is, up to the tth generation, FEs t-1Indicates the number of target value calculations used up to the previous generation, that is, up to the t-1 generation;
[0136] Apply the distance vector to the optimal layout solution in the current iteration to obtain a new layout solution Y new :
[0137]
[0138] Unlock the new layout new The worst solution in the replacement population Y.
[0139] Output each elite x-axis layout solution of population X elite As a trigger for activating population Y, population Y is evolved on this basis to optimize the y-axis coordinates of each component. The optimization process of population Y is evolved independently of the optimization process of population X, and the optimization process of population X and the optimization process of population Y are asynchronously parallelized using parallel technology. That is, the working nodes in S2-12 and the working nodes in S2-4 are asynchronously parallel when working.
[0140] Although the optimization process of population Y is similar to that of population X, the present invention does not use several worker nodes to run the evolution of population Y in parallel for the following two reasons:
[0141] On the one hand, unlike population X which evolves continuously for optimization, the evolution of population Y is discontinuous. Each x-axis excellent layout solution X output by population X elite can serve as a trigger to activate population Y. In addition, once a specific X elite Get the y-axis excellent layout solution Y elite , but was replaced by another better X elite If reactivated, the evolution of population Y will stop.
[0142] On the other hand, it is much easier to find the optimization of population Y than that of population X. Due to the multi-optimization nature of HCLO, population X always requires a large number of iterations to develop a better X. elite , and X elite Tailor-made X elite Once an additional node is opened for population Y, it means that additional resources will be consumed by population Y. Although these nodes can speed up the search of population Y, it is meaningless because in most cases, there is another good enough X. elite There is enough time to optimize population Y before it arrives.
[0143] So overall, population Y uses only one worker process, which is activated when necessary for population Y. Note that there may be a situation where a new X elite Appears, and the population Y is still good enough for the previous X eliteTherefore, once the new X elite Appear, population Y will be with the new X elite Combined with adjustments to ensure that all computing work is focused on the best X to date elite superior.
[0144] S2-13: Determine whether the current population Y has obtained a feasible solution on the y-axis. If so, record the feasible solution and the population Y enters sleep mode. If not, execute S2-12.
[0145] S2-14: Output the solution with the smallest objective value from the stored feasible solution set, thereby obtaining the optimal feasible solution for the layout of the heat pipe constraint component.
[0146] In order to further illustrate the specific process of the three stages, the present invention uses Figure 3 The parallel method of the population X of the present invention is explained by taking an example. Assume that there are 32 individuals in the population X, and there are 4 working nodes for parallel operation. Figure 3 It can be seen that each circle represents a clan, and the number of individuals in the circle is the number of individuals.
[0147] Phase 1: After initialization, 32 individuals are divided into 16 clans, with 2 individuals in each clan. Therefore, every 16 / 4=4 clans are assigned to a node. In each node, the hybrid algorithm based on the clan is iteratively run. Once a specific number of function evaluations is reached, the clans are merged from 4 to 2, and finally merged into 1 clan. After reaching the total function evaluation number threshold of each node (i.e., the threshold of the first stage, set according to actual operation data or experience, such as 4450 generations), the master node collects and combines the results from each node, and the number of clans is updated from 4 to 2.
[0148] Phase 2: In the second phase, population X is divided into 2 clans in the master node, each clan consisting of 16 individuals. Therefore, only 2 nodes are needed to run population X in parallel. Similarly, the clan-based hybrid algorithm of the present invention is iteratively run in each node, and no interaction is required between nodes. After reaching the threshold of the total function calculation in each node (i.e., the threshold of the second phase, set according to actual operation data or experience, such as 4500 generations), the master node collects and combines the results from each node, and the number of clans is updated from 2 to 1.
[0149] Phase 3: In the third phase, there is only one entire population consisting of 32 individuals. In order to make full use of the nodes, every 32 / 4=8 clans are assigned to a node for evolution. According to the local iteration strategy of the present invention, when the local iteration of each node stops each time (i.e., the threshold of the third phase, set according to actual operation data or experience, such as when the function evaluation reaches 100), the results of each node are collected and randomly partitioned again on the master node to guide the search of the next generation. At the same time, X elite It is also output in the master node, where it will be further used to call evolution of population Y. The search is performed until the maximum number of function evaluations is reached.
[0150] Embodiment 2
[0151] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for optimizing the layout of heat pipe constraint components based on a parallel evolutionary algorithm in the first embodiment is implemented.
[0152] Embodiment 3
[0153] The invention also discloses a heat pipe constraint component layout optimization system based on a parallel evolutionary algorithm, comprising distributed nodes, a group establishment module, a distribution setting module and a heat pipe constraint component layout module.
[0154] A distributed node may be a distributed server.
[0155] The group establishment module is used to establish the x-axis and y-axis respectively in two directions perpendicular and parallel to the direction of the heat pipe, and establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly. The population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, and the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction.
[0156] The distribution setting module is used to set up distributed nodes.
[0157] The heat pipe constraint component layout module is used to divide the search for the optimal layout solution of population X on the x-axis into multiple stages and distribute them to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and find the optimal layout solution of population Y on the y-axis based on the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
[0158] The present invention designs two populations for two sub-problems. They cooperate with each other and use a clan-based hybrid operator to search for the optimal layout solution. At the same time, a parallel process and framework are designed according to the characteristics and structure of the algorithm. In general, on the one hand, the population X evolves continuously to optimize the x-axis coordinate of the component. The evolution of the population X can be further divided into three stages. On the other hand, whenever a sufficiently good X is output, elite Population Y will be activated when X is activated. Once population Y is activated for the first time, a new node will be activated for population Y. Otherwise, it means that population Y has been serving the previous X. elite Run, so the population Y is connected with the new X elite Combining and evolving.
[0159] Note that the method of the present invention can also be run in serial mode, and the evolutionary algorithm can be either an existing proposed algorithm or a newly proposed hybrid algorithm. In addition, the three-stage parallel implementation of the present invention is tailored for clan-based strategies, while the asynchronous parallel implementation of the present invention is suitable for dual-population environments. They can run independently. Therefore, the parallel method of the present invention is suitable for various future algorithms that combine dual-population and clan strategies together or separately.
[0160] First, two populations are randomly generated and the parameters are set. Considering that it is a waste to optimize population Y for the poor x-axis component layout, the algorithm only optimizes population X in the early stage. Only when population X reaches certain conditions of convergence (such as the algorithm reaches the function evaluation threshold, X elite If the component-heat pipe overlap constraint is satisfied, population Y can be activated and receive the X provided by population X. elite After that, the two populations will evolve independently in each generation, and population Y will be based on X. elite Optimize the Y-axis coordinates. Once If the non-overlapping constraint, system center of mass constraint, and heat dissipation capacity constraint are satisfied, then the current algorithm finds a feasible solution for the target value and converts X elite ∪Y elite As a feasible layout solution, population Y will be saved and will go dormant until population X finds an x-axis layout with a better target value and meets the conditions, and population Y will be activated again.
[0161] Embodiment 4
[0162] The present invention also discloses a device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for optimizing the layout of a heat pipe constraint component based on a parallel evolutionary algorithm in Embodiment 1 is implemented.
[0163] Compared with the prior art, the advantages of the present invention are:
[0164] 1. The present invention transforms the layout problem of heat pipe constraint components into a dual-population solution problem. On this basis, the process of finding the optimal layout solution is divided into multiple stages and distributed to distributed nodes in stages. The HCLO problem is effectively processed through a parallel implementation strategy designed according to the characteristics of the dual-population-clan framework. Without affecting the solution accuracy, more than 1 / 2 of the solution time can be saved, thereby improving the layout efficiency of the heat pipe constraint components.
[0165] 2. Aiming at the difficulty of HCLO problem, the present invention combines the dual population-clan framework and evolutionary operator to update the population and find the optimal layout solution, improves the layout efficiency by improving the search capability, and obtains a better layout solution.
[0166] 3. Since the dual population-clan framework can be combined with any evolutionary algorithm to solve the HCLO problem, the parallel implementation strategy in the present invention can support various backbone algorithms proposed later for solving the HCLO problem using the framework, and has a wide range of applications.
[0167] In order to further illustrate the beneficial effects of the present invention, four sets of HCLO problem benchmark examples provided by IEEE CEC are used in this embodiment. The difficulty of the problems is progressive, among which problem 1 contains 6 components in 1 layout area; problem 2 contains 15 components in 1 layout area; problem 3 contains 40 components in 2 layout areas; problem 4 contains 90 components in 4 layout areas. On this basis, in order to further verify the effectiveness of the algorithm, two more complex examples are designed. Among them, problem 5 expands the layout domain of problem 4 to 1.5 times the original in the y-axis direction, and the components are all from problems 3 and 4, that is, it contains 40+90=130 components in 4 layout areas. Problem 6 expands the layout domain of problem 4 to 2 times the original in the y-axis direction, and the components are all from problems 2 to 4, that is, it contains 15+40+90=145 components in 4 layout areas.
[0168] The HCLO solution experiment was carried out using the present invention (PBCGA) and the GAHCLO and BCGA methods in the prior art, and a comparative evaluation was performed. All methods were implemented using Python 3.8.2, and all calculations were completed using a computer with 2.3GHz Intel Core i7 and 8GB memory under Windows environment. A parallel environment including 1 master node and 4 worker nodes was built based on Docker, and parallel computing was implemented using the Spark programming model. Considering the randomness of the algorithm, 30 tests were conducted in the simulation experiment, and the stopping rule for each experiment was 5000D (D is the dimension of the problem) for the maximum number of evaluations. The results are shown in Table 1. Each problem includes the following statistical indicators: the mean, standard deviation, minimum and maximum values of the objective function value; the mean, standard deviation, minimum and maximum values of the calculation time; and the calculation success rate. The best indicator value in each item is indicated in bold.
[0169] Table 1 Comparison of simulation results
[0170]
[0171] As can be seen from Table 1, in terms of target value: when the problem scale is small, all methods can find a good layout solution. As the difficulty of the problem increases, the PBCGA of the present invention can find the minimum target value, showing the best search effect. In addition, PBCGA has a lower mean in all problems and a lower standard deviation in most problems, showing higher stability. In contrast, the performance of BCGA is slightly worse than that of PBCGA of the present invention, and the performance of PBCGA and BCGA is much better than that of GAHCLO.
[0172] In terms of computational time: computational time increases with the size of the problem. Due to parallel implementation, the PBCGA of the present invention takes less time. For a relatively simple problem such as Problem 1, PBCGA saves 40% of the time for BCGA and 73% of the time for GAHCLO. As the complexity of the problem increases, the time saved also increases. In the most complex problem 10, the time saved by PBCGA increases to nearly 60% and 84% for BCGA and GAHCLO, respectively. In contrast, in each problem, the computational time of BCGA is approximately twice that of the PBCGA of the present invention, while GAHCLO is at least four times that of the PBCGA of the present invention in each problem.
[0173] In terms of success rate: As the number of tasks increases, the methods become more complex in finding feasible solutions. PBCGA and BCGA maintain a 100% success rate on every problem. In contrast, GAHCLO cannot guarantee that a feasible solution will be found in every run, and the success rate drops from 100% to 0% as the problem becomes more complex.
[0174] In general, compared with BCGA, PBCGA not only has higher accuracy, but also has lower time cost for parallel implementation. Both methods have a 100% success rate and are able to find feasible layout solutions for 6 HCLO problems, indicating that both methods are suitable for solving HCLO problems. On simple problems, the gap between them seems small. However, as the difficulty of the problem increases, the results show that PBCGA can find smaller target values than BCGA in most problems, especially in complex problems such as Problem 5 and Problem 6. This means that the former has better search ability than the latter and is more likely to jump out of the local optimum. In addition, PBCGA has a lower mean and lower maximum value in all problems, which means that the former has higher stability. In addition, PBCGA also has a lower standard deviation in most problems. Therefore, by improving the local search ability of FWA, PBCGA has better performance benefits than BCGA. In terms of time, for simpler problems such as Problem 1 and Problem 2, PBCGA saves nearly 40% to 45% of the time. However, as the complexity and scale of the problem increase, the time saved by PBCGA rises to nearly 60%. The analysis shows that BCGA has fewer function evaluations and faster calculation speed in simple problems, which makes the advantage of PBCGA seem not very great. However, in complex problems, the benefits brought by parallel implementation of PBCGA are increasing.
[0175] In summary, the experiments prove that the PBCGA method of the present invention not only improves the solution accuracy of the HCLO problem, but also greatly improves the solution efficiency.
[0176] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0177] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0178] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0179] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0180] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims
1. A heat pipe constraint assembly layout optimization method based on parallel evolutionary algorithm, characterized in that: include: S1: Establish an x-axis and a y-axis in two directions perpendicular and parallel to the direction of the heat pipe, respectively, establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly, the population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction, and set distributed nodes; S2: The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and find the optimal layout solution of population Y on the y-axis based on the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis. When the search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages, the number of clans divided and the search for the optimal layout solution are balanced, and the search for the optimal layout solution of population X on the x-axis is divided into multiple stages according to the dynamic changes of the number of clans; The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis according to the optimal layout solution of population X on the x-axis. The optimal feasible solution for the layout of the heat pipe constraint assembly is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis, which is specifically: S2-1: Set the distributed nodes including working nodes and master nodes, the maximum number of function evaluations, initialize the number of used function evaluations, the clan size, initialize population X and population Y, and divide the search for the optimal layout solution of population X on the x-axis into three stages; S2-2: Evaluate population X. If the number of evaluations does not reach the maximum number of function evaluations, execute S2-3; if the number of evaluations reaches the maximum number of function evaluations, execute S2-14; S2-3: Enter the first stage, divide the population X into clans, and evenly distribute the clans to each working node; In the first stage, the population X is divided into multiple clans and uniformly assigned to working nodes, and the number of clans is greater than the number of working nodes; in each working node, an evolutionary algorithm is used to guide the evolution of each clan, and when the threshold of the first stage is reached, the clans are merged and the first stage is ended. No combination operation is performed in the first stage; S2-4: Each working node works in parallel, using the evolutionary algorithm to find the optimal layout solution of population X on the x-axis and update population X; S2-5: After reaching the threshold of the first stage, each working node stops working, and the master node collects and merges the population X at this time and divides it into a new clan; S2-6: Enter the second stage, and evenly distribute the clans at this time to each working node; In the second stage, the number of working nodes is reduced until it is consistent with the number of merged clans, and there is no interaction between working nodes; when the merged clans have reached the threshold of the second stage, the second stage is ended; S2-7: Execute S2-4 until the threshold of the second stage is reached, each working node stops working, and the master node collects and merges the population X at this time; S2-8: Enter the third stage, and evenly distribute the population X at this time to each working node; In the third stage, all clans in the second stage are merged into one clan, the entire clan is evenly distributed to each working node, and a local iteration is run in each working node; S2-9: Execute S2-4 until the threshold of the third stage is reached, each working node stops working, and the master node collects and merges the population X at this time; S2-10: Determine whether it is the first time to obtain the optimal layout solution X of population X on the x-axis elite Or get a better X elite If yes, execute S2-11, if no, execute S2-8; S2-11: Activate population Y, create new processes and assign them to working nodes; S2-12: The working node uses the evolutionary algorithm to update the optimal layout solution of population Y on the y-axis; S2-13: Determine whether the current population Y has obtained a feasible solution on the y-axis. If so, record the feasible solution and the population Y enters sleep mode. If not, execute S2-12. S2-14: Output the solution with the smallest objective value from the stored feasible solution set, thereby obtaining the optimal feasible solution for the layout of the heat pipe constraint component.
2. The heat pipe constraint assembly layout optimization method based on parallel evolutionary algorithm according to claim 1, characterized in that: The process of finding the optimal layout solution for population X and population Y is transformed into an unconstrained optimization problem. Population X and population Y are regarded as clans, and an evolutionary algorithm is used to find the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis.
3. The heat pipe constraint assembly layout optimization method based on parallel evolutionary algorithm according to claim 2, characterized in that: The evolutionary algorithm is a meta-heuristic algorithm, or a combination of multiple meta-heuristic algorithms, or a combination of a meta-heuristic algorithm and other algorithms.
4. The heat pipe constraint assembly layout optimization method based on parallel evolutionary algorithm according to claim 1, characterized in that: The optimization process of population Y is evolved independently from the optimization process of population X, and the optimization process of population X and the optimization process of population Y are asynchronously parallelized using parallel technology.
5. A heat pipe constraint assembly layout optimization system based on parallel evolutionary algorithm, characterized in that: include: Distributed nodes, A population establishment module is used to establish an x-axis and a y-axis respectively in two directions perpendicular and parallel to the direction of the heat pipe, and to establish a population X on the x-axis and a population Y on the y-axis according to the structure of the heat pipe constraint assembly, wherein the population X represents a set of layout solutions of the heat pipe constraint assembly in the x-axis direction, and the population Y represents a set of layout solutions of the heat pipe constraint assembly in the y-axis direction; Distribution setting module, used to set distributed nodes; The heat pipe constraint component layout module is used to divide the search for the optimal layout solution of population X on the x-axis into multiple stages and distribute them to the distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and find the optimal layout solution of population Y on the y-axis according to the optimal layout solution of population X on the x-axis. The optimal feasible solution of the heat pipe constraint component layout is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis. When the search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages, the number of clans divided and the search for the optimal layout solution are balanced, and the search for the optimal layout solution of population X on the x-axis is divided into multiple stages according to the dynamic changes of the number of clans; The search for the optimal layout solution of population X on the x-axis is divided into multiple stages and distributed to distributed nodes in stages. In each stage, the distributed nodes update the optimal layout solution of population X on the x-axis according to different optimization objectives, and search for the optimal layout solution of population Y on the y-axis according to the optimal layout solution of population X on the x-axis. The optimal feasible solution for the layout of the heat pipe constraint assembly is obtained by combining the optimal layout solution of population X on the x-axis and the optimal layout solution of population Y on the y-axis, which is specifically: S2-1: Set the distributed nodes including working nodes and master nodes, the maximum number of function evaluations, initialize the number of used function evaluations, the clan size, initialize population X and population Y, and divide the search for the optimal layout solution of population X on the x-axis into three stages; S2-2: Evaluate population X. If the number of evaluations does not reach the maximum number of function evaluations, execute S2-3; if the number of evaluations reaches the maximum number of function evaluations, execute S2-14; S2-3: Enter the first stage, divide the population X into clans, and evenly distribute the clans to each working node; In the first stage, the population X is divided into multiple clans and uniformly assigned to working nodes, and the number of clans is greater than the number of working nodes; in each working node, an evolutionary algorithm is used to guide the evolution of each clan, and when the threshold of the first stage is reached, the clans are merged and the first stage is ended. No combination operation is performed in the first stage; S2-4: Each working node works in parallel, using the evolutionary algorithm to find the optimal layout solution of population X on the x-axis and update population X; S2-5: After reaching the threshold of the first stage, each working node stops working, and the master node collects and merges the population X at this time and divides it into a new clan; S2-6: Enter the second stage, and evenly distribute the clans at this time to each working node; In the second stage, the number of working nodes is reduced until it is consistent with the number of merged clans, and there is no interaction between working nodes; when the merged clans have reached the threshold of the second stage, the second stage is ended; S2-7: Execute S2-4 until the threshold of the second stage is reached, each working node stops working, and the master node collects and merges the population X at this time; S2-8: Enter the third stage, and evenly distribute the population X at this time to each working node; In the third stage, all clans in the second stage are merged into one clan, the entire clan is evenly distributed to each working node, and a local iteration is run in each working node; S2-9: Execute S2-4 until the threshold of the third stage is reached, each working node stops working, and the master node collects and merges the population X at this time; S2-10: Determine whether it is the first time to obtain the optimal layout solution X of population X on the x-axis elite Or get a better X elite If yes, execute S2-11, if no, execute S2-8; S2-11: Activate population Y, create new processes and assign them to working nodes; S2-12: The working node uses the evolutionary algorithm to update the optimal layout solution of population Y on the y-axis; S2-13: Determine whether the current population Y has obtained a feasible solution on the y-axis. If so, record the feasible solution and the population Y enters sleep mode. If not, execute S2-12. S2-14: Output the solution with the smallest objective value from the stored feasible solution set, thereby obtaining the optimal feasible solution for the layout of the heat pipe constraint component.
