[go: up one dir, main page]

CN103902759B - A kind of build-up tolerance Optimization Design based on genetic algorithm - Google Patents

A kind of build-up tolerance Optimization Design based on genetic algorithm Download PDF

Info

Publication number
CN103902759B
CN103902759B CN201310756982.2A CN201310756982A CN103902759B CN 103902759 B CN103902759 B CN 103902759B CN 201310756982 A CN201310756982 A CN 201310756982A CN 103902759 B CN103902759 B CN 103902759B
Authority
CN
China
Prior art keywords
tolerance
assembly
value
function
genetic algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310756982.2A
Other languages
Chinese (zh)
Other versions
CN103902759A (en
Inventor
张毅
张梦旖
曾祥福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xijing University
Original Assignee
Xijing University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xijing University filed Critical Xijing University
Priority to CN201310756982.2A priority Critical patent/CN103902759B/en
Publication of CN103902759A publication Critical patent/CN103902759A/en
Application granted granted Critical
Publication of CN103902759B publication Critical patent/CN103902759B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及一种基于遗传算法的装配公差优化设计方法,该方法为:确定以装配体的最小加工成本为优化目标,建立装配公差优化的目标函数;确定装配公差的约束条件;将公差类型信息附加到VGC网络,得到装配体的公差网络,选择确定各装配特征的尺寸公差及几何公差的取值范围;采用多参数级联编码的方法进行遗传编码;确定适应度函数;确定选择算子函数;确定遗传算法的运行参数。本发明基于遗传算法的装配公差优化设计方法,遗传算法以其全局搜索能力,较强的鲁棒性和计算的并行性在其中显示出了强大的应用潜力。

The invention relates to an assembly tolerance optimization design method based on a genetic algorithm. The method includes: determining the minimum processing cost of an assembly as the optimization target, and establishing an assembly tolerance optimization objective function; determining the constraint conditions of the assembly tolerance; Attach to the VGC network to obtain the tolerance network of the assembly, select and determine the value range of the dimensional tolerance and geometric tolerance of each assembly feature; use the method of multi-parameter cascade coding for genetic coding; determine the fitness function; determine the selection operator function ; Determine the operating parameters of the genetic algorithm. The assembly tolerance optimization design method based on the genetic algorithm of the present invention, the genetic algorithm shows strong application potential because of its global search ability, strong robustness and parallelism of calculation.

Description

一种基于遗传算法的装配公差优化设计方法An Optimal Design Method for Assembly Tolerance Based on Genetic Algorithm

技术领域technical field

本发明涉及一种机械装配公差的优化设计方法,尤其涉及一种基于遗传算法的装配公差优化设计方法。The invention relates to a method for optimizing design of mechanical assembly tolerance, in particular to a method for optimizing design of assembly tolerance based on genetic algorithm.

背景技术Background technique

现有技术中零部件的装配尺寸公差和形位公差,一般是根据产品的使用性能需求、装配功能需求、质量保障、加工材料、生产条件、制造成本以及相应的国家、行业或者企业标准来确定的。The assembly size tolerance and geometric tolerance of parts in the prior art are generally determined according to the product’s performance requirements, assembly function requirements, quality assurance, processing materials, production conditions, manufacturing costs, and corresponding national, industry, or enterprise standards. of.

在设计阶段,如何正确、合理的选用装配公差值是必须综合考虑的一个设计问题,它对保障产品的装配及使用性能,提高产品质量,降低制造成本等都具有重要的意义。在影响零件加工成本的因素中,公差起着非常重要的作用。零件的设计公差越小,越能保障其装配功能需求,但是加工成本也随之增大。当精度提高到一定程度时,加工成本会急剧增大。如何在满足装配功能需求的情况下,设计出合理的装配特征公差值,以获得最低的加工成本,是设计产品时必须关注的一个问题。影响加工成本与公差关系的因素很多,难以用一个统一的数学模型来精确地描述所有特征的加工成本与公差的关系。例如,特征类型、加工设备、装卡方法、加工工艺、操作者、生产批量等因素,只要其中的一个或者若干个发生变化,加工成本与公差的关系就会不同。In the design stage, how to correctly and reasonably select the assembly tolerance value is a design problem that must be considered comprehensively. It is of great significance to ensure the assembly and performance of the product, improve product quality, and reduce manufacturing costs. Among the factors that affect the cost of machining a part, tolerances play a very important role. The smaller the design tolerance of the part, the better the assembly function requirements can be guaranteed, but the processing cost will also increase. When the accuracy is improved to a certain extent, the processing cost will increase sharply. How to design a reasonable assembly feature tolerance value to obtain the lowest processing cost while meeting the assembly function requirements is a problem that must be paid attention to when designing products. There are many factors affecting the relationship between processing cost and tolerance, and it is difficult to use a unified mathematical model to accurately describe the relationship between processing cost and tolerance of all features. For example, feature type, processing equipment, clamping method, processing technology, operator, production batch and other factors, as long as one or several of them change, the relationship between processing cost and tolerance will be different.

依据形位公差和尺寸公差的对应关系建立遗传算法的约束条件,实现尺寸公差和形位公差的综合设计,对公差与加工成本进行建模是公差优化设计中的一项重要内容。公差优化是一个多参数的优化设计问题,遗传算法以其全局搜索能力,较强的鲁棒性和计算的并行性在其中显示出了强大的应用潜力。Based on the relationship between shape tolerance and size tolerance, the constraints of genetic algorithm are established to realize the comprehensive design of size tolerance and shape tolerance. Modeling tolerance and processing cost is an important content in tolerance optimization design. Tolerance optimization is a multi-parameter optimization design problem. Genetic algorithm shows a strong application potential in it because of its global search ability, strong robustness and parallel computing.

鉴于上述缺陷,本发明创作者经过长时间的研究和实践终于获得了本创作。In view of the above-mentioned defects, the author of the present invention has finally obtained this creation through long-term research and practice.

发明内容Contents of the invention

本发明的目的在于提供关于一种基于成本目标优化的装配公差优化设计方法,用以克服上述技术缺陷。The object of the present invention is to provide an assembly tolerance optimization design method based on cost target optimization to overcome the above-mentioned technical defects.

为实现上述目的,本发明提供一种基于成本目标优化的装配公差优化设计方法,该方法为:In order to achieve the above object, the present invention provides a method for optimal design of assembly tolerance based on cost target optimization, the method is:

步骤a,确定以装配体的最小加工成本为优化目标,建立装配公差优化的目标函数;该函数如下式所述为:Step a, determine the minimum processing cost of the assembly as the optimization goal, and establish the objective function of assembly tolerance optimization; the function is described as follows:

式中,CMA为装配体MA的总加工成本函数;为特征fi j的第a个尺寸公差的加工成本-公差函数;为特征fi j的第b个形状公差的加工成本-公差函数;为特征fi j的第c个位置公差的加工成本-公差函数;g为特征fi j的尺寸公差总数;h为特征fi j的形状公差总数;s为特征fi j的位置公差总数;In the formula, C MA is the total processing cost function of assembly MA; is the processing cost-tolerance function of the ath dimensional tolerance of feature f i j ; is the processing cost-tolerance function of the bth shape tolerance of feature f i j ; is the processing cost-tolerance function of the cth position tolerance of feature f i j ; g is the total number of size tolerances of feature f i j ; h is the total number of shape tolerances of feature f i j ; s is the total number of position tolerances of feature f i j ;

该函数经过下述方法计算得出,This function is calculated by the following method,

步骤a1,设定机械装配体的零件表示函数;Step a1, setting the part representation function of the mechanical assembly;

给定一个机械装配体如下述公式所示:Given a mechanical assembly as shown in the following formula:

式中:In the formula:

MAΣ——表示机械装配体;MA Σ - represents the mechanical assembly;

Pi——组成装配体MA的第i个零件;P i ——the i-th part of the assembly MA;

n——组成装配体MA的零件总数。n—the total number of parts that make up the assembly MA.

步骤a2,确定机械装配体的总加工成本表示函数;Step a2, determining the representation function of the total processing cost of the mechanical assembly;

装配体的总加工成本如下所示:The total machining cost for the assembly is as follows:

式中:In the formula:

CMA——装配体MA的总加工成本函数;C MA - total machining cost function of assembly MA;

C(Pi)——装配体MA中零件Pi的加工成本函数。C(P i )——the processing cost function of part P i in assembly MA.

步骤a3,确定装配体中每个零件的加工成本函数;Step a3, determining the machining cost function of each part in the assembly;

零件的加工成本如下所示:The machining cost of the part is as follows:

式中:In the formula:

fi j——零件Pi的第j个装配特征;f i j ——the jth assembly feature of part P i ;

C(fi j)——零件Pi的第j个装配特征的加工成本函数;C(f i j )——the processing cost function of the jth assembly feature of part P i ;

m——零件Pi的装配特征总数。m—the total number of assembly features of part P i .

步骤a4,确定装配特征的加工成本函数;Step a4, determining the processing cost function of the assembly feature;

如下所示:As follows:

式中:In the formula:

——特征fi j的第a个尺寸公差的加工成本-公差函数; ——machining cost-tolerance function of the a-th dimensional tolerance of feature f i j ;

——特征fi j的第b个形状公差的加工成本-公差函数; ——the machining cost-tolerance function of the bth shape tolerance of feature f i j ;

——特征fi j的第c个位置公差的加工成本-公差函数; ——machining cost-tolerance function of the c-th position tolerance of feature f i j ;

g——特征fi j的尺寸公差总数;g—the total number of dimensional tolerances of feature f i j ;

h——特征fi j的形状公差总数;h—the total number of shape tolerances of feature f i j ;

s——特征fi j的位置公差总数。s - the total number of position tolerances for feature f i j .

步骤a5,综合公式(3)~(5),装配体的总加工成本-公差函数可表示如下:Step a5, combining formulas (3) to (5), the total processing cost-tolerance function of the assembly can be expressed as follows:

根据上述公式(6)得出装配公差优化的目标函数;Obtain the objective function of assembly tolerance optimization according to above-mentioned formula (6);

步骤b,确定装配公差的约束条件;Step b, determining constraints on assembly tolerances;

步骤c,将公差类型信息附加到VGC网络,得到装配体的公差网络,选择确定各装配特征的尺寸公差及几何公差的取值范围;Step c, attaching the tolerance type information to the VGC network to obtain the tolerance network of the assembly, and selecting and determining the value range of the dimensional tolerance and geometric tolerance of each assembly feature;

步骤d,采用多参数级联编码的方法进行遗传编码;Step d, adopting the method of multi-parameter cascade coding to carry out genetic coding;

步骤e,确定适应度函数;Step e, determining the fitness function;

步骤f,确定选择算子函数;Step f, determine the selection operator function;

步骤g,确定遗传算法的运行参数。Step g, determining the operating parameters of the genetic algorithm.

进一步,上述步骤b中为基于装配功能需求的尺寸公差的约束条件,Further, the above-mentioned step b is the constraint condition of the dimensional tolerance based on the functional requirements of the assembly,

TCL≥T1+T2+…+Tp+…+Tn (7)T CL ≥T 1 +T 2 +…+T p +…+T n (7)

TCL表示封闭环的尺寸公差,n表示尺寸链中组成环的个数,Tp表示第p个组成环的尺寸公差;公式(7)表示尺寸链中各增环与减环的公差之和应不大于封闭环的尺寸公差。T CL represents the dimensional tolerance of the closed loop, n represents the number of constituent rings in the dimensional chain, T p represents the dimensional tolerance of the p-th constituent ring; formula (7) represents the sum of the tolerances of each increasing and decreasing ring in the dimensional chain It should not be greater than the dimensional tolerance of the closed ring.

进一步,上述步骤b中为基于相对加工成本的尺寸公差约束条件,Further, in the above step b, the dimensional tolerance constraint condition based on the relative processing cost,

依据经济性需求建立特征的尺寸公差约束条件,如公式(8)所示:The dimensional tolerance constraints of the features are established according to the economic requirements, as shown in formula (8):

其中,表示根据特征加工的经济性需求而确定的尺寸公差等级,而是与它们相对应的公差值。in, with Indicates the dimensional tolerance level determined according to the economic requirements of feature processing, while with are the tolerance values corresponding to them.

进一步,上述步骤b中为基于加工能力的尺寸公差约束条件,Further, the above-mentioned step b is a dimensional tolerance constraint condition based on processing capability,

基于加工能力的尺寸公差约束条件可以表示为:The dimensional tolerance constraints based on processing capability can be expressed as:

其中,分别表示装配特征最后一道加工工序采用的加工方法所能够保证的尺寸公差等级,分别表示与装配特征名义尺寸相对应的公差值,而Td则表示装配特征的设计公差值;公式(9)表示公差的设计值不应超过加工方法的加工能力。in, with Respectively represent the dimensional tolerance level that can be guaranteed by the processing method adopted in the last processing procedure of the assembly feature, with Respectively with The tolerance value corresponding to the nominal size of the assembly feature, and T d represents the design tolerance value of the assembly feature; formula (9) indicates that the design value of the tolerance should not exceed the processing capacity of the processing method.

进一步,上述步骤b中为基于切削加工经济精度的尺寸公差约束条件,Further, in the above step b, the dimensional tolerance constraints based on the economic precision of the cutting process,

选择加工方法的经济加工精度作为公差优化设计的约束条件,如公式(10)所示,The economic machining accuracy of the machining method is selected as the constraint condition of the tolerance optimization design, as shown in formula (10),

其中,表示特征所选择的加工方法的经济加工精度对应的公差值。in, with Indicates the tolerance value corresponding to the economical machining accuracy of the machining method selected by the feature.

进一步,基于加工能力的形位公差约束条件如下所示,Further, the shape and position tolerance constraints based on processing capability are as follows,

其中,Tg表示特征的某一形位公差值,表示与加工方法的加工能力对应的公差值。Among them, T g represents a certain shape and position tolerance value of the feature, with Indicates the tolerance value corresponding to the processing capability of the processing method.

与现有技术相比较本发明的有益效果在于:Compared with prior art, the beneficial effects of the present invention are:

本发明基于遗传算法的装配公差优化设计方法,遗传算法以其全局搜索能力,较强的鲁棒性和计算的并行性在其中显示出了强大的应用潜力。The assembly tolerance optimization design method based on the genetic algorithm of the present invention, the genetic algorithm shows strong application potential because of its global search ability, strong robustness and parallelism of calculation.

本发明以最小加工成本为目标,分别以加工能力、加工成本或加工经济精度为约束条件所获得的优化公差,能够满足产品的装配功能需求,符合机械加工的约束条件,可以获得良好的经济效益;依据形位公差和尺寸公差的对应关系建立遗传算法的约束条件,实现了尺寸公差和形位公差的综合设计;该方法结合了装配公差类型设计和公差网络构建的研究内容,为实现从装配体到尺寸和形位公差的计算机辅助公差设计作了有益的探索。The invention takes the minimum processing cost as the goal, and the optimized tolerance obtained by taking the processing capacity, processing cost or processing economic precision as the constraint conditions respectively can meet the assembly function requirements of the product, meet the constraint conditions of mechanical processing, and can obtain good economic benefits ; According to the corresponding relationship between shape tolerance and size tolerance, the constraints of genetic algorithm are established, and the comprehensive design of size tolerance and shape tolerance is realized; this method combines the research content of assembly tolerance type design and tolerance network construction, to realize The computer-aided tolerance design from body to dimension and shape and position tolerance has been beneficially explored.

附图说明Description of drawings

图1为本发明基于成本目标优化的装配公差优化设计方法的流程图;Fig. 1 is the flowchart of the assembly tolerance optimization design method based on cost target optimization of the present invention;

图2a为本发明的联动装配体示意图;Figure 2a is a schematic diagram of the linkage assembly of the present invention;

图2b为本发明联动装配体的组成结构示意图;Figure 2b is a schematic diagram of the composition and structure of the linkage assembly of the present invention;

图2c为本发明联动装配体的各结构的公差示意图。Fig. 2c is a schematic diagram of the tolerance of each structure of the linkage assembly of the present invention.

具体实施方式detailed description

以下结合附图,对本发明上述的和另外的技术特征和优点作更详细的说明。The above and other technical features and advantages of the present invention will be described in more detail below in conjunction with the accompanying drawings.

本发明以最小加工成本为优化目标,综合考虑尺寸公差和形位公差,建立一个新的成本-公差模型。装配体的总加工成本由所有附属零件的加工成本组成,而零件的加工成本则由其所有特征面的加工成本构成。并不是每一个特征面都参与零件的装配。由于本发明主要考虑装配尺寸公差和形位公差大小的优化设计,因此只考虑装配特征面的加工成本。The invention takes the minimum processing cost as the optimization goal, comprehensively considers the size tolerance and shape tolerance, and establishes a new cost-tolerance model. The total tooling cost of an assembly consists of the tooling costs of all attached parts, and the tooling cost of a part consists of the tooling costs of all its feature faces. Not every feature face participates in the assembly of the part. Since the present invention mainly considers the optimization design of assembly size tolerance and shape tolerance size, only the processing cost of the assembly feature surface is considered.

本发明基于成本目标优化的装配公差优化设计方法的方法如下:The method of the assembly tolerance optimization design method based on cost target optimization of the present invention is as follows:

步骤a,确定以装配体的最小加工成本为优化目标,建立装配公差优化的目标函数。Step a, determine the minimum processing cost of the assembly as the optimization goal, and establish the objective function of assembly tolerance optimization.

步骤a1,设定机械装配体的零件表示函数;Step a1, setting the part representation function of the mechanical assembly;

给定一个机械装配体如下述公式(1)所示:Given a mechanical assembly as shown in the following formula (1):

式中:In the formula:

MA——表示机械装配体;MA —— indicates mechanical assembly;

Pi——组成装配体MA的第i个零件;P i ——the i-th part of the assembly MA;

n——组成装配体MA的零件总数。n—the total number of parts that make up the assembly MA.

步骤a2,确定机械装配体的总加工成本表示函数;Step a2, determining the representation function of the total processing cost of the mechanical assembly;

装配体的总加工成本如下所示:The total machining cost for the assembly is as follows:

式中:In the formula:

CMA——装配体MA的总加工成本函数;C MA - total machining cost function of assembly MA;

C(Pi)——装配体MA中零件Pi的加工成本函数。C(P i )——the processing cost function of part P i in assembly MA.

步骤a3,确定装配体中每个零件的加工成本函数;Step a3, determining the machining cost function of each part in the assembly;

零件的加工成本如下所示:The machining cost of the part is as follows:

式中:In the formula:

fi j——零件Pi的第j个装配特征;f i j ——the jth assembly feature of part P i ;

C(fi j)——零件Pi的第j个装配特征的加工成本函数;C(f i j )——the processing cost function of the jth assembly feature of part P i ;

m——零件Pi的装配特征总数。m—the total number of assembly features of part P i .

步骤a4,确定装配特征的加工成本函数;Step a4, determining the processing cost function of the assembly feature;

如下所示:As follows:

式中:In the formula:

——特征fi j的第a个尺寸公差的加工成本-公差函数; ——machining cost-tolerance function of the a-th dimensional tolerance of feature f i j ;

——特征fi j的第b个形状公差的加工成本-公差函数; ——the machining cost-tolerance function of the bth shape tolerance of feature f i j ;

——特征fi j的第c个位置公差的加工成本-公差函数; ——machining cost-tolerance function of the c-th position tolerance of feature f i j ;

g——特征fi j的尺寸公差总数;g—the total number of dimensional tolerances of feature f i j ;

h——特征fi j的形状公差总数;h—the total number of shape tolerances of feature f i j ;

s——特征fi j的位置公差总数。s - the total number of position tolerances for feature f i j .

步骤a5,综合公式(2)~(4),装配体的总加工成本-公差函数可表示如下:Step a5, combining formulas (2) to (4), the total processing cost-tolerance function of the assembly can be expressed as follows:

在产品设计阶段,零部件图纸上标注的尺寸公差和形位公差都是由特征的最后加工方法形成的。因此,本发明仅考虑特征成形的最后一道工序的加工成本来确定设计公差。In the product design stage, the dimensional tolerances and shape tolerances marked on the component drawings are formed by the final processing method of the features. Therefore, the present invention only considers the machining cost of the final operation of feature formation to determine the design tolerance.

步骤a6,以装配体的最小加工成本为优化目标,装配公差优化的目标函数可定义为:Step a6, taking the minimum processing cost of the assembly as the optimization goal, the objective function of assembly tolerance optimization can be defined as:

步骤b,确定装配公差的约束条件。Step b, determining the constraint conditions of the assembly tolerance.

在本发明中,根据产品的装配功能需求、各种加工方法的加工能力、不同加工等级的加工成本、各种切削加工的经济精度以及尺寸公差和形位公差的对应关系,设置有多种约束条件。In the present invention, various constraints are set according to the assembly function requirements of the product, the processing capabilities of various processing methods, the processing costs of different processing levels, the economic precision of various cutting processes, and the correspondence between dimensional tolerances and shape tolerances. condition.

1)基于装配功能需求的尺寸公差约束条件1) Dimensional tolerance constraints based on assembly functional requirements

