当前位置:
文档之家› 离散灰狼优化算法求解有界背包问题
离散灰狼优化算法求解有界背包问题
Discrete grey wolf optimizer for bounded knapsack problem
HE Yi-chao,LI Ze-wen,LI Huan-zhe,GUO Xiao-hu,LI Ya
(College of Information Engineering,Hebei GEO University,Shijiazhuang 050031,China)
收 稿 日 期 :2018-10-10; 修 订 日 期 :2018-11-16 基金项目:河北省高等学校科学研究计划基金项目 (ZD2016005);河北省自然科学基金项目 (F2016403055) 作 者简介:贺毅朝 (1969-),男,河北石家庄人,硕士,教授,CCF 高级 会 员, 研 究 方 向 为 进 化 算 法 理 论 与 应 用 、 算 法 设 计 与 分 析、 计 算 复杂性和群测试理论;李泽文 (1994-),男,河北石家庄人,硕士研究生,研究方向 为 演 化 计 算;李 焕 哲 (1975-),男,河 北 唐 山 人,博士, 副教授,研究方向为演化计算与机器学习;郭晓虎 (1994-),男,河北石家庄人,硕士研究 生,研 究 方 向 为 演 化 计 算;李 亚 (1995-),女,河 北 石 家 庄 人 , 硕 士 研 究 生 , 研 究 方 向 为 演 化 计 算 。E-mail:heyichao119@hgu.edu.cn
பைடு நூலகம்
划法,但是精确算法具有伪多项式时间复杂度,对于大规 模的 BKP 不适用,因 此 利 用 EAs求 解 BKP 不 失 为 一 种 明 智的 选 择。 除 了 经 典 的 遗 传 算 法 (genetic algorithm, GA)[5]、粒 子 群 算 法[6]、 差 分 演 化[7]等 EAs以 外 , 近 年 来 一系列新的 EAs被提 出, 如 正 弦 余 弦 算 法[8]、 鲸 鱼 优 化 算 法[9]、灰 狼 优 化 算 法 (grey wolf optimizer,GWO)[10]等 , 已被用于求解 许 多 领 域 的 优 化 问 题 。 本 文 基 于 GWO 求 解 BKP,一种容易想到的方法是 首 先 将 BKP 其 转 换 成 等 价 的 0-1背包 问 题 (0-1knapsack problem,0-1KP), 然 后 再 利
Abstract:To solve the bounded knapsack problem using the grey wolf optimizer,a discrete grey wolf optimizer(DGWO)based on encoding transformation was proposed.A crossover strategy of genetic algorithm was introduced to enhance the local search ability,and the infeasible solutions were processed using the repair and optimization method based on the greedy strategy,which not only ensured the effectiveness,but also speeded up the convergence.Experiment using three kinds of large-scale instances of the bounded knapsack problem was carried out to verify the validity and stability of DGWO.By comparing and analyzing the re- sults with other well-established algorithms,the computational results show that the convergence speed of DGWO is higher than that of other algorithms,the solutions of these instances of bounded knapsack problem are all well obtained with approximation ratio close to 1. Key words:bounded knapsack problem;grey wolf optimizer;genetic algorithm;encoding transformation method;repair and op- timization method
0 引 言
背 包 问 题 (knapsack problem,KP)[1]是 一 类 著 名 的 NP 完全问题和组合优化问题,在实际生活中有 着 广 泛 的 应 用,如货物装载、资源分配、投资决 策 等[2]。KP 存 在 许 多 扩展形式[3],如有界背包问题 (bounded knapsack problem, BKP)、无界背包问题、多维 背 包 问 题、 二 次 背 包 问 题、 折 扣 {0-1} 背包问题等。目前,求解 BKP 的主要精确算法是 David Pisinger[4]提出的 一 种 极 小 算 法, 该 算 法 基 于 动 态 规
2019 年 4 月 第 40 卷 第 4 期
计算机工程与设计
COMPUTER ENGINEERING AND DESIGN
Apr.2019 Vol.40 No.4
离散灰狼优化算法求解有界背包问题
贺毅朝,李泽文,李焕哲,郭晓虎,李 亚
(河北地质大学 信息工程学院,河北 石家庄 050031)
摘 要:为利用灰狼优化算法求解有界背包问题,基 于 编 码 转 换 法 提 出 一 种 离 散 灰 狼 优 化 算 法 (discrete grey wolf optimi- zer,DGWO)。引入遗传算法的交叉策略增强局部搜索能力,使 用 基 于 贪 心 策 略 的 修 复 与 优 化 法 处 理 不 可 行 解 , 保 证 算 法 的求解效果,加快算法的收敛速度。对于3类大规模有界背包问题实例,通过与已有算法的计算结果比较与分析,验证了 DGWO 的有效性和稳定性。实验结果表明,DGWO 的收 敛 速 度 比 其 它 算 法 快, 对 于 所 有 的 有 界 背 包 问 题 实 例 均 能 获 得 一 个近似比接近1的近似解。 关键词:有界背包问题;灰狼优化算法;遗传算法;编码转换法;修复与优化法 中图法分类号:TP301.6 文献标识号:A 文章编号:1000-7024 (2019)04-1008-08 doi:10.16208/j.issn1000-7024.2019.04.018