计算机应用 ›› 2019, Vol. 39 ›› Issue (3): 656-662.DOI: 10.11772/j.issn.1001-9081.2018071580

• 人工智能 • 上一篇    下一篇

折扣{0-1}背包问题的简化新模型及遗传算法求解

杨洋, 潘大志, 刘益, 谭代伦   

  1. 西华师范大学 数学与信息学院, 四川 南充 637009
  • 收稿日期:2018-07-31 修回日期:2018-09-13 出版日期:2019-03-10 发布日期:2019-03-11
  • 作者简介:杨洋(1993-),男,四川资阳人,硕士研究生,CCF会员,主要研究方向:数学建模、智能算法;潘大志(1974-),男,四川三台人,教授,博士,主要研究方向:智能计算、算法设计;刘益(1959-),男,四川南充人,副教授,硕士,主要研究方向:应用数学、数学哲学;谭代伦(1971-),男,重庆铜梁人,教授,硕士,主要研究方向:数学建模、运筹优化。
  • 基金资助:
    国家自然科学基金资助项目(11371015);四川省教育厅自然科学基金资助项目(18ZA0469);西华师范大学博士启动基金资助项目(12B022);西华师范大学校级科研团队项目(CXTD2015-4);四川省大学生创新创业训练计划支持项目(201810638085)。

New simplified model of discounted {0-1} knapsack problem and solution by genetic algorithm

YANG Yang, PAN Dazhi, LIU Yi, TAN Dailun   

  1. School of Mathematics and Information, China West Normal University, Nanchong Sichuan 637009, China
  • Received:2018-07-31 Revised:2018-09-13 Online:2019-03-10 Published:2019-03-11
  • Contact: 杨洋
  • Supported by:
    This work is partially supported by the National Natural Science Foundation of China (11371015), the Natural Science Foundation of Sichuan Provincial Department of Education (18ZA0469), the Doctoral Startup Fund of China West Normal University (12B022), the Science Research Team Program of China West Normal University (CXTD2015-4), the Student's Platform for Innovation and Entrepreneurship Training Program of Sichuan Province (201810638085).

摘要: 当前折扣{0-1}背包问题(D{0-1}KP)模型将折扣关系作为一个新的个体,导致求解过程必需采取修复法对个体编码进行修复,求解方式较少。针对求解方法单一的问题,通过改变模型中二进制的编码表达方式,提出折扣关系不在个体编码中的表达方法。首先,设定对任意折扣关系,当且仅当所涉及个体编码值同时为1(即其乘积为1)时,折扣关系成立,据此建立简化折扣{0-1}背包问题(SD{0-1}KP)模型;然后,针对SD{0-1}KP模型,基于杰出者保留策略(EGA),结合贪心策略(GRE),提出改进遗传算法——第一遗传算法(FG);最后,再结合罚函数法,提出求解SD{0-1}KP高精度罚函数法——第二遗传算法(SG)。结果表明,SD{0-1}KP能够完全覆盖D{0-1}KP问题领域,与FirEGA相比,所提出的两类算法在求解速度方面优势明显,且SG算法首次引入罚函数法,有效地丰富了该问题的求解算法。

关键词: 简化折扣{0-1}背包问题, 贪婪策略, 近似计算, 数学模型, 遗传算法

Abstract: Current Discounted {0-1} Knapsack Problem (D{0-1}KP) model takes the discounted relationship as a new individual, so the repair method must be adopted in the solving process to repair the individual coding, making the model have less solving methods. In order to solve the problem of single solving method, by changing the binary code expression in the model, an expression method with discounted relationship out of individual code was proposed. Firstly, if and only if each involved individual encoding value was one (which means the product was one), the discounted relationship was established. According to this setting, a Simplified Discounted {0-1} Knapsack Problem (SD{0-1}KP) model was established. Then, an improved genetic algorithm-FG (First Gentic algorithm) was proposed based on Elitist Reservation Strategy (EGA) and GREedy strategy (GRE) for SD{0-1}KP model. Finally, combining penalty function method, a high precision penalty function method-SG (Second Genetic algorithm) for SD{0-1}KP was proposed. The results show that the SD{0-1}KP model can fully cover the problem domain of D{0-1}KP. Compared with FirEGA (First Elitist reservation strategy Genetic Algorithm), the two algorithms proposed have obvious advantages in solving speed. And SG algorithm introduces the penalty function method for the first time, which enriches the solving methods of the problem.

Key words: Simplified Discounted {0-1} Knapsack Problem (SD{0-1}KP), greedy strategy, approximate calculation, mathematical model, Genetic Algorithm (GA)

中图分类号: