为快速查找、准确定位机械产品设计中违反约束条件的设计缺陷,将机械产品中零部件几何约束关系规约为设计缺陷判别函数,在对零部件几何约束编码的基础上建立了机械产品的装配约束关系矩阵,采用有向图存储装配约束关系矩阵信息,有向图中的节点标志零件编号,节点的数据结构存储零件的设计参数,弧的权值标志几何约束的类型。将有向图中弧的权值作为抗原,设计缺陷作为抗体,依据抗原基因与抗体基因的亲和度来决定抗体的变异规则,通过对抗体的剪切、拼接与替换等变异操作来识别抗原,基于对有向图中弧的权值的解码分析实现了机械产品设计缺陷的动态辨识。
To identify the design defects which violated constraint conditions quickly and accurately, geometric constraints relationships among mechanical parts were formulated as design defect discriminant functions, and assembly constraint relationship matrix was established based on encoding of geometric constraints between mechanical parts. In this matrix, directed graph was utilized to store the information of matrix, the node of directed graph was used to identify parts number, the data structure of node was used to store the design parameters of mechanical parts, and the weight of directed graph arcs was utilized to denote geometric constraint type. Weights of directed graph arcs were treated as antigen and design defects of mechanical parts as antibody, mutation rules of antibodies were determined according to the affinity between antigen gene and corresponding antibody gene. Through mutation operations for antibodies such as trimming, splicing and replacement, the dynamic recognition of mechanical products' design defects was realized based on decoding analysis for weights of directed graph arcs.