从装配公差网络的子链中提取尺寸公差,以获得与子装配体对应的装配尺寸公差链。用装配功能需求的精度作为尺寸公差链的封闭环,构成公差链的其他尺寸的精度作为组成环。封闭环的精度取决于组成环的精度,是各组成环精度综合作用的结果。采用极值法来描述公差链中装配功能需求精度和各组成环尺寸精度之间的约束关系,则封闭环的公差等于各组成环公差之和。在装配尺寸链中,封闭环体现产品的装配功能需求,是由设计师预先确定的,其精度反映了装配质量的要求。Dimensional tolerances are extracted from subchains of the assembly tolerance network to obtain assembly dimensional tolerance chains corresponding to subassemblies. The accuracy required by the assembly function is used as the closed loop of the dimensional tolerance chain, and the accuracy of other dimensions that constitute the tolerance chain is used as the constituent ring. The accuracy of the closed loop depends on the accuracy of the constituent rings, which is the result of the combined effect of the accuracy of each constituent ring. The extremum method is used to describe the constraint relationship between the assembly function requirement accuracy and the dimensional accuracy of each component ring in the tolerance chain, then the tolerance of the closed loop is equal to the sum of the tolerances of each component ring. In the assembly size chain, the closed loop reflects the assembly function requirements of the product, which is predetermined by the designer, and its accuracy reflects the assembly quality requirements.

