姚河清 朱 玲 刘 波 李春燕
(河海大学 机电工程学院 江苏 常州 213012)
摘要:用Visual C++ 6.0作为开发工具,利用MFC DAO封装的CDaoTableDef、CDaoRecordset、CDaoQueryDef、CDaoDatabase等几个类、结合SQL数据库语言和Access数据库,完成了一种焊接工艺专家系统的开发。较好解决了知识库的浏览、添加、删除、修改等问题, 便于专家系统的完善与扩充,并以实例介绍了相关知识库的操作方法。本文有效的解决了焊接工艺专家系统开发的一个关键问题——知识库的规范管理。经测试表明,该系统设计完备,条理清楚,能较好的满足实际需要。
关键词:焊接工艺专家系统 ;Visual C++ ;事实库;规则库
Exploitation of Welding Procedure Expert System
Yao Heqing Zhu Ling Liu Bo Li Chunyan
(College of Mechanical & Electrical , Hohai University , Changzhou 210032 , China)
Abstract:A kind of welding procedure expert system has been finished ,using Visual C++6.0 as the developing method ,utilizing SQL、Access and the classes such as CDaoTableDef、CDaoRecordset、CDaoQueryDef、CDaoDatabase which are encapsulated in MFC DAO.The manipulation including browse、addition、deletion、correction of the knowledge base has been introduced to the expansion of the expert system .The relevant knowledge base operation of welding procedure expert system has been exampled with an instance. One of the most important problems — management of knowledge base has been solved in this paper.Testing results show that the expert system can meet the actual demands because the design and the arrangement are good.
Key words: welding procedure Expert system;Visual C++ ;fact base;rule base
引 言
专家系统是人工智能的一个分支,它可以利用大量专业知识以解决只有专家才能解决的问题。在焊接领域,由于焊接过程中焊接质量及焊接生产效率的影响因素较多,焊接工作条件与焊接过程工艺参数的关系难以量化,工艺参数的制定在很大程度上依赖于少数有经验的焊接专家,这些都影响到生产的效率和生产成本。将专家系统应用到焊接领域,充