文档详情

遗传算法在求解TSP问题—毕业设计论文.doc

发布:2018-03-02约5.51万字共54页下载文档
文本预览下载声明
毕 业 设 计(论 文) 学院 信息工程学院 专业 计算机科学技术与应用 班级 姓名 年 月 日 目 录 摘要 I Abstract II 引 言 1 第一章 基本遗传算法 2 1.1 遗传算法的产生及发展 3 1.2 基本原理 3 1.3 遗传算法的特点 3 1.4 基本遗传算法描述 5 1.5 遗传算法构造流程 6 第二章 遗传算法的实现技术 6 2.1 编码方法 7 2.1.1 二进制编码 7 2.1.2 格雷码编码 7 2.1.3 符点数编码 8 2.1.4 参数编码 8 2.2 适应度函数 10 2.3 选择算子 10 2.4 交叉算子 10 2.4.1 单点交叉算子 10 2.4.2 双点交叉算子 11 2.4.3 均匀交叉算子 11 2.4.4 部分映射交叉 11 2.4.5 顺序交叉 12 2.5 变异算子 12 2.6 运行参数 12 2.7 约束条件的处理方法 13 2.8 遗传算法流程图 14 第三章 遗传算法在TSP上的应用 15 3.1 TSP问题的建模与描述 15 3.2 对TSP的遗传基因编码方法 16 3.3 针对TSP的遗传操作算子 17 3.3.1 选择算子 17  轮盘赌选择 17  最优保存策略选择 17 3.3.2 交叉算子 20 单点交叉 20 部分映射交叉 21 3.3.3 变异算子 23 3.4 TSP的混和遗传算法 26 第四章 实例分析 27 4.1 测试数据 27 4.2 测试结果 27 4.3 结果分析 27 摘 要 TSP (Traveling Salesman Problem)旅行商问题是一类典型的NP完全问题,遗传算法是解决NP问题的一种较理想的方法。文章首先介绍了基本遗传算法的基本原理、特点及其基本实现技术;接着针对TSP 问题,论述了遗传算法在编码表示和遗传算子(包括选择算子、交叉算子变异算子这三种算子)等方面的应用情况,分别指出几种常用的编码方法的优点和缺点,并且结合TSP的运行实例详细分析了基本遗传算法的4个运行参数群体大小、遗传算法的终止进化代数、交叉概率、变异概率,对遗传算法的求解结果和求解效率的影响,经过多次的测试设定出了它们一组比较合理的取值。最后,简单说明了混合遗传算法在求解TSP问题中的应用并对遗传算法解决TSP问题的前景提出了展望。 关键词:TSP 遗传算法 遗传算子 编码 Abstract TSP (Traveling Salesman Problem) is a typical NP - complete problem and genetic algorithm (GA) is the perfect method for solving NP - complete problem. The basic theories, characteristics and the basic techniques of GA are first introduced. Then the encoding model and genetic operators (including selection operation, crossover operation and mutation operation) about GA in solving TSP are discussed. The advantages and disadvantages of various encoding method are respectively indicated, and the application of the three basic genetic operators is elaborated. According to the given data, the results and efficiencies are influenced by four parameters in the basic genetic algorithm: the size of population, terminate generation, crosser probability and mutation probability. Adjust the parameters, run and try for better ones. At last, the applicatio
显示全部
相似文档