为了保证产品的装配质量,建立基于装配功能需求的尺寸公差约束条件如下所示:In order to ensure the assembly quality of the product, the dimensional tolerance constraints based on the assembly function requirements are established as follows:

TCL≥T1+T2+…+Tp+…+Tn (7)T CL ≥T 1 +T 2 +…+T p +…+T n (7)

TCL表示封闭环的尺寸公差,n表示尺寸链中组成环的个数,Tp表示第p个组成环的尺寸公差。公式(7)表示尺寸链中各增环与减环的公差之和应不大于封闭环的尺寸公差。T CL represents the dimensional tolerance of the closed loop, n represents the number of constituent rings in the dimensional chain, and T p represents the dimensional tolerance of the pth constituent ring. Formula (7) indicates that the sum of the tolerances of the increasing and decreasing rings in the dimensional chain should not be greater than the dimensional tolerance of the closed loop.

2)基于加工能力的尺寸公差约束条件2) Dimensional tolerance constraints based on processing capabilities

同一装配特征采用不同的加工方法所能保证的尺寸加工精度是不同的。因此设计装配特征的尺寸公差时,如果已知最后一道工序的加工方法,则必须考虑该加工方法的加工能力。基于加工能力的尺寸公差约束条件可以表示为:The dimensional machining accuracy that can be guaranteed by different processing methods for the same assembly feature is different. Therefore, when designing the dimensional tolerances of assembly features, if the processing method of the last process is known, the processing capability of the processing method must be considered. The dimensional tolerance constraints based on processing capability can be expressed as:

