CN117634232A - An optimization method for the number of large flexible thin plate fixtures based on improved particle swarm algorithm - Google Patents
An optimization method for the number of large flexible thin plate fixtures based on improved particle swarm algorithm Download PDFInfo
- Publication number
- CN117634232A CN117634232A CN202310699144.XA CN202310699144A CN117634232A CN 117634232 A CN117634232 A CN 117634232A CN 202310699144 A CN202310699144 A CN 202310699144A CN 117634232 A CN117634232 A CN 117634232A
- Authority
- CN
- China
- Prior art keywords
- thin plate
- particle swarm
- swarm algorithm
- constraint
- finite element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/23—Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/15—Vehicle, aircraft or watercraft design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/20—Finite element generation, e.g. wire-frame surface description, tesselation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/04—Constraint-based CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/14—Force analysis or force optimisation, e.g. static or dynamic forces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Computer Graphics (AREA)
- Molecular Biology (AREA)
- Automation & Control Theory (AREA)
- Aviation & Aerospace Engineering (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical field
本发明涉及质量管理与智能装配系统设计优化领域,特别涉及一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法。The invention relates to the field of quality management and intelligent assembly system design optimization, and in particular to a method for optimizing the number of large flexible thin plate fixtures based on an improved particle swarm algorithm.
背景技术Background technique
生产装配领域,飞机机身和船舶船体等零部件都由大型柔性薄板拼接装配而成,此类薄板的主要特征为:其内尺寸很大(板的宽度和长度都很大),而板件的厚度却很小,即具有“大尺度”和“低刚度”的特点,因此此类零件在重力作用下很容易出现局部变形。目前的生产装配中,大型柔性薄板一般使用“N-2-1”原则进行定位,然后通过铆接、焊接等连接方式进行两两拼接,进而装配成一块更大的薄板。装配定位过程中所使用的“N”个定位夹具的布局方案将直接影响大型柔性薄板的柔性变形程度,进而会直接影响到大型柔性薄板的装配质量。同时,每增加一个夹具或是每多移动一次夹具均会产生额外的成本,因此在满足装配拼接要求的情况下尽可能减少夹具数量和移动对于提高利润和产品的附加值是十分重要的。In the field of production and assembly, parts such as aircraft fuselages and ship hulls are assembled from large flexible thin plates. The main characteristics of such thin plates are: their internal dimensions are large (the width and length of the plate are both large), and the plate parts The thickness is very small, that is, it has the characteristics of "large scale" and "low stiffness", so such parts are prone to local deformation under the action of gravity. In current production and assembly, large flexible sheets are generally positioned using the "N-2-1" principle, and then spliced in pairs through riveting, welding and other connection methods, and then assembled into a larger sheet. The layout scheme of the "N" positioning fixtures used in the assembly and positioning process will directly affect the degree of flexible deformation of the large flexible thin plate, which will in turn directly affect the assembly quality of the large flexible thin plate. At the same time, each additional fixture or each additional movement of a fixture will incur additional costs. Therefore, it is very important to reduce the number and movement of fixtures as much as possible while meeting the assembly and splicing requirements to increase profits and the added value of the product.
目前大型薄板装配过程中所使用的定位夹具主要采用固定的立柱式胎架结构,且将夹具按照等间距方式均匀分布在薄板投影平面内。由于飞机机身和船舶船体所采用的大型薄板大多数具有较为复杂的型面,简单地增加“N”的数目并进行均布虽然在一定程度上减小了两板之间的装配间隙,使得其能够满足焊接或铆接前的最大允许间隙,但是产生了更多的额外成本,降低了平均利润,对于单件产品的制造而言是“不经济”与“不合理”的,且是可以进行改进的。针对此类问题,本发明提出了一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法。At present, the positioning fixtures used in the assembly process of large thin plates mainly adopt fixed column-type tire frame structures, and the fixtures are evenly distributed in the projection plane of the thin plate at equal intervals. Since most of the large thin plates used in aircraft fuselages and ship hulls have relatively complex profiles, simply increasing the number of "N" and distributing them evenly will reduce the assembly gap between the two plates to a certain extent, making the It can meet the maximum allowable gap before welding or riveting, but it generates more additional costs and reduces the average profit. It is "uneconomical" and "unreasonable" for the manufacture of a single product, and it can be carried out improved. In response to such problems, the present invention proposes a method for optimizing the number of large flexible thin plate clamps based on an improved particle swarm algorithm.
发明内容Contents of the invention
本发明的目的在于针对现有大型柔性薄板装配过程中夹具因布局方式的不足和由于较多的数目而带来不必要的成本,提出一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法。The purpose of this invention is to propose a method for optimizing the number of large flexible thin plate clamps based on an improved particle swarm algorithm in view of the insufficient layout of the fixtures and the unnecessary costs caused by the large number in the existing large flexible thin plate assembly process. .
为达到上述目的,本发明提出一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法,包括以下步骤:In order to achieve the above objectives, the present invention proposes a method for optimizing the number of large flexible thin plate clamps based on an improved particle swarm algorithm, which includes the following steps:
S1:构建大型柔性薄板三维模型,导出所构建模型的数据交互文件;S1: Construct a large-scale flexible thin plate three-dimensional model and export the data interaction file of the constructed model;
S2:进行有限元网格的划分,并导出表单源代码文件;S2: Divide the finite element mesh and export the form source code file;
S3:进行特征数据的提取,进行材料属性、载荷分布和约束等参数设置,提取有限元网格结点坐标、薄板模型的刚度矩阵、薄板模型的力矩阵;根据N-2-1定位法,设置x与y向的约束点序号;S3: Extract feature data, set parameters such as material properties, load distribution and constraints, and extract the finite element grid node coordinates, the stiffness matrix of the thin plate model, and the force matrix of the thin plate model; according to the N-2-1 positioning method, Set the constraint point numbers in the x and y directions;
S4:改进的粒子群算法寻优,利用改进的粒子群算法搜寻得到满足装配要求条件下的最优夹具数目及此时的夹具布局;S4: Improved particle swarm algorithm optimization, use the improved particle swarm algorithm to search to obtain the optimal number of fixtures that meet the assembly requirements and the fixture layout at this time;
S5:优化效果验证与优化结果可视化,利用得到的满足装配要求条件下的最优夹具数目及此时的夹具布局(即此时z向夹具约束序号和根据N-2-1定位法设置的x与y向的约束点序号),在有限元分析中分别进行约束,得到薄板的形变云图,完成验证及可视化。S5: Optimization effect verification and optimization result visualization, using the optimal number of fixtures that meet the assembly requirements and the fixture layout at this time (i.e., the z-direction fixture constraint number and the x set according to the N-2-1 positioning method at this time and the constraint point number in the y direction), perform constraints respectively in the finite element analysis, and obtain the deformation cloud diagram of the thin plate to complete verification and visualization.
进一步的,在S2中,通过有限元网格划分软件对模型进行有限元网格的划分,导出此时模型的数据交互文件,并从中提取出两块薄板的有限元网格节点数目及每个结点所对应的坐标。Further, in S2, the model is divided into finite element meshes through finite element meshing software, the data interaction file of the model is exported, and the number of finite element mesh nodes of the two thin plates and the number of each of them are extracted. The coordinates corresponding to the node.
进一步的,在S3中,利用有限元分析软件进行分析,对两块板的材料属性,密度、杨氏模量和泊松比进行设定;根据两块薄板装配拼接时的实际情况进行模型简化:设定两块薄板之间无相互作用,并且只加载重力;这些参数设定完成后,导出两块薄板的刚度矩阵和力矩阵,并分别记作K1、K2和f1、f2。Further, in S3, finite element analysis software was used to analyze and set the material properties, density, Young's modulus and Poisson's ratio of the two plates; the model was simplified based on the actual situation when the two thin plates were assembled and spliced: It is assumed that there is no interaction between the two thin plates and only gravity is loaded; after setting these parameters, the stiffness matrix and force matrix of the two thin plates are derived and recorded as K 1 , K 2 and f 1 , f 2 respectively.
进一步的,在S4中,利用改进粒子群的算法,设置两块薄板上最小的夹具数目N1和N2,随机产生一系列z向夹具约束序号序列,利用粒子群算法中位置更新时所出现的超界粒子改变夹具数目:首先通过数目限制筛选出满足数目要求的粒子,再从中筛选出满足装配要求的z向夹具约束序号,最终得到满足装配拼接要求条件下的最优夹具数目和此时的夹具分布;Further, in S4, the improved particle swarm algorithm is used to set the minimum number of clamps N 1 and N 2 on the two thin plates, and a series of z-direction clamp constraint sequence numbers are randomly generated, using the position update in the particle swarm algorithm. Change the number of fixtures with super-boundary particles: first filter out the particles that meet the number requirements through number restrictions, then filter out the z-direction fixture constraint numbers that meet the assembly requirements, and finally get the optimal number of fixtures that meet the assembly splicing requirements and at this time The fixture distribution;
在粒子群算法中通过方程Through the equation in particle swarm optimization
建立刚度矩阵、位移矩阵和力矩阵之间的关系;Establish the relationship between the stiffness matrix, displacement matrix and force matrix;
式中:和/>分别为Ki和fi(i=1,2)经过N-2-1定位法修正后两块薄板的刚度矩阵与力矩阵,其计算步骤如下:In the formula: and/> are respectively the stiffness matrix and force matrix of the two thin plates K i and f i (i=1,2) corrected by the N-2-1 positioning method. The calculation steps are as follows:
Step1:输入两块薄板的夹具位置序号xi,薄板的节点数量ni和N-2-1定位法在x和y向的约束点位Constrxi和Constryi(i=1,2);Step1: Enter the fixture position number x i of the two thin plates, the number of nodes of the thin plate n i and the constraint points Constrx i and Constry i (i=1,2) in the x and y directions of the N-2-1 positioning method;
Step2:加载两块薄板的刚度矩阵Ki和力矩阵fi;Step2: Load the stiffness matrix K i and force matrix f i of the two thin plates;
Step3:设置N-2-1定位法的z向约束Constrzi=xi+NFi;Step3: Set the z-direction constraint Constrz i = xi +NF i of the N-2-1 positioning method;
Step4:设置x,y,z三个方向的约束并得到总约束:Step4: Set constraints in the three directions of x, y, and z and get the total constraints:
Constri=[Constrix,Constrix,Constrix];Constr i = [Constr ix ,Constr ix ,Constr ix ];
Step5:设置索引序列index={1,2,…,6ni};Step5: Set the index sequence index={1,2,…,6n i };
Step6:进行迭代循环Step6: Carry out iterative loop
Forj=1,2,…,length(Constri)Forj=1,2,…,length(Constr i )
q=index中除去Constri第j行中的位置序列Remove the position sequence in the jth row of Constr i from q=index
Ki(Constri(j),q)=0K i (Constr i (j),q)=0
End;End;
Step7:修正力矩阵fi(Constri)=0,Step7: Correction force matrix f i (Constr i )=0,
优化目标是使得总成本最小,因此目标函数定义为:The optimization goal is to minimize the total cost, so the objective function is defined as:
为了满足实际工程的需要,在计算过程中对两块板装配交点处的最大间隙H(x)和轮廓度ε进行约束,其中剖面形变量公差值ε约束方程如下:In order to meet the needs of actual engineering, the maximum gap H (x) and the contour ε at the assembly intersection of the two plates are constrained during the calculation process. The section deformation tolerance value ε constraint equation is as follows:
当个体不满足此约束时,需在目标函数的计算结果上加上惩罚系数M,(M为一远大于目标函数的值);When an individual does not meet this constraint, a penalty coefficient M needs to be added to the calculation result of the objective function (M is a value much larger than the objective function);
最大间隙H(x)需要满足的约束方程为:The constraint equation that the maximum gap H(x) needs to satisfy is:
H(x)≤Hmax H(x)≤H max
其中H(x)计算方法为:The calculation method of H(x) is:
算法的具体实现步骤如下:The specific implementation steps of the algorithm are as follows:
设置参数与加载约束:设置两块薄板的节点总数n1和n2,两块薄板初始夹具数m1和m2,两块板拼接处的结点序列a1和a2,两块板上不可放置夹具的节点序列NF1和NF2,设置种群个数P,迭代次数d,决策变量的维度D1和D2,个体和社会学习因子l1和l1,以及基于学习因子计算出的收缩因子:Set parameters and loading constraints: set the total number of nodes n 1 and n 2 of the two thin plates, the initial fixture numbers m 1 and m 2 of the two thin plates, the node sequences a 1 and a 2 at the splicing of the two plates, the two plates The node sequences NF 1 and NF 2 where the fixture cannot be placed, the number of populations P, the number of iterations d, the dimensions of the decision variables D 1 and D 2 , the individual and social learning factors l 1 and l 1 , and the values calculated based on the learning factors Shrinkage factor:
惯性权重的变化范围ω∈[ωmin,ωmax],粒子更新速度的变化范围:The changing range of inertia weight ω∈[ω min ,ω max ], the changing range of particle update speed:
Vi∈[Vimin,Vimax](i=1,2);V i ∈[V imin ,V imax ](i=1,2);
粒子位置序号的变化范围:The variation range of particle position number:
设置两块板最少夹具数N1min和N2min,满足装配要求的间隙最大值Hmax,满足装配要求的间隙最大值Hmax,设置成本因子C1和C2,夹具移动速度Vx,Vy,Vz;加载两块薄板上x与y向的约束点序号Constrxi和Constryi(i=1,2),加载两块板每个节点的位置坐标part1_loc和part2_loc;Set the minimum number of fixtures for the two boards N 1min and N 2min , the maximum gap H max that meets the assembly requirements, the maximum gap H max that meets the assembly requirements, set the cost factors C 1 and C 2 , and the movement speed of the fixtures V x , V y ,V z ; Load the constraint point numbers Constrx i and Constry i (i=1,2) in the x and y directions of the two thin plates, and load the position coordinates part1_loc and part2_loc of each node of the two plates;
粒子群算法种群个体初始化:在I维空间中,初始化粒子位置序号:Particle swarm algorithm population individual initialization: In the I-dimensional space, initialize the particle position number:
初始化粒子的更新速度:Vi=Vimin+r(Vimax-Vimin),为与Vo维度相同的随机数序列;初始化种群个体最优位置pbest,利用:Initialize the update speed of particles: V i =V imin +r(V imax -V imin ), is a random number sequence with the same dimension as V o ; initialize the optimal position pbest of the population individual, using:
计算个体最优位置对应的适应度值,利用(4)式计算此时装配出的变形量H(x),判断是否满足(3)式,并根据:Calculate the fitness value corresponding to the individual's optimal position, use equation (4) to calculate the deformation H(x) of the assembly at this time, and determine whether it satisfies equation (3), and based on:
更新pbest_fit;初始化种群全局最优位置gbest,更新全局最优位置对应的适应度值gbest_fit。Update pbest_fit; initialize the global optimal position of the population gbest, and update the fitness value gbest_fit corresponding to the global optimal position.
进行迭代:采用外层k={1,2,…,P}和内层d={1,2,…,d}的两层嵌套循环,根据:Iterate: Use two levels of nested loops with outer k={1,2,…,P} and inner d={1,2,…,d}, according to:
更新惯性权重;Update inertia weight;
根据: 为与/>维度相同的随机数序列)进行速度更新。according to: For and/> Random number sequence with the same dimensions) for speed update.
迭代中速度超界粒子的判断与处理:判断每次更新过程中的速度值是否超过允许范围,若超过则拉回边界值,即: Judgment and processing of speed out-of-bounds particles during iteration: judge whether the speed value in each update process exceeds the allowed range, and if it exceeds, pull back the boundary value, that is:
迭代中位置序号的更新:利用位置更新公式对当前的位置编号加上速度并取整,即 Update of position number during iteration: Use the position update formula to add speed to the current position number and round it up, that is
保留迭代中位置超界的粒子。Particles whose positions are out of bounds during the iteration are retained.
迭代中有效夹具数目的提取:提取位置序号更新后的有效夹具数目,数目更新公式为:Ni=card(Xi)-card(Xi>Ximax)-card(Xi<Ximin),(i=1,2)。Extraction of the number of effective fixtures in the iteration: Extract the number of effective fixtures after the position serial number is updated. The number update formula is: N i =card(X i )-card(X i >X imax )-card(X i <X imin ), (i=1,2).
迭代中夹具数目N值的筛选:针对该轮循环中的所有种群个体进行夹具数目筛选,筛选方式为: Screening of the N value of the number of clamps in the iteration: Screening of the number of clamps for all population individuals in this round of cycles, the screening method is:
迭代中个体的最大间隙H值的筛选:判断该轮循环中的所有种群的每个个体的最大间隙值是否小于允许的最大间隙值,筛选方式为:Screening of the maximum gap H value of individuals in the iteration: Determine whether the maximum gap value of each individual of all populations in the cycle is less than the maximum allowed gap value. The screening method is:
迭代中个体历史最优与全局最优的计算:遍历所有的种群,每次计算满足Tag2=1的个体最优位置的适应度并与此位置的pbest_fit比较,如果/>则更新pbest和pbest_fit;找出所有个体历史最优适应度中的最小值位置pb,比较全局最优适应度值pbest_fit与min(pbest),如果pbest_fit(pb)<pbest_fit,则更新gbest=pbest(pb)和gbest_fit=pbest_fit(pb);最终得到满足装配拼接要求条件下的最优夹具数目和此时的夹具分布。Calculation of individual historical optimal and global optimal in iteration: traverse all populations, and calculate the fitness of the individual optimal position that satisfies Tag2=1 each time And compare with pbest_fit at this position, if/> Then update pbest and pbest_fit; find the minimum value position pb among all individual historical optimal fitness values, compare the global optimal fitness value pbest_fit with min(pbest), if pbest_fit(pb)<pbest_fit, update gbest=pbest( pb) and gbest_fit=pbest_fit(pb); finally, the optimal number of fixtures and the distribution of fixtures at this time are obtained to meet the assembly and splicing requirements.
式中,各参数的含义为:In the formula, the meaning of each parameter is:
进一步的,在S5中,利用相关有限元分析软件进行,在设定了相关的材料属性、载荷属性后,将所得到的满足装配拼接要求条件下的最优夹具数目对应的夹具分布作为z向夹具约束序号,并对两块薄板中相应位置的z向进行约束;约束加载完成后,导出两块薄板形变的云图实现优化结果的可视化,并进行优化效果的验证。Further, in S5, relevant finite element analysis software is used. After setting the relevant material properties and load properties, the obtained fixture distribution corresponding to the optimal number of fixtures that meets the assembly splicing requirements is used as the z-direction The fixture constraint serial number is used to constrain the z-direction of the corresponding position in the two thin plates; after the constraint loading is completed, the deformation cloud diagram of the two thin plates is exported to visualize the optimization results and verify the optimization effect.
与现有技术相比,本发明的优势之处在于:Compared with the existing technology, the advantages of the present invention are:
1、本发明所述的一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法,最终可得到满足给定装配最大间隙允许值和初始夹具数目条件下的最优夹具数目及此时的夹具布局。1. A method for optimizing the number of large flexible thin plate clamps based on the improved particle swarm algorithm described in the present invention can finally obtain the optimal number of clamps and the clamps at this time that satisfy the maximum allowable value of the assembly gap and the initial number of clamps. layout.
2、本发明能够较好地满足工程装配上拼接要求的同时,尽可能地减少增加夹具数目和移动所带来不必要的成本,提高智能装配系统的经济型。同时,本发明所提出的方法论针对此类大型柔性薄板夹具数目优化问题具有一定的普适性。2. The present invention can better meet the splicing requirements of engineering assembly, while minimizing unnecessary costs caused by increasing the number and movement of fixtures, and improving the economy of the intelligent assembly system. At the same time, the methodology proposed by the present invention has certain universal applicability to the problem of optimizing the number of large-scale flexible thin plate clamps.
3、本发明引入粒子群算法进行优化,并对其进行了一些相关改进:改进传统粒子群算法中的惯性权重ω,使其能够随着适应度的变化而变化;改进传统粒子群算法中的速度的更新公式,引入收缩因子对粒子更新速度的变化进行控制。经过这些改进,在求解过程中算法的粒子收敛性得到增强,这更有利于此算法结合此类问题搜寻全局最优解,并提高了求解的时间效率。3. The present invention introduces the particle swarm algorithm for optimization and makes some related improvements: improving the inertia weight ω in the traditional particle swarm algorithm so that it can change with the change of fitness; improving the inertial weight ω in the traditional particle swarm algorithm. Update formula of speed, introducing shrinkage factor Control changes in particle update speed. After these improvements, the particle convergence of the algorithm has been enhanced during the solution process, which is more conducive to this algorithm searching for the global optimal solution in combination with such problems, and improves the time efficiency of solution.
附图说明Description of drawings
图1为本发明的原理示意框图;Figure 1 is a schematic block diagram of the principle of the present invention;
图2为本发明的粒子群算法流程示意图;Figure 2 is a schematic flow chart of the particle swarm algorithm of the present invention;
图3为本发明中优化过程图;Figure 3 is a diagram of the optimization process in the present invention;
图4为本发明的优化前(均布)和优化后的夹具点位布局示意图;Figure 4 is a schematic diagram of the fixture point layout before optimization (uniform distribution) and after optimization of the present invention;
图5为本发明夹具数目优化前(均布)和优化后的板件变形示意图。Figure 5 is a schematic diagram of plate deformation before (evenly distributed) and after optimization of the number of clamps according to the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将对本发明的技术方案作进一步地说明。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be further described below.
如附图1所示,一种基于改进粒子群算法的大型柔性薄板夹具数目优化方法,其特征在于构建大型柔性薄板三维模型、划分有限元网格、相关特征数据提取、改进粒子群算法的寻优和优化结果可视化与优化结果的检验。As shown in Figure 1, a method for optimizing the number of large flexible thin plate fixtures based on the improved particle swarm algorithm is characterized by constructing a three-dimensional model of a large flexible thin plate, dividing the finite element grid, extracting relevant feature data, and improving the search method of the particle swarm algorithm. Optimization and visualization of optimization results and inspection of optimization results.
本发明的具体实施方案如下所示:Specific embodiments of the present invention are as follows:
第一步:构建大型柔性薄板的三维模型。以某大型船体上的某两块薄板为研究对象,根据这两块薄板的实际尺寸与形状进行三维模型的构建:选取的两块薄板中,第一块为曲板,其四边的长度分别为:5600mm,4600mm,5500mm,3200mm,四边的厚度与长度之比和厚度与宽度之比分别约为0.0011,0.0011和0.0013,0.0019;第二块为矩形平板,其长度为5500mm,宽度为600mm,厚度与长度之比和厚度与宽度之比分别约为0.0011和0.0013。完成模型构建后,最终导出两块薄板模型igs格式的数据交互文件。Step one: Build a 3D model of the large flexible sheet. Taking two thin plates on a large ship hull as the research object, a three-dimensional model was constructed based on the actual size and shape of the two thin plates: of the two selected thin plates, the first one is a curved plate, and the lengths of its four sides are respectively : 5600mm, 4600mm, 5500mm, 3200mm, the ratio of the thickness to the length of the four sides and the ratio of the thickness to the width are about 0.0011, 0.0011 and 0.0013, 0.0019 respectively; the second piece is a rectangular flat plate with a length of 5500mm, a width of 600mm, and a thickness of The ratio to length and the ratio of thickness to width are approximately 0.0011 and 0.0013 respectively. After completing the model construction, the data interaction files in the igs format of the two thin plate models were finally exported.
第二步:划分有限元网格。通过HyperMesh软件对模型进行有限元网格划分,由于两块板均较为规整,划分后只得到四边形与三角形两种网格。网格划分完成后,导出inp格式的模型数据交互文件,可从中提取得到两块薄板的有限元网格节点数目及每个结点所对应的坐标,本样例中:板1总节点数为2346,板2的总节点数为392.Step 2: Divide the finite element mesh. The model was divided into finite element meshes through HyperMesh software. Since both plates were relatively regular, only quadrilateral and triangular meshes were obtained after division. After the meshing is completed, export the model data interaction file in inp format, from which the number of finite element mesh nodes of the two thin plates and the coordinates corresponding to each node can be extracted. In this example: the total number of nodes of plate 1 is 2346, the total number of nodes on board 2 is 392.
第三步,提取相关特征数据。读取表单源代码inp文件,所述第三步利用Abaqus软件进行分析,设定两块板的材料属性相同:设置密度ρ=7.85×10-3g/mm3,泊松比V=0.3,杨氏模量E=210000N/mm2。根据两块薄板装配拼接时的实际情况进行合理简化模型,设定两块薄板之间无相互作用,并且假定两块板所受的外部载荷均只有重力,设定g=-9800mm/s2并对整体施加重力载荷。最后导出相关参数设定完成后两块薄板的刚度矩阵和力矩阵等相关特征数据。The third step is to extract relevant feature data. Read the form source code inp file, use Abaqus software for analysis in the third step, and set the material properties of the two plates to be the same: set the density ρ = 7.85×10 -3 g/mm 3 , Poisson's ratio V = 0.3, Young's modulus E=210000N/mm 2 . According to the actual situation when two thin plates are assembled and spliced, the model is reasonably simplified. It is assumed that there is no interaction between the two thin plates, and it is assumed that the external load on the two plates is only gravity. Set g=-9800mm/s 2 and Apply gravity load to the whole. Finally, the relevant characteristic data such as the stiffness matrix and force matrix of the two thin plates after the relevant parameter settings are completed are exported.
第四步,改进的粒子群算法寻优,如图2利用改进的粒子群算法搜寻得到的最优夹具数目和此时对应的z向夹具约束序号。样例中两块薄板上的初始夹具数目m1=22,m2=8,两块板拼接处的结点序列a1={56,55,…,1}和a2={1,2,…,56},两块板上不可放置夹具的节点序列NF1=189和NF2=122,设置种群个数P=300,迭代次数d=20,决策变量的维度D1=22和D2=8,个体和社会学习因子l1=l1=2.05,并由此计算收缩因子ωmin=0.4,ωmax=0.9,V1max=78.2,V1min=-78.2,V2max=469,V2min=-469,在本样例设定条件下,其适应度值不会超过1000,因此设置惩罚系数M为1000,设置两块板最少夹具数N1min=16和N2min=4,满足装配要求的间隙最大值Hmax=2,设置成本因子C1=1,C2=0.05,夹具移动速度Vx=Vy=Vz=1,利用两块板每个结点的位置坐标part1_loc和part2_loc计算Sjx,SjySjz,将目标函数定义为/>在I维空间中,初始化粒子位置序号/>初始化粒子的更新速度Vi=Vimin+r(Vimax-Vimin),/>为与Vi维度相同的随机数序列;初始化种群个体最优位置pbest,利用(*)式中的目标函数计算个体最优位置对应的适应度值 利用(4)式计算此时装配出的变形量H(x),并判断是否满足H(x)≤Hmax,并根据更新pbest_fit;初始化种群全局最优位置gbest,更新全局最优位置对应的适应度值gbest_fit。进行迭代:采用外层k={1,2,…,P}和内层d={1,2,…,d}的两层嵌套循环,根据更新惯性权重,根据/>为与维度相同的随机数序列)进行速度更新,判断每次更新过程中的速度值是否超过允许范围,若超过则拉回边界值,更新位置/>位置超界的粒子不进行处理;迭代中有效夹具数目的提取:提取位置序号更新后的有效夹具数目,数目更新公式为:Ni=card(Xi)-card(Xi>Ximax)-card(Xi<Ximin),(i=1,2);迭代中夹具数目N值的筛选:针对该轮循环中的所有种群个体进行夹具数目筛选,筛选方式为:迭代中个体的最大间隙H值的筛选:判断该轮循环中的所有种群的每个个体的最大间隙值是否小于允许的最大间隙值,筛选方式为:/> 对种群中满足Tag2=1的粒子进行计算,更新个体历史最优与全局最优,寻优完成。最终得到其优化结果:The fourth step is to optimize using the improved particle swarm algorithm. As shown in Figure 2, the optimal number of fixtures obtained through the improved particle swarm algorithm search and the corresponding z-direction fixture constraint number are obtained. In the example, the initial number of clamps on the two thin plates is m 1 =22, m 2 =8, and the node sequences at the splicing of the two plates are a 1 ={56,55,…,1} and a 2 ={1,2 ,...,56}, the node sequences NF 1 = 189 and NF 2 = 122 on the two boards where the fixture cannot be placed, the number of populations P = 300, the number of iterations d = 20, the dimensions of the decision variable D 1 = 22 and D 2 =8, individual and social learning factors l 1 =l 1 =2.05, and the shrinkage factor is calculated from this ω min =0.4, ω max =0.9, V 1max =78.2, V 1min =-78.2, V 2max =469, V 2min =-469. Under the conditions set in this example, the fitness value will not exceed 1000. Therefore, the penalty coefficient M is set to 1000, the minimum number of fixtures for two boards is set to N 1min = 16 and N 2min = 4, the maximum gap H max = 2 that meets the assembly requirements, and the cost factors C 1 = 1, C 2 = 0.05, Clamp moving speed V x =V y =V z =1, use the position coordinates part1_loc and part2_loc of each node of the two boards to calculate S jx , S jy S jz , and define the objective function as/> In the I-dimensional space, initialize the particle position number/> Initialize particle update speed V i =V imin +r(V imax -V imin ),/> is a random number sequence with the same dimension as V i ; initialize the optimal position pbest of the individual population, and use the objective function in (*) to calculate the fitness value corresponding to the optimal position of the individual Use equation (4) to calculate the deformation H(x) of the assembly at this time, and determine whether it satisfies H(x) ≤ H max , and based on Update pbest_fit; initialize the global optimal position of the population gbest, and update the fitness value gbest_fit corresponding to the global optimal position. Iterate: Use two levels of nested loops with outer k={1,2,…,P} and inner d={1,2,…,d}. According to Update the inertia weight according to/> for and Random number sequence with the same dimensions) performs speed update, and determines whether the speed value in each update process exceeds the allowable range. If it exceeds, pull back the boundary value and update the position/> Particles whose positions exceed the bounds are not processed; extraction of the number of effective fixtures in the iteration: extract the number of effective fixtures after the position number is updated. The number update formula is: N i =card(X i )-card(X i >X imax )- card(X i < Screening of the maximum gap H value of individuals in the iteration: Determine whether the maximum gap value of each individual of all populations in the cycle is less than the maximum allowed gap value. The screening method is: /> Calculate the particles in the population that satisfy Tag2=1, update the individual historical optimal and global optimal, and the optimization is completed. Finally, the optimization result is obtained:
最小总成本为46.0693. The minimum total cost is 46.0693.
此时夹具总数为25,板1上的夹具数为17,如图4(a)所示,其位置为[2199 21141098 1616 868 669 1933 1030 1676 326 984 1004 1505 1503 1297 1869 500]. At this time, the total number of clamps is 25, and the number of clamps on board 1 is 17, as shown in Figure 4(a), and its position is [2199 21141098 1616 868 669 1933 1030 1676 326 984 1004 1505 1503 1297 1869 500].
板2上的夹具数为8;如图4(b)所示,其位置为[175 216 170 344 389 128 312281]。 The number of clamps on board 2 is 8; as shown in Figure 4(b), its position is [175 216 170 344 389 128 312281].
如图3,反映了在20次迭代过程中所搜寻到全局最优值的变化情况。 As shown in Figure 3, it reflects the changes in the global optimal value searched during the 20 iterations.
第五步,优化结果可视化,通过有限元分析软件abaqus,在设定相关的材料属性、载荷属性后,利用所得到使得两块薄板装配处平均形变量最小的一组z向夹具约束序号对两块薄板中相应位置的z向进行约束,导出两块薄板形变的云图,实现可视化。如图4(a)为数目优化前的夹具点位布局示意图,图4(b)为数目优化后的夹具点位布局示意图,图5为夹具数目优化前后的板件变形示意图,显然优化后夹具数目减少了5个,同时两块薄板的形变量均满足小于装配允许的最大形变量。The fifth step is to visualize the optimization results. Through the finite element analysis software abaqus, after setting the relevant material properties and load properties, use the obtained set of z-direction fixture constraint numbers that minimize the average deformation of the two thin plates at the assembly to compare the two thin plates. The z-direction of the corresponding position in the two thin plates is constrained, and the cloud diagram of the deformation of the two thin plates is derived to achieve visualization. Figure 4(a) is a schematic diagram of the fixture point layout before the number is optimized. Figure 4(b) is a schematic diagram of the fixture point layout after the number is optimized. Figure 5 is a schematic diagram of the plate deformation before and after the number of fixtures is optimized. It is obvious that the fixtures are optimized. The number was reduced by 5, and at the same time, the deformation amount of the two thin plates was less than the maximum allowable deformation amount of the assembly.
上述仅为本发明的优选实施例而已,并不对本发明起到任何限制作用。任何所属技术领域的技术人员,在不脱离本发明的技术方案的范围内,对本发明揭露的技术方案和技术内容做任何形式的等同替换或修改等变动,均属未脱离本发明的技术方案的内容,仍属于本发明的保护范围之内。The above are only preferred embodiments of the present invention and do not limit the present invention in any way. Any person skilled in the technical field who makes any form of equivalent substitution or modification to the technical solutions and technical contents disclosed in the present invention shall not deviate from the technical solutions of the present invention. The contents still fall within the protection scope of the present invention.
Claims (5)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211346551.4A CN115994460A (en) | 2022-10-31 | 2022-10-31 | Large flexible sheet clamp number optimization method based on improved particle swarm algorithm |
CN2022113465514 | 2022-10-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117634232A true CN117634232A (en) | 2024-03-01 |
Family
ID=85993181
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211346551.4A Pending CN115994460A (en) | 2022-10-31 | 2022-10-31 | Large flexible sheet clamp number optimization method based on improved particle swarm algorithm |
CN202310699144.XA Pending CN117634232A (en) | 2022-10-31 | 2023-06-13 | An optimization method for the number of large flexible thin plate fixtures based on improved particle swarm algorithm |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211346551.4A Pending CN115994460A (en) | 2022-10-31 | 2022-10-31 | Large flexible sheet clamp number optimization method based on improved particle swarm algorithm |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN115994460A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119006740A (en) * | 2024-07-25 | 2024-11-22 | 成都理工大学 | Geological model quadrilateral grid optimization method based on particle swarm optimization algorithm |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116466571B (en) * | 2023-06-12 | 2023-09-26 | 中国科学技术大学先进技术研究院 | PID parameter self-tuning control chip and system |
-
2022
- 2022-10-31 CN CN202211346551.4A patent/CN115994460A/en active Pending
-
2023
- 2023-06-13 CN CN202310699144.XA patent/CN117634232A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119006740A (en) * | 2024-07-25 | 2024-11-22 | 成都理工大学 | Geological model quadrilateral grid optimization method based on particle swarm optimization algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN115994460A (en) | 2023-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117634232A (en) | An optimization method for the number of large flexible thin plate fixtures based on improved particle swarm algorithm | |
CN109344524B (en) | A Method for Optimizing the Distribution of Stiffeners in Thin Plate Structures | |
CN106874573B (en) | A Design Method of Partitioned Variable Thickness Composite Laminates | |
CN102043883B (en) | Material breakage constraint-based continuum structure topology design modeling and optimization design method | |
CN112818470B (en) | Method, device, computer equipment and storage medium for optimizing a base structure | |
CN111723457B (en) | Level set method for optimization design of fiber curve laying variable-stiffness structure | |
CN113221251B (en) | Whole structure design method and system of hypersonic aircraft | |
CN111079327B (en) | Anisotropic filtering technology-based topological optimization method for reinforcement of special-shaped curved surface | |
CN109408939A (en) | An improved method for optimizing the distribution of stiffeners in thin-plate structures considering both stress and displacement constraints | |
CN115906586A (en) | Optimal Design Method of Variable Stiffness for Porous Composite Materials Considering Additive Manufacturing Continuity | |
CN112149324A (en) | Rapid modeling method for simulation verification of composite material tool compensation molded surface | |
CN112446163B (en) | Energy Finite Element Topology Optimization Method Based on Parameterized Level Set | |
CN112507587A (en) | Variable-stiffness composite material structure optimization design method oriented to compression stability | |
CN110955941A (en) | Optimal design method and equipment for composite structure based on vector field | |
CN117473655A (en) | Aircraft simulation driving design method and device based on edge collapse grid optimization | |
Tian et al. | Buckling optimization of curvilinear fiber-reinforced composite structures using a parametric level set method | |
CN112364546B (en) | A structural optimization design method for fiber reinforced composite materials based on bilateral filtering | |
CN118779939B (en) | A mesh quality adjustment method and system based on geometry optimization and topology optimization | |
CN113011014B (en) | A composite material layup optimization method and system | |
CN116258027A (en) | A Method for Optimizing the Layout of Fixtures for Large Flexible Thin Plates Based on Particle Swarm Optimization | |
CN117727408A (en) | Curing deformation forecasting and optimizing method for composite material grid structure | |
CN115081113B (en) | Grid reinforcing rib structure optimization method based on multi-level set function parameterization | |
CN111859482A (en) | A lightweight design method for muscle-type thin-walled structures | |
CN110111423B (en) | A Constrained Concrete Freeform Form Creation Method Considering Creep | |
CN112925281A (en) | Generation method and system of entity manufacturing system deployment scheme based on digital twin |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |