geatpy-dev / geatpy

Evolutionary algorithm toolbox and framework with high performance for Python
http://www.geatpy.com
GNU Lesser General Public License v3.0
1.96k stars 725 forks source link

demo3不是01背包问题而是分组背包问题吧 #340

Open wugoukanle opened 9 months ago

wugoukanle commented 9 months ago

01背包问题:每种物品只有一个,可以选择放或不放。 分组的背包问题:物品分为若干组,每组只能选择一个物品放入背包。