其中,分别表示装配特征最后一道加工工序采用的加工方法所能够保证的尺寸公差等级,分别表示与装配特征名义尺寸相对应的公差值,而Td则表示装配特征的设计公差值。公式(8)表示公差的设计值不应超过加工方法的加工能力。利用表1可以建立各种装配特征面在不同加工方法中所能保证的尺寸公差的约束条件。in, with Respectively represent the dimensional tolerance level that can be guaranteed by the processing method adopted in the last processing procedure of the assembly feature, with Respectively with The tolerance value corresponding to the nominal size of the assembly feature, and T d represents the design tolerance value of the assembly feature. Formula (8) indicates that the design value of the tolerance should not exceed the processing capacity of the processing method. Table 1 can be used to establish the constraints on the dimensional tolerances that can be guaranteed by various assembly feature surfaces in different processing methods.

表1基本装配特征面传统机械加工方法的加工精度Table 1 Machining accuracy of traditional machining methods for basic assembly feature surfaces

3)基于相对加工成本的尺寸公差约束条件3) Dimensional tolerance constraints based on relative processing costs

当采用某一加工方法加工特征时,在公差等级与加工成本曲线的某些区域,加工成本随着公差等级的变化而迅速变化,而当公差等级增大到一定程度时,加工成本则趋于一个常量。由此可见,当用同一加工方法按照不同的公差等级加工特征面时,其加工成本可能会有较大的差别。When using a certain processing method to process features, in some areas of the tolerance level and processing cost curve, the processing cost changes rapidly with the change of the tolerance level, and when the tolerance level increases to a certain extent, the processing cost tends to a constant. It can be seen that when the same processing method is used to process the feature surface according to different tolerance levels, the processing cost may be quite different.

因此进行公差优化设计时,可以在加工方法的加工能力范围内,依据经济性需求建立特征的尺寸公差约束条件,如公式(9)所示。Therefore, when performing tolerance optimization design, within the range of processing capacity of the processing method, the dimensional tolerance constraints of features can be established according to economic requirements, as shown in formula (9).

其中,表示根据特征加工的经济性需求而确定的尺寸公差等级,而是与它们相对应的公差值。in, with Indicates the dimensional tolerance level determined according to the economic requirements of feature processing, while with are the tolerance values corresponding to them.

4)基于切削加工经济精度的尺寸公差约束条件4) Dimensional tolerance constraints based on economical precision of machining

同一特征可以采用不同的加工方法来获得,而各种加工方法在正常的生产条件下能够以经济的方式达到的加工精度是有一定的范围的。平面铣削加工的经济精度是IT6~IT10,平面拉削加工的经济精度是IT6~IT9,平面磨削加工的经济精度是IT6~IT7。可以选择加工方法的经济加工精度作为公差优化设计的约束条件,如公式(10)所示。The same feature can be obtained by different processing methods, and the processing accuracy that various processing methods can achieve economically under normal production conditions has a certain range. The economic precision of plane milling is IT6~IT10, the economic precision of plane broaching is IT6~IT9, and the economic precision of plane grinding is IT6~IT7. The economic machining accuracy of the machining method can be selected as the constraint condition for the tolerance optimization design, as shown in formula (10).

其中,表示特征所选择的加工方法的经济加工精度对应的公差值。in, with Indicates the tolerance value corresponding to the economical machining accuracy of the machining method selected by the feature.

5)基于加工能力的形位公差约束条件5) Geometric tolerance constraints based on processing capabilities

同尺寸公差一样,不同的加工方法加工形位公差的能力也不相同。建立基于加工能力的形位公差约束条件如所示。Like dimensional tolerances, different processing methods have different abilities to process shape and position tolerances. The geometrical tolerance constraints based on processing capability are established as shown.

其中,Tg表示特征的某一形位公差值,表示与加工方法的加工能力对应的公差值。Among them, T g represents a certain shape and position tolerance value of the feature, with Indicates the tolerance value corresponding to the processing capability of the processing method.

6)基于尺寸精度的形位公差约束条件6) Geometric tolerance constraints based on dimensional accuracy

采用独立原则设计的尺寸公差只控制特征的局部实际尺寸,而不直接控制特征的形位误差。但是,尺寸公差带在限制特征的尺寸误差的时候,也间接控制了与之相关的形位误差。同样的,遵守独立原则的形位公差,只要求被约束的特征位于给定的形位公差带内,其形位误差可以达到最大值,而与特征的实际尺寸无关。但是,形位公差带对被约束特征的限制,同样也限制了特征上相关的尺寸误差。因此,尺寸公差和几何公差的设计客观上存在着相互制约、相互补偿的关系。一般情况下,设计同一特征的尺寸和几何公差应遵循的原则是:T尺寸>T位置>T形状。可据此建立基于尺寸精度的形位公差约束条件如公式(12)所示。The dimensional tolerance designed by the independent principle only controls the local actual size of the feature, and does not directly control the shape and position error of the feature. However, when the dimensional tolerance zone limits the dimensional error of the feature, it also indirectly controls the related shape and position error. Similarly, the shape and position tolerance that obeys the principle of independence only requires that the constrained feature is located within a given shape and position tolerance zone, and its shape and position error can reach the maximum value, regardless of the actual size of the feature. However, the restriction of the geometric tolerance zone on the constrained features also limits the related dimensional errors on the features. Therefore, the design of dimensional tolerance and geometric tolerance objectively has a relationship of mutual restriction and mutual compensation. In general, the principle to be followed in designing the size and geometric tolerance of the same feature is: T size > T position > T shape . Based on this, the geometric tolerance constraints based on dimensional accuracy can be established, as shown in formula (12).

其中,Tg为特征的形位公差值,表示与特征上的尺寸公差相对应的形位公差等级,表示与形位公差等级对应的公差值。Among them, T g is the shape and position tolerance value of the feature, with Indicates the geometric tolerance class corresponding to the dimensional tolerance on the feature, with Representation and Geometric Tolerance Class with The corresponding tolerance value.

在进行公差优化设计时,可以根据产品的装配功能需求及其加工的经济性要求,选择上述的若干个约束条件作为遗传算法目标函数的约束条件。In the tolerance optimization design, according to the assembly function requirements of the product and the economic requirements of processing, the above-mentioned constraints can be selected as the constraints of the genetic algorithm objective function.

步骤c,将公差类型信息附加到VGC网络,得到装配体的公差网络,选择确定各装配特征的尺寸公差及几何公差的取值范围。In step c, add the tolerance type information to the VGC network to obtain the tolerance network of the assembly, and select and determine the value range of the dimensional tolerance and geometric tolerance of each assembly feature.

