遗传算法是解决大规模背包问题的有效方法,在研究几种有效的遗传算法求解背包问题基础上,注意到遗传算法的进化代数对求解结果的影响大于群体规模,保持基因位数据的有效性,对进化效率有重大影响.提出了基因属性保留遗传算法(attribute gene-reserved genetic algorithm,AGGA),将每一位基因的属性差异,在不同代遗传中加以保留,结合精英保留方法,很好地解决了提前收敛、GA欺骗问题,从很少的群体出发,就可以达到好的结果,实证了AGGA对背包问题的高效性,得到好于参考文献的结果,并构造了150个物体的背包问题实例.
The genetic algorithm is an effective means to solve the large-scale knapsack problem.By studying several effective genetic algorithms,we find that the evolutional algebra of genetic algorithm has much more impact on optimal results than population size does.In addition,maintaining the effectiveness of gene-bit data also has a significant impact on the efficiency of evolution.In this paper,we propose the attribute genereserved genetic algorithm(AGGA),which,combined with the genetic algorithm of elitist strategy,can reserve the difference of each gene-bit data attribute in genetics of different generations,and easily solve the early convergence and GA deceptive problem.Just from a very small number of groups,we can finally achieve good results,justify the high efficiency of improved algorithm and gain a calculation result better than the ones in relevant references.Then we construct a calculation example which contains 150 backpacks.