步骤d,采用多参数级联编码的方法进行遗传编码。In step d, genetic coding is carried out by using a multi-parameter cascade coding method.

采用多参数级联编码的方法进行遗传编码,将各个尺寸公差和形位公差以二进制编码方法进行编码,然后将这些编码按照一定顺序连接在一起组成表示全部参数的二进制串染色体。在这种编码方法中,各个参数的二进制编码(参数子串)在染色体总串的位置一旦确定后就不能够再改变,以免在进化计算中出错。The method of multi-parameter cascading coding is used for genetic coding, and each size tolerance and shape tolerance is coded by binary coding method, and then these codes are connected together in a certain order to form a binary string chromosome representing all parameters. In this coding method, the binary code (parameter substring) of each parameter cannot be changed once the position of the total chromosome string is determined, so as to avoid errors in evolutionary calculations.

二进制编码串的长度取决于问题所要求的求解精度。根据GB/T1800.3-1998标准公差数值和GB/T1184-1996形位公差数值,确定尺寸和形位公差要求的精度是小数点后4位,因此公差决策变量T∈[TL,TU]应该被分成至少(TU-TL)×104个部分,其中TL表示公差决策变量的取值下限,TU表示公差决策变量的取值上限,公差决策变量的二进制串位数用mj表示用以下公式计算:The length of the binary coded string depends on the resolution required by the problem. According to GB/T1800.3-1998 standard tolerance value and GB/T1184-1996 shape and position tolerance value, the precision required to determine the size and shape and position tolerance is 4 decimal places, so the tolerance decision variable T∈[T L , T U ] It should be divided into at least (T U -T L )×10 4 parts, where T L represents the lower limit of the tolerance decision-making variable, T U represents the upper limit of the tolerance decision-making variable, and the binary string digits of the tolerance decision-making variable is represented by m j means calculated with the following formula:

则染色体的编码串长度为:Then the length of the coding string of the chromosome is:

其中,in,

L——染色体的编码串长度;L - the length of the coding string of the chromosome;

li——公差变量的编码长度;l i ——code length of tolerance variable;

n——尺寸和形位公差变量的总数。n—the total number of dimensional and geometric tolerance variables.

表2装配特征的公差信息Table 2 Tolerance information of assembly features

按照上述分析,精确到小数点后四位的尺寸和形位公差变量的最大二进制串编码长度为14位。本发明采用等长编码技术,每一个公差变量的编码长度定为14位。则一个具有n个公差参数的染色体长度可以表示为:According to the above analysis, the maximum binary string encoding length of the size and shape and position tolerance variables accurate to four digits after the decimal point is 14 digits. The present invention adopts equal-length coding technology, and the coding length of each tolerance variable is set to 14 bits. Then a chromosome length with n tolerance parameters can be expressed as:

在进行编码时,每个公差参数可以具有不同的取值范围,本发明采用等长编码技术,则每个参数具有不同的编码精度,设某一公差的取值范围为[TL,TU],用14位二进制编码符号来表示该公差,则可以生成214种不同的编码,编码精度为:When coding, each tolerance parameter can have different value ranges. The present invention adopts equal-length coding technology, so each parameter has different coding precision. Suppose the value range of a certain tolerance is [T L , T U ], using 14-bit binary coding symbols to represent the tolerance, then 2 14 different codings can be generated, and the coding precision is:

由表2中的公差变量所组成的二进制串染色体可形式化的表示如下:The binary string chromosome composed of the tolerance variables in Table 2 can be expressed formally as follows:

这种编码方法可以使公差优化的解空间和遗传算法的搜索空间具有一一对应关系。This encoding method can make the solution space of tolerance optimization and the search space of genetic algorithm have one-to-one correspondence.

对于给定的公差变量二进制编码染色体:For a given tolerance variable binary coded chromosomes:

第j个公差变量的二进制串解码函数的形式为:The binary string decoding function of the jth tolerance variable has the form:

其中:in:

Tj——染色体中第j个公差变量的取值;T j - the value of the jth tolerance variable in the chromosome;

——第j个公差变量的取值下限; - the lower limit of the value of the jth tolerance variable;

——第j个公差变量的取值上限; - the upper limit of the value of the jth tolerance variable;

——第j个公差变量的二进制编码串的第m个基因取值。 ——The value of the mth gene of the binary coded string of the jth tolerance variable.

步骤e,确定适应度函数。Step e, determining the fitness function.

GA算法按与个体适应度成正比的概率来决定当前种群中所有个体遗传到下一代种群中的机会,适应度高的个体遗传到下一代的概率较大,而适应度低的个体遗传到下一代的概率则较低。在公差优化设计中,以最小加工成本作为优化的目标函数,加工成本较低的个体被选择去繁殖下一代个体的概率较大,因此将加工成本的高低作为评价个体(解)好坏的标准。为了使加工成本较低的优良个体能够保存下来并继续繁衍,本发明用个体的总加工成本的倒数构造其适应度函数,如公式(18)所示。其中,Fk Fit为种群中第k个个体的适应度值。The GA algorithm determines the chance of all individuals in the current population being inherited to the next generation population according to the probability proportional to the individual fitness. Generation one is less likely. In the tolerance optimization design, the minimum processing cost is used as the optimization objective function, and the individual with a lower processing cost has a higher probability of being selected to reproduce the next generation of individuals, so the processing cost is used as the criterion for evaluating the quality of the individual (solution). . In order to preserve and continue to reproduce excellent individuals with lower processing costs, the present invention uses the reciprocal of the individual's total processing costs to construct its fitness function, as shown in formula (18). Among them, F k Fit is the fitness value of the kth individual in the population.

步骤f,确定选择算子函数。Step f, determine the selection operator function.

本实施例中,选用适应值比例选择算子进行计算。In this embodiment, the fitness value ratio selection operator is selected for calculation.

比例选择算子根据个体适应度值占群体适应值总和的比例决定其遗传的可能性,比例越大,遗传到下一代的可能性越大。The proportion selection operator determines the possibility of heredity according to the proportion of the individual fitness value to the total fitness value of the group. The larger the proportion, the greater the possibility of inheritance to the next generation.

个体的选择概率计算公式如下所示:The formula for calculating the selection probability of an individual is as follows:

其中:in:

Pi——第i个个体的选择概率;P i ——the selection probability of the i-th individual;

n——种群的规模,表示公差优化设计的解的数目;n—the size of the population, which represents the number of solutions of the tolerance optimization design;

Fk Fit——种群中第k个个体的适应度值;F k Fit - the fitness value of the kth individual in the population;

Fi Fit——第i个个体的适应度。F i Fit ——the fitness of the i-th individual.

比例选择算子的具体执行过程是:The specific execution process of the ratio selection operator is:

f1.计算群体中所有个体的适应度值;f1. Calculate the fitness value of all individuals in the group;

f2.对所有个体的适应度值求和;f2. Sum the fitness values of all individuals;

f3.计算个体的相对适应度,即个体被遗传到下一代的选择概率;f3. Calculate the relative fitness of the individual, that is, the selection probability of the individual being inherited to the next generation;

f4.使用模拟赌轮操作取0和1之间的随机数确定各个个体被选中的次数。f4. Use the simulated roulette operation to take a random number between 0 and 1 to determine the number of times each individual is selected.

步骤g,确定GA算法的运行参数。Step g, determine the running parameters of the GA algorithm.

GA算法中的运行参数包括种群大小M、终止进化代数T、交叉概率Pc、变异概率PmThe operating parameters in the GA algorithm include the population size M, the terminal evolution algebra T, the crossover probability P c , and the mutation probability P m .

M即种群中所含个体的数量。如果M取较小的值,可提高GA算法的运算速度,但却降低了个体的多样性,有可能会引起早熟现象,而当M取较大的值时,则会降低运算效率。M通常的取值范围为20~100;M is the number of individuals contained in the population. If M takes a smaller value, the calculation speed of the GA algorithm can be improved, but the diversity of individuals is reduced, which may cause premature phenomenon, and when M takes a larger value, the calculation efficiency will be reduced. M usually ranges from 20 to 100;

T为遗传算法的终止进化代数,一般取为100~500;T is the termination evolution algebra of the genetic algorithm, which is generally taken as 100-500;

Pc为交叉概率,一般取较大的值,但若过大,容易破坏种群中的优良模式,过小则会使产生新个体的速度较慢。Pc通常的取值范围为0.4~0.99;P c is the crossover probability, which generally takes a larger value, but if it is too large, it is easy to destroy the good model in the population, and if it is too small, it will slow down the generation of new individuals. P c usually ranges from 0.4 to 0.99;

Pm为变异概率。同交叉概率类似,Pm取较大的值时,可能破坏较好的模式,太小则不利于产生较好的新个体和抑制早熟现象。Pm的值一般取为0.0001~0.1。P m is the mutation probability. Similar to the crossover probability, when P m takes a larger value, it may destroy a better model, and if it is too small, it is not conducive to producing better new individuals and inhibiting the premature phenomenon. The value of P m is generally taken as 0.0001-0.1.

现以图2a所示的联动装配体为例,来说明用遗传算法进行装配公差优化设计的方法。当在CAD系统中建立起联动装配体的三维模型后,其上所有特征的名义尺寸便随之确定,在此基础上可进行相关的公差设计。如图2b所示,在联动装配体的装配公差网络中,由滑板、支架、联轴器、滑动轴承和轴等零件的装配公差可以构成一个完全约束的封闭的装配公差子链(为了简化问题,分析时省略一个滑动轴承)。下面,根据联动装配体的功能需求进行公差的优化设计。其中,以装配特征的加工经济精度来考虑尺寸公差等级,以形位公差和尺寸公差的对应关系来确定形位公差等级。Now take the linkage assembly shown in Figure 2a as an example to illustrate the method of using genetic algorithm to optimize the design of assembly tolerance. After the three-dimensional model of the linkage assembly is established in the CAD system, the nominal dimensions of all the features on it will be determined accordingly, and the relevant tolerance design can be carried out on this basis. As shown in Figure 2b, in the assembly tolerance network of the linkage assembly, the assembly tolerances of parts such as slide plates, brackets, couplings, sliding bearings and shafts can form a fully constrained closed assembly tolerance sub-chain (in order to simplify the problem , a sliding bearing is omitted from the analysis). Next, optimize the tolerance design according to the functional requirements of the linkage assembly. Among them, the dimensional tolerance level is considered with the machining economic precision of the assembly features, and the shape and position tolerance level is determined by the corresponding relationship between the shape and position tolerance and the size tolerance.

尺寸公差范围的确定Determination of dimensional tolerance range

在图2b中,有两对孔与轴的装配,即支架上的孔φD3与联轴器上的轴φD4,名义尺寸为φ50,轴上的外圆φD8与滑动轴承上的孔φD7,名义尺寸为φ38。孔φD3为Sicys基本特征面,可采用镗孔的方法加工,加工的经济精度为IT8~IT10。轴φD4为Socys基本特征面,可采用车削的方法加工,加工的经济精度为IT6~IT9。根据基准制的选择原则,孔φD3/轴φD4选用基孔制配合。支架和联轴器之间的配合要求有明显的间隙,易于转动,综合其加工的经济精度,最终确定孔φD3/轴φD4的配合为φ50H8/e7。孔φD7和外圆φD8之间的配合属于滑动配合,确定其配合为φ38H8/f7。In Figure 2b, there are two pairs of holes and shaft assembly, that is, the hole φD 3 on the bracket and the shaft φD 4 on the coupling, the nominal size is φ50, the outer circle φD 8 on the shaft and the hole φD on the sliding bearing 7 , the nominal size is φ38. Hole φD 3 is the basic feature surface of Si icys , which can be processed by boring method, and the economic precision of processing is IT8~IT10. Axis φD 4 is the basic feature surface of S ocys , which can be processed by turning, and the economic precision of processing is IT6~IT9. According to the selection principle of the datum system, the hole φD 3 /shaft φD 4 chooses the base hole system fit. The cooperation between the bracket and the coupling requires obvious clearance, easy to rotate, and considering the economical precision of its machining, the matching of hole φD 3 / shaft φD 4 is finally determined as φ50H8/e7. The fit between the hole φD7 and the outer circle φD8 is a sliding fit, and its fit is determined to be φ38H8/f7.

表3联动装配体尺寸公差范围Table 3 Linkage assembly size tolerance range

距离尺寸D1的名义尺寸为19,以基准面A作为加工基准,采用铣削加工,查阅基本装配特征面切削加工的经济精度,可知其加工的经济精度为IT6~IT10,即TD1∈(IT6~IT10)。距离尺寸D6的名义尺寸为47,以基准面C为加工基准,采用镗孔的方法加工,加工的经济精度为IT8~IT10,即TD6∈(IT8~IT10)。采用相同的方法,可得图2(c)中所有尺寸公差的精度范围如表3所示。The nominal dimension of the distance dimension D 1 is 19, and the datum plane A is used as the processing datum, and the milling process is adopted, and the economic precision of the cutting process of the basic assembly feature surface is checked, and the economic precision of the machining is IT6~IT10, that is, T D1 ∈ (IT6 ~IT10). The nominal dimension of the distance dimension D 6 is 47, and the datum plane C is used as the machining reference, and the boring method is used for machining. The economic precision of machining is IT8~IT10, that is, T D6 ∈(IT8~IT10). Using the same method, the accuracy ranges of all dimensional tolerances in Figure 2(c) are shown in Table 3.

形位公差类型及范围的确定Determination of type and range of form and position tolerance

轴φD4与孔φD3的装配约束类型为获得该约束所对应的装配公差函数为:The assembly constraint type of shaft φD 4 and hole φD 3 is The assembly tolerance function corresponding to this constraint is:

根据支架和联轴器的装配功能需求以及装配公差的选择和优化规则,可确定两零件的装配特征面之间的一组装配公差为:According to the assembly function requirements of the bracket and the coupling and the selection and optimization rules of the assembly tolerance, a set of assembly tolerances between the assembly feature surfaces of the two parts can be determined as:

由公式(21)可知,需要对轴φD4与孔φD3提出圆柱度的形位公差要求,即图2c所示的形位公差TG4和TG3It can be known from formula (21) that the shape and position tolerance requirements of the axis φD 4 and the hole φD 3 need to be put forward, that is, the shape and position tolerances T G4 and T G3 shown in Fig. 2c.

滑板上的设计基准A面与尺寸D1的上端尺寸界限(见图2c)所在的平面组成一对几何约束,是由同一零件上的两个几何特征构成的互参考变动几何约束CVGC。推理其所对应的互参考变动几何约束类型为CC21,推理CC21所对应的公差类型为AT8,即两特征平面所对应的几何公差类型为平行度。因此,需要对尺寸D1的上端尺寸界限所在的平面提出对于基准A的平行度要求,如图2c所示的形位公差TG1The design reference surface A on the skateboard and the plane where the upper dimension limit of dimension D1 (see Fig . 2c) form a pair of geometric constraints, which is a cross-reference variable geometric constraint CVGC composed of two geometric features on the same part. It is inferred that the corresponding cross-reference change geometric constraint type is CC21, and the tolerance type corresponding to CC21 is AT8, that is, the geometric tolerance type corresponding to the two feature planes is parallelism. Therefore, it is necessary to put forward parallelism requirements for the datum A on the plane where the upper limit of the dimension D 1 is located, as shown in Figure 2c for the geometrical tolerance T G1 .

在确定形位公差的类型后,可基于相关的尺寸公差精度来确定形位公差的公差等级范围。在上述分析中,已经获得尺寸D1的精度范围为IT6~IT8,可获得平行度公差TG1的精度范围为IT7~IT10。同理,支架上的尺寸公差TG3和联轴器上的尺寸公差TG4的公差等级分别为H8和e7,由尺寸公差等级与圆度和圆柱度公差等级的对应关系可知与之对应的形状公差TG3和TG4的公差等级分别为IT8~IT9和IT7~IT8。After determining the type of geometric tolerance, the tolerance grade range of geometric tolerance can be determined based on the relevant dimensional tolerance accuracy. In the above analysis, the accuracy range of the dimension D1 has been obtained from IT6 to IT8, and the accuracy range of the parallelism tolerance T G1 can be obtained from IT7 to IT10. Similarly, the tolerance grades of the dimensional tolerance T G3 on the bracket and the dimensional tolerance T G4 on the coupling are H8 and e7 respectively, and the corresponding relationship between the dimensional tolerance grade and the roundness and cylindricity tolerance grades shows the corresponding shape The tolerance grades of tolerance T G3 and T G4 are IT8~IT9 and IT7~IT8 respectively.

用上述方法推理获得图2c中所有形位公差的精度范围如表4所示。Table 4 shows the accuracy ranges of all shape and position tolerances in Figure 2c obtained by reasoning with the above method.

表4联动装配体形位公差范围Table 4 Linkage assembly form and position tolerance range

联动装配体公差优化目标函数Tolerance optimization objective function of linkage assembly

建立联动装配体的公差优化目标函数。其中,各类特征的加工成本-公差模型如表5所示。To establish the tolerance optimization objective function of the linkage assembly. Among them, the processing cost-tolerance models of various features are shown in Table 5.

表5各类特征的加工成本模型Table 5 Processing cost model of various features

建立联动装配体的公差优化目标函数如下所示:The objective function of tolerance optimization for establishing a linkage assembly is as follows:

在进行装配时,要求联动装配体中轴与联轴器的轴线保持在一条直线上,其高度差T0不大于0.45mm,以此作为装配尺寸链的封闭环,建立目标函数的约束条件如下所示:When assembling, it is required that the central axis of the linkage assembly and the axis of the coupling remain on a straight line, and the height difference T 0 is not greater than 0.45mm. This is used as a closed loop of the assembly dimension chain. The constraints for establishing the objective function are as follows Shown:

函数的约束条件如下所示:The constraints of the function are as follows:

运行参数的确定Determination of operating parameters

种群数M取值20,遗传代数T取值70,交叉概率Pc取值0.7,变异概率Pm取值0.08。The population number M takes a value of 20, the genetic algebra T takes a value of 70, the crossover probability P c takes a value of 0.7, and the mutation probability P m takes a value of 0.08.

装配公差优化结果及其分析Assembly Tolerance Optimization Results and Analysis

常用的公差分配方法有类比公差法、等公差法、等精度法、等影响法和经济准则法等。其中,等精度法是对尺寸链中的所有组成环尺寸取相同的公差等级,等影响法就是各组成环尺寸公差对封闭环公差具有相同的影响,而等公差法则是对尺寸链中所有组成环尺寸取相等的公差值。对于直线尺寸链,等公差法等同于等影响法。Commonly used tolerance allocation methods include analog tolerance method, equal tolerance method, equal precision method, equal influence method, and economic criterion method. Among them, the equal precision method is to take the same tolerance level for the dimensions of all the component rings in the dimensional chain, the equal influence method is that the dimensional tolerances of each component ring have the same impact on the tolerance of the closed loop, and the equal tolerance method is for all components in the dimensional chain Ring dimensions take equal tolerance values. For linear dimension chains, the equal tolerance method is equivalent to the equal influence method.

表6分别列出了用遗传算法、等精度法和等影响法等公差分配方法所得到的各项公差值及其加工成本比较。用遗传算法获得的公差值进行加工,其总加工成本只是等影响法的35.1%,等精度法的76.8%。Table 6 lists the tolerance values obtained by using genetic algorithm, equal precision method and equal influence method and other tolerance distribution methods and their processing cost comparisons. The total processing cost is only 35.1% of the equal-influence method and 76.8% of the equal-precision method by using the tolerance value obtained by the genetic algorithm to process.

表6不同公差分配方法的公差值及其加工成本比较Table 6 Tolerance value and processing cost comparison of different tolerance allocation methods

以上所述仅为本发明的较佳实施例,对发明而言仅仅是说明性的,而非限制性的。本专业技术人员理解,在发明权利要求所限定的精神和范围内可对其进行许多改变,修改,甚至等效,但都将落入本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are only illustrative rather than restrictive to the present invention. Those skilled in the art understand that many changes, modifications, and even equivalents can be made within the spirit and scope defined by the claims of the invention, but all will fall within the protection scope of the present invention.

Claims (5)

1. An assembly tolerance optimization design method based on genetic algorithm is characterized by comprising the following steps:
step a, determining an objective function which takes the minimum processing cost of an assembly body as an optimization objective and establishes assembly tolerance optimization;
b, determining a constraint condition of assembly tolerance;
c, adding tolerance type information to the VGC network to obtain a tolerance network of the assembly body, and selecting and determining the value range of the dimensional tolerance and the geometric tolerance of each assembly feature;
step d, adopting a multi-parameter cascade coding method to carry out genetic coding;
coding each size tolerance and form and position tolerance by a binary coding method, and then connecting the codes together according to a certain sequence to form a binary string chromosome representing all parameters;
according to GB/T1800.3-1998 standard tolerance value and GB/T1184-1996 geometric tolerance value, the accuracy of the requirement for determining the size and geometric tolerance is 4 decimal places, and a tolerance decision variable T ∈ [ T ∈ ]L,TU]Should be divided into at least (T)U-TL)×104A moiety of which TLRepresents the lower value limit, T, of the tolerance decision variableURepresenting the upper limit of tolerance decision variable, the binary string bit number of the tolerance decision variable is mjThe expression is calculated by the following formula:
2 m j - 1 < ( T U - T L ) &times; 10 4 &le; 2 m j - 1
the length of the code string for the chromosome is then:
L = &Sigma; i = 1 n l i
wherein,
l-coding string length of chromosome;
li-the encoded length of the tolerance variable;
n-the total number of dimensional and form and position tolerance variables;
the maximum binary string encoding length of the size and form and position tolerance variables of four digits after the decimal point is accurate is 14 digits, and by adopting an equal length encoding technology, the encoding length of each tolerance variable is 14 digits, so that the length of a chromosome with n tolerance parameters can be represented as follows:
L = &Sigma; i = 1 n l i = 14 n
when encoding, each tolerance parameter can have different value ranges, and each parameter has different encoding precision by adopting an equal length encoding technology, and the value range of a certain tolerance is set as [ T ]L,TU]By representing the tolerance with a 14-bit binary code symbol, a2 can be generated14Different codes are adopted, and the coding precision is as follows:
&delta; = T U - T L 2 14 - 1
binary encoding chromosomes for a given tolerance variable:
a 1 1 , a 2 1 , ... , a 14 1 , a 1 2 , a 2 2 , ... , a 14 2 , ... , a 1 j , a 2 j , ... , a 14 j , ... , a 1 n , a 2 n , ... , a 14 n
the binary string decoding function for the jth tolerance variable is of the form:
T j = T j L + ( &Sigma; m = 1 14 a m j 2 m - 1 ) T j U - T j L 2 14 - 1
wherein:
Tj-the value of the jth tolerance variable in the chromosome;
-a value lower limit of the jth tolerance variable;
-an upper value limit for the jth tolerance variable;
-the mth gene value of the binary encoded string of the jth tolerance variable;
step e, determining a fitness function;
step f, determining a selection operator function;
and g, determining the operation parameters of the genetic algorithm.
2. The method for optimizing the assembly tolerance according to the genetic algorithm, according to claim 1, wherein the fitness function is constructed in step e by using the reciprocal of the total processing cost of the individual, as shown in the following formula,
F k F i t = 1 C M A = 1 &Sigma; i = 1 n &Sigma; j = 1 m &lsqb; &Sigma; a = 1 g C T D a ( f i j ) + &Sigma; b = 1 h C T F b ( f i j ) + &Sigma; c = 1 s C T P c ( f i j ) &rsqb;
in the formula,is the fitness value of the kth individual in the population, CMAAs a function of the total processing cost of the assembly MA,is characterized byi jThe machining cost-tolerance function of the a-th dimensional tolerance of (a);is characterized byi jThe machining cost-tolerance function of the b-th shape tolerance of (a);is characterized byi jThe machining cost-tolerance function of the c-th positional tolerance of (a); g is a characteristic fi jThe total number of dimensional tolerances of; h is a characteristic fi jThe total number of shape tolerances of (a); s is a characteristic fi jTotal number of position tolerances.
3. The assembly tolerance optimization design method based on the genetic algorithm as claimed in claim 1 or 2, wherein the adaptive value proportion selection operator is selected for calculation in the step f, wherein the specific implementation process of the proportion selection operator is as follows:
f1. calculating fitness values of all individuals in the population;
f2. summing fitness values of all individuals;
f3. calculating the relative fitness of the individual, namely the selection probability of the individual being inherited to the next generation;
f4. the number of times each individual is selected is determined using a simulated betting round operation taking a random number between 0 and 1.
4. The genetic algorithm-based assembly tolerance optimization design method according to claim 3, wherein the individual selection probability calculation formula is as follows:
in the formula,
Pia selection probability for the ith individual;
n is the size of the population and represents the number of solutions for tolerance optimization design;
the fitness value of the kth individual in the population;
Fi Fitthe fitness of the ith individual.
5. The assembly tolerance optimization design method based on genetic algorithm as claimed in claim 1 or 2, wherein the operation parameters in the step g comprise population size M, termination evolution algebra T and cross probability PcProbability of mutation Pm
The value range of M is 20-100;
t is 100-500;
Pcthe value range of (a) is 0.4-0.99;
Pmthe amount is 0.0001 to 0.1.
CN201310756982.2A 2013-12-27 2013-12-27 A kind of build-up tolerance Optimization Design based on genetic algorithm Expired - Fee Related CN103902759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310756982.2A CN103902759B (en) 2013-12-27 2013-12-27 A kind of build-up tolerance Optimization Design based on genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310756982.2A CN103902759B (en) 2013-12-27 2013-12-27 A kind of build-up tolerance Optimization Design based on genetic algorithm

Publications (2)

Publication Number Publication Date
CN103902759A CN103902759A (en) 2014-07-02
CN103902759B true CN103902759B (en) 2017-03-01

Family

ID=50994080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310756982.2A Expired - Fee Related CN103902759B (en) 2013-12-27 2013-12-27 A kind of build-up tolerance Optimization Design based on genetic algorithm

Country Status (1)

Country Link
CN (1) CN103902759B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426565B (en) * 2015-10-15 2018-02-16 哈尔滨工业大学 Large high-speed revolution equipment form and position tolerance distribution method based on probability density technology
CN105205292B (en) * 2015-11-03 2018-11-09 北京宝沃汽车有限公司 A kind of method of simulation calculation automobile sub-unit tolerance
CN107945045B (en) * 2017-11-29 2021-12-21 沈阳工业大学 Particle swarm genetic algorithm-based remanufacturing assembly process matching method
CN110309606A (en) * 2019-07-05 2019-10-08 北京航空航天大学 A Bearing Matching Method for Heavy Duty Reducer Based on Genetic Algorithm
CN110457783B (en) * 2019-07-24 2023-07-28 武汉理工大学 An Assembly Error Analysis and Tolerance Optimization Method of Parallel Lifting Mechanism

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622495A (en) * 2012-04-13 2012-08-01 北京航空航天大学 Tolerance optimization allocation method based on tolerance grade and genetic algorithm

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4681155B2 (en) * 2001-06-22 2011-05-11 富士通株式会社 Assembly tolerance analysis apparatus, method, program, and recording medium
JP2006012114A (en) * 2004-05-25 2006-01-12 Oki Electric Ind Co Ltd Fitness evaluation device, genetic algorithm machine, and fitness evaluation method
US7706045B2 (en) * 2007-10-26 2010-04-27 Oclaro North America, Inc. Continuously tunable optical dispersion compensation synthesizers using cascaded etalons

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622495A (en) * 2012-04-13 2012-08-01 北京航空航天大学 Tolerance optimization allocation method based on tolerance grade and genetic algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于神经网络和遗传算法的公差优化设计;赵罡等;《北京航空航天大学学报》;20100531;第36卷(第5期);全文 *
基于粒子群算法的装配公差优化分配;匡兵等;《机械设计与制造》;20090228(第2期);全文 *
改进遗传算法在装配操作优化中的应用;邢彦锋等;《计算机辅助设计与图形学学报》;20071031;第19卷(第10期);全文 *

Also Published As

Publication number Publication date
CN103902759A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103903060B (en) A kind of Optimization Design on build-up tolerance
CN103902759B (en) A kind of build-up tolerance Optimization Design based on genetic algorithm
CN106446600B (en) A design method of sgRNA based on CRISPR/Cas9
CN102622495B (en) Tolerance optimization allocation method based on tolerance grade and genetic algorithm
CN112488315A (en) A batch scheduling optimization method based on deep reinforcement learning and genetic algorithm
CN113505519B (en) PSO-BP neural network and NSGA-II based laser cutting machining modeling and parameter optimization selection method
CN111985142A (en) Genetic particle swarm algorithm-based RV reducer part matching method
CN104572993A (en) Genetic algorithm-based classification algorithm parameter optimization method
CN105303252A (en) Multi-stage nerve network model training method based on genetic algorithm
CN112580259B (en) Intelligent mine automatic ore blending method and system based on genetic algorithm
CN101599138A (en) Land evaluation method based on artificial neural network
CN110245390B (en) Automobile engine oil consumption prediction method based on RS-BP neural network
CN103810324B (en) A kind of build-up tolerance Optimization Design optimized based on cost objective
CN112699607A (en) Multi-objective optimization selection assembly method based on genetic algorithm
CN104616062A (en) Nonlinear system recognizing method based on multi-target genetic programming
CN111639820A (en) Energy consumption parameter optimization method and system for cement kiln production
CN107992945A (en) Feature gene selection method based on deep learning and evolutionary computation
CN106599451B (en) A multi-objective optimization method for the main bearing of RV reducer
CN114398739A (en) Cooperative optimization design method of shape and size of wind turbine concrete-steel hybrid tower
CN116822985A (en) Intelligent process decision-making method
CN114970036B (en) Two-dimensional blade profile parameterization design method and device and readable storage medium
CN119627985B (en) Optimization method, equipment, medium and program product for super capacitor energy storage frequency modulation
CN103279796A (en) Method for optimizing genetic algorithm evolution quality
CN118133653A (en) A method for optimizing process parameters of engine remanufacturing cylinder milling
Lei et al. Research on efficiency simulation model of pumping stations based on data-driven methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170301

Termination date: 20171227

CF01 Termination of patent right due to non-payment of annual fee